diff --git itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java index 88b9faf..2cfb629 100644 --- itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java +++ itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java @@ -55,7 +55,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.Table; import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; @@ -893,8 +895,22 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + return null; + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + return null; + } + + @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException { } @@ -914,6 +930,16 @@ public void addForeignKeys(List fks) } @Override + public void addUniqueConstraints(List uks) + throws InvalidObjectException, MetaException { + } + + @Override + public void addNotNullConstraints(List nns) + throws InvalidObjectException, MetaException { + } + + @Override public Map getAggrColStatsForTablePartitions(String dbName, String tableName) throws MetaException, NoSuchObjectException { return objectStore.getAggrColStatsForTablePartitions(dbName, tableName); diff --git itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java index b897ffa..bf98c0d 100644 --- itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java +++ itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java @@ -1696,6 +1696,8 @@ private void maskPatterns(Pattern[] patterns, String fname) throws Exception { ".*.hive-staging.*", "pk_-?[0-9]*_[0-9]*_[0-9]*", "fk_-?[0-9]*_[0-9]*_[0-9]*", + "uk_-?[0-9]*_[0-9]*_[0-9]*", + "nn_-?[0-9]*_[0-9]*_[0-9]*", ".*at com\\.sun\\.proxy.*", ".*at com\\.jolbox.*", ".*at com\\.zaxxer.*", diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index ca6a007..d6de022 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -69,6 +69,27 @@ struct SQLForeignKey { 14: bool rely_cstr // Rely/No Rely } +struct SQLUniqueConstraint { + 1: string table_db, // table schema + 2: string table_name, // table name + 3: string column_name, // column name + 4: i32 key_seq, // sequence number within unique constraint + 5: string uk_name, // unique key name + 6: bool enable_cstr, // Enable/Disable + 7: bool validate_cstr, // Validate/No validate + 8: bool rely_cstr // Rely/No Rely +} + +struct SQLNotNullConstraint { + 1: string table_db, // table schema + 2: string table_name, // table name + 3: string column_name, // column name + 4: string nn_name, // not null name + 5: bool enable_cstr, // Enable/Disable + 6: bool validate_cstr, // Validate/No validate + 7: 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) @@ -497,6 +518,24 @@ struct ForeignKeysResponse { 1: required list foreignKeys } +struct UniqueConstraintsRequest { + 1: required string db_name, + 2: required string tbl_name +} + +struct UniqueConstraintsResponse { + 1: required list uniqueConstraints +} + +struct NotNullConstraintsRequest { + 1: required string db_name, + 2: required string tbl_name +} + +struct NotNullConstraintsResponse { + 1: required list notNullConstraints +} + struct DropConstraintRequest { 1: required string dbname, 2: required string tablename, @@ -511,6 +550,14 @@ struct AddForeignKeyRequest { 1: required list foreignKeyCols } +struct AddUniqueConstraintRequest { + 1: required list uniqueConstraintCols +} + +struct AddNotNullConstraintRequest { + 1: required list notNullConstraintCols +} + // Return type for get_partitions_by_expr struct PartitionsByExprResult { 1: required list partitions, @@ -1055,7 +1102,8 @@ service ThriftHiveMetastore extends fb303.FacebookService throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) - void create_table_with_constraints(1:Table tbl, 2: list primaryKeys, 3: list foreignKeys) + void create_table_with_constraints(1:Table tbl, 2: list primaryKeys, 3: list foreignKeys, + 4: list uniqueConstraints, 5: list notNullConstraints) throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) @@ -1065,6 +1113,10 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:NoSuchObjectException o1, 2:MetaException o2) void add_foreign_key(1:AddForeignKeyRequest req) throws(1:NoSuchObjectException o1, 2:MetaException o2) + void add_unique_constraint(1:AddUniqueConstraintRequest req) + throws(1:NoSuchObjectException o1, 2:MetaException o2) + void add_not_null_constraint(1:AddNotNullConstraintRequest 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 @@ -1313,11 +1365,16 @@ service ThriftHiveMetastore extends fb303.FacebookService list get_index_names(1:string db_name, 2:string tbl_name, 3:i16 max_indexes=-1) throws(1:MetaException o2) - //primary keys and foreign keys + //primary keys and foreign keys PrimaryKeysResponse get_primary_keys(1:PrimaryKeysRequest request) throws(1:MetaException o1, 2:NoSuchObjectException o2) ForeignKeysResponse get_foreign_keys(1:ForeignKeysRequest request) throws(1:MetaException o1, 2:NoSuchObjectException o2) + // other constraints + UniqueConstraintsResponse get_unique_constraints(1:UniqueConstraintsRequest request) + throws(1:MetaException o1, 2:NoSuchObjectException o2) + NotNullConstraintsResponse get_not_null_constraints(1:NotNullConstraintsRequest request) + throws(1:MetaException o1, 2:NoSuchObjectException o2) // column statistics interfaces diff --git metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql index 8877681..95b8e8d 100644 --- metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql +++ metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql @@ -106,7 +106,7 @@ CREATE TABLE "APP"."NOTIFICATION_LOG" ("NL_ID" BIGINT NOT NULL, "DB_NAME" VARCHA CREATE TABLE "APP"."NOTIFICATION_SEQUENCE" ("NNI_ID" BIGINT NOT NULL, "NEXT_EVENT_ID" BIGINT NOT NULL); -CREATE TABLE "APP"."KEY_CONSTRAINTS" ("CHILD_CD_ID" BIGINT, "CHILD_INTEGER_IDX" INTEGER NOT NULL, "CHILD_TBL_ID" BIGINT, "PARENT_CD_ID" BIGINT NOT NULL, "PARENT_INTEGER_IDX" INTEGER, "PARENT_TBL_ID" BIGINT NOT NULL, "POSITION" BIGINT NOT NULL, "CONSTRAINT_NAME" VARCHAR(400) NOT NULL, "CONSTRAINT_TYPE" SMALLINT NOT NULL, "UPDATE_RULE" SMALLINT, "DELETE_RULE" SMALLINT, "ENABLE_VALIDATE_RELY" SMALLINT NOT NULL); +CREATE TABLE "APP"."KEY_CONSTRAINTS" ("CHILD_CD_ID" BIGINT, "CHILD_INTEGER_IDX" INTEGER, "CHILD_TBL_ID" BIGINT, "PARENT_CD_ID" BIGINT NOT NULL, "PARENT_INTEGER_IDX" INTEGER, "PARENT_TBL_ID" BIGINT NOT NULL, "POSITION" BIGINT NOT NULL, "CONSTRAINT_NAME" VARCHAR(400) NOT NULL, "CONSTRAINT_TYPE" SMALLINT NOT NULL, "UPDATE_RULE" SMALLINT, "DELETE_RULE" SMALLINT, "ENABLE_VALIDATE_RELY" SMALLINT NOT NULL); ALTER TABLE "APP"."KEY_CONSTRAINTS" ADD CONSTRAINT "CONSTRAINTS_PK" PRIMARY KEY ("CONSTRAINT_NAME", "POSITION"); diff --git metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java index 03e492e..9cf1ee2 100644 --- metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java +++ metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java @@ -41301,6 +41301,4617 @@ public Builder removeFks(int index) { // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.ForeignKeys) } + public interface UniqueConstraintsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + java.util.List + getUksList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint getUks(int index); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + int getUksCount(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + java.util.List + getUksOrBuilderList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder getUksOrBuilder( + int index); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints} + */ + public static final class UniqueConstraints extends + com.google.protobuf.GeneratedMessage + implements UniqueConstraintsOrBuilder { + // Use UniqueConstraints.newBuilder() to construct. + private UniqueConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private UniqueConstraints(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final UniqueConstraints defaultInstance; + public static UniqueConstraints getDefaultInstance() { + return defaultInstance; + } + + public UniqueConstraints getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UniqueConstraints( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + uks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + uks_.add(input.readMessage(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + uks_ = java.util.Collections.unmodifiableList(uks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public UniqueConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UniqueConstraints(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface UniqueConstraintOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string uk_name = 1; + /** + * required string uk_name = 1; + */ + boolean hasUkName(); + /** + * required string uk_name = 1; + */ + java.lang.String getUkName(); + /** + * required string uk_name = 1; + */ + com.google.protobuf.ByteString + getUkNameBytes(); + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + java.util.List + getColsList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn getCols(int index); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + int getColsCount(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + java.util.List + getColsOrBuilderList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder getColsOrBuilder( + int index); + + // optional bool enable_constraint = 3; + /** + * optional bool enable_constraint = 3; + */ + boolean hasEnableConstraint(); + /** + * optional bool enable_constraint = 3; + */ + boolean getEnableConstraint(); + + // optional bool validate_constraint = 4; + /** + * optional bool validate_constraint = 4; + */ + boolean hasValidateConstraint(); + /** + * optional bool validate_constraint = 4; + */ + boolean getValidateConstraint(); + + // optional bool rely_constraint = 5; + /** + * optional bool rely_constraint = 5; + */ + boolean hasRelyConstraint(); + /** + * optional bool rely_constraint = 5; + */ + boolean getRelyConstraint(); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint} + */ + public static final class UniqueConstraint extends + com.google.protobuf.GeneratedMessage + implements UniqueConstraintOrBuilder { + // Use UniqueConstraint.newBuilder() to construct. + private UniqueConstraint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private UniqueConstraint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final UniqueConstraint defaultInstance; + public static UniqueConstraint getDefaultInstance() { + return defaultInstance; + } + + public UniqueConstraint getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UniqueConstraint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + ukName_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + cols_.add(input.readMessage(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.PARSER, extensionRegistry)); + break; + } + case 24: { + bitField0_ |= 0x00000002; + enableConstraint_ = input.readBool(); + break; + } + case 32: { + bitField0_ |= 0x00000004; + validateConstraint_ = input.readBool(); + break; + } + case 40: { + bitField0_ |= 0x00000008; + relyConstraint_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = java.util.Collections.unmodifiableList(cols_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public UniqueConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UniqueConstraint(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface UniqueConstraintColumnOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string column_name = 1; + /** + * required string column_name = 1; + */ + boolean hasColumnName(); + /** + * required string column_name = 1; + */ + java.lang.String getColumnName(); + /** + * required string column_name = 1; + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + + // required sint32 key_seq = 2; + /** + * required sint32 key_seq = 2; + */ + boolean hasKeySeq(); + /** + * required sint32 key_seq = 2; + */ + int getKeySeq(); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn} + */ + public static final class UniqueConstraintColumn extends + com.google.protobuf.GeneratedMessage + implements UniqueConstraintColumnOrBuilder { + // Use UniqueConstraintColumn.newBuilder() to construct. + private UniqueConstraintColumn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private UniqueConstraintColumn(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final UniqueConstraintColumn defaultInstance; + public static UniqueConstraintColumn getDefaultInstance() { + return defaultInstance; + } + + public UniqueConstraintColumn getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UniqueConstraintColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + columnName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + keySeq_ = input.readSInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public UniqueConstraintColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UniqueConstraintColumn(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string column_name = 1; + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private java.lang.Object columnName_; + /** + * required string column_name = 1; + */ + public boolean hasColumnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string column_name = 1; + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + columnName_ = s; + } + return s; + } + } + /** + * required string column_name = 1; + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required sint32 key_seq = 2; + public static final int KEY_SEQ_FIELD_NUMBER = 2; + private int keySeq_; + /** + * required sint32 key_seq = 2; + */ + public boolean hasKeySeq() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required sint32 key_seq = 2; + */ + public int getKeySeq() { + return keySeq_; + } + + private void initFields() { + columnName_ = ""; + keySeq_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasColumnName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKeySeq()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getColumnNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, keySeq_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getColumnNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(2, keySeq_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + columnName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + keySeq_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.columnName_ = columnName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.keySeq_ = keySeq_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.getDefaultInstance()) return this; + if (other.hasColumnName()) { + bitField0_ |= 0x00000001; + columnName_ = other.columnName_; + onChanged(); + } + if (other.hasKeySeq()) { + setKeySeq(other.getKeySeq()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasColumnName()) { + + return false; + } + if (!hasKeySeq()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required string column_name = 1; + private java.lang.Object columnName_ = ""; + /** + * required string column_name = 1; + */ + public boolean hasColumnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string column_name = 1; + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string column_name = 1; + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string column_name = 1; + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + columnName_ = value; + onChanged(); + return this; + } + /** + * required string column_name = 1; + */ + public Builder clearColumnName() { + bitField0_ = (bitField0_ & ~0x00000001); + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * required string column_name = 1; + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + columnName_ = value; + onChanged(); + return this; + } + + // required sint32 key_seq = 2; + private int keySeq_ ; + /** + * required sint32 key_seq = 2; + */ + public boolean hasKeySeq() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required sint32 key_seq = 2; + */ + public int getKeySeq() { + return keySeq_; + } + /** + * required sint32 key_seq = 2; + */ + public Builder setKeySeq(int value) { + bitField0_ |= 0x00000002; + keySeq_ = value; + onChanged(); + return this; + } + /** + * required sint32 key_seq = 2; + */ + public Builder clearKeySeq() { + bitField0_ = (bitField0_ & ~0x00000002); + keySeq_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn) + } + + static { + defaultInstance = new UniqueConstraintColumn(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn) + } + + private int bitField0_; + // required string uk_name = 1; + public static final int UK_NAME_FIELD_NUMBER = 1; + private java.lang.Object ukName_; + /** + * required string uk_name = 1; + */ + public boolean hasUkName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string uk_name = 1; + */ + public java.lang.String getUkName() { + java.lang.Object ref = ukName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + ukName_ = s; + } + return s; + } + } + /** + * required string uk_name = 1; + */ + public com.google.protobuf.ByteString + getUkNameBytes() { + java.lang.Object ref = ukName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ukName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + public static final int COLS_FIELD_NUMBER = 2; + private java.util.List cols_; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public java.util.List getColsList() { + return cols_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public java.util.List + getColsOrBuilderList() { + return cols_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public int getColsCount() { + return cols_.size(); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn getCols(int index) { + return cols_.get(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder getColsOrBuilder( + int index) { + return cols_.get(index); + } + + // optional bool enable_constraint = 3; + public static final int ENABLE_CONSTRAINT_FIELD_NUMBER = 3; + private boolean enableConstraint_; + /** + * optional bool enable_constraint = 3; + */ + public boolean hasEnableConstraint() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool enable_constraint = 3; + */ + public boolean getEnableConstraint() { + return enableConstraint_; + } + + // optional bool validate_constraint = 4; + public static final int VALIDATE_CONSTRAINT_FIELD_NUMBER = 4; + private boolean validateConstraint_; + /** + * optional bool validate_constraint = 4; + */ + public boolean hasValidateConstraint() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool validate_constraint = 4; + */ + public boolean getValidateConstraint() { + return validateConstraint_; + } + + // optional bool rely_constraint = 5; + public static final int RELY_CONSTRAINT_FIELD_NUMBER = 5; + private boolean relyConstraint_; + /** + * optional bool rely_constraint = 5; + */ + public boolean hasRelyConstraint() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool rely_constraint = 5; + */ + public boolean getRelyConstraint() { + return relyConstraint_; + } + + private void initFields() { + ukName_ = ""; + cols_ = java.util.Collections.emptyList(); + enableConstraint_ = false; + validateConstraint_ = false; + relyConstraint_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasUkName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getColsCount(); i++) { + if (!getCols(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getUkNameBytes()); + } + for (int i = 0; i < cols_.size(); i++) { + output.writeMessage(2, cols_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(3, enableConstraint_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(4, validateConstraint_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(5, relyConstraint_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getUkNameBytes()); + } + for (int i = 0; i < cols_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cols_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableConstraint_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateConstraint_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, relyConstraint_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getColsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + ukName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (colsBuilder_ == null) { + cols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + colsBuilder_.clear(); + } + enableConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + validateConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + relyConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.ukName_ = ukName_; + if (colsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = java.util.Collections.unmodifiableList(cols_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cols_ = cols_; + } else { + result.cols_ = colsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.enableConstraint_ = enableConstraint_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.validateConstraint_ = validateConstraint_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.relyConstraint_ = relyConstraint_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.getDefaultInstance()) return this; + if (other.hasUkName()) { + bitField0_ |= 0x00000001; + ukName_ = other.ukName_; + onChanged(); + } + if (colsBuilder_ == null) { + if (!other.cols_.isEmpty()) { + if (cols_.isEmpty()) { + cols_ = other.cols_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureColsIsMutable(); + cols_.addAll(other.cols_); + } + onChanged(); + } + } else { + if (!other.cols_.isEmpty()) { + if (colsBuilder_.isEmpty()) { + colsBuilder_.dispose(); + colsBuilder_ = null; + cols_ = other.cols_; + bitField0_ = (bitField0_ & ~0x00000002); + colsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getColsFieldBuilder() : null; + } else { + colsBuilder_.addAllMessages(other.cols_); + } + } + } + if (other.hasEnableConstraint()) { + setEnableConstraint(other.getEnableConstraint()); + } + if (other.hasValidateConstraint()) { + setValidateConstraint(other.getValidateConstraint()); + } + if (other.hasRelyConstraint()) { + setRelyConstraint(other.getRelyConstraint()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasUkName()) { + + return false; + } + for (int i = 0; i < getColsCount(); i++) { + if (!getCols(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required string uk_name = 1; + private java.lang.Object ukName_ = ""; + /** + * required string uk_name = 1; + */ + public boolean hasUkName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string uk_name = 1; + */ + public java.lang.String getUkName() { + java.lang.Object ref = ukName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + ukName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string uk_name = 1; + */ + public com.google.protobuf.ByteString + getUkNameBytes() { + java.lang.Object ref = ukName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ukName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string uk_name = 1; + */ + public Builder setUkName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + ukName_ = value; + onChanged(); + return this; + } + /** + * required string uk_name = 1; + */ + public Builder clearUkName() { + bitField0_ = (bitField0_ & ~0x00000001); + ukName_ = getDefaultInstance().getUkName(); + onChanged(); + return this; + } + /** + * required string uk_name = 1; + */ + public Builder setUkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + ukName_ = value; + onChanged(); + return this; + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + private java.util.List cols_ = + java.util.Collections.emptyList(); + private void ensureColsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = new java.util.ArrayList(cols_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder> colsBuilder_; + + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public java.util.List getColsList() { + if (colsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cols_); + } else { + return colsBuilder_.getMessageList(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public int getColsCount() { + if (colsBuilder_ == null) { + return cols_.size(); + } else { + return colsBuilder_.getCount(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn getCols(int index) { + if (colsBuilder_ == null) { + return cols_.get(index); + } else { + return colsBuilder_.getMessage(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder setCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.set(index, value); + onChanged(); + } else { + colsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder setCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.set(index, builderForValue.build()); + onChanged(); + } else { + colsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder addCols(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.add(value); + onChanged(); + } else { + colsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder addCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.add(index, value); + onChanged(); + } else { + colsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder addCols( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.add(builderForValue.build()); + onChanged(); + } else { + colsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder addCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.add(index, builderForValue.build()); + onChanged(); + } else { + colsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder addAllCols( + java.lang.Iterable values) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + super.addAll(values, cols_); + onChanged(); + } else { + colsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder clearCols() { + if (colsBuilder_ == null) { + cols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + colsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public Builder removeCols(int index) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.remove(index); + onChanged(); + } else { + colsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder getColsBuilder( + int index) { + return getColsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder getColsOrBuilder( + int index) { + if (colsBuilder_ == null) { + return cols_.get(index); } else { + return colsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public java.util.List + getColsOrBuilderList() { + if (colsBuilder_ != null) { + return colsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cols_); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder addColsBuilder() { + return getColsFieldBuilder().addBuilder( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder addColsBuilder( + int index) { + return getColsFieldBuilder().addBuilder( + index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn cols = 2; + */ + public java.util.List + getColsBuilderList() { + return getColsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder> + getColsFieldBuilder() { + if (colsBuilder_ == null) { + colsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumnOrBuilder>( + cols_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cols_ = null; + } + return colsBuilder_; + } + + // optional bool enable_constraint = 3; + private boolean enableConstraint_ ; + /** + * optional bool enable_constraint = 3; + */ + public boolean hasEnableConstraint() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool enable_constraint = 3; + */ + public boolean getEnableConstraint() { + return enableConstraint_; + } + /** + * optional bool enable_constraint = 3; + */ + public Builder setEnableConstraint(boolean value) { + bitField0_ |= 0x00000004; + enableConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool enable_constraint = 3; + */ + public Builder clearEnableConstraint() { + bitField0_ = (bitField0_ & ~0x00000004); + enableConstraint_ = false; + onChanged(); + return this; + } + + // optional bool validate_constraint = 4; + private boolean validateConstraint_ ; + /** + * optional bool validate_constraint = 4; + */ + public boolean hasValidateConstraint() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool validate_constraint = 4; + */ + public boolean getValidateConstraint() { + return validateConstraint_; + } + /** + * optional bool validate_constraint = 4; + */ + public Builder setValidateConstraint(boolean value) { + bitField0_ |= 0x00000008; + validateConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool validate_constraint = 4; + */ + public Builder clearValidateConstraint() { + bitField0_ = (bitField0_ & ~0x00000008); + validateConstraint_ = false; + onChanged(); + return this; + } + + // optional bool rely_constraint = 5; + private boolean relyConstraint_ ; + /** + * optional bool rely_constraint = 5; + */ + public boolean hasRelyConstraint() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bool rely_constraint = 5; + */ + public boolean getRelyConstraint() { + return relyConstraint_; + } + /** + * optional bool rely_constraint = 5; + */ + public Builder setRelyConstraint(boolean value) { + bitField0_ |= 0x00000010; + relyConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool rely_constraint = 5; + */ + public Builder clearRelyConstraint() { + bitField0_ = (bitField0_ & ~0x00000010); + relyConstraint_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint) + } + + static { + defaultInstance = new UniqueConstraint(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint) + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + public static final int UKS_FIELD_NUMBER = 1; + private java.util.List uks_; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public java.util.List getUksList() { + return uks_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public java.util.List + getUksOrBuilderList() { + return uks_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public int getUksCount() { + return uks_.size(); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint getUks(int index) { + return uks_.get(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder getUksOrBuilder( + int index) { + return uks_.get(index); + } + + private void initFields() { + uks_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getUksCount(); i++) { + if (!getUks(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < uks_.size(); i++) { + output.writeMessage(1, uks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < uks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, uks_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.UniqueConstraints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getUksFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (uksBuilder_ == null) { + uks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + uksBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints(this); + int from_bitField0_ = bitField0_; + if (uksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + uks_ = java.util.Collections.unmodifiableList(uks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.uks_ = uks_; + } else { + result.uks_ = uksBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.getDefaultInstance()) return this; + if (uksBuilder_ == null) { + if (!other.uks_.isEmpty()) { + if (uks_.isEmpty()) { + uks_ = other.uks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUksIsMutable(); + uks_.addAll(other.uks_); + } + onChanged(); + } + } else { + if (!other.uks_.isEmpty()) { + if (uksBuilder_.isEmpty()) { + uksBuilder_.dispose(); + uksBuilder_ = null; + uks_ = other.uks_; + bitField0_ = (bitField0_ & ~0x00000001); + uksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getUksFieldBuilder() : null; + } else { + uksBuilder_.addAllMessages(other.uks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getUksCount(); i++) { + if (!getUks(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + private java.util.List uks_ = + java.util.Collections.emptyList(); + private void ensureUksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + uks_ = new java.util.ArrayList(uks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder> uksBuilder_; + + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public java.util.List getUksList() { + if (uksBuilder_ == null) { + return java.util.Collections.unmodifiableList(uks_); + } else { + return uksBuilder_.getMessageList(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public int getUksCount() { + if (uksBuilder_ == null) { + return uks_.size(); + } else { + return uksBuilder_.getCount(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint getUks(int index) { + if (uksBuilder_ == null) { + return uks_.get(index); + } else { + return uksBuilder_.getMessage(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder setUks( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint value) { + if (uksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUksIsMutable(); + uks_.set(index, value); + onChanged(); + } else { + uksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder setUks( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder builderForValue) { + if (uksBuilder_ == null) { + ensureUksIsMutable(); + uks_.set(index, builderForValue.build()); + onChanged(); + } else { + uksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder addUks(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint value) { + if (uksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUksIsMutable(); + uks_.add(value); + onChanged(); + } else { + uksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder addUks( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint value) { + if (uksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUksIsMutable(); + uks_.add(index, value); + onChanged(); + } else { + uksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder addUks( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder builderForValue) { + if (uksBuilder_ == null) { + ensureUksIsMutable(); + uks_.add(builderForValue.build()); + onChanged(); + } else { + uksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder addUks( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder builderForValue) { + if (uksBuilder_ == null) { + ensureUksIsMutable(); + uks_.add(index, builderForValue.build()); + onChanged(); + } else { + uksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder addAllUks( + java.lang.Iterable values) { + if (uksBuilder_ == null) { + ensureUksIsMutable(); + super.addAll(values, uks_); + onChanged(); + } else { + uksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder clearUks() { + if (uksBuilder_ == null) { + uks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + uksBuilder_.clear(); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public Builder removeUks(int index) { + if (uksBuilder_ == null) { + ensureUksIsMutable(); + uks_.remove(index); + onChanged(); + } else { + uksBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder getUksBuilder( + int index) { + return getUksFieldBuilder().getBuilder(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder getUksOrBuilder( + int index) { + if (uksBuilder_ == null) { + return uks_.get(index); } else { + return uksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public java.util.List + getUksOrBuilderList() { + if (uksBuilder_ != null) { + return uksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(uks_); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder addUksBuilder() { + return getUksFieldBuilder().addBuilder( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder addUksBuilder( + int index) { + return getUksFieldBuilder().addBuilder( + index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.UniqueConstraints.UniqueConstraint uks = 1; + */ + public java.util.List + getUksBuilderList() { + return getUksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder> + getUksFieldBuilder() { + if (uksBuilder_ == null) { + uksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.UniqueConstraints.UniqueConstraintOrBuilder>( + uks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + uks_ = null; + } + return uksBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints) + } + + static { + defaultInstance = new UniqueConstraints(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.UniqueConstraints) + } + + public interface NotNullConstraintsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + java.util.List + getNnsList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint getNns(int index); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + int getNnsCount(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + java.util.List + getNnsOrBuilderList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder getNnsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints} + */ + public static final class NotNullConstraints extends + com.google.protobuf.GeneratedMessage + implements NotNullConstraintsOrBuilder { + // Use NotNullConstraints.newBuilder() to construct. + private NotNullConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private NotNullConstraints(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final NotNullConstraints defaultInstance; + public static NotNullConstraints getDefaultInstance() { + return defaultInstance; + } + + public NotNullConstraints getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotNullConstraints( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nns_.add(input.readMessage(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nns_ = java.util.Collections.unmodifiableList(nns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NotNullConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotNullConstraints(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface NotNullConstraintOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string nn_name = 1; + /** + * required string nn_name = 1; + */ + boolean hasNnName(); + /** + * required string nn_name = 1; + */ + java.lang.String getNnName(); + /** + * required string nn_name = 1; + */ + com.google.protobuf.ByteString + getNnNameBytes(); + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + java.util.List + getColsList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn getCols(int index); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + int getColsCount(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + java.util.List + getColsOrBuilderList(); + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder getColsOrBuilder( + int index); + + // optional bool enable_constraint = 3; + /** + * optional bool enable_constraint = 3; + */ + boolean hasEnableConstraint(); + /** + * optional bool enable_constraint = 3; + */ + boolean getEnableConstraint(); + + // optional bool validate_constraint = 4; + /** + * optional bool validate_constraint = 4; + */ + boolean hasValidateConstraint(); + /** + * optional bool validate_constraint = 4; + */ + boolean getValidateConstraint(); + + // optional bool rely_constraint = 5; + /** + * optional bool rely_constraint = 5; + */ + boolean hasRelyConstraint(); + /** + * optional bool rely_constraint = 5; + */ + boolean getRelyConstraint(); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint} + */ + public static final class NotNullConstraint extends + com.google.protobuf.GeneratedMessage + implements NotNullConstraintOrBuilder { + // Use NotNullConstraint.newBuilder() to construct. + private NotNullConstraint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private NotNullConstraint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final NotNullConstraint defaultInstance; + public static NotNullConstraint getDefaultInstance() { + return defaultInstance; + } + + public NotNullConstraint getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotNullConstraint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + nnName_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + cols_.add(input.readMessage(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.PARSER, extensionRegistry)); + break; + } + case 24: { + bitField0_ |= 0x00000002; + enableConstraint_ = input.readBool(); + break; + } + case 32: { + bitField0_ |= 0x00000004; + validateConstraint_ = input.readBool(); + break; + } + case 40: { + bitField0_ |= 0x00000008; + relyConstraint_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = java.util.Collections.unmodifiableList(cols_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NotNullConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotNullConstraint(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface NotNullConstraintColumnOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string column_name = 1; + /** + * required string column_name = 1; + */ + boolean hasColumnName(); + /** + * required string column_name = 1; + */ + java.lang.String getColumnName(); + /** + * required string column_name = 1; + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn} + */ + public static final class NotNullConstraintColumn extends + com.google.protobuf.GeneratedMessage + implements NotNullConstraintColumnOrBuilder { + // Use NotNullConstraintColumn.newBuilder() to construct. + private NotNullConstraintColumn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private NotNullConstraintColumn(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final NotNullConstraintColumn defaultInstance; + public static NotNullConstraintColumn getDefaultInstance() { + return defaultInstance; + } + + public NotNullConstraintColumn getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotNullConstraintColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + columnName_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NotNullConstraintColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotNullConstraintColumn(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string column_name = 1; + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private java.lang.Object columnName_; + /** + * required string column_name = 1; + */ + public boolean hasColumnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string column_name = 1; + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + columnName_ = s; + } + return s; + } + } + /** + * required string column_name = 1; + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + columnName_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasColumnName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getColumnNameBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getColumnNameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + columnName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.columnName_ = columnName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.getDefaultInstance()) return this; + if (other.hasColumnName()) { + bitField0_ |= 0x00000001; + columnName_ = other.columnName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasColumnName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required string column_name = 1; + private java.lang.Object columnName_ = ""; + /** + * required string column_name = 1; + */ + public boolean hasColumnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string column_name = 1; + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string column_name = 1; + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string column_name = 1; + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + columnName_ = value; + onChanged(); + return this; + } + /** + * required string column_name = 1; + */ + public Builder clearColumnName() { + bitField0_ = (bitField0_ & ~0x00000001); + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * required string column_name = 1; + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + columnName_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn) + } + + static { + defaultInstance = new NotNullConstraintColumn(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn) + } + + private int bitField0_; + // required string nn_name = 1; + public static final int NN_NAME_FIELD_NUMBER = 1; + private java.lang.Object nnName_; + /** + * required string nn_name = 1; + */ + public boolean hasNnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string nn_name = 1; + */ + public java.lang.String getNnName() { + java.lang.Object ref = nnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nnName_ = s; + } + return s; + } + } + /** + * required string nn_name = 1; + */ + public com.google.protobuf.ByteString + getNnNameBytes() { + java.lang.Object ref = nnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + public static final int COLS_FIELD_NUMBER = 2; + private java.util.List cols_; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public java.util.List getColsList() { + return cols_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public java.util.List + getColsOrBuilderList() { + return cols_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public int getColsCount() { + return cols_.size(); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn getCols(int index) { + return cols_.get(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder getColsOrBuilder( + int index) { + return cols_.get(index); + } + + // optional bool enable_constraint = 3; + public static final int ENABLE_CONSTRAINT_FIELD_NUMBER = 3; + private boolean enableConstraint_; + /** + * optional bool enable_constraint = 3; + */ + public boolean hasEnableConstraint() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool enable_constraint = 3; + */ + public boolean getEnableConstraint() { + return enableConstraint_; + } + + // optional bool validate_constraint = 4; + public static final int VALIDATE_CONSTRAINT_FIELD_NUMBER = 4; + private boolean validateConstraint_; + /** + * optional bool validate_constraint = 4; + */ + public boolean hasValidateConstraint() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool validate_constraint = 4; + */ + public boolean getValidateConstraint() { + return validateConstraint_; + } + + // optional bool rely_constraint = 5; + public static final int RELY_CONSTRAINT_FIELD_NUMBER = 5; + private boolean relyConstraint_; + /** + * optional bool rely_constraint = 5; + */ + public boolean hasRelyConstraint() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool rely_constraint = 5; + */ + public boolean getRelyConstraint() { + return relyConstraint_; + } + + private void initFields() { + nnName_ = ""; + cols_ = java.util.Collections.emptyList(); + enableConstraint_ = false; + validateConstraint_ = false; + relyConstraint_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasNnName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getColsCount(); i++) { + if (!getCols(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNnNameBytes()); + } + for (int i = 0; i < cols_.size(); i++) { + output.writeMessage(2, cols_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(3, enableConstraint_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(4, validateConstraint_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(5, relyConstraint_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNnNameBytes()); + } + for (int i = 0; i < cols_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cols_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableConstraint_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateConstraint_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, relyConstraint_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getColsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + nnName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (colsBuilder_ == null) { + cols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + colsBuilder_.clear(); + } + enableConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + validateConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + relyConstraint_ = false; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.nnName_ = nnName_; + if (colsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = java.util.Collections.unmodifiableList(cols_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cols_ = cols_; + } else { + result.cols_ = colsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.enableConstraint_ = enableConstraint_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.validateConstraint_ = validateConstraint_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.relyConstraint_ = relyConstraint_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.getDefaultInstance()) return this; + if (other.hasNnName()) { + bitField0_ |= 0x00000001; + nnName_ = other.nnName_; + onChanged(); + } + if (colsBuilder_ == null) { + if (!other.cols_.isEmpty()) { + if (cols_.isEmpty()) { + cols_ = other.cols_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureColsIsMutable(); + cols_.addAll(other.cols_); + } + onChanged(); + } + } else { + if (!other.cols_.isEmpty()) { + if (colsBuilder_.isEmpty()) { + colsBuilder_.dispose(); + colsBuilder_ = null; + cols_ = other.cols_; + bitField0_ = (bitField0_ & ~0x00000002); + colsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getColsFieldBuilder() : null; + } else { + colsBuilder_.addAllMessages(other.cols_); + } + } + } + if (other.hasEnableConstraint()) { + setEnableConstraint(other.getEnableConstraint()); + } + if (other.hasValidateConstraint()) { + setValidateConstraint(other.getValidateConstraint()); + } + if (other.hasRelyConstraint()) { + setRelyConstraint(other.getRelyConstraint()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasNnName()) { + + return false; + } + for (int i = 0; i < getColsCount(); i++) { + if (!getCols(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required string nn_name = 1; + private java.lang.Object nnName_ = ""; + /** + * required string nn_name = 1; + */ + public boolean hasNnName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string nn_name = 1; + */ + public java.lang.String getNnName() { + java.lang.Object ref = nnName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + nnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string nn_name = 1; + */ + public com.google.protobuf.ByteString + getNnNameBytes() { + java.lang.Object ref = nnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string nn_name = 1; + */ + public Builder setNnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + nnName_ = value; + onChanged(); + return this; + } + /** + * required string nn_name = 1; + */ + public Builder clearNnName() { + bitField0_ = (bitField0_ & ~0x00000001); + nnName_ = getDefaultInstance().getNnName(); + onChanged(); + return this; + } + /** + * required string nn_name = 1; + */ + public Builder setNnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + nnName_ = value; + onChanged(); + return this; + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + private java.util.List cols_ = + java.util.Collections.emptyList(); + private void ensureColsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cols_ = new java.util.ArrayList(cols_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder> colsBuilder_; + + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public java.util.List getColsList() { + if (colsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cols_); + } else { + return colsBuilder_.getMessageList(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public int getColsCount() { + if (colsBuilder_ == null) { + return cols_.size(); + } else { + return colsBuilder_.getCount(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn getCols(int index) { + if (colsBuilder_ == null) { + return cols_.get(index); + } else { + return colsBuilder_.getMessage(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder setCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.set(index, value); + onChanged(); + } else { + colsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder setCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.set(index, builderForValue.build()); + onChanged(); + } else { + colsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder addCols(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.add(value); + onChanged(); + } else { + colsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder addCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn value) { + if (colsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColsIsMutable(); + cols_.add(index, value); + onChanged(); + } else { + colsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder addCols( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.add(builderForValue.build()); + onChanged(); + } else { + colsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder addCols( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder builderForValue) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.add(index, builderForValue.build()); + onChanged(); + } else { + colsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder addAllCols( + java.lang.Iterable values) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + super.addAll(values, cols_); + onChanged(); + } else { + colsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder clearCols() { + if (colsBuilder_ == null) { + cols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + colsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public Builder removeCols(int index) { + if (colsBuilder_ == null) { + ensureColsIsMutable(); + cols_.remove(index); + onChanged(); + } else { + colsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder getColsBuilder( + int index) { + return getColsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder getColsOrBuilder( + int index) { + if (colsBuilder_ == null) { + return cols_.get(index); } else { + return colsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public java.util.List + getColsOrBuilderList() { + if (colsBuilder_ != null) { + return colsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cols_); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder addColsBuilder() { + return getColsFieldBuilder().addBuilder( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder addColsBuilder( + int index) { + return getColsFieldBuilder().addBuilder( + index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn cols = 2; + */ + public java.util.List + getColsBuilderList() { + return getColsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder> + getColsFieldBuilder() { + if (colsBuilder_ == null) { + colsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumnOrBuilder>( + cols_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cols_ = null; + } + return colsBuilder_; + } + + // optional bool enable_constraint = 3; + private boolean enableConstraint_ ; + /** + * optional bool enable_constraint = 3; + */ + public boolean hasEnableConstraint() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool enable_constraint = 3; + */ + public boolean getEnableConstraint() { + return enableConstraint_; + } + /** + * optional bool enable_constraint = 3; + */ + public Builder setEnableConstraint(boolean value) { + bitField0_ |= 0x00000004; + enableConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool enable_constraint = 3; + */ + public Builder clearEnableConstraint() { + bitField0_ = (bitField0_ & ~0x00000004); + enableConstraint_ = false; + onChanged(); + return this; + } + + // optional bool validate_constraint = 4; + private boolean validateConstraint_ ; + /** + * optional bool validate_constraint = 4; + */ + public boolean hasValidateConstraint() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool validate_constraint = 4; + */ + public boolean getValidateConstraint() { + return validateConstraint_; + } + /** + * optional bool validate_constraint = 4; + */ + public Builder setValidateConstraint(boolean value) { + bitField0_ |= 0x00000008; + validateConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool validate_constraint = 4; + */ + public Builder clearValidateConstraint() { + bitField0_ = (bitField0_ & ~0x00000008); + validateConstraint_ = false; + onChanged(); + return this; + } + + // optional bool rely_constraint = 5; + private boolean relyConstraint_ ; + /** + * optional bool rely_constraint = 5; + */ + public boolean hasRelyConstraint() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bool rely_constraint = 5; + */ + public boolean getRelyConstraint() { + return relyConstraint_; + } + /** + * optional bool rely_constraint = 5; + */ + public Builder setRelyConstraint(boolean value) { + bitField0_ |= 0x00000010; + relyConstraint_ = value; + onChanged(); + return this; + } + /** + * optional bool rely_constraint = 5; + */ + public Builder clearRelyConstraint() { + bitField0_ = (bitField0_ & ~0x00000010); + relyConstraint_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint) + } + + static { + defaultInstance = new NotNullConstraint(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint) + } + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + public static final int NNS_FIELD_NUMBER = 1; + private java.util.List nns_; + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public java.util.List getNnsList() { + return nns_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public java.util.List + getNnsOrBuilderList() { + return nns_; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public int getNnsCount() { + return nns_.size(); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint getNns(int index) { + return nns_.get(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder getNnsOrBuilder( + int index) { + return nns_.get(index); + } + + private void initFields() { + nns_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getNnsCount(); i++) { + if (!getNns(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < nns_.size(); i++) { + output.writeMessage(1, nns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.NotNullConstraints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.class, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.Builder.class); + } + + // Construct using org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getNnsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (nnsBuilder_ == null) { + nns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nnsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints getDefaultInstanceForType() { + return org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.getDefaultInstance(); + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints build() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints buildPartial() { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints result = new org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints(this); + int from_bitField0_ = bitField0_; + if (nnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + nns_ = java.util.Collections.unmodifiableList(nns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nns_ = nns_; + } else { + result.nns_ = nnsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints) { + return mergeFrom((org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints other) { + if (other == org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.getDefaultInstance()) return this; + if (nnsBuilder_ == null) { + if (!other.nns_.isEmpty()) { + if (nns_.isEmpty()) { + nns_ = other.nns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNnsIsMutable(); + nns_.addAll(other.nns_); + } + onChanged(); + } + } else { + if (!other.nns_.isEmpty()) { + if (nnsBuilder_.isEmpty()) { + nnsBuilder_.dispose(); + nnsBuilder_ = null; + nns_ = other.nns_; + bitField0_ = (bitField0_ & ~0x00000001); + nnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getNnsFieldBuilder() : null; + } else { + nnsBuilder_.addAllMessages(other.nns_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getNnsCount(); i++) { + if (!getNns(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + private java.util.List nns_ = + java.util.Collections.emptyList(); + private void ensureNnsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + nns_ = new java.util.ArrayList(nns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder> nnsBuilder_; + + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public java.util.List getNnsList() { + if (nnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nns_); + } else { + return nnsBuilder_.getMessageList(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public int getNnsCount() { + if (nnsBuilder_ == null) { + return nns_.size(); + } else { + return nnsBuilder_.getCount(); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint getNns(int index) { + if (nnsBuilder_ == null) { + return nns_.get(index); + } else { + return nnsBuilder_.getMessage(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder setNns( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint value) { + if (nnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNnsIsMutable(); + nns_.set(index, value); + onChanged(); + } else { + nnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder setNns( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder builderForValue) { + if (nnsBuilder_ == null) { + ensureNnsIsMutable(); + nns_.set(index, builderForValue.build()); + onChanged(); + } else { + nnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder addNns(org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint value) { + if (nnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNnsIsMutable(); + nns_.add(value); + onChanged(); + } else { + nnsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder addNns( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint value) { + if (nnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNnsIsMutable(); + nns_.add(index, value); + onChanged(); + } else { + nnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder addNns( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder builderForValue) { + if (nnsBuilder_ == null) { + ensureNnsIsMutable(); + nns_.add(builderForValue.build()); + onChanged(); + } else { + nnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder addNns( + int index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder builderForValue) { + if (nnsBuilder_ == null) { + ensureNnsIsMutable(); + nns_.add(index, builderForValue.build()); + onChanged(); + } else { + nnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder addAllNns( + java.lang.Iterable values) { + if (nnsBuilder_ == null) { + ensureNnsIsMutable(); + super.addAll(values, nns_); + onChanged(); + } else { + nnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder clearNns() { + if (nnsBuilder_ == null) { + nns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nnsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public Builder removeNns(int index) { + if (nnsBuilder_ == null) { + ensureNnsIsMutable(); + nns_.remove(index); + onChanged(); + } else { + nnsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder getNnsBuilder( + int index) { + return getNnsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder getNnsOrBuilder( + int index) { + if (nnsBuilder_ == null) { + return nns_.get(index); } else { + return nnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public java.util.List + getNnsOrBuilderList() { + if (nnsBuilder_ != null) { + return nnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nns_); + } + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder addNnsBuilder() { + return getNnsFieldBuilder().addBuilder( + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder addNnsBuilder( + int index) { + return getNnsFieldBuilder().addBuilder( + index, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.getDefaultInstance()); + } + /** + * repeated .org.apache.hadoop.hive.metastore.hbase.NotNullConstraints.NotNullConstraint nns = 1; + */ + public java.util.List + getNnsBuilderList() { + return getNnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder> + getNnsFieldBuilder() { + if (nnsBuilder_ == null) { + nnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder, org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.NotNullConstraints.NotNullConstraintOrBuilder>( + nns_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + nns_ = null; + } + return nnsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints) + } + + static { + defaultInstance = new NotNullConstraints(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.apache.hadoop.hive.metastore.hbase.NotNullConstraints) + } + private static com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_hadoop_hive_metastore_hbase_AggrStats_descriptor; private static @@ -41526,6 +46137,36 @@ public Builder removeFks(int index) { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_apache_hadoop_hive_metastore_hbase_ForeignKeys_ForeignKey_ForeignKeyColumn_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -41721,7 +46362,28 @@ public Builder removeFks(int index) { "\030\t \001(\010\022\027\n\017rely_constraint\030\n \001(\010\032X\n\020Forei" + "gnKeyColumn\022\023\n\013column_name\030\001 \002(\t\022\036\n\026refe" + "renced_column_name\030\002 \002(\t\022\017\n\007key_seq\030\003 \002(" + - "\021*#\n\rPrincipalType\022\010\n\004USER\020\000\022\010\n\004ROLE\020\001" + "\021\"\224\003\n\021UniqueConstraints\022W\n\003uks\030\001 \003(\0132J.o" + + "rg.apache.hadoop.hive.metastore.hbase.Un" + + "iqueConstraints.UniqueConstraint\032\245\002\n\020Uni" + + "queConstraint\022\017\n\007uk_name\030\001 \002(\t\022o\n\004cols\030\002", + " \003(\0132a.org.apache.hadoop.hive.metastore." + + "hbase.UniqueConstraints.UniqueConstraint" + + ".UniqueConstraintColumn\022\031\n\021enable_constr" + + "aint\030\003 \001(\010\022\033\n\023validate_constraint\030\004 \001(\010\022" + + "\027\n\017rely_constraint\030\005 \001(\010\032>\n\026UniqueConstr" + + "aintColumn\022\023\n\013column_name\030\001 \002(\t\022\017\n\007key_s" + + "eq\030\002 \002(\021\"\213\003\n\022NotNullConstraints\022Y\n\003nns\030\001" + + " \003(\0132L.org.apache.hadoop.hive.metastore." + + "hbase.NotNullConstraints.NotNullConstrai" + + "nt\032\231\002\n\021NotNullConstraint\022\017\n\007nn_name\030\001 \002(", + "\t\022r\n\004cols\030\002 \003(\0132d.org.apache.hadoop.hive" + + ".metastore.hbase.NotNullConstraints.NotN" + + "ullConstraint.NotNullConstraintColumn\022\031\n" + + "\021enable_constraint\030\003 \001(\010\022\033\n\023validate_con" + + "straint\030\004 \001(\010\022\027\n\017rely_constraint\030\005 \001(\010\032." + + "\n\027NotNullConstraintColumn\022\023\n\013column_name" + + "\030\001 \002(\t*#\n\rPrincipalType\022\010\n\004USER\020\000\022\010\n\004ROL" + + "E\020\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -41998,6 +46660,42 @@ public Builder removeFks(int index) { com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_apache_hadoop_hive_metastore_hbase_ForeignKeys_ForeignKey_ForeignKeyColumn_descriptor, new java.lang.String[] { "ColumnName", "ReferencedColumnName", "KeySeq", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor, + new java.lang.String[] { "Uks", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor = + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_descriptor.getNestedTypes().get(0); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor, + new java.lang.String[] { "UkName", "Cols", "EnableConstraint", "ValidateConstraint", "RelyConstraint", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor = + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_descriptor.getNestedTypes().get(0); + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_UniqueConstraints_UniqueConstraint_UniqueConstraintColumn_descriptor, + new java.lang.String[] { "ColumnName", "KeySeq", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor, + new java.lang.String[] { "Nns", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor = + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_descriptor.getNestedTypes().get(0); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor, + new java.lang.String[] { "NnName", "Cols", "EnableConstraint", "ValidateConstraint", "RelyConstraint", }); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor = + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_descriptor.getNestedTypes().get(0); + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_apache_hadoop_hive_metastore_hbase_NotNullConstraints_NotNullConstraint_NotNullConstraintColumn_descriptor, + new java.lang.String[] { "ColumnName", }); return null; } }; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 9042cdb..07633c7 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size817; - ::apache::thrift::protocol::TType _etype820; - xfer += iprot->readListBegin(_etype820, _size817); - this->success.resize(_size817); - uint32_t _i821; - for (_i821 = 0; _i821 < _size817; ++_i821) + uint32_t _size857; + ::apache::thrift::protocol::TType _etype860; + xfer += iprot->readListBegin(_etype860, _size857); + this->success.resize(_size857); + uint32_t _i861; + for (_i861 = 0; _i861 < _size857; ++_i861) { - xfer += iprot->readString(this->success[_i821]); + xfer += iprot->readString(this->success[_i861]); } 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 _iter822; - for (_iter822 = this->success.begin(); _iter822 != this->success.end(); ++_iter822) + std::vector ::const_iterator _iter862; + for (_iter862 = this->success.begin(); _iter862 != this->success.end(); ++_iter862) { - xfer += oprot->writeString((*_iter822)); + xfer += oprot->writeString((*_iter862)); } 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 _size823; - ::apache::thrift::protocol::TType _etype826; - xfer += iprot->readListBegin(_etype826, _size823); - (*(this->success)).resize(_size823); - uint32_t _i827; - for (_i827 = 0; _i827 < _size823; ++_i827) + uint32_t _size863; + ::apache::thrift::protocol::TType _etype866; + xfer += iprot->readListBegin(_etype866, _size863); + (*(this->success)).resize(_size863); + uint32_t _i867; + for (_i867 = 0; _i867 < _size863; ++_i867) { - xfer += iprot->readString((*(this->success))[_i827]); + xfer += iprot->readString((*(this->success))[_i867]); } 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 _size828; - ::apache::thrift::protocol::TType _etype831; - xfer += iprot->readListBegin(_etype831, _size828); - this->success.resize(_size828); - uint32_t _i832; - for (_i832 = 0; _i832 < _size828; ++_i832) + uint32_t _size868; + ::apache::thrift::protocol::TType _etype871; + xfer += iprot->readListBegin(_etype871, _size868); + this->success.resize(_size868); + uint32_t _i872; + for (_i872 = 0; _i872 < _size868; ++_i872) { - xfer += iprot->readString(this->success[_i832]); + xfer += iprot->readString(this->success[_i872]); } 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 _iter833; - for (_iter833 = this->success.begin(); _iter833 != this->success.end(); ++_iter833) + std::vector ::const_iterator _iter873; + for (_iter873 = this->success.begin(); _iter873 != this->success.end(); ++_iter873) { - xfer += oprot->writeString((*_iter833)); + xfer += oprot->writeString((*_iter873)); } 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 _size834; - ::apache::thrift::protocol::TType _etype837; - xfer += iprot->readListBegin(_etype837, _size834); - (*(this->success)).resize(_size834); - uint32_t _i838; - for (_i838 = 0; _i838 < _size834; ++_i838) + uint32_t _size874; + ::apache::thrift::protocol::TType _etype877; + xfer += iprot->readListBegin(_etype877, _size874); + (*(this->success)).resize(_size874); + uint32_t _i878; + for (_i878 = 0; _i878 < _size874; ++_i878) { - xfer += iprot->readString((*(this->success))[_i838]); + xfer += iprot->readString((*(this->success))[_i878]); } 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 _size839; - ::apache::thrift::protocol::TType _ktype840; - ::apache::thrift::protocol::TType _vtype841; - xfer += iprot->readMapBegin(_ktype840, _vtype841, _size839); - uint32_t _i843; - for (_i843 = 0; _i843 < _size839; ++_i843) + uint32_t _size879; + ::apache::thrift::protocol::TType _ktype880; + ::apache::thrift::protocol::TType _vtype881; + xfer += iprot->readMapBegin(_ktype880, _vtype881, _size879); + uint32_t _i883; + for (_i883 = 0; _i883 < _size879; ++_i883) { - std::string _key844; - xfer += iprot->readString(_key844); - Type& _val845 = this->success[_key844]; - xfer += _val845.read(iprot); + std::string _key884; + xfer += iprot->readString(_key884); + Type& _val885 = this->success[_key884]; + xfer += _val885.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 _iter846; - for (_iter846 = this->success.begin(); _iter846 != this->success.end(); ++_iter846) + std::map ::const_iterator _iter886; + for (_iter886 = this->success.begin(); _iter886 != this->success.end(); ++_iter886) { - xfer += oprot->writeString(_iter846->first); - xfer += _iter846->second.write(oprot); + xfer += oprot->writeString(_iter886->first); + xfer += _iter886->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 _size847; - ::apache::thrift::protocol::TType _ktype848; - ::apache::thrift::protocol::TType _vtype849; - xfer += iprot->readMapBegin(_ktype848, _vtype849, _size847); - uint32_t _i851; - for (_i851 = 0; _i851 < _size847; ++_i851) + uint32_t _size887; + ::apache::thrift::protocol::TType _ktype888; + ::apache::thrift::protocol::TType _vtype889; + xfer += iprot->readMapBegin(_ktype888, _vtype889, _size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - std::string _key852; - xfer += iprot->readString(_key852); - Type& _val853 = (*(this->success))[_key852]; - xfer += _val853.read(iprot); + std::string _key892; + xfer += iprot->readString(_key892); + Type& _val893 = (*(this->success))[_key892]; + xfer += _val893.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 _size854; - ::apache::thrift::protocol::TType _etype857; - xfer += iprot->readListBegin(_etype857, _size854); - this->success.resize(_size854); - uint32_t _i858; - for (_i858 = 0; _i858 < _size854; ++_i858) + uint32_t _size894; + ::apache::thrift::protocol::TType _etype897; + xfer += iprot->readListBegin(_etype897, _size894); + this->success.resize(_size894); + uint32_t _i898; + for (_i898 = 0; _i898 < _size894; ++_i898) { - xfer += this->success[_i858].read(iprot); + xfer += this->success[_i898].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 _iter859; - for (_iter859 = this->success.begin(); _iter859 != this->success.end(); ++_iter859) + std::vector ::const_iterator _iter899; + for (_iter899 = this->success.begin(); _iter899 != this->success.end(); ++_iter899) { - xfer += (*_iter859).write(oprot); + xfer += (*_iter899).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 _size860; - ::apache::thrift::protocol::TType _etype863; - xfer += iprot->readListBegin(_etype863, _size860); - (*(this->success)).resize(_size860); - uint32_t _i864; - for (_i864 = 0; _i864 < _size860; ++_i864) + uint32_t _size900; + ::apache::thrift::protocol::TType _etype903; + xfer += iprot->readListBegin(_etype903, _size900); + (*(this->success)).resize(_size900); + uint32_t _i904; + for (_i904 = 0; _i904 < _size900; ++_i904) { - xfer += (*(this->success))[_i864].read(iprot); + xfer += (*(this->success))[_i904].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 _size865; - ::apache::thrift::protocol::TType _etype868; - xfer += iprot->readListBegin(_etype868, _size865); - this->success.resize(_size865); - uint32_t _i869; - for (_i869 = 0; _i869 < _size865; ++_i869) + uint32_t _size905; + ::apache::thrift::protocol::TType _etype908; + xfer += iprot->readListBegin(_etype908, _size905); + this->success.resize(_size905); + uint32_t _i909; + for (_i909 = 0; _i909 < _size905; ++_i909) { - xfer += this->success[_i869].read(iprot); + xfer += this->success[_i909].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 _iter870; - for (_iter870 = this->success.begin(); _iter870 != this->success.end(); ++_iter870) + std::vector ::const_iterator _iter910; + for (_iter910 = this->success.begin(); _iter910 != this->success.end(); ++_iter910) { - xfer += (*_iter870).write(oprot); + xfer += (*_iter910).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 _size871; - ::apache::thrift::protocol::TType _etype874; - xfer += iprot->readListBegin(_etype874, _size871); - (*(this->success)).resize(_size871); - uint32_t _i875; - for (_i875 = 0; _i875 < _size871; ++_i875) + uint32_t _size911; + ::apache::thrift::protocol::TType _etype914; + xfer += iprot->readListBegin(_etype914, _size911); + (*(this->success)).resize(_size911); + uint32_t _i915; + for (_i915 = 0; _i915 < _size911; ++_i915) { - xfer += (*(this->success))[_i875].read(iprot); + xfer += (*(this->success))[_i915].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 _size876; - ::apache::thrift::protocol::TType _etype879; - xfer += iprot->readListBegin(_etype879, _size876); - this->success.resize(_size876); - uint32_t _i880; - for (_i880 = 0; _i880 < _size876; ++_i880) + uint32_t _size916; + ::apache::thrift::protocol::TType _etype919; + xfer += iprot->readListBegin(_etype919, _size916); + this->success.resize(_size916); + uint32_t _i920; + for (_i920 = 0; _i920 < _size916; ++_i920) { - xfer += this->success[_i880].read(iprot); + xfer += this->success[_i920].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 _iter881; - for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881) + std::vector ::const_iterator _iter921; + for (_iter921 = this->success.begin(); _iter921 != this->success.end(); ++_iter921) { - xfer += (*_iter881).write(oprot); + xfer += (*_iter921).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 _size882; - ::apache::thrift::protocol::TType _etype885; - xfer += iprot->readListBegin(_etype885, _size882); - (*(this->success)).resize(_size882); - uint32_t _i886; - for (_i886 = 0; _i886 < _size882; ++_i886) + uint32_t _size922; + ::apache::thrift::protocol::TType _etype925; + xfer += iprot->readListBegin(_etype925, _size922); + (*(this->success)).resize(_size922); + uint32_t _i926; + for (_i926 = 0; _i926 < _size922; ++_i926) { - xfer += (*(this->success))[_i886].read(iprot); + xfer += (*(this->success))[_i926].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 _size887; - ::apache::thrift::protocol::TType _etype890; - xfer += iprot->readListBegin(_etype890, _size887); - this->success.resize(_size887); - uint32_t _i891; - for (_i891 = 0; _i891 < _size887; ++_i891) + uint32_t _size927; + ::apache::thrift::protocol::TType _etype930; + xfer += iprot->readListBegin(_etype930, _size927); + this->success.resize(_size927); + uint32_t _i931; + for (_i931 = 0; _i931 < _size927; ++_i931) { - xfer += this->success[_i891].read(iprot); + xfer += this->success[_i931].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 _iter892; - for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) + std::vector ::const_iterator _iter932; + for (_iter932 = this->success.begin(); _iter932 != this->success.end(); ++_iter932) { - xfer += (*_iter892).write(oprot); + xfer += (*_iter932).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 _size893; - ::apache::thrift::protocol::TType _etype896; - xfer += iprot->readListBegin(_etype896, _size893); - (*(this->success)).resize(_size893); - uint32_t _i897; - for (_i897 = 0; _i897 < _size893; ++_i897) + uint32_t _size933; + ::apache::thrift::protocol::TType _etype936; + xfer += iprot->readListBegin(_etype936, _size933); + (*(this->success)).resize(_size933); + uint32_t _i937; + for (_i937 = 0; _i937 < _size933; ++_i937) { - xfer += (*(this->success))[_i897].read(iprot); + xfer += (*(this->success))[_i937].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 _size898; - ::apache::thrift::protocol::TType _etype901; - xfer += iprot->readListBegin(_etype901, _size898); - this->primaryKeys.resize(_size898); - uint32_t _i902; - for (_i902 = 0; _i902 < _size898; ++_i902) + uint32_t _size938; + ::apache::thrift::protocol::TType _etype941; + xfer += iprot->readListBegin(_etype941, _size938); + this->primaryKeys.resize(_size938); + uint32_t _i942; + for (_i942 = 0; _i942 < _size938; ++_i942) { - xfer += this->primaryKeys[_i902].read(iprot); + xfer += this->primaryKeys[_i942].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 _size903; - ::apache::thrift::protocol::TType _etype906; - xfer += iprot->readListBegin(_etype906, _size903); - this->foreignKeys.resize(_size903); - uint32_t _i907; - for (_i907 = 0; _i907 < _size903; ++_i907) + uint32_t _size943; + ::apache::thrift::protocol::TType _etype946; + xfer += iprot->readListBegin(_etype946, _size943); + this->foreignKeys.resize(_size943); + uint32_t _i947; + for (_i947 = 0; _i947 < _size943; ++_i947) { - xfer += this->foreignKeys[_i907].read(iprot); + xfer += this->foreignKeys[_i947].read(iprot); } xfer += iprot->readListEnd(); } @@ -4554,6 +4554,46 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->uniqueConstraints.clear(); + uint32_t _size948; + ::apache::thrift::protocol::TType _etype951; + xfer += iprot->readListBegin(_etype951, _size948); + this->uniqueConstraints.resize(_size948); + uint32_t _i952; + for (_i952 = 0; _i952 < _size948; ++_i952) + { + xfer += this->uniqueConstraints[_i952].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.uniqueConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->notNullConstraints.clear(); + uint32_t _size953; + ::apache::thrift::protocol::TType _etype956; + xfer += iprot->readListBegin(_etype956, _size953); + this->notNullConstraints.resize(_size953); + uint32_t _i957; + for (_i957 = 0; _i957 < _size953; ++_i957) + { + xfer += this->notNullConstraints[_i957].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.notNullConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4578,10 +4618,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter908; - for (_iter908 = this->primaryKeys.begin(); _iter908 != this->primaryKeys.end(); ++_iter908) + std::vector ::const_iterator _iter958; + for (_iter958 = this->primaryKeys.begin(); _iter958 != this->primaryKeys.end(); ++_iter958) { - xfer += (*_iter908).write(oprot); + xfer += (*_iter958).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4590,10 +4630,34 @@ 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 _iter909; - for (_iter909 = this->foreignKeys.begin(); _iter909 != this->foreignKeys.end(); ++_iter909) + std::vector ::const_iterator _iter959; + for (_iter959 = this->foreignKeys.begin(); _iter959 != this->foreignKeys.end(); ++_iter959) { - xfer += (*_iter909).write(oprot); + xfer += (*_iter959).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + 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 _iter960; + for (_iter960 = this->uniqueConstraints.begin(); _iter960 != this->uniqueConstraints.end(); ++_iter960) + { + xfer += (*_iter960).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + 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 _iter961; + for (_iter961 = this->notNullConstraints.begin(); _iter961 != this->notNullConstraints.end(); ++_iter961) + { + xfer += (*_iter961).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4621,10 +4685,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->primaryKeys)).size())); - std::vector ::const_iterator _iter910; - for (_iter910 = (*(this->primaryKeys)).begin(); _iter910 != (*(this->primaryKeys)).end(); ++_iter910) + std::vector ::const_iterator _iter962; + for (_iter962 = (*(this->primaryKeys)).begin(); _iter962 != (*(this->primaryKeys)).end(); ++_iter962) { - xfer += (*_iter910).write(oprot); + xfer += (*_iter962).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4633,10 +4697,34 @@ 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 _iter911; - for (_iter911 = (*(this->foreignKeys)).begin(); _iter911 != (*(this->foreignKeys)).end(); ++_iter911) + std::vector ::const_iterator _iter963; + for (_iter963 = (*(this->foreignKeys)).begin(); _iter963 != (*(this->foreignKeys)).end(); ++_iter963) + { + xfer += (*_iter963).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->uniqueConstraints)).size())); + std::vector ::const_iterator _iter964; + for (_iter964 = (*(this->uniqueConstraints)).begin(); _iter964 != (*(this->uniqueConstraints)).end(); ++_iter964) + { + xfer += (*_iter964).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->notNullConstraints)).size())); + std::vector ::const_iterator _iter965; + for (_iter965 = (*(this->notNullConstraints)).begin(); _iter965 != (*(this->notNullConstraints)).end(); ++_iter965) { - xfer += (*_iter911).write(oprot); + xfer += (*_iter965).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5437,11 +5525,218 @@ uint32_t ThriftHiveMetastore_add_foreign_key_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { +ThriftHiveMetastore_add_unique_constraint_args::~ThriftHiveMetastore_add_unique_constraint_args() throw() { } -uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_unique_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_unique_constraint_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_unique_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_unique_constraint_pargs::~ThriftHiveMetastore_add_unique_constraint_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_add_unique_constraint_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_unique_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_unique_constraint_result::~ThriftHiveMetastore_add_unique_constraint_result() throw() { +} + + +uint32_t ThriftHiveMetastore_add_unique_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_unique_constraint_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_unique_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_unique_constraint_presult::~ThriftHiveMetastore_add_unique_constraint_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_unique_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_add_not_null_constraint_args::~ThriftHiveMetastore_add_not_null_constraint_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_not_null_constraint_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5463,25 +5758,9 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T 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->name); - this->__isset.name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->deleteData); - this->__isset.deleteData = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->req.read(iprot); + this->__isset.req = true; } else { xfer += iprot->skip(ftype); } @@ -5498,21 +5777,13 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_not_null_constraint_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); - - xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbname); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_not_null_constraint_args"); - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->deleteData); + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->req.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5521,25 +5792,17 @@ uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { +ThriftHiveMetastore_add_not_null_constraint_pargs::~ThriftHiveMetastore_add_not_null_constraint_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_not_null_constraint_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); - - xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbname))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_not_null_constraint_pargs"); - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool((*(this->deleteData))); + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->req)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5548,11 +5811,11 @@ uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { +ThriftHiveMetastore_add_not_null_constraint_result::~ThriftHiveMetastore_add_not_null_constraint_result() throw() { } -uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_not_null_constraint_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5583,8 +5846,8 @@ uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol: break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; + xfer += this->o2.read(iprot); + this->__isset.o2 = true; } else { xfer += iprot->skip(ftype); } @@ -5601,19 +5864,19 @@ uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_not_null_constraint_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_not_null_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.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o3.write(oprot); + } 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(); @@ -5622,11 +5885,11 @@ uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol } -ThriftHiveMetastore_drop_table_presult::~ThriftHiveMetastore_drop_table_presult() throw() { +ThriftHiveMetastore_add_not_null_constraint_presult::~ThriftHiveMetastore_add_not_null_constraint_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_not_null_constraint_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5657,8 +5920,8 @@ uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; + xfer += this->o2.read(iprot); + this->__isset.o2 = true; } else { xfer += iprot->skip(ftype); } @@ -5676,11 +5939,11 @@ uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_drop_table_with_environment_context_args::~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() { +ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5725,14 +5988,6 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::ap xfer += iprot->skip(ftype); } break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->environment_context.read(iprot); - this->__isset.environment_context = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -5745,10 +6000,10 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::ap return xfer; } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbname); @@ -5762,24 +6017,20 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::a xfer += oprot->writeBool(this->deleteData); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->environment_context.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_drop_table_with_environment_context_pargs::~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() { +ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->dbname))); @@ -5793,21 +6044,17 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(:: xfer += oprot->writeBool((*(this->deleteData))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += (*(this->environment_context)).write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_drop_table_with_environment_context_result::~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() { +ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5856,11 +6103,11 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::read(:: return xfer; } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_result"); if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5877,11 +6124,11 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(: } -ThriftHiveMetastore_drop_table_with_environment_context_presult::~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() { +ThriftHiveMetastore_drop_table_presult::~ThriftHiveMetastore_drop_table_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5931,11 +6178,11 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(: } -ThriftHiveMetastore_truncate_table_args::~ThriftHiveMetastore_truncate_table_args() throw() { +ThriftHiveMetastore_drop_table_with_environment_context_args::~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() { } -uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5958,36 +6205,32 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - this->__isset.dbName = true; + 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->tableName); - this->__isset.tableName = true; + xfer += iprot->readString(this->name); + this->__isset.name = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partNames.clear(); - uint32_t _size912; - ::apache::thrift::protocol::TType _etype915; - xfer += iprot->readListBegin(_etype915, _size912); - this->partNames.resize(_size912); - uint32_t _i916; - for (_i916 = 0; _i916 < _size912; ++_i916) - { - xfer += iprot->readString(this->partNames[_i916]); - } - xfer += iprot->readListEnd(); - } - this->__isset.partNames = true; + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->deleteData); + this->__isset.deleteData = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->environment_context.read(iprot); + this->__isset.environment_context = true; } else { xfer += iprot->skip(ftype); } @@ -6004,29 +6247,25 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_args"); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbname); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->name); xfer += oprot->writeFieldEnd(); - 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 _iter917; - for (_iter917 = this->partNames.begin(); _iter917 != this->partNames.end(); ++_iter917) - { - xfer += oprot->writeString((*_iter917)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->deleteData); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->environment_context.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6035,108 +6274,42 @@ uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_truncate_table_pargs::~ThriftHiveMetastore_truncate_table_pargs() throw() { +ThriftHiveMetastore_drop_table_with_environment_context_pargs::~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() { } -uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_pargs"); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbName))); + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbname))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tableName))); + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->name))); xfer += oprot->writeFieldEnd(); - 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 _iter918; - for (_iter918 = (*(this->partNames)).begin(); _iter918 != (*(this->partNames)).end(); ++_iter918) - { - xfer += oprot->writeString((*_iter918)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool((*(this->deleteData))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_truncate_table_result::~ThriftHiveMetastore_truncate_table_result() throw() { -} - - -uint32_t ThriftHiveMetastore_truncate_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_truncate_table_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_result"); + xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += (*(this->environment_context)).write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_truncate_table_presult::~ThriftHiveMetastore_truncate_table_presult() throw() { +ThriftHiveMetastore_drop_table_with_environment_context_result::~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() { } -uint32_t ThriftHiveMetastore_truncate_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6165,6 +6338,14 @@ uint32_t ThriftHiveMetastore_truncate_table_presult::read(::apache::thrift::prot 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; @@ -6177,12 +6358,86 @@ uint32_t ThriftHiveMetastore_truncate_table_presult::read(::apache::thrift::prot return xfer; } +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(::apache::thrift::protocol::TProtocol* oprot) const { -ThriftHiveMetastore_get_tables_args::~ThriftHiveMetastore_get_tables_args() throw() { + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_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; } -uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::TProtocol* iprot) { +ThriftHiveMetastore_drop_table_with_environment_context_presult::~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_table_with_environment_context_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_truncate_table_args::~ThriftHiveMetastore_truncate_table_args() throw() { +} + + +uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6205,16 +6460,36 @@ uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::T { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; + 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->pattern); - this->__isset.pattern = true; + xfer += iprot->readString(this->tableName); + this->__isset.tableName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partNames.clear(); + uint32_t _size966; + ::apache::thrift::protocol::TType _etype969; + xfer += iprot->readListBegin(_etype969, _size966); + this->partNames.resize(_size966); + uint32_t _i970; + for (_i970 = 0; _i970 < _size966; ++_i970) + { + xfer += iprot->readString(this->partNames[_i970]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partNames = true; } else { xfer += iprot->skip(ftype); } @@ -6231,17 +6506,29 @@ uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_args"); - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->pattern); + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldEnd(); + + 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 _iter971; + for (_iter971 = this->partNames.begin(); _iter971 != this->partNames.end(); ++_iter971) + { + xfer += oprot->writeString((*_iter971)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6250,21 +6537,33 @@ uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_get_tables_pargs::~ThriftHiveMetastore_get_tables_pargs() throw() { +ThriftHiveMetastore_truncate_table_pargs::~ThriftHiveMetastore_truncate_table_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_pargs"); - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->pattern))); + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tableName))); + xfer += oprot->writeFieldEnd(); + + 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 _iter972; + for (_iter972 = (*(this->partNames)).begin(); _iter972 != (*(this->partNames)).end(); ++_iter972) + { + xfer += oprot->writeString((*_iter972)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6273,11 +6572,11 @@ uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_get_tables_result::~ThriftHiveMetastore_get_tables_result() throw() { +ThriftHiveMetastore_truncate_table_result::~ThriftHiveMetastore_truncate_table_result() throw() { } -uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_truncate_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6298,26 +6597,6 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - this->success.resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) - { - xfer += iprot->readString(this->success[_i923]); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -6338,25 +6617,13 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_truncate_table_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_truncate_table_result"); - if (this->__isset.success) { - 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 _iter924; - for (_iter924 = this->success.begin(); _iter924 != this->success.end(); ++_iter924) - { - xfer += oprot->writeString((*_iter924)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { + if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -6367,11 +6634,11 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol } -ThriftHiveMetastore_get_tables_presult::~ThriftHiveMetastore_get_tables_presult() throw() { +ThriftHiveMetastore_truncate_table_presult::~ThriftHiveMetastore_truncate_table_presult() throw() { } -uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_truncate_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6392,26 +6659,6 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size925; - ::apache::thrift::protocol::TType _etype928; - xfer += iprot->readListBegin(_etype928, _size925); - (*(this->success)).resize(_size925); - uint32_t _i929; - for (_i929 = 0; _i929 < _size925; ++_i929) - { - xfer += iprot->readString((*(this->success))[_i929]); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -6433,11 +6680,11 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_get_tables_by_type_args::~ThriftHiveMetastore_get_tables_by_type_args() throw() { +ThriftHiveMetastore_get_tables_args::~ThriftHiveMetastore_get_tables_args() throw() { } -uint32_t ThriftHiveMetastore_get_tables_by_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6474,14 +6721,6 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_args::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tableType); - this->__isset.tableType = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -6494,10 +6733,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_get_tables_by_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -6507,24 +6746,20 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_args::write(::apache::thrift::pr xfer += oprot->writeString(this->pattern); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tableType", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->tableType); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_get_tables_by_type_pargs::~ThriftHiveMetastore_get_tables_by_type_pargs() throw() { +ThriftHiveMetastore_get_tables_pargs::~ThriftHiveMetastore_get_tables_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_tables_by_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -6534,21 +6769,17 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_pargs::write(::apache::thrift::p xfer += oprot->writeString((*(this->pattern))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tableType", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->tableType))); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_get_tables_by_type_result::~ThriftHiveMetastore_get_tables_by_type_result() throw() { +ThriftHiveMetastore_get_tables_result::~ThriftHiveMetastore_get_tables_result() throw() { } -uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6573,14 +6804,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 _size930; - ::apache::thrift::protocol::TType _etype933; - xfer += iprot->readListBegin(_etype933, _size930); - this->success.resize(_size930); - uint32_t _i934; - for (_i934 = 0; _i934 < _size930; ++_i934) + uint32_t _size973; + ::apache::thrift::protocol::TType _etype976; + xfer += iprot->readListBegin(_etype976, _size973); + this->success.resize(_size973); + uint32_t _i977; + for (_i977 = 0; _i977 < _size973; ++_i977) { - xfer += iprot->readString(this->success[_i934]); + xfer += iprot->readString(this->success[_i977]); } xfer += iprot->readListEnd(); } @@ -6609,20 +6840,20 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_result"); if (this->__isset.success) { 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 _iter935; - for (_iter935 = this->success.begin(); _iter935 != this->success.end(); ++_iter935) + std::vector ::const_iterator _iter978; + for (_iter978 = this->success.begin(); _iter978 != this->success.end(); ++_iter978) { - xfer += oprot->writeString((*_iter935)); + xfer += oprot->writeString((*_iter978)); } xfer += oprot->writeListEnd(); } @@ -6638,11 +6869,11 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift:: } -ThriftHiveMetastore_get_tables_by_type_presult::~ThriftHiveMetastore_get_tables_by_type_presult() throw() { +ThriftHiveMetastore_get_tables_presult::~ThriftHiveMetastore_get_tables_presult() throw() { } -uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6667,14 +6898,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size936; - ::apache::thrift::protocol::TType _etype939; - xfer += iprot->readListBegin(_etype939, _size936); - (*(this->success)).resize(_size936); - uint32_t _i940; - for (_i940 = 0; _i940 < _size936; ++_i940) + uint32_t _size979; + ::apache::thrift::protocol::TType _etype982; + xfer += iprot->readListBegin(_etype982, _size979); + (*(this->success)).resize(_size979); + uint32_t _i983; + for (_i983 = 0; _i983 < _size979; ++_i983) { - xfer += iprot->readString((*(this->success))[_i940]); + xfer += iprot->readString((*(this->success))[_i983]); } xfer += iprot->readListEnd(); } @@ -6704,11 +6935,11 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: } -ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { +ThriftHiveMetastore_get_tables_by_type_args::~ThriftHiveMetastore_get_tables_by_type_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_tables_by_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6731,36 +6962,24 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_patterns); - this->__isset.db_patterns = true; + 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_patterns); - this->__isset.tbl_patterns = true; + xfer += iprot->readString(this->pattern); + this->__isset.pattern = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->tbl_types.clear(); - uint32_t _size941; - ::apache::thrift::protocol::TType _etype944; - xfer += iprot->readListBegin(_etype944, _size941); - this->tbl_types.resize(_size941); - uint32_t _i945; - for (_i945 = 0; _i945 < _size941; ++_i945) - { - xfer += iprot->readString(this->tbl_types[_i945]); - } - xfer += iprot->readListEnd(); - } - this->__isset.tbl_types = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableType); + this->__isset.tableType = true; } else { xfer += iprot->skip(ftype); } @@ -6777,29 +6996,21 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_tables_by_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_args"); - xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_patterns); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_patterns); + xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->pattern); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter946; - for (_iter946 = this->tbl_types.begin(); _iter946 != this->tbl_types.end(); ++_iter946) - { - xfer += oprot->writeString((*_iter946)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("tableType", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->tableType); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6808,33 +7019,25 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { +ThriftHiveMetastore_get_tables_by_type_pargs::~ThriftHiveMetastore_get_tables_by_type_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_tables_by_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_pargs"); - xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_patterns))); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_patterns))); + xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->pattern))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter947; - for (_iter947 = (*(this->tbl_types)).begin(); _iter947 != (*(this->tbl_types)).end(); ++_iter947) - { - xfer += oprot->writeString((*_iter947)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("tableType", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->tableType))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6843,11 +7046,11 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto } -ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { +ThriftHiveMetastore_get_tables_by_type_result::~ThriftHiveMetastore_get_tables_by_type_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -6872,14 +7075,313 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size948; - ::apache::thrift::protocol::TType _etype951; - xfer += iprot->readListBegin(_etype951, _size948); - this->success.resize(_size948); - uint32_t _i952; - for (_i952 = 0; _i952 < _size948; ++_i952) + uint32_t _size984; + ::apache::thrift::protocol::TType _etype987; + xfer += iprot->readListBegin(_etype987, _size984); + this->success.resize(_size984); + uint32_t _i988; + for (_i988 = 0; _i988 < _size984; ++_i988) + { + xfer += iprot->readString(this->success[_i988]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_by_type_result"); + + if (this->__isset.success) { + 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 _iter989; + for (_iter989 = this->success.begin(); _iter989 != this->success.end(); ++_iter989) + { + xfer += oprot->writeString((*_iter989)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_tables_by_type_presult::~ThriftHiveMetastore_get_tables_by_type_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size990; + ::apache::thrift::protocol::TType _etype993; + xfer += iprot->readListBegin(_etype993, _size990); + (*(this->success)).resize(_size990); + uint32_t _i994; + for (_i994 = 0; _i994 < _size990; ++_i994) { - xfer += this->success[_i952].read(iprot); + xfer += iprot->readString((*(this->success))[_i994]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_patterns); + this->__isset.db_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_patterns); + this->__isset.tbl_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tbl_types.clear(); + uint32_t _size995; + ::apache::thrift::protocol::TType _etype998; + xfer += iprot->readListBegin(_etype998, _size995); + this->tbl_types.resize(_size995); + uint32_t _i999; + for (_i999 = 0; _i999 < _size995; ++_i999) + { + xfer += iprot->readString(this->tbl_types[_i999]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tbl_types = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); + + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_patterns); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_patterns); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->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 _iter1000; + for (_iter1000 = this->tbl_types.begin(); _iter1000 != this->tbl_types.end(); ++_iter1000) + { + xfer += oprot->writeString((*_iter1000)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); + + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_patterns))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_patterns))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); + std::vector ::const_iterator _iter1001; + for (_iter1001 = (*(this->tbl_types)).begin(); _iter1001 != (*(this->tbl_types)).end(); ++_iter1001) + { + xfer += oprot->writeString((*_iter1001)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1002; + ::apache::thrift::protocol::TType _etype1005; + xfer += iprot->readListBegin(_etype1005, _size1002); + this->success.resize(_size1002); + uint32_t _i1006; + for (_i1006 = 0; _i1006 < _size1002; ++_i1006) + { + xfer += this->success[_i1006].read(iprot); } xfer += iprot->readListEnd(); } @@ -6918,10 +7420,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter953; - for (_iter953 = this->success.begin(); _iter953 != this->success.end(); ++_iter953) + std::vector ::const_iterator _iter1007; + for (_iter1007 = this->success.begin(); _iter1007 != this->success.end(); ++_iter1007) { - xfer += (*_iter953).write(oprot); + xfer += (*_iter1007).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6966,14 +7468,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size954; - ::apache::thrift::protocol::TType _etype957; - xfer += iprot->readListBegin(_etype957, _size954); - (*(this->success)).resize(_size954); - uint32_t _i958; - for (_i958 = 0; _i958 < _size954; ++_i958) + uint32_t _size1008; + ::apache::thrift::protocol::TType _etype1011; + xfer += iprot->readListBegin(_etype1011, _size1008); + (*(this->success)).resize(_size1008); + uint32_t _i1012; + for (_i1012 = 0; _i1012 < _size1008; ++_i1012) { - xfer += (*(this->success))[_i958].read(iprot); + xfer += (*(this->success))[_i1012].read(iprot); } xfer += iprot->readListEnd(); } @@ -7111,14 +7613,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size959; - ::apache::thrift::protocol::TType _etype962; - xfer += iprot->readListBegin(_etype962, _size959); - this->success.resize(_size959); - uint32_t _i963; - for (_i963 = 0; _i963 < _size959; ++_i963) + uint32_t _size1013; + ::apache::thrift::protocol::TType _etype1016; + xfer += iprot->readListBegin(_etype1016, _size1013); + this->success.resize(_size1013); + uint32_t _i1017; + for (_i1017 = 0; _i1017 < _size1013; ++_i1017) { - xfer += iprot->readString(this->success[_i963]); + xfer += iprot->readString(this->success[_i1017]); } xfer += iprot->readListEnd(); } @@ -7157,10 +7659,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter964; - for (_iter964 = this->success.begin(); _iter964 != this->success.end(); ++_iter964) + std::vector ::const_iterator _iter1018; + for (_iter1018 = this->success.begin(); _iter1018 != this->success.end(); ++_iter1018) { - xfer += oprot->writeString((*_iter964)); + xfer += oprot->writeString((*_iter1018)); } xfer += oprot->writeListEnd(); } @@ -7205,14 +7707,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size965; - ::apache::thrift::protocol::TType _etype968; - xfer += iprot->readListBegin(_etype968, _size965); - (*(this->success)).resize(_size965); - uint32_t _i969; - for (_i969 = 0; _i969 < _size965; ++_i969) + uint32_t _size1019; + ::apache::thrift::protocol::TType _etype1022; + xfer += iprot->readListBegin(_etype1022, _size1019); + (*(this->success)).resize(_size1019); + uint32_t _i1023; + for (_i1023 = 0; _i1023 < _size1019; ++_i1023) { - xfer += iprot->readString((*(this->success))[_i969]); + xfer += iprot->readString((*(this->success))[_i1023]); } xfer += iprot->readListEnd(); } @@ -7522,14 +8024,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size970; - ::apache::thrift::protocol::TType _etype973; - xfer += iprot->readListBegin(_etype973, _size970); - this->tbl_names.resize(_size970); - uint32_t _i974; - for (_i974 = 0; _i974 < _size970; ++_i974) + uint32_t _size1024; + ::apache::thrift::protocol::TType _etype1027; + xfer += iprot->readListBegin(_etype1027, _size1024); + this->tbl_names.resize(_size1024); + uint32_t _i1028; + for (_i1028 = 0; _i1028 < _size1024; ++_i1028) { - xfer += iprot->readString(this->tbl_names[_i974]); + xfer += iprot->readString(this->tbl_names[_i1028]); } xfer += iprot->readListEnd(); } @@ -7562,10 +8064,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter975; - for (_iter975 = this->tbl_names.begin(); _iter975 != this->tbl_names.end(); ++_iter975) + std::vector ::const_iterator _iter1029; + for (_iter1029 = this->tbl_names.begin(); _iter1029 != this->tbl_names.end(); ++_iter1029) { - xfer += oprot->writeString((*_iter975)); + xfer += oprot->writeString((*_iter1029)); } xfer += oprot->writeListEnd(); } @@ -7593,10 +8095,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter976; - for (_iter976 = (*(this->tbl_names)).begin(); _iter976 != (*(this->tbl_names)).end(); ++_iter976) + std::vector ::const_iterator _iter1030; + for (_iter1030 = (*(this->tbl_names)).begin(); _iter1030 != (*(this->tbl_names)).end(); ++_iter1030) { - xfer += oprot->writeString((*_iter976)); + xfer += oprot->writeString((*_iter1030)); } xfer += oprot->writeListEnd(); } @@ -7637,14 +8139,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size977; - ::apache::thrift::protocol::TType _etype980; - xfer += iprot->readListBegin(_etype980, _size977); - this->success.resize(_size977); - uint32_t _i981; - for (_i981 = 0; _i981 < _size977; ++_i981) + uint32_t _size1031; + ::apache::thrift::protocol::TType _etype1034; + xfer += iprot->readListBegin(_etype1034, _size1031); + this->success.resize(_size1031); + uint32_t _i1035; + for (_i1035 = 0; _i1035 < _size1031; ++_i1035) { - xfer += this->success[_i981].read(iprot); + xfer += this->success[_i1035].read(iprot); } xfer += iprot->readListEnd(); } @@ -7675,10 +8177,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter982; - for (_iter982 = this->success.begin(); _iter982 != this->success.end(); ++_iter982) + std::vector
::const_iterator _iter1036; + for (_iter1036 = this->success.begin(); _iter1036 != this->success.end(); ++_iter1036) { - xfer += (*_iter982).write(oprot); + xfer += (*_iter1036).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7719,14 +8221,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size983; - ::apache::thrift::protocol::TType _etype986; - xfer += iprot->readListBegin(_etype986, _size983); - (*(this->success)).resize(_size983); - uint32_t _i987; - for (_i987 = 0; _i987 < _size983; ++_i987) + uint32_t _size1037; + ::apache::thrift::protocol::TType _etype1040; + xfer += iprot->readListBegin(_etype1040, _size1037); + (*(this->success)).resize(_size1037); + uint32_t _i1041; + for (_i1041 = 0; _i1041 < _size1037; ++_i1041) { - xfer += (*(this->success))[_i987].read(iprot); + xfer += (*(this->success))[_i1041].read(iprot); } xfer += iprot->readListEnd(); } @@ -8362,14 +8864,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size988; - ::apache::thrift::protocol::TType _etype991; - xfer += iprot->readListBegin(_etype991, _size988); - this->success.resize(_size988); - uint32_t _i992; - for (_i992 = 0; _i992 < _size988; ++_i992) + uint32_t _size1042; + ::apache::thrift::protocol::TType _etype1045; + xfer += iprot->readListBegin(_etype1045, _size1042); + this->success.resize(_size1042); + uint32_t _i1046; + for (_i1046 = 0; _i1046 < _size1042; ++_i1046) { - xfer += iprot->readString(this->success[_i992]); + xfer += iprot->readString(this->success[_i1046]); } xfer += iprot->readListEnd(); } @@ -8424,10 +8926,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter993; - for (_iter993 = this->success.begin(); _iter993 != this->success.end(); ++_iter993) + std::vector ::const_iterator _iter1047; + for (_iter1047 = this->success.begin(); _iter1047 != this->success.end(); ++_iter1047) { - xfer += oprot->writeString((*_iter993)); + xfer += oprot->writeString((*_iter1047)); } xfer += oprot->writeListEnd(); } @@ -8480,14 +8982,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size994; - ::apache::thrift::protocol::TType _etype997; - xfer += iprot->readListBegin(_etype997, _size994); - (*(this->success)).resize(_size994); - uint32_t _i998; - for (_i998 = 0; _i998 < _size994; ++_i998) + uint32_t _size1048; + ::apache::thrift::protocol::TType _etype1051; + xfer += iprot->readListBegin(_etype1051, _size1048); + (*(this->success)).resize(_size1048); + uint32_t _i1052; + for (_i1052 = 0; _i1052 < _size1048; ++_i1052) { - xfer += iprot->readString((*(this->success))[_i998]); + xfer += iprot->readString((*(this->success))[_i1052]); } xfer += iprot->readListEnd(); } @@ -9821,14 +10323,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size999; - ::apache::thrift::protocol::TType _etype1002; - xfer += iprot->readListBegin(_etype1002, _size999); - this->new_parts.resize(_size999); - uint32_t _i1003; - for (_i1003 = 0; _i1003 < _size999; ++_i1003) + uint32_t _size1053; + ::apache::thrift::protocol::TType _etype1056; + xfer += iprot->readListBegin(_etype1056, _size1053); + this->new_parts.resize(_size1053); + uint32_t _i1057; + for (_i1057 = 0; _i1057 < _size1053; ++_i1057) { - xfer += this->new_parts[_i1003].read(iprot); + xfer += this->new_parts[_i1057].read(iprot); } xfer += iprot->readListEnd(); } @@ -9857,10 +10359,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1004; - for (_iter1004 = this->new_parts.begin(); _iter1004 != this->new_parts.end(); ++_iter1004) + std::vector ::const_iterator _iter1058; + for (_iter1058 = this->new_parts.begin(); _iter1058 != this->new_parts.end(); ++_iter1058) { - xfer += (*_iter1004).write(oprot); + xfer += (*_iter1058).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9884,10 +10386,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1005; - for (_iter1005 = (*(this->new_parts)).begin(); _iter1005 != (*(this->new_parts)).end(); ++_iter1005) + std::vector ::const_iterator _iter1059; + for (_iter1059 = (*(this->new_parts)).begin(); _iter1059 != (*(this->new_parts)).end(); ++_iter1059) { - xfer += (*_iter1005).write(oprot); + xfer += (*_iter1059).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10096,14 +10598,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1006; - ::apache::thrift::protocol::TType _etype1009; - xfer += iprot->readListBegin(_etype1009, _size1006); - this->new_parts.resize(_size1006); - uint32_t _i1010; - for (_i1010 = 0; _i1010 < _size1006; ++_i1010) + uint32_t _size1060; + ::apache::thrift::protocol::TType _etype1063; + xfer += iprot->readListBegin(_etype1063, _size1060); + this->new_parts.resize(_size1060); + uint32_t _i1064; + for (_i1064 = 0; _i1064 < _size1060; ++_i1064) { - xfer += this->new_parts[_i1010].read(iprot); + xfer += this->new_parts[_i1064].read(iprot); } xfer += iprot->readListEnd(); } @@ -10132,10 +10634,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1011; - for (_iter1011 = this->new_parts.begin(); _iter1011 != this->new_parts.end(); ++_iter1011) + std::vector ::const_iterator _iter1065; + for (_iter1065 = this->new_parts.begin(); _iter1065 != this->new_parts.end(); ++_iter1065) { - xfer += (*_iter1011).write(oprot); + xfer += (*_iter1065).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10159,10 +10661,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1012; - for (_iter1012 = (*(this->new_parts)).begin(); _iter1012 != (*(this->new_parts)).end(); ++_iter1012) + std::vector ::const_iterator _iter1066; + for (_iter1066 = (*(this->new_parts)).begin(); _iter1066 != (*(this->new_parts)).end(); ++_iter1066) { - xfer += (*_iter1012).write(oprot); + xfer += (*_iter1066).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10387,14 +10889,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1013; - ::apache::thrift::protocol::TType _etype1016; - xfer += iprot->readListBegin(_etype1016, _size1013); - this->part_vals.resize(_size1013); - uint32_t _i1017; - for (_i1017 = 0; _i1017 < _size1013; ++_i1017) + uint32_t _size1067; + ::apache::thrift::protocol::TType _etype1070; + xfer += iprot->readListBegin(_etype1070, _size1067); + this->part_vals.resize(_size1067); + uint32_t _i1071; + for (_i1071 = 0; _i1071 < _size1067; ++_i1071) { - xfer += iprot->readString(this->part_vals[_i1017]); + xfer += iprot->readString(this->part_vals[_i1071]); } xfer += iprot->readListEnd(); } @@ -10431,10 +10933,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1018; - for (_iter1018 = this->part_vals.begin(); _iter1018 != this->part_vals.end(); ++_iter1018) + std::vector ::const_iterator _iter1072; + for (_iter1072 = this->part_vals.begin(); _iter1072 != this->part_vals.end(); ++_iter1072) { - xfer += oprot->writeString((*_iter1018)); + xfer += oprot->writeString((*_iter1072)); } xfer += oprot->writeListEnd(); } @@ -10466,10 +10968,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1019; - for (_iter1019 = (*(this->part_vals)).begin(); _iter1019 != (*(this->part_vals)).end(); ++_iter1019) + std::vector ::const_iterator _iter1073; + for (_iter1073 = (*(this->part_vals)).begin(); _iter1073 != (*(this->part_vals)).end(); ++_iter1073) { - xfer += oprot->writeString((*_iter1019)); + xfer += oprot->writeString((*_iter1073)); } xfer += oprot->writeListEnd(); } @@ -10941,14 +11443,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1020; - ::apache::thrift::protocol::TType _etype1023; - xfer += iprot->readListBegin(_etype1023, _size1020); - this->part_vals.resize(_size1020); - uint32_t _i1024; - for (_i1024 = 0; _i1024 < _size1020; ++_i1024) + uint32_t _size1074; + ::apache::thrift::protocol::TType _etype1077; + xfer += iprot->readListBegin(_etype1077, _size1074); + this->part_vals.resize(_size1074); + uint32_t _i1078; + for (_i1078 = 0; _i1078 < _size1074; ++_i1078) { - xfer += iprot->readString(this->part_vals[_i1024]); + xfer += iprot->readString(this->part_vals[_i1078]); } xfer += iprot->readListEnd(); } @@ -10993,10 +11495,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1025; - for (_iter1025 = this->part_vals.begin(); _iter1025 != this->part_vals.end(); ++_iter1025) + std::vector ::const_iterator _iter1079; + for (_iter1079 = this->part_vals.begin(); _iter1079 != this->part_vals.end(); ++_iter1079) { - xfer += oprot->writeString((*_iter1025)); + xfer += oprot->writeString((*_iter1079)); } xfer += oprot->writeListEnd(); } @@ -11032,10 +11534,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1026; - for (_iter1026 = (*(this->part_vals)).begin(); _iter1026 != (*(this->part_vals)).end(); ++_iter1026) + std::vector ::const_iterator _iter1080; + for (_iter1080 = (*(this->part_vals)).begin(); _iter1080 != (*(this->part_vals)).end(); ++_iter1080) { - xfer += oprot->writeString((*_iter1026)); + xfer += oprot->writeString((*_iter1080)); } xfer += oprot->writeListEnd(); } @@ -11838,14 +12340,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1027; - ::apache::thrift::protocol::TType _etype1030; - xfer += iprot->readListBegin(_etype1030, _size1027); - this->part_vals.resize(_size1027); - uint32_t _i1031; - for (_i1031 = 0; _i1031 < _size1027; ++_i1031) + uint32_t _size1081; + ::apache::thrift::protocol::TType _etype1084; + xfer += iprot->readListBegin(_etype1084, _size1081); + this->part_vals.resize(_size1081); + uint32_t _i1085; + for (_i1085 = 0; _i1085 < _size1081; ++_i1085) { - xfer += iprot->readString(this->part_vals[_i1031]); + xfer += iprot->readString(this->part_vals[_i1085]); } xfer += iprot->readListEnd(); } @@ -11890,10 +12392,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1032; - for (_iter1032 = this->part_vals.begin(); _iter1032 != this->part_vals.end(); ++_iter1032) + std::vector ::const_iterator _iter1086; + for (_iter1086 = this->part_vals.begin(); _iter1086 != this->part_vals.end(); ++_iter1086) { - xfer += oprot->writeString((*_iter1032)); + xfer += oprot->writeString((*_iter1086)); } xfer += oprot->writeListEnd(); } @@ -11929,10 +12431,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1033; - for (_iter1033 = (*(this->part_vals)).begin(); _iter1033 != (*(this->part_vals)).end(); ++_iter1033) + std::vector ::const_iterator _iter1087; + for (_iter1087 = (*(this->part_vals)).begin(); _iter1087 != (*(this->part_vals)).end(); ++_iter1087) { - xfer += oprot->writeString((*_iter1033)); + xfer += oprot->writeString((*_iter1087)); } xfer += oprot->writeListEnd(); } @@ -12141,14 +12643,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1034; - ::apache::thrift::protocol::TType _etype1037; - xfer += iprot->readListBegin(_etype1037, _size1034); - this->part_vals.resize(_size1034); - uint32_t _i1038; - for (_i1038 = 0; _i1038 < _size1034; ++_i1038) + uint32_t _size1088; + ::apache::thrift::protocol::TType _etype1091; + xfer += iprot->readListBegin(_etype1091, _size1088); + this->part_vals.resize(_size1088); + uint32_t _i1092; + for (_i1092 = 0; _i1092 < _size1088; ++_i1092) { - xfer += iprot->readString(this->part_vals[_i1038]); + xfer += iprot->readString(this->part_vals[_i1092]); } xfer += iprot->readListEnd(); } @@ -12201,10 +12703,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1039; - for (_iter1039 = this->part_vals.begin(); _iter1039 != this->part_vals.end(); ++_iter1039) + std::vector ::const_iterator _iter1093; + for (_iter1093 = this->part_vals.begin(); _iter1093 != this->part_vals.end(); ++_iter1093) { - xfer += oprot->writeString((*_iter1039)); + xfer += oprot->writeString((*_iter1093)); } xfer += oprot->writeListEnd(); } @@ -12244,10 +12746,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1040; - for (_iter1040 = (*(this->part_vals)).begin(); _iter1040 != (*(this->part_vals)).end(); ++_iter1040) + std::vector ::const_iterator _iter1094; + for (_iter1094 = (*(this->part_vals)).begin(); _iter1094 != (*(this->part_vals)).end(); ++_iter1094) { - xfer += oprot->writeString((*_iter1040)); + xfer += oprot->writeString((*_iter1094)); } xfer += oprot->writeListEnd(); } @@ -13253,14 +13755,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1041; - ::apache::thrift::protocol::TType _etype1044; - xfer += iprot->readListBegin(_etype1044, _size1041); - this->part_vals.resize(_size1041); - uint32_t _i1045; - for (_i1045 = 0; _i1045 < _size1041; ++_i1045) + uint32_t _size1095; + ::apache::thrift::protocol::TType _etype1098; + xfer += iprot->readListBegin(_etype1098, _size1095); + this->part_vals.resize(_size1095); + uint32_t _i1099; + for (_i1099 = 0; _i1099 < _size1095; ++_i1099) { - xfer += iprot->readString(this->part_vals[_i1045]); + xfer += iprot->readString(this->part_vals[_i1099]); } xfer += iprot->readListEnd(); } @@ -13297,10 +13799,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1046; - for (_iter1046 = this->part_vals.begin(); _iter1046 != this->part_vals.end(); ++_iter1046) + std::vector ::const_iterator _iter1100; + for (_iter1100 = this->part_vals.begin(); _iter1100 != this->part_vals.end(); ++_iter1100) { - xfer += oprot->writeString((*_iter1046)); + xfer += oprot->writeString((*_iter1100)); } xfer += oprot->writeListEnd(); } @@ -13332,10 +13834,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1047; - for (_iter1047 = (*(this->part_vals)).begin(); _iter1047 != (*(this->part_vals)).end(); ++_iter1047) + std::vector ::const_iterator _iter1101; + for (_iter1101 = (*(this->part_vals)).begin(); _iter1101 != (*(this->part_vals)).end(); ++_iter1101) { - xfer += oprot->writeString((*_iter1047)); + xfer += oprot->writeString((*_iter1101)); } xfer += oprot->writeListEnd(); } @@ -13524,17 +14026,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1048; - ::apache::thrift::protocol::TType _ktype1049; - ::apache::thrift::protocol::TType _vtype1050; - xfer += iprot->readMapBegin(_ktype1049, _vtype1050, _size1048); - uint32_t _i1052; - for (_i1052 = 0; _i1052 < _size1048; ++_i1052) + uint32_t _size1102; + ::apache::thrift::protocol::TType _ktype1103; + ::apache::thrift::protocol::TType _vtype1104; + xfer += iprot->readMapBegin(_ktype1103, _vtype1104, _size1102); + uint32_t _i1106; + for (_i1106 = 0; _i1106 < _size1102; ++_i1106) { - std::string _key1053; - xfer += iprot->readString(_key1053); - std::string& _val1054 = this->partitionSpecs[_key1053]; - xfer += iprot->readString(_val1054); + std::string _key1107; + xfer += iprot->readString(_key1107); + std::string& _val1108 = this->partitionSpecs[_key1107]; + xfer += iprot->readString(_val1108); } xfer += iprot->readMapEnd(); } @@ -13595,11 +14097,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1055; - for (_iter1055 = this->partitionSpecs.begin(); _iter1055 != this->partitionSpecs.end(); ++_iter1055) + std::map ::const_iterator _iter1109; + for (_iter1109 = this->partitionSpecs.begin(); _iter1109 != this->partitionSpecs.end(); ++_iter1109) { - xfer += oprot->writeString(_iter1055->first); - xfer += oprot->writeString(_iter1055->second); + xfer += oprot->writeString(_iter1109->first); + xfer += oprot->writeString(_iter1109->second); } xfer += oprot->writeMapEnd(); } @@ -13639,11 +14141,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1056; - for (_iter1056 = (*(this->partitionSpecs)).begin(); _iter1056 != (*(this->partitionSpecs)).end(); ++_iter1056) + std::map ::const_iterator _iter1110; + for (_iter1110 = (*(this->partitionSpecs)).begin(); _iter1110 != (*(this->partitionSpecs)).end(); ++_iter1110) { - xfer += oprot->writeString(_iter1056->first); - xfer += oprot->writeString(_iter1056->second); + xfer += oprot->writeString(_iter1110->first); + xfer += oprot->writeString(_iter1110->second); } xfer += oprot->writeMapEnd(); } @@ -13888,17 +14390,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1057; - ::apache::thrift::protocol::TType _ktype1058; - ::apache::thrift::protocol::TType _vtype1059; - xfer += iprot->readMapBegin(_ktype1058, _vtype1059, _size1057); - uint32_t _i1061; - for (_i1061 = 0; _i1061 < _size1057; ++_i1061) + uint32_t _size1111; + ::apache::thrift::protocol::TType _ktype1112; + ::apache::thrift::protocol::TType _vtype1113; + xfer += iprot->readMapBegin(_ktype1112, _vtype1113, _size1111); + uint32_t _i1115; + for (_i1115 = 0; _i1115 < _size1111; ++_i1115) { - std::string _key1062; - xfer += iprot->readString(_key1062); - std::string& _val1063 = this->partitionSpecs[_key1062]; - xfer += iprot->readString(_val1063); + std::string _key1116; + xfer += iprot->readString(_key1116); + std::string& _val1117 = this->partitionSpecs[_key1116]; + xfer += iprot->readString(_val1117); } xfer += iprot->readMapEnd(); } @@ -13959,11 +14461,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1064; - for (_iter1064 = this->partitionSpecs.begin(); _iter1064 != this->partitionSpecs.end(); ++_iter1064) + std::map ::const_iterator _iter1118; + for (_iter1118 = this->partitionSpecs.begin(); _iter1118 != this->partitionSpecs.end(); ++_iter1118) { - xfer += oprot->writeString(_iter1064->first); - xfer += oprot->writeString(_iter1064->second); + xfer += oprot->writeString(_iter1118->first); + xfer += oprot->writeString(_iter1118->second); } xfer += oprot->writeMapEnd(); } @@ -14003,11 +14505,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1065; - for (_iter1065 = (*(this->partitionSpecs)).begin(); _iter1065 != (*(this->partitionSpecs)).end(); ++_iter1065) + std::map ::const_iterator _iter1119; + for (_iter1119 = (*(this->partitionSpecs)).begin(); _iter1119 != (*(this->partitionSpecs)).end(); ++_iter1119) { - xfer += oprot->writeString(_iter1065->first); - xfer += oprot->writeString(_iter1065->second); + xfer += oprot->writeString(_iter1119->first); + xfer += oprot->writeString(_iter1119->second); } xfer += oprot->writeMapEnd(); } @@ -14064,14 +14566,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1066; - ::apache::thrift::protocol::TType _etype1069; - xfer += iprot->readListBegin(_etype1069, _size1066); - this->success.resize(_size1066); - uint32_t _i1070; - for (_i1070 = 0; _i1070 < _size1066; ++_i1070) + uint32_t _size1120; + ::apache::thrift::protocol::TType _etype1123; + xfer += iprot->readListBegin(_etype1123, _size1120); + this->success.resize(_size1120); + uint32_t _i1124; + for (_i1124 = 0; _i1124 < _size1120; ++_i1124) { - xfer += this->success[_i1070].read(iprot); + xfer += this->success[_i1124].read(iprot); } xfer += iprot->readListEnd(); } @@ -14134,10 +14636,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1071; - for (_iter1071 = this->success.begin(); _iter1071 != this->success.end(); ++_iter1071) + std::vector ::const_iterator _iter1125; + for (_iter1125 = this->success.begin(); _iter1125 != this->success.end(); ++_iter1125) { - xfer += (*_iter1071).write(oprot); + xfer += (*_iter1125).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14194,14 +14696,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1072; - ::apache::thrift::protocol::TType _etype1075; - xfer += iprot->readListBegin(_etype1075, _size1072); - (*(this->success)).resize(_size1072); - uint32_t _i1076; - for (_i1076 = 0; _i1076 < _size1072; ++_i1076) + uint32_t _size1126; + ::apache::thrift::protocol::TType _etype1129; + xfer += iprot->readListBegin(_etype1129, _size1126); + (*(this->success)).resize(_size1126); + uint32_t _i1130; + for (_i1130 = 0; _i1130 < _size1126; ++_i1130) { - xfer += (*(this->success))[_i1076].read(iprot); + xfer += (*(this->success))[_i1130].read(iprot); } xfer += iprot->readListEnd(); } @@ -14300,14 +14802,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1077; - ::apache::thrift::protocol::TType _etype1080; - xfer += iprot->readListBegin(_etype1080, _size1077); - this->part_vals.resize(_size1077); - uint32_t _i1081; - for (_i1081 = 0; _i1081 < _size1077; ++_i1081) + uint32_t _size1131; + ::apache::thrift::protocol::TType _etype1134; + xfer += iprot->readListBegin(_etype1134, _size1131); + this->part_vals.resize(_size1131); + uint32_t _i1135; + for (_i1135 = 0; _i1135 < _size1131; ++_i1135) { - xfer += iprot->readString(this->part_vals[_i1081]); + xfer += iprot->readString(this->part_vals[_i1135]); } xfer += iprot->readListEnd(); } @@ -14328,14 +14830,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1082; - ::apache::thrift::protocol::TType _etype1085; - xfer += iprot->readListBegin(_etype1085, _size1082); - this->group_names.resize(_size1082); - uint32_t _i1086; - for (_i1086 = 0; _i1086 < _size1082; ++_i1086) + uint32_t _size1136; + ::apache::thrift::protocol::TType _etype1139; + xfer += iprot->readListBegin(_etype1139, _size1136); + this->group_names.resize(_size1136); + uint32_t _i1140; + for (_i1140 = 0; _i1140 < _size1136; ++_i1140) { - xfer += iprot->readString(this->group_names[_i1086]); + xfer += iprot->readString(this->group_names[_i1140]); } xfer += iprot->readListEnd(); } @@ -14372,10 +14874,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1087; - for (_iter1087 = this->part_vals.begin(); _iter1087 != this->part_vals.end(); ++_iter1087) + std::vector ::const_iterator _iter1141; + for (_iter1141 = this->part_vals.begin(); _iter1141 != this->part_vals.end(); ++_iter1141) { - xfer += oprot->writeString((*_iter1087)); + xfer += oprot->writeString((*_iter1141)); } xfer += oprot->writeListEnd(); } @@ -14388,10 +14890,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1088; - for (_iter1088 = this->group_names.begin(); _iter1088 != this->group_names.end(); ++_iter1088) + std::vector ::const_iterator _iter1142; + for (_iter1142 = this->group_names.begin(); _iter1142 != this->group_names.end(); ++_iter1142) { - xfer += oprot->writeString((*_iter1088)); + xfer += oprot->writeString((*_iter1142)); } xfer += oprot->writeListEnd(); } @@ -14423,10 +14925,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1089; - for (_iter1089 = (*(this->part_vals)).begin(); _iter1089 != (*(this->part_vals)).end(); ++_iter1089) + std::vector ::const_iterator _iter1143; + for (_iter1143 = (*(this->part_vals)).begin(); _iter1143 != (*(this->part_vals)).end(); ++_iter1143) { - xfer += oprot->writeString((*_iter1089)); + xfer += oprot->writeString((*_iter1143)); } xfer += oprot->writeListEnd(); } @@ -14439,10 +14941,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1090; - for (_iter1090 = (*(this->group_names)).begin(); _iter1090 != (*(this->group_names)).end(); ++_iter1090) + std::vector ::const_iterator _iter1144; + for (_iter1144 = (*(this->group_names)).begin(); _iter1144 != (*(this->group_names)).end(); ++_iter1144) { - xfer += oprot->writeString((*_iter1090)); + xfer += oprot->writeString((*_iter1144)); } xfer += oprot->writeListEnd(); } @@ -15001,14 +15503,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1091; - ::apache::thrift::protocol::TType _etype1094; - xfer += iprot->readListBegin(_etype1094, _size1091); - this->success.resize(_size1091); - uint32_t _i1095; - for (_i1095 = 0; _i1095 < _size1091; ++_i1095) + uint32_t _size1145; + ::apache::thrift::protocol::TType _etype1148; + xfer += iprot->readListBegin(_etype1148, _size1145); + this->success.resize(_size1145); + uint32_t _i1149; + for (_i1149 = 0; _i1149 < _size1145; ++_i1149) { - xfer += this->success[_i1095].read(iprot); + xfer += this->success[_i1149].read(iprot); } xfer += iprot->readListEnd(); } @@ -15055,10 +15557,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1096; - for (_iter1096 = this->success.begin(); _iter1096 != this->success.end(); ++_iter1096) + std::vector ::const_iterator _iter1150; + for (_iter1150 = this->success.begin(); _iter1150 != this->success.end(); ++_iter1150) { - xfer += (*_iter1096).write(oprot); + xfer += (*_iter1150).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15107,14 +15609,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - (*(this->success)).resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size1151; + ::apache::thrift::protocol::TType _etype1154; + xfer += iprot->readListBegin(_etype1154, _size1151); + (*(this->success)).resize(_size1151); + uint32_t _i1155; + for (_i1155 = 0; _i1155 < _size1151; ++_i1155) { - xfer += (*(this->success))[_i1101].read(iprot); + xfer += (*(this->success))[_i1155].read(iprot); } xfer += iprot->readListEnd(); } @@ -15213,14 +15715,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1102; - ::apache::thrift::protocol::TType _etype1105; - xfer += iprot->readListBegin(_etype1105, _size1102); - this->group_names.resize(_size1102); - uint32_t _i1106; - for (_i1106 = 0; _i1106 < _size1102; ++_i1106) + uint32_t _size1156; + ::apache::thrift::protocol::TType _etype1159; + xfer += iprot->readListBegin(_etype1159, _size1156); + this->group_names.resize(_size1156); + uint32_t _i1160; + for (_i1160 = 0; _i1160 < _size1156; ++_i1160) { - xfer += iprot->readString(this->group_names[_i1106]); + xfer += iprot->readString(this->group_names[_i1160]); } xfer += iprot->readListEnd(); } @@ -15265,10 +15767,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1107; - for (_iter1107 = this->group_names.begin(); _iter1107 != this->group_names.end(); ++_iter1107) + std::vector ::const_iterator _iter1161; + for (_iter1161 = this->group_names.begin(); _iter1161 != this->group_names.end(); ++_iter1161) { - xfer += oprot->writeString((*_iter1107)); + xfer += oprot->writeString((*_iter1161)); } xfer += oprot->writeListEnd(); } @@ -15308,10 +15810,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1108; - for (_iter1108 = (*(this->group_names)).begin(); _iter1108 != (*(this->group_names)).end(); ++_iter1108) + std::vector ::const_iterator _iter1162; + for (_iter1162 = (*(this->group_names)).begin(); _iter1162 != (*(this->group_names)).end(); ++_iter1162) { - xfer += oprot->writeString((*_iter1108)); + xfer += oprot->writeString((*_iter1162)); } xfer += oprot->writeListEnd(); } @@ -15352,14 +15854,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1109; - ::apache::thrift::protocol::TType _etype1112; - xfer += iprot->readListBegin(_etype1112, _size1109); - this->success.resize(_size1109); - uint32_t _i1113; - for (_i1113 = 0; _i1113 < _size1109; ++_i1113) + 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 += this->success[_i1113].read(iprot); + xfer += this->success[_i1167].read(iprot); } xfer += iprot->readListEnd(); } @@ -15406,10 +15908,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1114; - for (_iter1114 = this->success.begin(); _iter1114 != this->success.end(); ++_iter1114) + std::vector ::const_iterator _iter1168; + for (_iter1168 = this->success.begin(); _iter1168 != this->success.end(); ++_iter1168) { - xfer += (*_iter1114).write(oprot); + xfer += (*_iter1168).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15458,14 +15960,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1115; - ::apache::thrift::protocol::TType _etype1118; - xfer += iprot->readListBegin(_etype1118, _size1115); - (*(this->success)).resize(_size1115); - uint32_t _i1119; - for (_i1119 = 0; _i1119 < _size1115; ++_i1119) + uint32_t _size1169; + ::apache::thrift::protocol::TType _etype1172; + xfer += iprot->readListBegin(_etype1172, _size1169); + (*(this->success)).resize(_size1169); + uint32_t _i1173; + for (_i1173 = 0; _i1173 < _size1169; ++_i1173) { - xfer += (*(this->success))[_i1119].read(iprot); + xfer += (*(this->success))[_i1173].read(iprot); } xfer += iprot->readListEnd(); } @@ -15643,14 +16145,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1120; - ::apache::thrift::protocol::TType _etype1123; - xfer += iprot->readListBegin(_etype1123, _size1120); - this->success.resize(_size1120); - uint32_t _i1124; - for (_i1124 = 0; _i1124 < _size1120; ++_i1124) + uint32_t _size1174; + ::apache::thrift::protocol::TType _etype1177; + xfer += iprot->readListBegin(_etype1177, _size1174); + this->success.resize(_size1174); + uint32_t _i1178; + for (_i1178 = 0; _i1178 < _size1174; ++_i1178) { - xfer += this->success[_i1124].read(iprot); + xfer += this->success[_i1178].read(iprot); } xfer += iprot->readListEnd(); } @@ -15697,10 +16199,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1125; - for (_iter1125 = this->success.begin(); _iter1125 != this->success.end(); ++_iter1125) + std::vector ::const_iterator _iter1179; + for (_iter1179 = this->success.begin(); _iter1179 != this->success.end(); ++_iter1179) { - xfer += (*_iter1125).write(oprot); + xfer += (*_iter1179).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15749,14 +16251,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1126; - ::apache::thrift::protocol::TType _etype1129; - xfer += iprot->readListBegin(_etype1129, _size1126); - (*(this->success)).resize(_size1126); - uint32_t _i1130; - for (_i1130 = 0; _i1130 < _size1126; ++_i1130) + uint32_t _size1180; + ::apache::thrift::protocol::TType _etype1183; + xfer += iprot->readListBegin(_etype1183, _size1180); + (*(this->success)).resize(_size1180); + uint32_t _i1184; + for (_i1184 = 0; _i1184 < _size1180; ++_i1184) { - xfer += (*(this->success))[_i1130].read(iprot); + xfer += (*(this->success))[_i1184].read(iprot); } xfer += iprot->readListEnd(); } @@ -15934,14 +16436,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1131; - ::apache::thrift::protocol::TType _etype1134; - xfer += iprot->readListBegin(_etype1134, _size1131); - this->success.resize(_size1131); - uint32_t _i1135; - for (_i1135 = 0; _i1135 < _size1131; ++_i1135) + uint32_t _size1185; + ::apache::thrift::protocol::TType _etype1188; + xfer += iprot->readListBegin(_etype1188, _size1185); + this->success.resize(_size1185); + uint32_t _i1189; + for (_i1189 = 0; _i1189 < _size1185; ++_i1189) { - xfer += iprot->readString(this->success[_i1135]); + xfer += iprot->readString(this->success[_i1189]); } xfer += iprot->readListEnd(); } @@ -15980,10 +16482,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1136; - for (_iter1136 = this->success.begin(); _iter1136 != this->success.end(); ++_iter1136) + std::vector ::const_iterator _iter1190; + for (_iter1190 = this->success.begin(); _iter1190 != this->success.end(); ++_iter1190) { - xfer += oprot->writeString((*_iter1136)); + xfer += oprot->writeString((*_iter1190)); } xfer += oprot->writeListEnd(); } @@ -16028,14 +16530,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _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 _size1191; + ::apache::thrift::protocol::TType _etype1194; + xfer += iprot->readListBegin(_etype1194, _size1191); + (*(this->success)).resize(_size1191); + uint32_t _i1195; + for (_i1195 = 0; _i1195 < _size1191; ++_i1195) { - xfer += iprot->readString((*(this->success))[_i1141]); + xfer += iprot->readString((*(this->success))[_i1195]); } xfer += iprot->readListEnd(); } @@ -16110,14 +16612,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1142; - ::apache::thrift::protocol::TType _etype1145; - xfer += iprot->readListBegin(_etype1145, _size1142); - this->part_vals.resize(_size1142); - uint32_t _i1146; - for (_i1146 = 0; _i1146 < _size1142; ++_i1146) + uint32_t _size1196; + ::apache::thrift::protocol::TType _etype1199; + xfer += iprot->readListBegin(_etype1199, _size1196); + this->part_vals.resize(_size1196); + uint32_t _i1200; + for (_i1200 = 0; _i1200 < _size1196; ++_i1200) { - xfer += iprot->readString(this->part_vals[_i1146]); + xfer += iprot->readString(this->part_vals[_i1200]); } xfer += iprot->readListEnd(); } @@ -16162,10 +16664,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1147; - for (_iter1147 = this->part_vals.begin(); _iter1147 != this->part_vals.end(); ++_iter1147) + std::vector ::const_iterator _iter1201; + for (_iter1201 = this->part_vals.begin(); _iter1201 != this->part_vals.end(); ++_iter1201) { - xfer += oprot->writeString((*_iter1147)); + xfer += oprot->writeString((*_iter1201)); } xfer += oprot->writeListEnd(); } @@ -16201,10 +16703,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1148; - for (_iter1148 = (*(this->part_vals)).begin(); _iter1148 != (*(this->part_vals)).end(); ++_iter1148) + std::vector ::const_iterator _iter1202; + for (_iter1202 = (*(this->part_vals)).begin(); _iter1202 != (*(this->part_vals)).end(); ++_iter1202) { - xfer += oprot->writeString((*_iter1148)); + xfer += oprot->writeString((*_iter1202)); } xfer += oprot->writeListEnd(); } @@ -16249,14 +16751,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1149; - ::apache::thrift::protocol::TType _etype1152; - xfer += iprot->readListBegin(_etype1152, _size1149); - this->success.resize(_size1149); - uint32_t _i1153; - for (_i1153 = 0; _i1153 < _size1149; ++_i1153) + uint32_t _size1203; + ::apache::thrift::protocol::TType _etype1206; + xfer += iprot->readListBegin(_etype1206, _size1203); + this->success.resize(_size1203); + uint32_t _i1207; + for (_i1207 = 0; _i1207 < _size1203; ++_i1207) { - xfer += this->success[_i1153].read(iprot); + xfer += this->success[_i1207].read(iprot); } xfer += iprot->readListEnd(); } @@ -16303,10 +16805,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1154; - for (_iter1154 = this->success.begin(); _iter1154 != this->success.end(); ++_iter1154) + std::vector ::const_iterator _iter1208; + for (_iter1208 = this->success.begin(); _iter1208 != this->success.end(); ++_iter1208) { - xfer += (*_iter1154).write(oprot); + xfer += (*_iter1208).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16355,14 +16857,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1155; - ::apache::thrift::protocol::TType _etype1158; - xfer += iprot->readListBegin(_etype1158, _size1155); - (*(this->success)).resize(_size1155); - uint32_t _i1159; - for (_i1159 = 0; _i1159 < _size1155; ++_i1159) + uint32_t _size1209; + ::apache::thrift::protocol::TType _etype1212; + xfer += iprot->readListBegin(_etype1212, _size1209); + (*(this->success)).resize(_size1209); + uint32_t _i1213; + for (_i1213 = 0; _i1213 < _size1209; ++_i1213) { - xfer += (*(this->success))[_i1159].read(iprot); + xfer += (*(this->success))[_i1213].read(iprot); } xfer += iprot->readListEnd(); } @@ -16445,14 +16947,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1160; - ::apache::thrift::protocol::TType _etype1163; - xfer += iprot->readListBegin(_etype1163, _size1160); - this->part_vals.resize(_size1160); - uint32_t _i1164; - for (_i1164 = 0; _i1164 < _size1160; ++_i1164) + uint32_t _size1214; + ::apache::thrift::protocol::TType _etype1217; + xfer += iprot->readListBegin(_etype1217, _size1214); + this->part_vals.resize(_size1214); + uint32_t _i1218; + for (_i1218 = 0; _i1218 < _size1214; ++_i1218) { - xfer += iprot->readString(this->part_vals[_i1164]); + xfer += iprot->readString(this->part_vals[_i1218]); } xfer += iprot->readListEnd(); } @@ -16481,14 +16983,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1165; - ::apache::thrift::protocol::TType _etype1168; - xfer += iprot->readListBegin(_etype1168, _size1165); - this->group_names.resize(_size1165); - uint32_t _i1169; - for (_i1169 = 0; _i1169 < _size1165; ++_i1169) + uint32_t _size1219; + ::apache::thrift::protocol::TType _etype1222; + xfer += iprot->readListBegin(_etype1222, _size1219); + this->group_names.resize(_size1219); + uint32_t _i1223; + for (_i1223 = 0; _i1223 < _size1219; ++_i1223) { - xfer += iprot->readString(this->group_names[_i1169]); + xfer += iprot->readString(this->group_names[_i1223]); } xfer += iprot->readListEnd(); } @@ -16525,10 +17027,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1170; - for (_iter1170 = this->part_vals.begin(); _iter1170 != this->part_vals.end(); ++_iter1170) + std::vector ::const_iterator _iter1224; + for (_iter1224 = this->part_vals.begin(); _iter1224 != this->part_vals.end(); ++_iter1224) { - xfer += oprot->writeString((*_iter1170)); + xfer += oprot->writeString((*_iter1224)); } xfer += oprot->writeListEnd(); } @@ -16545,10 +17047,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1171; - for (_iter1171 = this->group_names.begin(); _iter1171 != this->group_names.end(); ++_iter1171) + std::vector ::const_iterator _iter1225; + for (_iter1225 = this->group_names.begin(); _iter1225 != this->group_names.end(); ++_iter1225) { - xfer += oprot->writeString((*_iter1171)); + xfer += oprot->writeString((*_iter1225)); } xfer += oprot->writeListEnd(); } @@ -16580,10 +17082,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1172; - for (_iter1172 = (*(this->part_vals)).begin(); _iter1172 != (*(this->part_vals)).end(); ++_iter1172) + std::vector ::const_iterator _iter1226; + for (_iter1226 = (*(this->part_vals)).begin(); _iter1226 != (*(this->part_vals)).end(); ++_iter1226) { - xfer += oprot->writeString((*_iter1172)); + xfer += oprot->writeString((*_iter1226)); } xfer += oprot->writeListEnd(); } @@ -16600,10 +17102,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1173; - for (_iter1173 = (*(this->group_names)).begin(); _iter1173 != (*(this->group_names)).end(); ++_iter1173) + std::vector ::const_iterator _iter1227; + for (_iter1227 = (*(this->group_names)).begin(); _iter1227 != (*(this->group_names)).end(); ++_iter1227) { - xfer += oprot->writeString((*_iter1173)); + xfer += oprot->writeString((*_iter1227)); } xfer += oprot->writeListEnd(); } @@ -16644,14 +17146,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _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 _size1228; + ::apache::thrift::protocol::TType _etype1231; + xfer += iprot->readListBegin(_etype1231, _size1228); + this->success.resize(_size1228); + uint32_t _i1232; + for (_i1232 = 0; _i1232 < _size1228; ++_i1232) { - xfer += this->success[_i1178].read(iprot); + xfer += this->success[_i1232].read(iprot); } xfer += iprot->readListEnd(); } @@ -16698,10 +17200,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1179; - for (_iter1179 = this->success.begin(); _iter1179 != this->success.end(); ++_iter1179) + std::vector ::const_iterator _iter1233; + for (_iter1233 = this->success.begin(); _iter1233 != this->success.end(); ++_iter1233) { - xfer += (*_iter1179).write(oprot); + xfer += (*_iter1233).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16750,14 +17252,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _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 _size1234; + ::apache::thrift::protocol::TType _etype1237; + xfer += iprot->readListBegin(_etype1237, _size1234); + (*(this->success)).resize(_size1234); + uint32_t _i1238; + for (_i1238 = 0; _i1238 < _size1234; ++_i1238) { - xfer += (*(this->success))[_i1184].read(iprot); + xfer += (*(this->success))[_i1238].read(iprot); } xfer += iprot->readListEnd(); } @@ -16840,14 +17342,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1185; - ::apache::thrift::protocol::TType _etype1188; - xfer += iprot->readListBegin(_etype1188, _size1185); - this->part_vals.resize(_size1185); - uint32_t _i1189; - for (_i1189 = 0; _i1189 < _size1185; ++_i1189) + uint32_t _size1239; + ::apache::thrift::protocol::TType _etype1242; + xfer += iprot->readListBegin(_etype1242, _size1239); + this->part_vals.resize(_size1239); + uint32_t _i1243; + for (_i1243 = 0; _i1243 < _size1239; ++_i1243) { - xfer += iprot->readString(this->part_vals[_i1189]); + xfer += iprot->readString(this->part_vals[_i1243]); } xfer += iprot->readListEnd(); } @@ -16892,10 +17394,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1190; - for (_iter1190 = this->part_vals.begin(); _iter1190 != this->part_vals.end(); ++_iter1190) + std::vector ::const_iterator _iter1244; + for (_iter1244 = this->part_vals.begin(); _iter1244 != this->part_vals.end(); ++_iter1244) { - xfer += oprot->writeString((*_iter1190)); + xfer += oprot->writeString((*_iter1244)); } xfer += oprot->writeListEnd(); } @@ -16931,10 +17433,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1191; - for (_iter1191 = (*(this->part_vals)).begin(); _iter1191 != (*(this->part_vals)).end(); ++_iter1191) + std::vector ::const_iterator _iter1245; + for (_iter1245 = (*(this->part_vals)).begin(); _iter1245 != (*(this->part_vals)).end(); ++_iter1245) { - xfer += oprot->writeString((*_iter1191)); + xfer += oprot->writeString((*_iter1245)); } xfer += oprot->writeListEnd(); } @@ -16979,14 +17481,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1192; - ::apache::thrift::protocol::TType _etype1195; - xfer += iprot->readListBegin(_etype1195, _size1192); - this->success.resize(_size1192); - uint32_t _i1196; - for (_i1196 = 0; _i1196 < _size1192; ++_i1196) + uint32_t _size1246; + ::apache::thrift::protocol::TType _etype1249; + xfer += iprot->readListBegin(_etype1249, _size1246); + this->success.resize(_size1246); + uint32_t _i1250; + for (_i1250 = 0; _i1250 < _size1246; ++_i1250) { - xfer += iprot->readString(this->success[_i1196]); + xfer += iprot->readString(this->success[_i1250]); } xfer += iprot->readListEnd(); } @@ -17033,10 +17535,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1197; - for (_iter1197 = this->success.begin(); _iter1197 != this->success.end(); ++_iter1197) + std::vector ::const_iterator _iter1251; + for (_iter1251 = this->success.begin(); _iter1251 != this->success.end(); ++_iter1251) { - xfer += oprot->writeString((*_iter1197)); + xfer += oprot->writeString((*_iter1251)); } xfer += oprot->writeListEnd(); } @@ -17085,14 +17587,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1198; - ::apache::thrift::protocol::TType _etype1201; - xfer += iprot->readListBegin(_etype1201, _size1198); - (*(this->success)).resize(_size1198); - uint32_t _i1202; - for (_i1202 = 0; _i1202 < _size1198; ++_i1202) + uint32_t _size1252; + ::apache::thrift::protocol::TType _etype1255; + xfer += iprot->readListBegin(_etype1255, _size1252); + (*(this->success)).resize(_size1252); + uint32_t _i1256; + for (_i1256 = 0; _i1256 < _size1252; ++_i1256) { - xfer += iprot->readString((*(this->success))[_i1202]); + xfer += iprot->readString((*(this->success))[_i1256]); } xfer += iprot->readListEnd(); } @@ -17286,14 +17788,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1203; - ::apache::thrift::protocol::TType _etype1206; - xfer += iprot->readListBegin(_etype1206, _size1203); - this->success.resize(_size1203); - uint32_t _i1207; - for (_i1207 = 0; _i1207 < _size1203; ++_i1207) + uint32_t _size1257; + ::apache::thrift::protocol::TType _etype1260; + xfer += iprot->readListBegin(_etype1260, _size1257); + this->success.resize(_size1257); + uint32_t _i1261; + for (_i1261 = 0; _i1261 < _size1257; ++_i1261) { - xfer += this->success[_i1207].read(iprot); + xfer += this->success[_i1261].read(iprot); } xfer += iprot->readListEnd(); } @@ -17340,10 +17842,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1208; - for (_iter1208 = this->success.begin(); _iter1208 != this->success.end(); ++_iter1208) + std::vector ::const_iterator _iter1262; + for (_iter1262 = this->success.begin(); _iter1262 != this->success.end(); ++_iter1262) { - xfer += (*_iter1208).write(oprot); + xfer += (*_iter1262).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17392,14 +17894,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1209; - ::apache::thrift::protocol::TType _etype1212; - xfer += iprot->readListBegin(_etype1212, _size1209); - (*(this->success)).resize(_size1209); - uint32_t _i1213; - for (_i1213 = 0; _i1213 < _size1209; ++_i1213) + uint32_t _size1263; + ::apache::thrift::protocol::TType _etype1266; + xfer += iprot->readListBegin(_etype1266, _size1263); + (*(this->success)).resize(_size1263); + uint32_t _i1267; + for (_i1267 = 0; _i1267 < _size1263; ++_i1267) { - xfer += (*(this->success))[_i1213].read(iprot); + xfer += (*(this->success))[_i1267].read(iprot); } xfer += iprot->readListEnd(); } @@ -17593,14 +18095,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1214; - ::apache::thrift::protocol::TType _etype1217; - xfer += iprot->readListBegin(_etype1217, _size1214); - this->success.resize(_size1214); - uint32_t _i1218; - for (_i1218 = 0; _i1218 < _size1214; ++_i1218) + uint32_t _size1268; + ::apache::thrift::protocol::TType _etype1271; + xfer += iprot->readListBegin(_etype1271, _size1268); + this->success.resize(_size1268); + uint32_t _i1272; + for (_i1272 = 0; _i1272 < _size1268; ++_i1272) { - xfer += this->success[_i1218].read(iprot); + xfer += this->success[_i1272].read(iprot); } xfer += iprot->readListEnd(); } @@ -17647,10 +18149,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1219; - for (_iter1219 = this->success.begin(); _iter1219 != this->success.end(); ++_iter1219) + std::vector ::const_iterator _iter1273; + for (_iter1273 = this->success.begin(); _iter1273 != this->success.end(); ++_iter1273) { - xfer += (*_iter1219).write(oprot); + xfer += (*_iter1273).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17699,14 +18201,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1220; - ::apache::thrift::protocol::TType _etype1223; - xfer += iprot->readListBegin(_etype1223, _size1220); - (*(this->success)).resize(_size1220); - uint32_t _i1224; - for (_i1224 = 0; _i1224 < _size1220; ++_i1224) + uint32_t _size1274; + ::apache::thrift::protocol::TType _etype1277; + xfer += iprot->readListBegin(_etype1277, _size1274); + (*(this->success)).resize(_size1274); + uint32_t _i1278; + for (_i1278 = 0; _i1278 < _size1274; ++_i1278) { - xfer += (*(this->success))[_i1224].read(iprot); + xfer += (*(this->success))[_i1278].read(iprot); } xfer += iprot->readListEnd(); } @@ -18275,14 +18777,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1225; - ::apache::thrift::protocol::TType _etype1228; - xfer += iprot->readListBegin(_etype1228, _size1225); - this->names.resize(_size1225); - uint32_t _i1229; - for (_i1229 = 0; _i1229 < _size1225; ++_i1229) + uint32_t _size1279; + ::apache::thrift::protocol::TType _etype1282; + xfer += iprot->readListBegin(_etype1282, _size1279); + this->names.resize(_size1279); + uint32_t _i1283; + for (_i1283 = 0; _i1283 < _size1279; ++_i1283) { - xfer += iprot->readString(this->names[_i1229]); + xfer += iprot->readString(this->names[_i1283]); } xfer += iprot->readListEnd(); } @@ -18319,10 +18821,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter1230; - for (_iter1230 = this->names.begin(); _iter1230 != this->names.end(); ++_iter1230) + std::vector ::const_iterator _iter1284; + for (_iter1284 = this->names.begin(); _iter1284 != this->names.end(); ++_iter1284) { - xfer += oprot->writeString((*_iter1230)); + xfer += oprot->writeString((*_iter1284)); } xfer += oprot->writeListEnd(); } @@ -18354,10 +18856,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter1231; - for (_iter1231 = (*(this->names)).begin(); _iter1231 != (*(this->names)).end(); ++_iter1231) + std::vector ::const_iterator _iter1285; + for (_iter1285 = (*(this->names)).begin(); _iter1285 != (*(this->names)).end(); ++_iter1285) { - xfer += oprot->writeString((*_iter1231)); + xfer += oprot->writeString((*_iter1285)); } xfer += oprot->writeListEnd(); } @@ -18398,14 +18900,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1232; - ::apache::thrift::protocol::TType _etype1235; - xfer += iprot->readListBegin(_etype1235, _size1232); - this->success.resize(_size1232); - uint32_t _i1236; - for (_i1236 = 0; _i1236 < _size1232; ++_i1236) + uint32_t _size1286; + ::apache::thrift::protocol::TType _etype1289; + xfer += iprot->readListBegin(_etype1289, _size1286); + this->success.resize(_size1286); + uint32_t _i1290; + for (_i1290 = 0; _i1290 < _size1286; ++_i1290) { - xfer += this->success[_i1236].read(iprot); + xfer += this->success[_i1290].read(iprot); } xfer += iprot->readListEnd(); } @@ -18452,10 +18954,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1237; - for (_iter1237 = this->success.begin(); _iter1237 != this->success.end(); ++_iter1237) + std::vector ::const_iterator _iter1291; + for (_iter1291 = this->success.begin(); _iter1291 != this->success.end(); ++_iter1291) { - xfer += (*_iter1237).write(oprot); + xfer += (*_iter1291).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18504,14 +19006,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1238; - ::apache::thrift::protocol::TType _etype1241; - xfer += iprot->readListBegin(_etype1241, _size1238); - (*(this->success)).resize(_size1238); - uint32_t _i1242; - for (_i1242 = 0; _i1242 < _size1238; ++_i1242) + uint32_t _size1292; + ::apache::thrift::protocol::TType _etype1295; + xfer += iprot->readListBegin(_etype1295, _size1292); + (*(this->success)).resize(_size1292); + uint32_t _i1296; + for (_i1296 = 0; _i1296 < _size1292; ++_i1296) { - xfer += (*(this->success))[_i1242].read(iprot); + xfer += (*(this->success))[_i1296].read(iprot); } xfer += iprot->readListEnd(); } @@ -18833,14 +19335,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1243; - ::apache::thrift::protocol::TType _etype1246; - xfer += iprot->readListBegin(_etype1246, _size1243); - this->new_parts.resize(_size1243); - uint32_t _i1247; - for (_i1247 = 0; _i1247 < _size1243; ++_i1247) + uint32_t _size1297; + ::apache::thrift::protocol::TType _etype1300; + xfer += iprot->readListBegin(_etype1300, _size1297); + this->new_parts.resize(_size1297); + uint32_t _i1301; + for (_i1301 = 0; _i1301 < _size1297; ++_i1301) { - xfer += this->new_parts[_i1247].read(iprot); + xfer += this->new_parts[_i1301].read(iprot); } xfer += iprot->readListEnd(); } @@ -18877,10 +19379,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1248; - for (_iter1248 = this->new_parts.begin(); _iter1248 != this->new_parts.end(); ++_iter1248) + std::vector ::const_iterator _iter1302; + for (_iter1302 = this->new_parts.begin(); _iter1302 != this->new_parts.end(); ++_iter1302) { - xfer += (*_iter1248).write(oprot); + xfer += (*_iter1302).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18912,10 +19414,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1249; - for (_iter1249 = (*(this->new_parts)).begin(); _iter1249 != (*(this->new_parts)).end(); ++_iter1249) + std::vector ::const_iterator _iter1303; + for (_iter1303 = (*(this->new_parts)).begin(); _iter1303 != (*(this->new_parts)).end(); ++_iter1303) { - xfer += (*_iter1249).write(oprot); + xfer += (*_iter1303).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19100,14 +19602,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1250; - ::apache::thrift::protocol::TType _etype1253; - xfer += iprot->readListBegin(_etype1253, _size1250); - this->new_parts.resize(_size1250); - uint32_t _i1254; - for (_i1254 = 0; _i1254 < _size1250; ++_i1254) + uint32_t _size1304; + ::apache::thrift::protocol::TType _etype1307; + xfer += iprot->readListBegin(_etype1307, _size1304); + this->new_parts.resize(_size1304); + uint32_t _i1308; + for (_i1308 = 0; _i1308 < _size1304; ++_i1308) { - xfer += this->new_parts[_i1254].read(iprot); + xfer += this->new_parts[_i1308].read(iprot); } xfer += iprot->readListEnd(); } @@ -19152,10 +19654,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::wri xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1255; - for (_iter1255 = this->new_parts.begin(); _iter1255 != this->new_parts.end(); ++_iter1255) + std::vector ::const_iterator _iter1309; + for (_iter1309 = this->new_parts.begin(); _iter1309 != this->new_parts.end(); ++_iter1309) { - xfer += (*_iter1255).write(oprot); + xfer += (*_iter1309).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19191,10 +19693,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1256; - for (_iter1256 = (*(this->new_parts)).begin(); _iter1256 != (*(this->new_parts)).end(); ++_iter1256) + std::vector ::const_iterator _iter1310; + for (_iter1310 = (*(this->new_parts)).begin(); _iter1310 != (*(this->new_parts)).end(); ++_iter1310) { - xfer += (*_iter1256).write(oprot); + xfer += (*_iter1310).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19638,14 +20140,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1257; - ::apache::thrift::protocol::TType _etype1260; - xfer += iprot->readListBegin(_etype1260, _size1257); - this->part_vals.resize(_size1257); - uint32_t _i1261; - for (_i1261 = 0; _i1261 < _size1257; ++_i1261) + uint32_t _size1311; + ::apache::thrift::protocol::TType _etype1314; + xfer += iprot->readListBegin(_etype1314, _size1311); + this->part_vals.resize(_size1311); + uint32_t _i1315; + for (_i1315 = 0; _i1315 < _size1311; ++_i1315) { - xfer += iprot->readString(this->part_vals[_i1261]); + xfer += iprot->readString(this->part_vals[_i1315]); } xfer += iprot->readListEnd(); } @@ -19690,10 +20192,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1262; - for (_iter1262 = this->part_vals.begin(); _iter1262 != this->part_vals.end(); ++_iter1262) + std::vector ::const_iterator _iter1316; + for (_iter1316 = this->part_vals.begin(); _iter1316 != this->part_vals.end(); ++_iter1316) { - xfer += oprot->writeString((*_iter1262)); + xfer += oprot->writeString((*_iter1316)); } xfer += oprot->writeListEnd(); } @@ -19729,10 +20231,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1263; - for (_iter1263 = (*(this->part_vals)).begin(); _iter1263 != (*(this->part_vals)).end(); ++_iter1263) + std::vector ::const_iterator _iter1317; + for (_iter1317 = (*(this->part_vals)).begin(); _iter1317 != (*(this->part_vals)).end(); ++_iter1317) { - xfer += oprot->writeString((*_iter1263)); + xfer += oprot->writeString((*_iter1317)); } xfer += oprot->writeListEnd(); } @@ -19905,14 +20407,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1264; - ::apache::thrift::protocol::TType _etype1267; - xfer += iprot->readListBegin(_etype1267, _size1264); - this->part_vals.resize(_size1264); - uint32_t _i1268; - for (_i1268 = 0; _i1268 < _size1264; ++_i1268) + uint32_t _size1318; + ::apache::thrift::protocol::TType _etype1321; + xfer += iprot->readListBegin(_etype1321, _size1318); + this->part_vals.resize(_size1318); + uint32_t _i1322; + for (_i1322 = 0; _i1322 < _size1318; ++_i1322) { - xfer += iprot->readString(this->part_vals[_i1268]); + xfer += iprot->readString(this->part_vals[_i1322]); } xfer += iprot->readListEnd(); } @@ -19949,10 +20451,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1269; - for (_iter1269 = this->part_vals.begin(); _iter1269 != this->part_vals.end(); ++_iter1269) + std::vector ::const_iterator _iter1323; + for (_iter1323 = this->part_vals.begin(); _iter1323 != this->part_vals.end(); ++_iter1323) { - xfer += oprot->writeString((*_iter1269)); + xfer += oprot->writeString((*_iter1323)); } xfer += oprot->writeListEnd(); } @@ -19980,10 +20482,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1270; - for (_iter1270 = (*(this->part_vals)).begin(); _iter1270 != (*(this->part_vals)).end(); ++_iter1270) + std::vector ::const_iterator _iter1324; + for (_iter1324 = (*(this->part_vals)).begin(); _iter1324 != (*(this->part_vals)).end(); ++_iter1324) { - xfer += oprot->writeString((*_iter1270)); + xfer += oprot->writeString((*_iter1324)); } xfer += oprot->writeListEnd(); } @@ -20458,14 +20960,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _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 _size1325; + ::apache::thrift::protocol::TType _etype1328; + xfer += iprot->readListBegin(_etype1328, _size1325); + this->success.resize(_size1325); + uint32_t _i1329; + for (_i1329 = 0; _i1329 < _size1325; ++_i1329) { - xfer += iprot->readString(this->success[_i1275]); + xfer += iprot->readString(this->success[_i1329]); } xfer += iprot->readListEnd(); } @@ -20504,10 +21006,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1276; - for (_iter1276 = this->success.begin(); _iter1276 != this->success.end(); ++_iter1276) + std::vector ::const_iterator _iter1330; + for (_iter1330 = this->success.begin(); _iter1330 != this->success.end(); ++_iter1330) { - xfer += oprot->writeString((*_iter1276)); + xfer += oprot->writeString((*_iter1330)); } xfer += oprot->writeListEnd(); } @@ -20552,14 +21054,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _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 _size1331; + ::apache::thrift::protocol::TType _etype1334; + xfer += iprot->readListBegin(_etype1334, _size1331); + (*(this->success)).resize(_size1331); + uint32_t _i1335; + for (_i1335 = 0; _i1335 < _size1331; ++_i1335) { - xfer += iprot->readString((*(this->success))[_i1281]); + xfer += iprot->readString((*(this->success))[_i1335]); } xfer += iprot->readListEnd(); } @@ -20697,17 +21199,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1282; - ::apache::thrift::protocol::TType _ktype1283; - ::apache::thrift::protocol::TType _vtype1284; - xfer += iprot->readMapBegin(_ktype1283, _vtype1284, _size1282); - uint32_t _i1286; - for (_i1286 = 0; _i1286 < _size1282; ++_i1286) + uint32_t _size1336; + ::apache::thrift::protocol::TType _ktype1337; + ::apache::thrift::protocol::TType _vtype1338; + xfer += iprot->readMapBegin(_ktype1337, _vtype1338, _size1336); + uint32_t _i1340; + for (_i1340 = 0; _i1340 < _size1336; ++_i1340) { - std::string _key1287; - xfer += iprot->readString(_key1287); - std::string& _val1288 = this->success[_key1287]; - xfer += iprot->readString(_val1288); + std::string _key1341; + xfer += iprot->readString(_key1341); + std::string& _val1342 = this->success[_key1341]; + xfer += iprot->readString(_val1342); } xfer += iprot->readMapEnd(); } @@ -20746,11 +21248,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter1289; - for (_iter1289 = this->success.begin(); _iter1289 != this->success.end(); ++_iter1289) + std::map ::const_iterator _iter1343; + for (_iter1343 = this->success.begin(); _iter1343 != this->success.end(); ++_iter1343) { - xfer += oprot->writeString(_iter1289->first); - xfer += oprot->writeString(_iter1289->second); + xfer += oprot->writeString(_iter1343->first); + xfer += oprot->writeString(_iter1343->second); } xfer += oprot->writeMapEnd(); } @@ -20795,17 +21297,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1290; - ::apache::thrift::protocol::TType _ktype1291; - ::apache::thrift::protocol::TType _vtype1292; - xfer += iprot->readMapBegin(_ktype1291, _vtype1292, _size1290); - uint32_t _i1294; - for (_i1294 = 0; _i1294 < _size1290; ++_i1294) + uint32_t _size1344; + ::apache::thrift::protocol::TType _ktype1345; + ::apache::thrift::protocol::TType _vtype1346; + xfer += iprot->readMapBegin(_ktype1345, _vtype1346, _size1344); + uint32_t _i1348; + for (_i1348 = 0; _i1348 < _size1344; ++_i1348) { - std::string _key1295; - xfer += iprot->readString(_key1295); - std::string& _val1296 = (*(this->success))[_key1295]; - xfer += iprot->readString(_val1296); + std::string _key1349; + xfer += iprot->readString(_key1349); + std::string& _val1350 = (*(this->success))[_key1349]; + xfer += iprot->readString(_val1350); } xfer += iprot->readMapEnd(); } @@ -20880,17 +21382,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1297; - ::apache::thrift::protocol::TType _ktype1298; - ::apache::thrift::protocol::TType _vtype1299; - xfer += iprot->readMapBegin(_ktype1298, _vtype1299, _size1297); - uint32_t _i1301; - for (_i1301 = 0; _i1301 < _size1297; ++_i1301) + uint32_t _size1351; + ::apache::thrift::protocol::TType _ktype1352; + ::apache::thrift::protocol::TType _vtype1353; + xfer += iprot->readMapBegin(_ktype1352, _vtype1353, _size1351); + uint32_t _i1355; + for (_i1355 = 0; _i1355 < _size1351; ++_i1355) { - std::string _key1302; - xfer += iprot->readString(_key1302); - std::string& _val1303 = this->part_vals[_key1302]; - xfer += iprot->readString(_val1303); + std::string _key1356; + xfer += iprot->readString(_key1356); + std::string& _val1357 = this->part_vals[_key1356]; + xfer += iprot->readString(_val1357); } xfer += iprot->readMapEnd(); } @@ -20901,9 +21403,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1304; - xfer += iprot->readI32(ecast1304); - this->eventType = (PartitionEventType::type)ecast1304; + int32_t ecast1358; + xfer += iprot->readI32(ecast1358); + this->eventType = (PartitionEventType::type)ecast1358; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -20937,11 +21439,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1305; - for (_iter1305 = this->part_vals.begin(); _iter1305 != this->part_vals.end(); ++_iter1305) + std::map ::const_iterator _iter1359; + for (_iter1359 = this->part_vals.begin(); _iter1359 != this->part_vals.end(); ++_iter1359) { - xfer += oprot->writeString(_iter1305->first); - xfer += oprot->writeString(_iter1305->second); + xfer += oprot->writeString(_iter1359->first); + xfer += oprot->writeString(_iter1359->second); } xfer += oprot->writeMapEnd(); } @@ -20977,11 +21479,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1306; - for (_iter1306 = (*(this->part_vals)).begin(); _iter1306 != (*(this->part_vals)).end(); ++_iter1306) + std::map ::const_iterator _iter1360; + for (_iter1360 = (*(this->part_vals)).begin(); _iter1360 != (*(this->part_vals)).end(); ++_iter1360) { - xfer += oprot->writeString(_iter1306->first); - xfer += oprot->writeString(_iter1306->second); + xfer += oprot->writeString(_iter1360->first); + xfer += oprot->writeString(_iter1360->second); } xfer += oprot->writeMapEnd(); } @@ -21250,17 +21752,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1307; - ::apache::thrift::protocol::TType _ktype1308; - ::apache::thrift::protocol::TType _vtype1309; - xfer += iprot->readMapBegin(_ktype1308, _vtype1309, _size1307); - uint32_t _i1311; - for (_i1311 = 0; _i1311 < _size1307; ++_i1311) + uint32_t _size1361; + ::apache::thrift::protocol::TType _ktype1362; + ::apache::thrift::protocol::TType _vtype1363; + xfer += iprot->readMapBegin(_ktype1362, _vtype1363, _size1361); + uint32_t _i1365; + for (_i1365 = 0; _i1365 < _size1361; ++_i1365) { - std::string _key1312; - xfer += iprot->readString(_key1312); - std::string& _val1313 = this->part_vals[_key1312]; - xfer += iprot->readString(_val1313); + std::string _key1366; + xfer += iprot->readString(_key1366); + std::string& _val1367 = this->part_vals[_key1366]; + xfer += iprot->readString(_val1367); } xfer += iprot->readMapEnd(); } @@ -21271,9 +21773,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1314; - xfer += iprot->readI32(ecast1314); - this->eventType = (PartitionEventType::type)ecast1314; + int32_t ecast1368; + xfer += iprot->readI32(ecast1368); + this->eventType = (PartitionEventType::type)ecast1368; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21307,11 +21809,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1315; - for (_iter1315 = this->part_vals.begin(); _iter1315 != this->part_vals.end(); ++_iter1315) + std::map ::const_iterator _iter1369; + for (_iter1369 = this->part_vals.begin(); _iter1369 != this->part_vals.end(); ++_iter1369) { - xfer += oprot->writeString(_iter1315->first); - xfer += oprot->writeString(_iter1315->second); + xfer += oprot->writeString(_iter1369->first); + xfer += oprot->writeString(_iter1369->second); } xfer += oprot->writeMapEnd(); } @@ -21347,11 +21849,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1316; - for (_iter1316 = (*(this->part_vals)).begin(); _iter1316 != (*(this->part_vals)).end(); ++_iter1316) + std::map ::const_iterator _iter1370; + for (_iter1370 = (*(this->part_vals)).begin(); _iter1370 != (*(this->part_vals)).end(); ++_iter1370) { - xfer += oprot->writeString(_iter1316->first); - xfer += oprot->writeString(_iter1316->second); + xfer += oprot->writeString(_iter1370->first); + xfer += oprot->writeString(_iter1370->second); } xfer += oprot->writeMapEnd(); } @@ -22155,17 +22657,543 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::pro } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->index_name); - this->__isset.index_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->deleteData); - this->__isset.deleteData = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->index_name); + this->__isset.index_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->deleteData); + this->__isset.deleteData = 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_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_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("index_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->index_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->deleteData); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_index_by_name_pargs::~ThriftHiveMetastore_drop_index_by_name_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_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("index_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->index_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool((*(this->deleteData))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_index_by_name_result::~ThriftHiveMetastore_drop_index_by_name_result() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_result"); + + 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(); + } 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_drop_index_by_name_presult::~ThriftHiveMetastore_drop_index_by_name_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_index_by_name_args::~ThriftHiveMetastore_get_index_by_name_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->index_name); + this->__isset.index_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_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("index_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->index_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_index_by_name_pargs::~ThriftHiveMetastore_get_index_by_name_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_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("index_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->index_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_index_by_name_result::~ThriftHiveMetastore_get_index_by_name_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_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_index_by_name_presult::~ThriftHiveMetastore_get_index_by_name_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_index_by_name_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_indexes_args::~ThriftHiveMetastore_get_indexes_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I16) { + xfer += iprot->readI16(this->max_indexes); + this->__isset.max_indexes = true; } else { xfer += iprot->skip(ftype); } @@ -22182,10 +23210,10 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -22195,12 +23223,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::pr xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->index_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->deleteData); + xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); + xfer += oprot->writeI16(this->max_indexes); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22209,14 +23233,14 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::pr } -ThriftHiveMetastore_drop_index_by_name_pargs::~ThriftHiveMetastore_drop_index_by_name_pargs() throw() { +ThriftHiveMetastore_get_indexes_pargs::~ThriftHiveMetastore_get_indexes_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -22226,12 +23250,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::p xfer += oprot->writeString((*(this->tbl_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->index_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool((*(this->deleteData))); + xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); + xfer += oprot->writeI16((*(this->max_indexes))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22240,11 +23260,11 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_drop_index_by_name_result::~ThriftHiveMetastore_drop_index_by_name_result() throw() { +ThriftHiveMetastore_get_indexes_result::~ThriftHiveMetastore_get_indexes_result() throw() { } -uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22266,8 +23286,20 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_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_LIST) { + { + this->success.clear(); + uint32_t _size1371; + ::apache::thrift::protocol::TType _etype1374; + xfer += iprot->readListBegin(_etype1374, _size1371); + this->success.resize(_size1371); + uint32_t _i1375; + for (_i1375 = 0; _i1375 < _size1371; ++_i1375) + { + xfer += this->success[_i1375].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22301,15 +23333,23 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_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_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter1376; + for (_iter1376 = this->success.begin(); _iter1376 != this->success.end(); ++_iter1376) + { + xfer += (*_iter1376).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22326,11 +23366,11 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift:: } -ThriftHiveMetastore_drop_index_by_name_presult::~ThriftHiveMetastore_drop_index_by_name_presult() throw() { +ThriftHiveMetastore_get_indexes_presult::~ThriftHiveMetastore_get_indexes_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22352,8 +23392,20 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_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_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1377; + ::apache::thrift::protocol::TType _etype1380; + xfer += iprot->readListBegin(_etype1380, _size1377); + (*(this->success)).resize(_size1377); + uint32_t _i1381; + for (_i1381 = 0; _i1381 < _size1377; ++_i1381) + { + xfer += (*(this->success))[_i1381].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22388,11 +23440,11 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift:: } -ThriftHiveMetastore_get_index_by_name_args::~ThriftHiveMetastore_get_index_by_name_args() throw() { +ThriftHiveMetastore_get_index_names_args::~ThriftHiveMetastore_get_index_names_args() throw() { } -uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22430,9 +23482,9 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::prot } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->index_name); - this->__isset.index_name = true; + if (ftype == ::apache::thrift::protocol::T_I16) { + xfer += iprot->readI16(this->max_indexes); + this->__isset.max_indexes = true; } else { xfer += iprot->skip(ftype); } @@ -22449,10 +23501,10 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -22462,8 +23514,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::pro xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->index_name); + xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); + xfer += oprot->writeI16(this->max_indexes); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22472,14 +23524,14 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::pro } -ThriftHiveMetastore_get_index_by_name_pargs::~ThriftHiveMetastore_get_index_by_name_pargs() throw() { +ThriftHiveMetastore_get_index_names_pargs::~ThriftHiveMetastore_get_index_names_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -22489,8 +23541,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::pr xfer += oprot->writeString((*(this->tbl_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->index_name))); + xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); + xfer += oprot->writeI16((*(this->max_indexes))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22499,11 +23551,11 @@ uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_get_index_by_name_result::~ThriftHiveMetastore_get_index_by_name_result() throw() { +ThriftHiveMetastore_get_index_names_result::~ThriftHiveMetastore_get_index_names_result() throw() { } -uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22525,8 +23577,20 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1382; + ::apache::thrift::protocol::TType _etype1385; + xfer += iprot->readListBegin(_etype1385, _size1382); + this->success.resize(_size1382); + uint32_t _i1386; + for (_i1386 = 0; _i1386 < _size1382; ++_i1386) + { + xfer += iprot->readString(this->success[_i1386]); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22534,14 +23598,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::pr 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 { @@ -22560,22 +23616,26 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_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->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 _iter1387; + for (_iter1387 = this->success.begin(); _iter1387 != this->success.end(); ++_iter1387) + { + xfer += oprot->writeString((*_iter1387)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -22585,11 +23645,11 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::p } -ThriftHiveMetastore_get_index_by_name_presult::~ThriftHiveMetastore_get_index_by_name_presult() throw() { +ThriftHiveMetastore_get_index_names_presult::~ThriftHiveMetastore_get_index_names_presult() throw() { } -uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22611,8 +23671,20 @@ uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1388; + ::apache::thrift::protocol::TType _etype1391; + xfer += iprot->readListBegin(_etype1391, _size1388); + (*(this->success)).resize(_size1388); + uint32_t _i1392; + for (_i1392 = 0; _i1392 < _size1388; ++_i1392) + { + xfer += iprot->readString((*(this->success))[_i1392]); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22620,14 +23692,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::p 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 { @@ -22647,11 +23711,11 @@ uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::p } -ThriftHiveMetastore_get_indexes_args::~ThriftHiveMetastore_get_indexes_args() throw() { +ThriftHiveMetastore_get_primary_keys_args::~ThriftHiveMetastore_get_primary_keys_args() throw() { } -uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_primary_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22673,25 +23737,9 @@ uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol:: 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_I16) { - xfer += iprot->readI16(this->max_indexes); - this->__isset.max_indexes = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -22708,21 +23756,32 @@ uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_primary_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_args"); - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); 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; +} - xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); - xfer += oprot->writeI16(this->max_indexes); + +ThriftHiveMetastore_get_primary_keys_pargs::~ThriftHiveMetastore_get_primary_keys_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_primary_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_pargs"); + + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22731,38 +23790,97 @@ uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol: } -ThriftHiveMetastore_get_indexes_pargs::~ThriftHiveMetastore_get_indexes_pargs() throw() { +ThriftHiveMetastore_get_primary_keys_result::~ThriftHiveMetastore_get_primary_keys_result() throw() { } -uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_primary_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs"); + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); - xfer += oprot->writeI16((*(this->max_indexes))); - xfer += oprot->writeFieldEnd(); + 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_primary_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_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_indexes_result::~ThriftHiveMetastore_get_indexes_result() throw() { +ThriftHiveMetastore_get_primary_keys_presult::~ThriftHiveMetastore_get_primary_keys_presult() throw() { } -uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_primary_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22784,20 +23902,8 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol switch (fid) { case 0: - 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) - { - xfer += this->success[_i1321].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22831,44 +23937,12 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1322; - for (_iter1322 = this->success.begin(); _iter1322 != this->success.end(); ++_iter1322) - { - xfer += (*_iter1322).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } 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_indexes_presult::~ThriftHiveMetastore_get_indexes_presult() throw() { +ThriftHiveMetastore_get_foreign_keys_args::~ThriftHiveMetastore_get_foreign_keys_args() throw() { } -uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22889,100 +23963,10 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size1323; - ::apache::thrift::protocol::TType _etype1326; - xfer += iprot->readListBegin(_etype1326, _size1323); - (*(this->success)).resize(_size1323); - uint32_t _i1327; - for (_i1327 = 0; _i1327 < _size1323; ++_i1327) - { - xfer += (*(this->success))[_i1327].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - 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_index_names_args::~ThriftHiveMetastore_get_index_names_args() throw() { -} - - -uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I16) { - xfer += iprot->readI16(this->max_indexes); - this->__isset.max_indexes = true; + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -22999,21 +23983,13 @@ uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_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_get_foreign_keys_args"); - xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); - xfer += oprot->writeI16(this->max_indexes); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23022,25 +23998,17 @@ uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::proto } -ThriftHiveMetastore_get_index_names_pargs::~ThriftHiveMetastore_get_index_names_pargs() throw() { +ThriftHiveMetastore_get_foreign_keys_pargs::~ThriftHiveMetastore_get_foreign_keys_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_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_get_foreign_keys_pargs"); - xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3); - xfer += oprot->writeI16((*(this->max_indexes))); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23049,11 +24017,11 @@ uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::prot } -ThriftHiveMetastore_get_index_names_result::~ThriftHiveMetastore_get_index_names_result() throw() { +ThriftHiveMetastore_get_foreign_keys_result::~ThriftHiveMetastore_get_foreign_keys_result() throw() { } -uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23075,20 +24043,8 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size1328; - ::apache::thrift::protocol::TType _etype1331; - xfer += iprot->readListBegin(_etype1331, _size1328); - this->success.resize(_size1328); - uint32_t _i1332; - for (_i1332 = 0; _i1332 < _size1328; ++_i1332) - { - xfer += iprot->readString(this->success[_i1332]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23096,6 +24052,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot 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 { @@ -23114,26 +24078,22 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_result"); if (this->__isset.success) { - 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 _iter1333; - for (_iter1333 = this->success.begin(); _iter1333 != this->success.end(); ++_iter1333) - { - xfer += oprot->writeString((*_iter1333)); - } - xfer += oprot->writeListEnd(); - } + 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, 1); + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); } @@ -23143,11 +24103,11 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro } -ThriftHiveMetastore_get_index_names_presult::~ThriftHiveMetastore_get_index_names_presult() throw() { +ThriftHiveMetastore_get_foreign_keys_presult::~ThriftHiveMetastore_get_foreign_keys_presult() throw() { } -uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23169,20 +24129,8 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size1334; - ::apache::thrift::protocol::TType _etype1337; - xfer += iprot->readListBegin(_etype1337, _size1334); - (*(this->success)).resize(_size1334); - uint32_t _i1338; - for (_i1338 = 0; _i1338 < _size1334; ++_i1338) - { - xfer += iprot->readString((*(this->success))[_i1338]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23190,6 +24138,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro 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 { @@ -23209,11 +24165,11 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_get_primary_keys_args::~ThriftHiveMetastore_get_primary_keys_args() throw() { +ThriftHiveMetastore_get_unique_constraints_args::~ThriftHiveMetastore_get_unique_constraints_args() throw() { } -uint32_t ThriftHiveMetastore_get_primary_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_unique_constraints_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23254,10 +24210,10 @@ uint32_t ThriftHiveMetastore_get_primary_keys_args::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_get_primary_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_unique_constraints_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_unique_constraints_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -23269,14 +24225,14 @@ uint32_t ThriftHiveMetastore_get_primary_keys_args::write(::apache::thrift::prot } -ThriftHiveMetastore_get_primary_keys_pargs::~ThriftHiveMetastore_get_primary_keys_pargs() throw() { +ThriftHiveMetastore_get_unique_constraints_pargs::~ThriftHiveMetastore_get_unique_constraints_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_primary_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_unique_constraints_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_unique_constraints_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -23288,11 +24244,11 @@ uint32_t ThriftHiveMetastore_get_primary_keys_pargs::write(::apache::thrift::pro } -ThriftHiveMetastore_get_primary_keys_result::~ThriftHiveMetastore_get_primary_keys_result() throw() { +ThriftHiveMetastore_get_unique_constraints_result::~ThriftHiveMetastore_get_unique_constraints_result() throw() { } -uint32_t ThriftHiveMetastore_get_primary_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_unique_constraints_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23349,11 +24305,11 @@ uint32_t ThriftHiveMetastore_get_primary_keys_result::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_get_primary_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_unique_constraints_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_unique_constraints_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -23374,11 +24330,11 @@ uint32_t ThriftHiveMetastore_get_primary_keys_result::write(::apache::thrift::pr } -ThriftHiveMetastore_get_primary_keys_presult::~ThriftHiveMetastore_get_primary_keys_presult() throw() { +ThriftHiveMetastore_get_unique_constraints_presult::~ThriftHiveMetastore_get_unique_constraints_presult() throw() { } -uint32_t ThriftHiveMetastore_get_primary_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_unique_constraints_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23436,11 +24392,11 @@ uint32_t ThriftHiveMetastore_get_primary_keys_presult::read(::apache::thrift::pr } -ThriftHiveMetastore_get_foreign_keys_args::~ThriftHiveMetastore_get_foreign_keys_args() throw() { +ThriftHiveMetastore_get_not_null_constraints_args::~ThriftHiveMetastore_get_not_null_constraints_args() throw() { } -uint32_t ThriftHiveMetastore_get_foreign_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_not_null_constraints_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23481,10 +24437,10 @@ uint32_t ThriftHiveMetastore_get_foreign_keys_args::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_get_foreign_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_not_null_constraints_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_not_null_constraints_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -23496,14 +24452,14 @@ uint32_t ThriftHiveMetastore_get_foreign_keys_args::write(::apache::thrift::prot } -ThriftHiveMetastore_get_foreign_keys_pargs::~ThriftHiveMetastore_get_foreign_keys_pargs() throw() { +ThriftHiveMetastore_get_not_null_constraints_pargs::~ThriftHiveMetastore_get_not_null_constraints_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_foreign_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_not_null_constraints_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_not_null_constraints_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -23515,11 +24471,11 @@ uint32_t ThriftHiveMetastore_get_foreign_keys_pargs::write(::apache::thrift::pro } -ThriftHiveMetastore_get_foreign_keys_result::~ThriftHiveMetastore_get_foreign_keys_result() throw() { +ThriftHiveMetastore_get_not_null_constraints_result::~ThriftHiveMetastore_get_not_null_constraints_result() throw() { } -uint32_t ThriftHiveMetastore_get_foreign_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_not_null_constraints_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23576,11 +24532,11 @@ uint32_t ThriftHiveMetastore_get_foreign_keys_result::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_get_foreign_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_not_null_constraints_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_not_null_constraints_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -23601,11 +24557,11 @@ uint32_t ThriftHiveMetastore_get_foreign_keys_result::write(::apache::thrift::pr } -ThriftHiveMetastore_get_foreign_keys_presult::~ThriftHiveMetastore_get_foreign_keys_presult() throw() { +ThriftHiveMetastore_get_not_null_constraints_presult::~ThriftHiveMetastore_get_not_null_constraints_presult() throw() { } -uint32_t ThriftHiveMetastore_get_foreign_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_not_null_constraints_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27206,14 +28162,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1339; - ::apache::thrift::protocol::TType _etype1342; - xfer += iprot->readListBegin(_etype1342, _size1339); - this->success.resize(_size1339); - uint32_t _i1343; - for (_i1343 = 0; _i1343 < _size1339; ++_i1343) + uint32_t _size1393; + ::apache::thrift::protocol::TType _etype1396; + xfer += iprot->readListBegin(_etype1396, _size1393); + this->success.resize(_size1393); + uint32_t _i1397; + for (_i1397 = 0; _i1397 < _size1393; ++_i1397) { - xfer += iprot->readString(this->success[_i1343]); + xfer += iprot->readString(this->success[_i1397]); } xfer += iprot->readListEnd(); } @@ -27252,10 +28208,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1344; - for (_iter1344 = this->success.begin(); _iter1344 != this->success.end(); ++_iter1344) + std::vector ::const_iterator _iter1398; + for (_iter1398 = this->success.begin(); _iter1398 != this->success.end(); ++_iter1398) { - xfer += oprot->writeString((*_iter1344)); + xfer += oprot->writeString((*_iter1398)); } xfer += oprot->writeListEnd(); } @@ -27300,14 +28256,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1345; - ::apache::thrift::protocol::TType _etype1348; - xfer += iprot->readListBegin(_etype1348, _size1345); - (*(this->success)).resize(_size1345); - uint32_t _i1349; - for (_i1349 = 0; _i1349 < _size1345; ++_i1349) + uint32_t _size1399; + ::apache::thrift::protocol::TType _etype1402; + xfer += iprot->readListBegin(_etype1402, _size1399); + (*(this->success)).resize(_size1399); + uint32_t _i1403; + for (_i1403 = 0; _i1403 < _size1399; ++_i1403) { - xfer += iprot->readString((*(this->success))[_i1349]); + xfer += iprot->readString((*(this->success))[_i1403]); } xfer += iprot->readListEnd(); } @@ -28267,14 +29223,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1350; - ::apache::thrift::protocol::TType _etype1353; - xfer += iprot->readListBegin(_etype1353, _size1350); - this->success.resize(_size1350); - uint32_t _i1354; - for (_i1354 = 0; _i1354 < _size1350; ++_i1354) + uint32_t _size1404; + ::apache::thrift::protocol::TType _etype1407; + xfer += iprot->readListBegin(_etype1407, _size1404); + this->success.resize(_size1404); + uint32_t _i1408; + for (_i1408 = 0; _i1408 < _size1404; ++_i1408) { - xfer += iprot->readString(this->success[_i1354]); + xfer += iprot->readString(this->success[_i1408]); } xfer += iprot->readListEnd(); } @@ -28313,10 +29269,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1355; - for (_iter1355 = this->success.begin(); _iter1355 != this->success.end(); ++_iter1355) + std::vector ::const_iterator _iter1409; + for (_iter1409 = this->success.begin(); _iter1409 != this->success.end(); ++_iter1409) { - xfer += oprot->writeString((*_iter1355)); + xfer += oprot->writeString((*_iter1409)); } xfer += oprot->writeListEnd(); } @@ -28361,14 +29317,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1356; - ::apache::thrift::protocol::TType _etype1359; - xfer += iprot->readListBegin(_etype1359, _size1356); - (*(this->success)).resize(_size1356); - uint32_t _i1360; - for (_i1360 = 0; _i1360 < _size1356; ++_i1360) + uint32_t _size1410; + ::apache::thrift::protocol::TType _etype1413; + xfer += iprot->readListBegin(_etype1413, _size1410); + (*(this->success)).resize(_size1410); + uint32_t _i1414; + for (_i1414 = 0; _i1414 < _size1410; ++_i1414) { - xfer += iprot->readString((*(this->success))[_i1360]); + xfer += iprot->readString((*(this->success))[_i1414]); } xfer += iprot->readListEnd(); } @@ -28441,9 +29397,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1361; - xfer += iprot->readI32(ecast1361); - this->principal_type = (PrincipalType::type)ecast1361; + int32_t ecast1415; + xfer += iprot->readI32(ecast1415); + this->principal_type = (PrincipalType::type)ecast1415; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28459,9 +29415,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1362; - xfer += iprot->readI32(ecast1362); - this->grantorType = (PrincipalType::type)ecast1362; + int32_t ecast1416; + xfer += iprot->readI32(ecast1416); + this->grantorType = (PrincipalType::type)ecast1416; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -28732,9 +29688,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1363; - xfer += iprot->readI32(ecast1363); - this->principal_type = (PrincipalType::type)ecast1363; + int32_t ecast1417; + xfer += iprot->readI32(ecast1417); + this->principal_type = (PrincipalType::type)ecast1417; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28965,9 +29921,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1364; - xfer += iprot->readI32(ecast1364); - this->principal_type = (PrincipalType::type)ecast1364; + int32_t ecast1418; + xfer += iprot->readI32(ecast1418); + this->principal_type = (PrincipalType::type)ecast1418; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29056,14 +30012,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1365; - ::apache::thrift::protocol::TType _etype1368; - xfer += iprot->readListBegin(_etype1368, _size1365); - this->success.resize(_size1365); - uint32_t _i1369; - for (_i1369 = 0; _i1369 < _size1365; ++_i1369) + uint32_t _size1419; + ::apache::thrift::protocol::TType _etype1422; + xfer += iprot->readListBegin(_etype1422, _size1419); + this->success.resize(_size1419); + uint32_t _i1423; + for (_i1423 = 0; _i1423 < _size1419; ++_i1423) { - xfer += this->success[_i1369].read(iprot); + xfer += this->success[_i1423].read(iprot); } xfer += iprot->readListEnd(); } @@ -29102,10 +30058,10 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1370; - for (_iter1370 = this->success.begin(); _iter1370 != this->success.end(); ++_iter1370) + std::vector ::const_iterator _iter1424; + for (_iter1424 = this->success.begin(); _iter1424 != this->success.end(); ++_iter1424) { - xfer += (*_iter1370).write(oprot); + xfer += (*_iter1424).write(oprot); } xfer += oprot->writeListEnd(); } @@ -29150,14 +30106,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1371; - ::apache::thrift::protocol::TType _etype1374; - xfer += iprot->readListBegin(_etype1374, _size1371); - (*(this->success)).resize(_size1371); - uint32_t _i1375; - for (_i1375 = 0; _i1375 < _size1371; ++_i1375) + uint32_t _size1425; + ::apache::thrift::protocol::TType _etype1428; + xfer += iprot->readListBegin(_etype1428, _size1425); + (*(this->success)).resize(_size1425); + uint32_t _i1429; + for (_i1429 = 0; _i1429 < _size1425; ++_i1429) { - xfer += (*(this->success))[_i1375].read(iprot); + xfer += (*(this->success))[_i1429].read(iprot); } xfer += iprot->readListEnd(); } @@ -29853,14 +30809,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1376; - ::apache::thrift::protocol::TType _etype1379; - xfer += iprot->readListBegin(_etype1379, _size1376); - this->group_names.resize(_size1376); - uint32_t _i1380; - for (_i1380 = 0; _i1380 < _size1376; ++_i1380) + uint32_t _size1430; + ::apache::thrift::protocol::TType _etype1433; + xfer += iprot->readListBegin(_etype1433, _size1430); + this->group_names.resize(_size1430); + uint32_t _i1434; + for (_i1434 = 0; _i1434 < _size1430; ++_i1434) { - xfer += iprot->readString(this->group_names[_i1380]); + xfer += iprot->readString(this->group_names[_i1434]); } xfer += iprot->readListEnd(); } @@ -29897,10 +30853,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1381; - for (_iter1381 = this->group_names.begin(); _iter1381 != this->group_names.end(); ++_iter1381) + std::vector ::const_iterator _iter1435; + for (_iter1435 = this->group_names.begin(); _iter1435 != this->group_names.end(); ++_iter1435) { - xfer += oprot->writeString((*_iter1381)); + xfer += oprot->writeString((*_iter1435)); } xfer += oprot->writeListEnd(); } @@ -29932,10 +30888,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1382; - for (_iter1382 = (*(this->group_names)).begin(); _iter1382 != (*(this->group_names)).end(); ++_iter1382) + std::vector ::const_iterator _iter1436; + for (_iter1436 = (*(this->group_names)).begin(); _iter1436 != (*(this->group_names)).end(); ++_iter1436) { - xfer += oprot->writeString((*_iter1382)); + xfer += oprot->writeString((*_iter1436)); } xfer += oprot->writeListEnd(); } @@ -30110,9 +31066,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1383; - xfer += iprot->readI32(ecast1383); - this->principal_type = (PrincipalType::type)ecast1383; + int32_t ecast1437; + xfer += iprot->readI32(ecast1437); + this->principal_type = (PrincipalType::type)ecast1437; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30217,14 +31173,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1384; - ::apache::thrift::protocol::TType _etype1387; - xfer += iprot->readListBegin(_etype1387, _size1384); - this->success.resize(_size1384); - uint32_t _i1388; - for (_i1388 = 0; _i1388 < _size1384; ++_i1388) + uint32_t _size1438; + ::apache::thrift::protocol::TType _etype1441; + xfer += iprot->readListBegin(_etype1441, _size1438); + this->success.resize(_size1438); + uint32_t _i1442; + for (_i1442 = 0; _i1442 < _size1438; ++_i1442) { - xfer += this->success[_i1388].read(iprot); + xfer += this->success[_i1442].read(iprot); } xfer += iprot->readListEnd(); } @@ -30263,10 +31219,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1389; - for (_iter1389 = this->success.begin(); _iter1389 != this->success.end(); ++_iter1389) + std::vector ::const_iterator _iter1443; + for (_iter1443 = this->success.begin(); _iter1443 != this->success.end(); ++_iter1443) { - xfer += (*_iter1389).write(oprot); + xfer += (*_iter1443).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30311,14 +31267,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1390; - ::apache::thrift::protocol::TType _etype1393; - xfer += iprot->readListBegin(_etype1393, _size1390); - (*(this->success)).resize(_size1390); - uint32_t _i1394; - for (_i1394 = 0; _i1394 < _size1390; ++_i1394) + uint32_t _size1444; + ::apache::thrift::protocol::TType _etype1447; + xfer += iprot->readListBegin(_etype1447, _size1444); + (*(this->success)).resize(_size1444); + uint32_t _i1448; + for (_i1448 = 0; _i1448 < _size1444; ++_i1448) { - xfer += (*(this->success))[_i1394].read(iprot); + xfer += (*(this->success))[_i1448].read(iprot); } xfer += iprot->readListEnd(); } @@ -31006,14 +31962,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1395; - ::apache::thrift::protocol::TType _etype1398; - xfer += iprot->readListBegin(_etype1398, _size1395); - this->group_names.resize(_size1395); - uint32_t _i1399; - for (_i1399 = 0; _i1399 < _size1395; ++_i1399) + uint32_t _size1449; + ::apache::thrift::protocol::TType _etype1452; + xfer += iprot->readListBegin(_etype1452, _size1449); + this->group_names.resize(_size1449); + uint32_t _i1453; + for (_i1453 = 0; _i1453 < _size1449; ++_i1453) { - xfer += iprot->readString(this->group_names[_i1399]); + xfer += iprot->readString(this->group_names[_i1453]); } xfer += iprot->readListEnd(); } @@ -31046,10 +32002,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1400; - for (_iter1400 = this->group_names.begin(); _iter1400 != this->group_names.end(); ++_iter1400) + std::vector ::const_iterator _iter1454; + for (_iter1454 = this->group_names.begin(); _iter1454 != this->group_names.end(); ++_iter1454) { - xfer += oprot->writeString((*_iter1400)); + xfer += oprot->writeString((*_iter1454)); } xfer += oprot->writeListEnd(); } @@ -31077,10 +32033,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1401; - for (_iter1401 = (*(this->group_names)).begin(); _iter1401 != (*(this->group_names)).end(); ++_iter1401) + std::vector ::const_iterator _iter1455; + for (_iter1455 = (*(this->group_names)).begin(); _iter1455 != (*(this->group_names)).end(); ++_iter1455) { - xfer += oprot->writeString((*_iter1401)); + xfer += oprot->writeString((*_iter1455)); } xfer += oprot->writeListEnd(); } @@ -31121,14 +32077,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1402; - ::apache::thrift::protocol::TType _etype1405; - xfer += iprot->readListBegin(_etype1405, _size1402); - this->success.resize(_size1402); - uint32_t _i1406; - for (_i1406 = 0; _i1406 < _size1402; ++_i1406) + uint32_t _size1456; + ::apache::thrift::protocol::TType _etype1459; + xfer += iprot->readListBegin(_etype1459, _size1456); + this->success.resize(_size1456); + uint32_t _i1460; + for (_i1460 = 0; _i1460 < _size1456; ++_i1460) { - xfer += iprot->readString(this->success[_i1406]); + xfer += iprot->readString(this->success[_i1460]); } xfer += iprot->readListEnd(); } @@ -31167,10 +32123,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1407; - for (_iter1407 = this->success.begin(); _iter1407 != this->success.end(); ++_iter1407) + std::vector ::const_iterator _iter1461; + for (_iter1461 = this->success.begin(); _iter1461 != this->success.end(); ++_iter1461) { - xfer += oprot->writeString((*_iter1407)); + xfer += oprot->writeString((*_iter1461)); } xfer += oprot->writeListEnd(); } @@ -31215,14 +32171,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1408; - ::apache::thrift::protocol::TType _etype1411; - xfer += iprot->readListBegin(_etype1411, _size1408); - (*(this->success)).resize(_size1408); - uint32_t _i1412; - for (_i1412 = 0; _i1412 < _size1408; ++_i1412) + uint32_t _size1462; + ::apache::thrift::protocol::TType _etype1465; + xfer += iprot->readListBegin(_etype1465, _size1462); + (*(this->success)).resize(_size1462); + uint32_t _i1466; + for (_i1466 = 0; _i1466 < _size1462; ++_i1466) { - xfer += iprot->readString((*(this->success))[_i1412]); + xfer += iprot->readString((*(this->success))[_i1466]); } xfer += iprot->readListEnd(); } @@ -32533,14 +33489,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1413; - ::apache::thrift::protocol::TType _etype1416; - xfer += iprot->readListBegin(_etype1416, _size1413); - this->success.resize(_size1413); - uint32_t _i1417; - for (_i1417 = 0; _i1417 < _size1413; ++_i1417) + uint32_t _size1467; + ::apache::thrift::protocol::TType _etype1470; + xfer += iprot->readListBegin(_etype1470, _size1467); + this->success.resize(_size1467); + uint32_t _i1471; + for (_i1471 = 0; _i1471 < _size1467; ++_i1471) { - xfer += iprot->readString(this->success[_i1417]); + xfer += iprot->readString(this->success[_i1471]); } xfer += iprot->readListEnd(); } @@ -32571,10 +33527,10 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1418; - for (_iter1418 = this->success.begin(); _iter1418 != this->success.end(); ++_iter1418) + std::vector ::const_iterator _iter1472; + for (_iter1472 = this->success.begin(); _iter1472 != this->success.end(); ++_iter1472) { - xfer += oprot->writeString((*_iter1418)); + xfer += oprot->writeString((*_iter1472)); } xfer += oprot->writeListEnd(); } @@ -32615,14 +33571,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1419; - ::apache::thrift::protocol::TType _etype1422; - xfer += iprot->readListBegin(_etype1422, _size1419); - (*(this->success)).resize(_size1419); - uint32_t _i1423; - for (_i1423 = 0; _i1423 < _size1419; ++_i1423) + uint32_t _size1473; + ::apache::thrift::protocol::TType _etype1476; + xfer += iprot->readListBegin(_etype1476, _size1473); + (*(this->success)).resize(_size1473); + uint32_t _i1477; + for (_i1477 = 0; _i1477 < _size1473; ++_i1477) { - xfer += iprot->readString((*(this->success))[_i1423]); + xfer += iprot->readString((*(this->success))[_i1477]); } xfer += iprot->readListEnd(); } @@ -33348,14 +34304,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1424; - ::apache::thrift::protocol::TType _etype1427; - xfer += iprot->readListBegin(_etype1427, _size1424); - this->success.resize(_size1424); - uint32_t _i1428; - for (_i1428 = 0; _i1428 < _size1424; ++_i1428) + uint32_t _size1478; + ::apache::thrift::protocol::TType _etype1481; + xfer += iprot->readListBegin(_etype1481, _size1478); + this->success.resize(_size1478); + uint32_t _i1482; + for (_i1482 = 0; _i1482 < _size1478; ++_i1482) { - xfer += iprot->readString(this->success[_i1428]); + xfer += iprot->readString(this->success[_i1482]); } xfer += iprot->readListEnd(); } @@ -33386,10 +34342,10 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1429; - for (_iter1429 = this->success.begin(); _iter1429 != this->success.end(); ++_iter1429) + std::vector ::const_iterator _iter1483; + for (_iter1483 = this->success.begin(); _iter1483 != this->success.end(); ++_iter1483) { - xfer += oprot->writeString((*_iter1429)); + xfer += oprot->writeString((*_iter1483)); } xfer += oprot->writeListEnd(); } @@ -33430,14 +34386,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1430; - ::apache::thrift::protocol::TType _etype1433; - xfer += iprot->readListBegin(_etype1433, _size1430); - (*(this->success)).resize(_size1430); - uint32_t _i1434; - for (_i1434 = 0; _i1434 < _size1430; ++_i1434) + uint32_t _size1484; + ::apache::thrift::protocol::TType _etype1487; + xfer += iprot->readListBegin(_etype1487, _size1484); + (*(this->success)).resize(_size1484); + uint32_t _i1488; + for (_i1488 = 0; _i1488 < _size1484; ++_i1488) { - xfer += iprot->readString((*(this->success))[_i1434]); + xfer += iprot->readString((*(this->success))[_i1488]); } xfer += iprot->readListEnd(); } @@ -39337,13 +40293,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) +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) { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); recv_create_table_with_constraints(); } -void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) +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) { int32_t cseqid = 0; oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); @@ -39352,6 +40308,8 @@ void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& args.tbl = &tbl; args.primaryKeys = &primaryKeys; args.foreignKeys = &foreignKeys; + args.uniqueConstraints = &uniqueConstraints; + args.notNullConstraints = ¬NullConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -39581,6 +40539,124 @@ void ThriftHiveMetastoreClient::recv_add_foreign_key() return; } +void ThriftHiveMetastoreClient::add_unique_constraint(const AddUniqueConstraintRequest& req) +{ + send_add_unique_constraint(req); + recv_add_unique_constraint(); +} + +void ThriftHiveMetastoreClient::send_add_unique_constraint(const AddUniqueConstraintRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_unique_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_unique_constraint_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_unique_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_unique_constraint") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_unique_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::add_not_null_constraint(const AddNotNullConstraintRequest& req) +{ + send_add_not_null_constraint(req); + recv_add_not_null_constraint(); +} + +void ThriftHiveMetastoreClient::send_add_not_null_constraint(const AddNotNullConstraintRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_not_null_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_not_null_constraint_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_not_null_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_not_null_constraint") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_not_null_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); @@ -43839,6 +44915,134 @@ void ThriftHiveMetastoreClient::recv_get_foreign_keys(ForeignKeysResponse& _retu throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_foreign_keys failed: unknown result"); } +void ThriftHiveMetastoreClient::get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request) +{ + send_get_unique_constraints(request); + recv_get_unique_constraints(_return); +} + +void ThriftHiveMetastoreClient::send_get_unique_constraints(const UniqueConstraintsRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_unique_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_unique_constraints_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_unique_constraints(UniqueConstraintsResponse& _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_unique_constraints") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_unique_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_unique_constraints failed: unknown result"); +} + +void ThriftHiveMetastoreClient::get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) +{ + send_get_not_null_constraints(request); + recv_get_not_null_constraints(_return); +} + +void ThriftHiveMetastoreClient::send_get_not_null_constraints(const NotNullConstraintsRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_not_null_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_not_null_constraints_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_not_null_constraints(NotNullConstraintsResponse& _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_not_null_constraints") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_not_null_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_not_null_constraints failed: unknown result"); +} + bool ThriftHiveMetastoreClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { send_update_table_column_statistics(stats_obj); @@ -49057,7 +50261,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); + iface_->create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints); } catch (AlreadyExistsException &o1) { result.o1 = o1; result.__isset.o1 = true; @@ -49276,6 +50480,124 @@ void ThriftHiveMetastoreProcessor::process_add_foreign_key(int32_t seqid, ::apac } } +void ThriftHiveMetastoreProcessor::process_add_unique_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_unique_constraint", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_unique_constraint"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_unique_constraint"); + } + + ThriftHiveMetastore_add_unique_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_unique_constraint", bytes); + } + + ThriftHiveMetastore_add_unique_constraint_result result; + try { + iface_->add_unique_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_unique_constraint"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_unique_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_unique_constraint"); + } + + oprot->writeMessageBegin("add_unique_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_unique_constraint", bytes); + } +} + +void ThriftHiveMetastoreProcessor::process_add_not_null_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_not_null_constraint", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_not_null_constraint"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_not_null_constraint"); + } + + ThriftHiveMetastore_add_not_null_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_not_null_constraint", bytes); + } + + ThriftHiveMetastore_add_not_null_constraint_result result; + try { + iface_->add_not_null_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_not_null_constraint"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_not_null_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_not_null_constraint"); + } + + oprot->writeMessageBegin("add_not_null_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_not_null_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; @@ -53196,6 +54518,126 @@ void ThriftHiveMetastoreProcessor::process_get_foreign_keys(int32_t seqid, ::apa } } +void ThriftHiveMetastoreProcessor::process_get_unique_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_unique_constraints", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_unique_constraints"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_unique_constraints"); + } + + ThriftHiveMetastore_get_unique_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_unique_constraints", bytes); + } + + ThriftHiveMetastore_get_unique_constraints_result result; + try { + iface_->get_unique_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_unique_constraints"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_unique_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_unique_constraints"); + } + + oprot->writeMessageBegin("get_unique_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_unique_constraints", bytes); + } +} + +void ThriftHiveMetastoreProcessor::process_get_not_null_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_not_null_constraints", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_not_null_constraints"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_not_null_constraints"); + } + + ThriftHiveMetastore_get_not_null_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_not_null_constraints", bytes); + } + + ThriftHiveMetastore_get_not_null_constraints_result result; + try { + iface_->get_not_null_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_not_null_constraints"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_not_null_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_not_null_constraints"); + } + + oprot->writeMessageBegin("get_not_null_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_not_null_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; @@ -57555,7 +58997,183 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_databases") != 0) { + if (fname.compare("get_databases") != 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_databases_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases 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_all_databases(std::vector & _return) +{ + int32_t seqid = send_get_all_databases(); + recv_get_all_databases(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_all_databases_pargs args; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_all_databases") != 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_all_databases_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases 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::alter_database(const std::string& dbname, const Database& db) +{ + int32_t seqid = send_alter_database(dbname, db); + recv_alter_database(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::string& dbname, const Database& db) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_alter_database_pargs args; + args.dbname = &dbname; + args.db = &db; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("alter_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -57564,23 +59182,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result"); + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -57590,19 +59206,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return) +void ThriftHiveMetastoreConcurrentClient::get_type(Type& _return, const std::string& name) { - int32_t seqid = send_get_all_databases(); - recv_get_all_databases(_return, seqid); + int32_t seqid = send_get_type(name); + recv_get_type(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() +int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_all_databases_pargs args; + ThriftHiveMetastore_get_type_pargs args; + args.name = &name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -57613,7 +59230,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -57642,7 +59259,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_all_databases") != 0) { + if (fname.compare("get_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -57651,7 +59268,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); @@ -57666,8 +59283,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -57677,21 +59298,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorsync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_alter_database_pargs args; - args.dbname = &dbname; - args.db = &db; + ThriftHiveMetastore_create_type_pargs args; + args.type = &type; args.write(oprot_); oprot_->writeMessageEnd(); @@ -57702,7 +59322,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::stri return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) { int32_t rseqid = 0; @@ -57731,7 +59351,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("alter_database") != 0) { + if (fname.compare("create_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -57740,11 +59360,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_alter_database_presult result; + bool _return; + ThriftHiveMetastore_create_type_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + sentry.commit(); + return _return; + } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -57753,8 +59379,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi sentry.commit(); throw result.o2; } - sentry.commit(); - return; + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -57764,20 +59394,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type(Type& _return, const std::string& name) +bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) { - int32_t seqid = send_get_type(name); - recv_get_type(_return, seqid); + int32_t seqid = send_drop_type(type); + return recv_drop_type(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_pargs args; - args.name = &name; + ThriftHiveMetastore_drop_type_pargs args; + args.type = &type; args.write(oprot_); oprot_->writeMessageEnd(); @@ -57788,7 +59418,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& na return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) { int32_t rseqid = 0; @@ -57817,7 +59447,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type") != 0) { + if (fname.compare("drop_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -57826,16 +59456,16 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_type_presult result; + bool _return; + ThriftHiveMetastore_drop_type_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - // _return pointer has now been filled sentry.commit(); - return; + return _return; } if (result.__isset.o1) { sentry.commit(); @@ -57846,7 +59476,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -57856,20 +59486,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::create_type(const Type& type) +void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) { - int32_t seqid = send_create_type(type); - return recv_create_type(seqid); + int32_t seqid = send_get_type_all(name); + recv_get_type_all(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_type_pargs args; - args.type = &type; + ThriftHiveMetastore_get_type_all_pargs args; + args.name = &name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -57880,7 +59510,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -57909,7 +59539,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_type") != 0) { + if (fname.compare("get_type_all") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -57918,31 +59548,23 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_create_type_presult result; + ThriftHiveMetastore_get_type_all_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; + return; } if (result.__isset.o2) { sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -57952,20 +59574,21 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) +void ThriftHiveMetastoreConcurrentClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) { - int32_t seqid = send_drop_type(type); - return recv_drop_type(seqid); + int32_t seqid = send_get_fields(db_name, table_name); + recv_get_fields(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) +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("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_type_pargs args; - args.type = &type; + ThriftHiveMetastore_get_fields_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -57976,7 +59599,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& t return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -58005,7 +59628,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_type") != 0) { + if (fname.compare("get_fields") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58014,16 +59637,16 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_drop_type_presult result; + ThriftHiveMetastore_get_fields_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; + return; } if (result.__isset.o1) { sentry.commit(); @@ -58033,8 +59656,12 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) sentry.commit(); throw result.o2; } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -58044,20 +59671,22 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) +void ThriftHiveMetastoreConcurrentClient::get_fields_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_type_all(name); - recv_get_type_all(_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_type_all(const std::string& 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_type_all", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_all_pargs args; - args.name = &name; + 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(); @@ -58068,7 +59697,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -58097,7 +59726,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type_all") != 0) { + if (fname.compare("get_fields_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58106,7 +59735,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); @@ -58117,12 +59746,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapsync_.updatePending(fname, mtype, rseqid); @@ -58132,19 +59769,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const std::string& db_name, const std::string& table_name) +void ThriftHiveMetastoreConcurrentClient::get_schema(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 seqid = send_get_schema(db_name, table_name); + recv_get_schema(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) +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", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_pargs args; + ThriftHiveMetastore_get_schema_pargs args; args.db_name = &db_name; args.table_name = &table_name; args.write(oprot_); @@ -58157,7 +59794,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_schema(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -58186,7 +59823,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_fields") != 0) { + if (fname.compare("get_schema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58195,7 +59832,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); @@ -58219,7 +59856,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -58229,19 +59866,19 @@ 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_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_with_environment_context(db_name, table_name, environment_context); - recv_get_fields_with_environment_context(_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_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +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_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_with_environment_context_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; @@ -58255,7 +59892,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_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -58284,7 +59921,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_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58293,7 +59930,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_with_environment_context_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -58317,7 +59954,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_with_environment_context failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -58327,21 +59964,20 @@ 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::create_table(const Table& tbl) { - int32_t seqid = send_get_schema(db_name, table_name); - recv_get_schema(_return, seqid); + int32_t seqid = send_create_table(tbl); + recv_create_table(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) +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", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; + ThriftHiveMetastore_create_table_pargs args; + args.tbl = &tbl; args.write(oprot_); oprot_->writeMessageEnd(); @@ -58352,7 +59988,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_create_table(const int32_t seqid) { int32_t rseqid = 0; @@ -58381,7 +60017,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_schema") != 0) { + if (fname.compare("create_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58390,17 +60026,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -58413,8 +60043,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -58424,21 +60058,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_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) { - 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_with_environment_context(tbl, environment_context); + recv_create_table_with_environment_context(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_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("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_with_environment_context_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; + ThriftHiveMetastore_create_table_with_environment_context_pargs args; + args.tbl = &tbl; args.environment_context = &environment_context; args.write(oprot_); @@ -58450,7 +60083,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_with_environment_context(const int32_t seqid) { int32_t rseqid = 0; @@ -58479,7 +60112,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_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58488,17 +60121,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_with_environment_context_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; @@ -58511,8 +60138,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); @@ -58522,20 +60153,24 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) +void ThriftHiveMetastoreConcurrentClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { - int32_t seqid = send_create_table(tbl); - recv_create_table(seqid); + int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + recv_create_table_with_constraints(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_pargs args; + ThriftHiveMetastore_create_table_with_constraints_pargs args; args.tbl = &tbl; + args.primaryKeys = &primaryKeys; + args.foreignKeys = &foreignKeys; + args.uniqueConstraints = &uniqueConstraints; + args.notNullConstraints = ¬NullConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -58546,7 +60181,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) { int32_t rseqid = 0; @@ -58575,7 +60210,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table") != 0) { + if (fname.compare("create_table_with_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58584,7 +60219,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_presult result; + ThriftHiveMetastore_create_table_with_constraints_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58616,21 +60251,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) { - int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); - recv_create_table_with_environment_context(seqid); + int32_t seqid = send_drop_constraint(req); + recv_drop_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_environment_context_pargs args; - args.tbl = &tbl; - args.environment_context = &environment_context; + ThriftHiveMetastore_drop_constraint_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -58641,7 +60275,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_context(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -58670,7 +60304,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table_with_environment_context") != 0) { + if (fname.compare("drop_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58679,7 +60313,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_with_environment_context_presult result; + ThriftHiveMetastore_drop_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58688,18 +60322,10 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } if (result.__isset.o3) { sentry.commit(); throw result.o3; } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } sentry.commit(); return; } @@ -58711,22 +60337,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) +void ThriftHiveMetastoreConcurrentClient::add_primary_key(const AddPrimaryKeyRequest& req) { - int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys); - recv_create_table_with_constraints(seqid); + int32_t seqid = send_add_primary_key(req); + recv_add_primary_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrimaryKeyRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_constraints_pargs args; - args.tbl = &tbl; - args.primaryKeys = &primaryKeys; - args.foreignKeys = &foreignKeys; + ThriftHiveMetastore_add_primary_key_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -58737,7 +60361,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints( return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seqid) { int32_t rseqid = 0; @@ -58766,7 +60390,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(); @@ -58775,7 +60399,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(); @@ -58788,14 +60412,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; } @@ -58807,19 +60423,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_foreign_key(const AddForeignKeyRequest& req) { - int32_t seqid = send_drop_constraint(req); - recv_drop_constraint(seqid); + int32_t seqid = send_add_foreign_key(req); + recv_add_foreign_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& 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("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_constraint_pargs args; + ThriftHiveMetastore_add_foreign_key_pargs args; args.req = &req; args.write(oprot_); @@ -58831,7 +60447,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropCons return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seqid) { int32_t rseqid = 0; @@ -58860,7 +60476,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_constraint") != 0) { + if (fname.compare("add_foreign_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58869,7 +60485,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_drop_constraint_presult result; + ThriftHiveMetastore_add_foreign_key_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58878,9 +60494,9 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq sentry.commit(); throw result.o1; } - if (result.__isset.o3) { + if (result.__isset.o2) { sentry.commit(); - throw result.o3; + throw result.o2; } sentry.commit(); return; @@ -58893,19 +60509,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_primary_key(const AddPrimaryKeyRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_unique_constraint(const AddUniqueConstraintRequest& req) { - int32_t seqid = send_add_primary_key(req); - recv_add_primary_key(seqid); + int32_t seqid = send_add_unique_constraint(req); + recv_add_unique_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrimaryKeyRequest& 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_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_unique_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_primary_key_pargs args; + ThriftHiveMetastore_add_unique_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -58917,7 +60533,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_unique_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -58946,7 +60562,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_unique_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58955,7 +60571,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_unique_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -58979,19 +60595,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_not_null_constraint(const AddNotNullConstraintRequest& req) { - int32_t seqid = send_add_foreign_key(req); - recv_add_foreign_key(seqid); + int32_t seqid = send_add_not_null_constraint(req); + recv_add_not_null_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_foreign_key(const AddForeignKeyRequest& 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_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_not_null_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_foreign_key_pargs args; + ThriftHiveMetastore_add_not_null_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -59003,7 +60619,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_not_null_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -59032,7 +60648,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_not_null_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -59041,7 +60657,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_not_null_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64452,7 +66068,106 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_index(Index& _return, const i iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_index") != 0) { + if (fname.compare("add_index") != 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_add_index_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_index 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::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) +{ + int32_t seqid = send_alter_index(dbname, base_tbl_name, idx_name, new_idx); + recv_alter_index(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_alter_index_pargs args; + args.dbname = &dbname; + args.base_tbl_name = &base_tbl_name; + args.idx_name = &idx_name; + args.new_idx = &new_idx; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_alter_index(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("alter_index") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64461,17 +66176,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_index(Index& _return, const i using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_index_presult result; - result.success = &_return; + ThriftHiveMetastore_alter_index_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; @@ -64480,12 +66189,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_index(Index& _return, const i sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_index failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -64495,23 +66200,23 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_index(Index& _return, const i } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) +bool ThriftHiveMetastoreConcurrentClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) { - int32_t seqid = send_alter_index(dbname, base_tbl_name, idx_name, new_idx); - recv_alter_index(seqid); + int32_t seqid = send_drop_index_by_name(db_name, tbl_name, index_name, deleteData); + return recv_drop_index_by_name(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_alter_index_pargs args; - args.dbname = &dbname; - args.base_tbl_name = &base_tbl_name; - args.idx_name = &idx_name; - args.new_idx = &new_idx; + ThriftHiveMetastore_drop_index_by_name_pargs args; + args.db_name = &db_name; + args.tbl_name = &tbl_name; + args.index_name = &index_name; + args.deleteData = &deleteData; args.write(oprot_); oprot_->writeMessageEnd(); @@ -64522,7 +66227,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_alter_index(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_alter_index(const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t seqid) { int32_t rseqid = 0; @@ -64551,7 +66256,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_index(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("alter_index") != 0) { + if (fname.compare("drop_index_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64560,11 +66265,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_index(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_alter_index_presult result; + bool _return; + ThriftHiveMetastore_drop_index_by_name_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + sentry.commit(); + return _return; + } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -64573,8 +66284,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_index(const int32_t seqid) sentry.commit(); throw result.o2; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -64584,23 +66295,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_index(const int32_t seqid) } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) +void ThriftHiveMetastoreConcurrentClient::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) { - int32_t seqid = send_drop_index_by_name(db_name, tbl_name, index_name, deleteData); - return recv_drop_index_by_name(seqid); + int32_t seqid = send_get_index_by_name(db_name, tbl_name, index_name); + recv_get_index_by_name(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_index_by_name_pargs args; + ThriftHiveMetastore_get_index_by_name_pargs args; args.db_name = &db_name; args.tbl_name = &tbl_name; args.index_name = &index_name; - args.deleteData = &deleteData; args.write(oprot_); oprot_->writeMessageEnd(); @@ -64611,7 +66321,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_index_by_name(const std:: return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -64640,7 +66350,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_index_by_name") != 0) { + if (fname.compare("get_index_by_name") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64649,16 +66359,16 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_drop_index_by_name_presult result; + ThriftHiveMetastore_get_index_by_name_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; + return; } if (result.__isset.o1) { sentry.commit(); @@ -64669,7 +66379,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -64679,22 +66389,22 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(const int32_t } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) +void ThriftHiveMetastoreConcurrentClient::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { - int32_t seqid = send_get_index_by_name(db_name, tbl_name, index_name); - recv_get_index_by_name(_return, seqid); + int32_t seqid = send_get_indexes(db_name, tbl_name, max_indexes); + recv_get_indexes(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_index_by_name_pargs args; + ThriftHiveMetastore_get_indexes_pargs args; args.db_name = &db_name; args.tbl_name = &tbl_name; - args.index_name = &index_name; + args.max_indexes = &max_indexes; args.write(oprot_); oprot_->writeMessageEnd(); @@ -64705,7 +66415,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_by_name(const std::s return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -64734,7 +66444,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_index_by_name") != 0) { + if (fname.compare("get_indexes") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64743,7 +66453,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_index_by_name_presult result; + ThriftHiveMetastore_get_indexes_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -64763,7 +66473,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -64773,19 +66483,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) +void ThriftHiveMetastoreConcurrentClient::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { - int32_t seqid = send_get_indexes(db_name, tbl_name, max_indexes); - recv_get_indexes(_return, seqid); + int32_t seqid = send_get_index_names(db_name, tbl_name, max_indexes); + recv_get_index_names(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_indexes_pargs args; + ThriftHiveMetastore_get_index_names_pargs args; args.db_name = &db_name; args.tbl_name = &tbl_name; args.max_indexes = &max_indexes; @@ -64799,7 +66509,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_indexes(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -64828,7 +66538,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_indexes") != 0) { + if (fname.compare("get_index_names") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64837,7 +66547,95 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_indexes_presult result; + ThriftHiveMetastore_get_index_names_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_index_names 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_primary_keys(PrimaryKeysResponse& _return, const PrimaryKeysRequest& request) +{ + int32_t seqid = send_get_primary_keys(request); + recv_get_primary_keys(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_primary_keys(const PrimaryKeysRequest& request) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_primary_keys_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysResponse& _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_primary_keys") != 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_primary_keys_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -64857,7 +66655,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_primary_keys failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -64867,22 +66665,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) +void ThriftHiveMetastoreConcurrentClient::get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request) { - int32_t seqid = send_get_index_names(db_name, tbl_name, max_indexes); - recv_get_index_names(_return, seqid); + int32_t seqid = send_get_foreign_keys(request); + recv_get_foreign_keys(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_foreign_keys(const ForeignKeysRequest& request) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_index_names_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_indexes = &max_indexes; + ThriftHiveMetastore_get_foreign_keys_pargs args; + args.request = &request; args.write(oprot_); oprot_->writeMessageEnd(); @@ -64893,7 +66689,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_names(const std::str return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(ForeignKeysResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -64922,7 +66718,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_index_names") != 0) { + if (fname.compare("get_foreign_keys") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -64931,7 +66727,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vectorreadMessageEnd(); @@ -64942,12 +66738,16 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -64957,19 +66757,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vectorsync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_unique_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_primary_keys_pargs args; + ThriftHiveMetastore_get_unique_constraints_pargs args; args.request = &request; args.write(oprot_); @@ -64981,7 +66781,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_primary_keys(const Primary return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_unique_constraints(UniqueConstraintsResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -65010,7 +66810,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysRespo iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_primary_keys") != 0) { + if (fname.compare("get_unique_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -65019,7 +66819,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysRespo using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_primary_keys_presult result; + ThriftHiveMetastore_get_unique_constraints_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -65039,7 +66839,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysRespo throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_primary_keys failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_unique_constraints failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -65049,19 +66849,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(PrimaryKeysRespo } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request) +void ThriftHiveMetastoreConcurrentClient::get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) { - int32_t seqid = send_get_foreign_keys(request); - recv_get_foreign_keys(_return, seqid); + int32_t seqid = send_get_not_null_constraints(request); + recv_get_not_null_constraints(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_foreign_keys(const ForeignKeysRequest& request) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_not_null_constraints(const NotNullConstraintsRequest& request) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_not_null_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_foreign_keys_pargs args; + ThriftHiveMetastore_get_not_null_constraints_pargs args; args.request = &request; args.write(oprot_); @@ -65073,7 +66873,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_foreign_keys(const Foreign return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(ForeignKeysResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_not_null_constraints(NotNullConstraintsResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -65102,7 +66902,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(ForeignKeysRespo iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_foreign_keys") != 0) { + if (fname.compare("get_not_null_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -65111,7 +66911,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(ForeignKeysRespo using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_foreign_keys_presult result; + ThriftHiveMetastore_get_not_null_constraints_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -65131,7 +66931,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(ForeignKeysRespo throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_foreign_keys failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_not_null_constraints failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index ca71711..f13791e 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -40,10 +40,12 @@ 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) = 0; + virtual void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) = 0; virtual void 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 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; @@ -109,6 +111,8 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0; virtual void get_primary_keys(PrimaryKeysResponse& _return, const PrimaryKeysRequest& request) = 0; virtual void get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request) = 0; + virtual void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request) = 0; + virtual void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) = 0; virtual 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; @@ -261,7 +265,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 */) { + void create_table_with_constraints(const Table& /* tbl */, const std::vector & /* primaryKeys */, const std::vector & /* foreignKeys */, const std::vector & /* uniqueConstraints */, const std::vector & /* notNullConstraints */) { return; } void drop_constraint(const DropConstraintRequest& /* req */) { @@ -273,6 +277,12 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void add_foreign_key(const AddForeignKeyRequest& /* req */) { return; } + void add_unique_constraint(const AddUniqueConstraintRequest& /* req */) { + return; + } + void add_not_null_constraint(const AddNotNullConstraintRequest& /* req */) { + return; + } void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { return; } @@ -478,6 +488,12 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_foreign_keys(ForeignKeysResponse& /* _return */, const ForeignKeysRequest& /* request */) { return; } + void get_unique_constraints(UniqueConstraintsResponse& /* _return */, const UniqueConstraintsRequest& /* request */) { + return; + } + void get_not_null_constraints(NotNullConstraintsResponse& /* _return */, const NotNullConstraintsRequest& /* request */) { + return; + } bool update_table_column_statistics(const ColumnStatistics& /* stats_obj */) { bool _return = false; return _return; @@ -2923,10 +2939,12 @@ 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) {} + _ThriftHiveMetastore_create_table_with_constraints_args__isset() : tbl(false), primaryKeys(false), foreignKeys(false), uniqueConstraints(false), notNullConstraints(false) {} bool tbl :1; bool primaryKeys :1; bool foreignKeys :1; + bool uniqueConstraints :1; + bool notNullConstraints :1; } _ThriftHiveMetastore_create_table_with_constraints_args__isset; class ThriftHiveMetastore_create_table_with_constraints_args { @@ -2941,6 +2959,8 @@ class ThriftHiveMetastore_create_table_with_constraints_args { Table tbl; std::vector primaryKeys; std::vector foreignKeys; + std::vector uniqueConstraints; + std::vector notNullConstraints; _ThriftHiveMetastore_create_table_with_constraints_args__isset __isset; @@ -2950,6 +2970,10 @@ class ThriftHiveMetastore_create_table_with_constraints_args { void __set_foreignKeys(const std::vector & val); + void __set_uniqueConstraints(const std::vector & val); + + void __set_notNullConstraints(const std::vector & val); + bool operator == (const ThriftHiveMetastore_create_table_with_constraints_args & rhs) const { if (!(tbl == rhs.tbl)) @@ -2958,6 +2982,10 @@ class ThriftHiveMetastore_create_table_with_constraints_args { return false; if (!(foreignKeys == rhs.foreignKeys)) return false; + if (!(uniqueConstraints == rhs.uniqueConstraints)) + return false; + if (!(notNullConstraints == rhs.notNullConstraints)) + return false; return true; } bool operator != (const ThriftHiveMetastore_create_table_with_constraints_args &rhs) const { @@ -2980,6 +3008,8 @@ class ThriftHiveMetastore_create_table_with_constraints_pargs { const Table* tbl; const std::vector * primaryKeys; const std::vector * foreignKeys; + const std::vector * uniqueConstraints; + const std::vector * notNullConstraints; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3400,6 +3430,230 @@ class ThriftHiveMetastore_add_foreign_key_presult { }; +typedef struct _ThriftHiveMetastore_add_unique_constraint_args__isset { + _ThriftHiveMetastore_add_unique_constraint_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_unique_constraint_args__isset; + +class ThriftHiveMetastore_add_unique_constraint_args { + public: + + ThriftHiveMetastore_add_unique_constraint_args(const ThriftHiveMetastore_add_unique_constraint_args&); + ThriftHiveMetastore_add_unique_constraint_args& operator=(const ThriftHiveMetastore_add_unique_constraint_args&); + ThriftHiveMetastore_add_unique_constraint_args() { + } + + virtual ~ThriftHiveMetastore_add_unique_constraint_args() throw(); + AddUniqueConstraintRequest req; + + _ThriftHiveMetastore_add_unique_constraint_args__isset __isset; + + void __set_req(const AddUniqueConstraintRequest& val); + + bool operator == (const ThriftHiveMetastore_add_unique_constraint_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_unique_constraint_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_unique_constraint_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_unique_constraint_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_unique_constraint_pargs() throw(); + const AddUniqueConstraintRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_unique_constraint_result__isset { + _ThriftHiveMetastore_add_unique_constraint_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_unique_constraint_result__isset; + +class ThriftHiveMetastore_add_unique_constraint_result { + public: + + ThriftHiveMetastore_add_unique_constraint_result(const ThriftHiveMetastore_add_unique_constraint_result&); + ThriftHiveMetastore_add_unique_constraint_result& operator=(const ThriftHiveMetastore_add_unique_constraint_result&); + ThriftHiveMetastore_add_unique_constraint_result() { + } + + virtual ~ThriftHiveMetastore_add_unique_constraint_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_unique_constraint_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_unique_constraint_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_unique_constraint_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_unique_constraint_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_unique_constraint_presult__isset { + _ThriftHiveMetastore_add_unique_constraint_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_unique_constraint_presult__isset; + +class ThriftHiveMetastore_add_unique_constraint_presult { + public: + + + virtual ~ThriftHiveMetastore_add_unique_constraint_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_unique_constraint_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + +typedef struct _ThriftHiveMetastore_add_not_null_constraint_args__isset { + _ThriftHiveMetastore_add_not_null_constraint_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_not_null_constraint_args__isset; + +class ThriftHiveMetastore_add_not_null_constraint_args { + public: + + ThriftHiveMetastore_add_not_null_constraint_args(const ThriftHiveMetastore_add_not_null_constraint_args&); + ThriftHiveMetastore_add_not_null_constraint_args& operator=(const ThriftHiveMetastore_add_not_null_constraint_args&); + ThriftHiveMetastore_add_not_null_constraint_args() { + } + + virtual ~ThriftHiveMetastore_add_not_null_constraint_args() throw(); + AddNotNullConstraintRequest req; + + _ThriftHiveMetastore_add_not_null_constraint_args__isset __isset; + + void __set_req(const AddNotNullConstraintRequest& val); + + bool operator == (const ThriftHiveMetastore_add_not_null_constraint_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_not_null_constraint_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_not_null_constraint_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_not_null_constraint_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_not_null_constraint_pargs() throw(); + const AddNotNullConstraintRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_not_null_constraint_result__isset { + _ThriftHiveMetastore_add_not_null_constraint_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_not_null_constraint_result__isset; + +class ThriftHiveMetastore_add_not_null_constraint_result { + public: + + ThriftHiveMetastore_add_not_null_constraint_result(const ThriftHiveMetastore_add_not_null_constraint_result&); + ThriftHiveMetastore_add_not_null_constraint_result& operator=(const ThriftHiveMetastore_add_not_null_constraint_result&); + ThriftHiveMetastore_add_not_null_constraint_result() { + } + + virtual ~ThriftHiveMetastore_add_not_null_constraint_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_not_null_constraint_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_not_null_constraint_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_not_null_constraint_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_not_null_constraint_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_not_null_constraint_presult__isset { + _ThriftHiveMetastore_add_not_null_constraint_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_not_null_constraint_presult__isset; + +class ThriftHiveMetastore_add_not_null_constraint_presult { + public: + + + virtual ~ThriftHiveMetastore_add_not_null_constraint_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_not_null_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; @@ -12094,6 +12348,246 @@ class ThriftHiveMetastore_get_foreign_keys_presult { }; +typedef struct _ThriftHiveMetastore_get_unique_constraints_args__isset { + _ThriftHiveMetastore_get_unique_constraints_args__isset() : request(false) {} + bool request :1; +} _ThriftHiveMetastore_get_unique_constraints_args__isset; + +class ThriftHiveMetastore_get_unique_constraints_args { + public: + + ThriftHiveMetastore_get_unique_constraints_args(const ThriftHiveMetastore_get_unique_constraints_args&); + ThriftHiveMetastore_get_unique_constraints_args& operator=(const ThriftHiveMetastore_get_unique_constraints_args&); + ThriftHiveMetastore_get_unique_constraints_args() { + } + + virtual ~ThriftHiveMetastore_get_unique_constraints_args() throw(); + UniqueConstraintsRequest request; + + _ThriftHiveMetastore_get_unique_constraints_args__isset __isset; + + void __set_request(const UniqueConstraintsRequest& val); + + bool operator == (const ThriftHiveMetastore_get_unique_constraints_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_unique_constraints_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_unique_constraints_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_unique_constraints_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_unique_constraints_pargs() throw(); + const UniqueConstraintsRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_unique_constraints_result__isset { + _ThriftHiveMetastore_get_unique_constraints_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_unique_constraints_result__isset; + +class ThriftHiveMetastore_get_unique_constraints_result { + public: + + ThriftHiveMetastore_get_unique_constraints_result(const ThriftHiveMetastore_get_unique_constraints_result&); + ThriftHiveMetastore_get_unique_constraints_result& operator=(const ThriftHiveMetastore_get_unique_constraints_result&); + ThriftHiveMetastore_get_unique_constraints_result() { + } + + virtual ~ThriftHiveMetastore_get_unique_constraints_result() throw(); + UniqueConstraintsResponse success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_unique_constraints_result__isset __isset; + + void __set_success(const UniqueConstraintsResponse& val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_unique_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_unique_constraints_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_unique_constraints_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_unique_constraints_presult__isset { + _ThriftHiveMetastore_get_unique_constraints_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_unique_constraints_presult__isset; + +class ThriftHiveMetastore_get_unique_constraints_presult { + public: + + + virtual ~ThriftHiveMetastore_get_unique_constraints_presult() throw(); + UniqueConstraintsResponse* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_unique_constraints_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + +typedef struct _ThriftHiveMetastore_get_not_null_constraints_args__isset { + _ThriftHiveMetastore_get_not_null_constraints_args__isset() : request(false) {} + bool request :1; +} _ThriftHiveMetastore_get_not_null_constraints_args__isset; + +class ThriftHiveMetastore_get_not_null_constraints_args { + public: + + ThriftHiveMetastore_get_not_null_constraints_args(const ThriftHiveMetastore_get_not_null_constraints_args&); + ThriftHiveMetastore_get_not_null_constraints_args& operator=(const ThriftHiveMetastore_get_not_null_constraints_args&); + ThriftHiveMetastore_get_not_null_constraints_args() { + } + + virtual ~ThriftHiveMetastore_get_not_null_constraints_args() throw(); + NotNullConstraintsRequest request; + + _ThriftHiveMetastore_get_not_null_constraints_args__isset __isset; + + void __set_request(const NotNullConstraintsRequest& val); + + bool operator == (const ThriftHiveMetastore_get_not_null_constraints_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_not_null_constraints_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_not_null_constraints_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_not_null_constraints_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_not_null_constraints_pargs() throw(); + const NotNullConstraintsRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_not_null_constraints_result__isset { + _ThriftHiveMetastore_get_not_null_constraints_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_not_null_constraints_result__isset; + +class ThriftHiveMetastore_get_not_null_constraints_result { + public: + + ThriftHiveMetastore_get_not_null_constraints_result(const ThriftHiveMetastore_get_not_null_constraints_result&); + ThriftHiveMetastore_get_not_null_constraints_result& operator=(const ThriftHiveMetastore_get_not_null_constraints_result&); + ThriftHiveMetastore_get_not_null_constraints_result() { + } + + virtual ~ThriftHiveMetastore_get_not_null_constraints_result() throw(); + NotNullConstraintsResponse success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_not_null_constraints_result__isset __isset; + + void __set_success(const NotNullConstraintsResponse& val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_not_null_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_not_null_constraints_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_not_null_constraints_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_not_null_constraints_presult__isset { + _ThriftHiveMetastore_get_not_null_constraints_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_not_null_constraints_presult__isset; + +class ThriftHiveMetastore_get_not_null_constraints_presult { + public: + + + virtual ~ThriftHiveMetastore_get_not_null_constraints_presult() throw(); + NotNullConstraintsResponse* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_not_null_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; @@ -19788,8 +20282,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); - void send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys); + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); + void send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); void recv_create_table_with_constraints(); void drop_constraint(const DropConstraintRequest& req); void send_drop_constraint(const DropConstraintRequest& req); @@ -19800,6 +20294,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void add_foreign_key(const AddForeignKeyRequest& req); void send_add_foreign_key(const AddForeignKeyRequest& req); void recv_add_foreign_key(); + void add_unique_constraint(const AddUniqueConstraintRequest& req); + void send_add_unique_constraint(const AddUniqueConstraintRequest& req); + void recv_add_unique_constraint(); + void add_not_null_constraint(const AddNotNullConstraintRequest& req); + void send_add_not_null_constraint(const AddNotNullConstraintRequest& req); + void recv_add_not_null_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(); @@ -19995,6 +20495,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request); void send_get_foreign_keys(const ForeignKeysRequest& request); void recv_get_foreign_keys(ForeignKeysResponse& _return); + void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request); + void send_get_unique_constraints(const UniqueConstraintsRequest& request); + void recv_get_unique_constraints(UniqueConstraintsResponse& _return); + void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request); + void send_get_not_null_constraints(const NotNullConstraintsRequest& request); + void recv_get_not_null_constraints(NotNullConstraintsResponse& _return); 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(); @@ -20228,6 +20734,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_drop_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_add_primary_key(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_add_foreign_key(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_unique_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_not_null_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_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); @@ -20293,6 +20801,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_primary_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_foreign_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_unique_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_not_null_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_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); @@ -20386,6 +20896,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["drop_constraint"] = &ThriftHiveMetastoreProcessor::process_drop_constraint; processMap_["add_primary_key"] = &ThriftHiveMetastoreProcessor::process_add_primary_key; processMap_["add_foreign_key"] = &ThriftHiveMetastoreProcessor::process_add_foreign_key; + processMap_["add_unique_constraint"] = &ThriftHiveMetastoreProcessor::process_add_unique_constraint; + processMap_["add_not_null_constraint"] = &ThriftHiveMetastoreProcessor::process_add_not_null_constraint; processMap_["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; @@ -20451,6 +20963,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_index_names"] = &ThriftHiveMetastoreProcessor::process_get_index_names; processMap_["get_primary_keys"] = &ThriftHiveMetastoreProcessor::process_get_primary_keys; processMap_["get_foreign_keys"] = &ThriftHiveMetastoreProcessor::process_get_foreign_keys; + processMap_["get_unique_constraints"] = &ThriftHiveMetastoreProcessor::process_get_unique_constraints; + processMap_["get_not_null_constraints"] = &ThriftHiveMetastoreProcessor::process_get_not_null_constraints; processMap_["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; @@ -20723,13 +21237,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) { + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); } - ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); } void drop_constraint(const DropConstraintRequest& req) { @@ -20759,6 +21273,24 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->add_foreign_key(req); } + void add_unique_constraint(const AddUniqueConstraintRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_unique_constraint(req); + } + ifaces_[i]->add_unique_constraint(req); + } + + void add_not_null_constraint(const AddNotNullConstraintRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_not_null_constraint(req); + } + ifaces_[i]->add_not_null_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; @@ -21386,6 +21918,26 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_unique_constraints(_return, request); + } + ifaces_[i]->get_unique_constraints(_return, request); + return; + } + + void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_not_null_constraints(_return, request); + } + ifaces_[i]->get_not_null_constraints(_return, request); + return; + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { size_t sz = ifaces_.size(); size_t i = 0; @@ -22097,8 +22649,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); - int32_t send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys); + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); + int32_t send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); void recv_create_table_with_constraints(const int32_t seqid); void drop_constraint(const DropConstraintRequest& req); int32_t send_drop_constraint(const DropConstraintRequest& req); @@ -22109,6 +22661,12 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void add_foreign_key(const AddForeignKeyRequest& req); int32_t send_add_foreign_key(const AddForeignKeyRequest& req); void recv_add_foreign_key(const int32_t seqid); + void add_unique_constraint(const AddUniqueConstraintRequest& req); + int32_t send_add_unique_constraint(const AddUniqueConstraintRequest& req); + void recv_add_unique_constraint(const int32_t seqid); + void add_not_null_constraint(const AddNotNullConstraintRequest& req); + int32_t send_add_not_null_constraint(const AddNotNullConstraintRequest& req); + void recv_add_not_null_constraint(const int32_t seqid); void 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); @@ -22304,6 +22862,12 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request); int32_t send_get_foreign_keys(const ForeignKeysRequest& request); void recv_get_foreign_keys(ForeignKeysResponse& _return, const int32_t seqid); + void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request); + int32_t send_get_unique_constraints(const UniqueConstraintsRequest& request); + void recv_get_unique_constraints(UniqueConstraintsResponse& _return, const int32_t seqid); + void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request); + int32_t send_get_not_null_constraints(const NotNullConstraintsRequest& request); + void recv_get_not_null_constraints(NotNullConstraintsResponse& _return, const int32_t seqid); 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 metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index b4a2a92..5d8ec3b 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ 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) { + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { // Your implementation goes here printf("create_table_with_constraints\n"); } @@ -132,6 +132,16 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("add_foreign_key\n"); } + void add_unique_constraint(const AddUniqueConstraintRequest& req) { + // Your implementation goes here + printf("add_unique_constraint\n"); + } + + void add_not_null_constraint(const AddNotNullConstraintRequest& req) { + // Your implementation goes here + printf("add_not_null_constraint\n"); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { // Your implementation goes here printf("drop_table\n"); @@ -457,6 +467,16 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_foreign_keys\n"); } + void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request) { + // Your implementation goes here + printf("get_unique_constraints\n"); + } + + void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) { + // Your implementation goes here + printf("get_not_null_constraints\n"); + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { // Your implementation goes here printf("update_table_column_statistics\n"); diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index e3725a5..1e46ac4 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -990,30 +990,43 @@ void SQLForeignKey::printTo(std::ostream& out) const { } -Type::~Type() throw() { +SQLUniqueConstraint::~SQLUniqueConstraint() throw() { } -void Type::__set_name(const std::string& val) { - this->name = val; +void SQLUniqueConstraint::__set_table_db(const std::string& val) { + this->table_db = val; } -void Type::__set_type1(const std::string& val) { - this->type1 = val; -__isset.type1 = true; +void SQLUniqueConstraint::__set_table_name(const std::string& val) { + this->table_name = val; } -void Type::__set_type2(const std::string& val) { - this->type2 = val; -__isset.type2 = true; +void SQLUniqueConstraint::__set_column_name(const std::string& val) { + this->column_name = val; } -void Type::__set_fields(const std::vector & val) { - this->fields = val; -__isset.fields = true; +void SQLUniqueConstraint::__set_key_seq(const int32_t val) { + this->key_seq = val; } -uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { +void SQLUniqueConstraint::__set_uk_name(const std::string& val) { + this->uk_name = val; +} + +void SQLUniqueConstraint::__set_enable_cstr(const bool val) { + this->enable_cstr = val; +} + +void SQLUniqueConstraint::__set_validate_cstr(const bool val) { + this->validate_cstr = val; +} + +void SQLUniqueConstraint::__set_rely_cstr(const bool val) { + this->rely_cstr = val; +} + +uint32_t SQLUniqueConstraint::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1036,44 +1049,64 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - this->__isset.name = true; + 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->type1); - this->__isset.type1 = true; + 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->type2); - this->__isset.type2 = true; + 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_LIST) { - { - this->fields.clear(); - uint32_t _size8; - ::apache::thrift::protocol::TType _etype11; - xfer += iprot->readListBegin(_etype11, _size8); - this->fields.resize(_size8); - uint32_t _i12; - for (_i12 = 0; _i12 < _size8; ++_i12) - { - xfer += this->fields[_i12].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.fields = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->key_seq); + this->__isset.key_seq = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->uk_name); + this->__isset.uk_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); } @@ -1090,103 +1123,132 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t SQLUniqueConstraint::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("Type"); + xfer += oprot->writeStructBegin("SQLUniqueConstraint"); - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->name); + 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("key_seq", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->key_seq); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("uk_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->uk_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(); - if (this->__isset.type1) { - xfer += oprot->writeFieldBegin("type1", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->type1); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.type2) { - xfer += oprot->writeFieldBegin("type2", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->type2); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fields) { - 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 _iter13; - for (_iter13 = this->fields.begin(); _iter13 != this->fields.end(); ++_iter13) - { - xfer += (*_iter13).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(Type &a, Type &b) { +void swap(SQLUniqueConstraint &a, SQLUniqueConstraint &b) { using ::std::swap; - swap(a.name, b.name); - swap(a.type1, b.type1); - swap(a.type2, b.type2); - swap(a.fields, b.fields); + swap(a.table_db, b.table_db); + swap(a.table_name, b.table_name); + swap(a.column_name, b.column_name); + swap(a.key_seq, b.key_seq); + swap(a.uk_name, b.uk_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); } -Type::Type(const Type& other14) { - name = other14.name; - type1 = other14.type1; - type2 = other14.type2; - fields = other14.fields; - __isset = other14.__isset; -} -Type& Type::operator=(const Type& other15) { - name = other15.name; - type1 = other15.type1; - type2 = other15.type2; - fields = other15.fields; - __isset = other15.__isset; +SQLUniqueConstraint::SQLUniqueConstraint(const SQLUniqueConstraint& other8) { + table_db = other8.table_db; + table_name = other8.table_name; + column_name = other8.column_name; + key_seq = other8.key_seq; + uk_name = other8.uk_name; + enable_cstr = other8.enable_cstr; + validate_cstr = other8.validate_cstr; + rely_cstr = other8.rely_cstr; + __isset = other8.__isset; +} +SQLUniqueConstraint& SQLUniqueConstraint::operator=(const SQLUniqueConstraint& other9) { + table_db = other9.table_db; + table_name = other9.table_name; + column_name = other9.column_name; + key_seq = other9.key_seq; + uk_name = other9.uk_name; + enable_cstr = other9.enable_cstr; + validate_cstr = other9.validate_cstr; + rely_cstr = other9.rely_cstr; + __isset = other9.__isset; return *this; } -void Type::printTo(std::ostream& out) const { +void SQLUniqueConstraint::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "Type("; - out << "name=" << to_string(name); - out << ", " << "type1="; (__isset.type1 ? (out << to_string(type1)) : (out << "")); - out << ", " << "type2="; (__isset.type2 ? (out << to_string(type2)) : (out << "")); - out << ", " << "fields="; (__isset.fields ? (out << to_string(fields)) : (out << "")); + out << "SQLUniqueConstraint("; + out << "table_db=" << to_string(table_db); + out << ", " << "table_name=" << to_string(table_name); + out << ", " << "column_name=" << to_string(column_name); + out << ", " << "key_seq=" << to_string(key_seq); + out << ", " << "uk_name=" << to_string(uk_name); + out << ", " << "enable_cstr=" << to_string(enable_cstr); + out << ", " << "validate_cstr=" << to_string(validate_cstr); + out << ", " << "rely_cstr=" << to_string(rely_cstr); out << ")"; } -HiveObjectRef::~HiveObjectRef() throw() { +SQLNotNullConstraint::~SQLNotNullConstraint() throw() { } -void HiveObjectRef::__set_objectType(const HiveObjectType::type val) { - this->objectType = val; +void SQLNotNullConstraint::__set_table_db(const std::string& val) { + this->table_db = val; } -void HiveObjectRef::__set_dbName(const std::string& val) { - this->dbName = val; +void SQLNotNullConstraint::__set_table_name(const std::string& val) { + this->table_name = val; } -void HiveObjectRef::__set_objectName(const std::string& val) { - this->objectName = val; +void SQLNotNullConstraint::__set_column_name(const std::string& val) { + this->column_name = val; } -void HiveObjectRef::__set_partValues(const std::vector & val) { - this->partValues = val; +void SQLNotNullConstraint::__set_nn_name(const std::string& val) { + this->nn_name = val; } -void HiveObjectRef::__set_columnName(const std::string& val) { - this->columnName = val; +void SQLNotNullConstraint::__set_enable_cstr(const bool val) { + this->enable_cstr = val; } -uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { +void SQLNotNullConstraint::__set_validate_cstr(const bool val) { + this->validate_cstr = val; +} + +void SQLNotNullConstraint::__set_rely_cstr(const bool val) { + this->rely_cstr = val; +} + +uint32_t SQLNotNullConstraint::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1208,55 +1270,57 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast16; - xfer += iprot->readI32(ecast16); - this->objectType = (HiveObjectType::type)ecast16; - this->__isset.objectType = true; + 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->dbName); - this->__isset.dbName = true; + 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->objectName); - this->__isset.objectName = true; + 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_LIST) { - { - this->partValues.clear(); - uint32_t _size17; - ::apache::thrift::protocol::TType _etype20; - xfer += iprot->readListBegin(_etype20, _size17); - this->partValues.resize(_size17); - uint32_t _i21; - for (_i21 = 0; _i21 < _size17; ++_i21) - { - xfer += iprot->readString(this->partValues[_i21]); - } - xfer += iprot->readListEnd(); - } - this->__isset.partValues = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->nn_name); + this->__isset.nn_name = true; } else { xfer += iprot->skip(ftype); } break; case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->columnName); - this->__isset.columnName = true; + 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 6: + 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 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->rely_cstr); + this->__isset.rely_cstr = true; } else { xfer += iprot->skip(ftype); } @@ -1273,37 +1337,37 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t SQLNotNullConstraint::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("HiveObjectRef"); + xfer += oprot->writeStructBegin("SQLNotNullConstraint"); - xfer += oprot->writeFieldBegin("objectType", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->objectType); + xfer += oprot->writeFieldBegin("table_db", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->table_db); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldBegin("table_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->table_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("objectName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->objectName); + xfer += oprot->writeFieldBegin("column_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->column_name); xfer += oprot->writeFieldEnd(); - 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 _iter22; - for (_iter22 = this->partValues.begin(); _iter22 != this->partValues.end(); ++_iter22) - { - xfer += oprot->writeString((*_iter22)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("nn_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->nn_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->columnName); + xfer += oprot->writeFieldBegin("enable_cstr", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->enable_cstr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("validate_cstr", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->validate_cstr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("rely_cstr", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->rely_cstr); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -1311,70 +1375,77 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons return xfer; } -void swap(HiveObjectRef &a, HiveObjectRef &b) { +void swap(SQLNotNullConstraint &a, SQLNotNullConstraint &b) { using ::std::swap; - swap(a.objectType, b.objectType); - swap(a.dbName, b.dbName); - swap(a.objectName, b.objectName); - swap(a.partValues, b.partValues); - swap(a.columnName, b.columnName); + swap(a.table_db, b.table_db); + swap(a.table_name, b.table_name); + swap(a.column_name, b.column_name); + swap(a.nn_name, b.nn_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); } -HiveObjectRef::HiveObjectRef(const HiveObjectRef& other23) { - objectType = other23.objectType; - dbName = other23.dbName; - objectName = other23.objectName; - partValues = other23.partValues; - columnName = other23.columnName; - __isset = other23.__isset; -} -HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other24) { - objectType = other24.objectType; - dbName = other24.dbName; - objectName = other24.objectName; - partValues = other24.partValues; - columnName = other24.columnName; - __isset = other24.__isset; +SQLNotNullConstraint::SQLNotNullConstraint(const SQLNotNullConstraint& other10) { + table_db = other10.table_db; + table_name = other10.table_name; + column_name = other10.column_name; + nn_name = other10.nn_name; + enable_cstr = other10.enable_cstr; + validate_cstr = other10.validate_cstr; + rely_cstr = other10.rely_cstr; + __isset = other10.__isset; +} +SQLNotNullConstraint& SQLNotNullConstraint::operator=(const SQLNotNullConstraint& other11) { + table_db = other11.table_db; + table_name = other11.table_name; + column_name = other11.column_name; + nn_name = other11.nn_name; + enable_cstr = other11.enable_cstr; + validate_cstr = other11.validate_cstr; + rely_cstr = other11.rely_cstr; + __isset = other11.__isset; return *this; } -void HiveObjectRef::printTo(std::ostream& out) const { +void SQLNotNullConstraint::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "HiveObjectRef("; - out << "objectType=" << to_string(objectType); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "objectName=" << to_string(objectName); - out << ", " << "partValues=" << to_string(partValues); - out << ", " << "columnName=" << to_string(columnName); + out << "SQLNotNullConstraint("; + out << "table_db=" << to_string(table_db); + out << ", " << "table_name=" << to_string(table_name); + out << ", " << "column_name=" << to_string(column_name); + out << ", " << "nn_name=" << to_string(nn_name); + out << ", " << "enable_cstr=" << to_string(enable_cstr); + out << ", " << "validate_cstr=" << to_string(validate_cstr); + out << ", " << "rely_cstr=" << to_string(rely_cstr); out << ")"; } -PrivilegeGrantInfo::~PrivilegeGrantInfo() throw() { +Type::~Type() throw() { } -void PrivilegeGrantInfo::__set_privilege(const std::string& val) { - this->privilege = val; -} - -void PrivilegeGrantInfo::__set_createTime(const int32_t val) { - this->createTime = val; +void Type::__set_name(const std::string& val) { + this->name = val; } -void PrivilegeGrantInfo::__set_grantor(const std::string& val) { - this->grantor = val; +void Type::__set_type1(const std::string& val) { + this->type1 = val; +__isset.type1 = true; } -void PrivilegeGrantInfo::__set_grantorType(const PrincipalType::type val) { - this->grantorType = val; +void Type::__set_type2(const std::string& val) { + this->type2 = val; +__isset.type2 = true; } -void PrivilegeGrantInfo::__set_grantOption(const bool val) { - this->grantOption = val; +void Type::__set_fields(const std::vector & val) { + this->fields = val; +__isset.fields = true; } -uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1397,42 +1468,44 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->privilege); - this->__isset.privilege = true; + xfer += iprot->readString(this->name); + this->__isset.name = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->createTime); - this->__isset.createTime = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->type1); + this->__isset.type1 = true; } else { xfer += iprot->skip(ftype); } break; case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->grantor); - this->__isset.grantor = true; + xfer += iprot->readString(this->type2); + this->__isset.type2 = true; } else { xfer += iprot->skip(ftype); } break; case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast25; - xfer += iprot->readI32(ecast25); - this->grantorType = (PrincipalType::type)ecast25; - this->__isset.grantorType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->grantOption); - this->__isset.grantOption = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->fields.clear(); + uint32_t _size12; + ::apache::thrift::protocol::TType _etype15; + xfer += iprot->readListBegin(_etype15, _size12); + this->fields.resize(_size12); + uint32_t _i16; + for (_i16 = 0; _i16 < _size12; ++_i16) + { + xfer += this->fields[_i16].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.fields = true; } else { xfer += iprot->skip(ftype); } @@ -1449,96 +1522,103 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) return xfer; } -uint32_t PrivilegeGrantInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("PrivilegeGrantInfo"); - - xfer += oprot->writeFieldBegin("privilege", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->privilege); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("createTime", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->createTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->grantor); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->grantorType); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Type"); - xfer += oprot->writeFieldBegin("grantOption", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->grantOption); + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->name); xfer += oprot->writeFieldEnd(); + if (this->__isset.type1) { + xfer += oprot->writeFieldBegin("type1", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->type1); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.type2) { + xfer += oprot->writeFieldBegin("type2", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->type2); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fields) { + xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fields.size())); + std::vector ::const_iterator _iter17; + for (_iter17 = this->fields.begin(); _iter17 != this->fields.end(); ++_iter17) + { + xfer += (*_iter17).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { +void swap(Type &a, Type &b) { using ::std::swap; - swap(a.privilege, b.privilege); - swap(a.createTime, b.createTime); - swap(a.grantor, b.grantor); - swap(a.grantorType, b.grantorType); - swap(a.grantOption, b.grantOption); + swap(a.name, b.name); + swap(a.type1, b.type1); + swap(a.type2, b.type2); + swap(a.fields, b.fields); swap(a.__isset, b.__isset); } -PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other26) { - privilege = other26.privilege; - createTime = other26.createTime; - grantor = other26.grantor; - grantorType = other26.grantorType; - grantOption = other26.grantOption; - __isset = other26.__isset; -} -PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other27) { - privilege = other27.privilege; - createTime = other27.createTime; - grantor = other27.grantor; - grantorType = other27.grantorType; - grantOption = other27.grantOption; - __isset = other27.__isset; +Type::Type(const Type& other18) { + name = other18.name; + type1 = other18.type1; + type2 = other18.type2; + fields = other18.fields; + __isset = other18.__isset; +} +Type& Type::operator=(const Type& other19) { + name = other19.name; + type1 = other19.type1; + type2 = other19.type2; + fields = other19.fields; + __isset = other19.__isset; return *this; } -void PrivilegeGrantInfo::printTo(std::ostream& out) const { +void Type::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "PrivilegeGrantInfo("; - out << "privilege=" << to_string(privilege); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "grantor=" << to_string(grantor); - out << ", " << "grantorType=" << to_string(grantorType); - out << ", " << "grantOption=" << to_string(grantOption); + out << "Type("; + out << "name=" << to_string(name); + out << ", " << "type1="; (__isset.type1 ? (out << to_string(type1)) : (out << "")); + out << ", " << "type2="; (__isset.type2 ? (out << to_string(type2)) : (out << "")); + out << ", " << "fields="; (__isset.fields ? (out << to_string(fields)) : (out << "")); out << ")"; } -HiveObjectPrivilege::~HiveObjectPrivilege() throw() { +HiveObjectRef::~HiveObjectRef() throw() { } -void HiveObjectPrivilege::__set_hiveObject(const HiveObjectRef& val) { - this->hiveObject = val; +void HiveObjectRef::__set_objectType(const HiveObjectType::type val) { + this->objectType = val; } -void HiveObjectPrivilege::__set_principalName(const std::string& val) { - this->principalName = val; +void HiveObjectRef::__set_dbName(const std::string& val) { + this->dbName = val; } -void HiveObjectPrivilege::__set_principalType(const PrincipalType::type val) { - this->principalType = val; +void HiveObjectRef::__set_objectName(const std::string& val) { + this->objectName = val; } -void HiveObjectPrivilege::__set_grantInfo(const PrivilegeGrantInfo& val) { - this->grantInfo = val; +void HiveObjectRef::__set_partValues(const std::vector & val) { + this->partValues = val; } -uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) { +void HiveObjectRef::__set_columnName(const std::string& val) { + this->columnName = val; +} + +uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1560,35 +1640,55 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->hiveObject.read(iprot); - this->__isset.hiveObject = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast20; + xfer += iprot->readI32(ecast20); + this->objectType = (HiveObjectType::type)ecast20; + this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->principalName); - this->__isset.principalName = true; + xfer += iprot->readString(this->dbName); + this->__isset.dbName = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast28; - xfer += iprot->readI32(ecast28); - this->principalType = (PrincipalType::type)ecast28; - this->__isset.principalType = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->objectName); + this->__isset.objectName = true; } else { xfer += iprot->skip(ftype); } break; case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->grantInfo.read(iprot); - this->__isset.grantInfo = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partValues.clear(); + uint32_t _size21; + ::apache::thrift::protocol::TType _etype24; + xfer += iprot->readListBegin(_etype24, _size21); + this->partValues.resize(_size21); + uint32_t _i25; + for (_i25 = 0; _i25 < _size21; ++_i25) + { + xfer += iprot->readString(this->partValues[_i25]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partValues = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->columnName); + this->__isset.columnName = true; } else { xfer += iprot->skip(ftype); } @@ -1605,25 +1705,37 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) return xfer; } -uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("HiveObjectPrivilege"); + xfer += oprot->writeStructBegin("HiveObjectRef"); - xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->hiveObject.write(oprot); + xfer += oprot->writeFieldBegin("objectType", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->objectType); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("principalName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->principalName); + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->dbName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("principalType", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->principalType); + xfer += oprot->writeFieldBegin("objectName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->objectName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("grantInfo", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->grantInfo.write(oprot); + xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partValues.size())); + std::vector ::const_iterator _iter26; + for (_iter26 = this->partValues.begin(); _iter26 != this->partValues.end(); ++_iter26) + { + xfer += oprot->writeString((*_iter26)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->columnName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -1631,50 +1743,70 @@ uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot return xfer; } -void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { +void swap(HiveObjectRef &a, HiveObjectRef &b) { using ::std::swap; - swap(a.hiveObject, b.hiveObject); - swap(a.principalName, b.principalName); - swap(a.principalType, b.principalType); - swap(a.grantInfo, b.grantInfo); + swap(a.objectType, b.objectType); + swap(a.dbName, b.dbName); + swap(a.objectName, b.objectName); + swap(a.partValues, b.partValues); + swap(a.columnName, b.columnName); swap(a.__isset, b.__isset); } -HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other29) { - hiveObject = other29.hiveObject; - principalName = other29.principalName; - principalType = other29.principalType; - grantInfo = other29.grantInfo; - __isset = other29.__isset; +HiveObjectRef::HiveObjectRef(const HiveObjectRef& other27) { + objectType = other27.objectType; + dbName = other27.dbName; + objectName = other27.objectName; + partValues = other27.partValues; + columnName = other27.columnName; + __isset = other27.__isset; } -HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other30) { - hiveObject = other30.hiveObject; - principalName = other30.principalName; - principalType = other30.principalType; - grantInfo = other30.grantInfo; - __isset = other30.__isset; +HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other28) { + objectType = other28.objectType; + dbName = other28.dbName; + objectName = other28.objectName; + partValues = other28.partValues; + columnName = other28.columnName; + __isset = other28.__isset; return *this; } -void HiveObjectPrivilege::printTo(std::ostream& out) const { +void HiveObjectRef::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "HiveObjectPrivilege("; - out << "hiveObject=" << to_string(hiveObject); - out << ", " << "principalName=" << to_string(principalName); - out << ", " << "principalType=" << to_string(principalType); - out << ", " << "grantInfo=" << to_string(grantInfo); + out << "HiveObjectRef("; + out << "objectType=" << to_string(objectType); + out << ", " << "dbName=" << to_string(dbName); + out << ", " << "objectName=" << to_string(objectName); + out << ", " << "partValues=" << to_string(partValues); + out << ", " << "columnName=" << to_string(columnName); out << ")"; } -PrivilegeBag::~PrivilegeBag() throw() { +PrivilegeGrantInfo::~PrivilegeGrantInfo() throw() { } -void PrivilegeBag::__set_privileges(const std::vector & val) { - this->privileges = val; +void PrivilegeGrantInfo::__set_privilege(const std::string& val) { + this->privilege = val; } -uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { +void PrivilegeGrantInfo::__set_createTime(const int32_t val) { + this->createTime = val; +} + +void PrivilegeGrantInfo::__set_grantor(const std::string& val) { + this->grantor = val; +} + +void PrivilegeGrantInfo::__set_grantorType(const PrincipalType::type val) { + this->grantorType = val; +} + +void PrivilegeGrantInfo::__set_grantOption(const bool val) { + this->grantOption = val; +} + +uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1696,21 +1828,43 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->privileges.clear(); - uint32_t _size31; - ::apache::thrift::protocol::TType _etype34; - xfer += iprot->readListBegin(_etype34, _size31); - this->privileges.resize(_size31); - uint32_t _i35; - for (_i35 = 0; _i35 < _size31; ++_i35) - { - xfer += this->privileges[_i35].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.privileges = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->privilege); + this->__isset.privilege = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->createTime); + this->__isset.createTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->grantor); + this->__isset.grantor = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast29; + xfer += iprot->readI32(ecast29); + this->grantorType = (PrincipalType::type)ecast29; + this->__isset.grantorType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->grantOption); + this->__isset.grantOption = true; } else { xfer += iprot->skip(ftype); } @@ -1727,21 +1881,29 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t PrivilegeGrantInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("PrivilegeBag"); + xfer += oprot->writeStructBegin("PrivilegeGrantInfo"); - 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 _iter36; - for (_iter36 = this->privileges.begin(); _iter36 != this->privileges.end(); ++_iter36) - { - xfer += (*_iter36).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("privilege", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->privilege); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("createTime", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->createTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->grantor); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->grantorType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantOption", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->grantOption); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -1749,46 +1911,66 @@ uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const return xfer; } -void swap(PrivilegeBag &a, PrivilegeBag &b) { +void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { using ::std::swap; - swap(a.privileges, b.privileges); + swap(a.privilege, b.privilege); + swap(a.createTime, b.createTime); + swap(a.grantor, b.grantor); + swap(a.grantorType, b.grantorType); + swap(a.grantOption, b.grantOption); swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other37) { - privileges = other37.privileges; - __isset = other37.__isset; +PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other30) { + privilege = other30.privilege; + createTime = other30.createTime; + grantor = other30.grantor; + grantorType = other30.grantorType; + grantOption = other30.grantOption; + __isset = other30.__isset; } -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other38) { - privileges = other38.privileges; - __isset = other38.__isset; +PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other31) { + privilege = other31.privilege; + createTime = other31.createTime; + grantor = other31.grantor; + grantorType = other31.grantorType; + grantOption = other31.grantOption; + __isset = other31.__isset; return *this; } -void PrivilegeBag::printTo(std::ostream& out) const { +void PrivilegeGrantInfo::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "PrivilegeBag("; - out << "privileges=" << to_string(privileges); + out << "PrivilegeGrantInfo("; + out << "privilege=" << to_string(privilege); + out << ", " << "createTime=" << to_string(createTime); + out << ", " << "grantor=" << to_string(grantor); + out << ", " << "grantorType=" << to_string(grantorType); + out << ", " << "grantOption=" << to_string(grantOption); out << ")"; } -PrincipalPrivilegeSet::~PrincipalPrivilegeSet() throw() { +HiveObjectPrivilege::~HiveObjectPrivilege() throw() { } -void PrincipalPrivilegeSet::__set_userPrivileges(const std::map > & val) { - this->userPrivileges = val; +void HiveObjectPrivilege::__set_hiveObject(const HiveObjectRef& val) { + this->hiveObject = val; } -void PrincipalPrivilegeSet::__set_groupPrivileges(const std::map > & val) { - this->groupPrivileges = val; +void HiveObjectPrivilege::__set_principalName(const std::string& val) { + this->principalName = val; } -void PrincipalPrivilegeSet::__set_rolePrivileges(const std::map > & val) { - this->rolePrivileges = val; +void HiveObjectPrivilege::__set_principalType(const PrincipalType::type val) { + this->principalType = val; } -uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* iprot) { +void HiveObjectPrivilege::__set_grantInfo(const PrivilegeGrantInfo& val) { + this->grantInfo = val; +} + +uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -1810,106 +1992,35 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->userPrivileges.clear(); - uint32_t _size39; - ::apache::thrift::protocol::TType _ktype40; - ::apache::thrift::protocol::TType _vtype41; - xfer += iprot->readMapBegin(_ktype40, _vtype41, _size39); - uint32_t _i43; - for (_i43 = 0; _i43 < _size39; ++_i43) - { - std::string _key44; - xfer += iprot->readString(_key44); - std::vector & _val45 = this->userPrivileges[_key44]; - { - _val45.clear(); - uint32_t _size46; - ::apache::thrift::protocol::TType _etype49; - xfer += iprot->readListBegin(_etype49, _size46); - _val45.resize(_size46); - uint32_t _i50; - for (_i50 = 0; _i50 < _size46; ++_i50) - { - xfer += _val45[_i50].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.userPrivileges = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->hiveObject.read(iprot); + this->__isset.hiveObject = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->groupPrivileges.clear(); - uint32_t _size51; - ::apache::thrift::protocol::TType _ktype52; - ::apache::thrift::protocol::TType _vtype53; - xfer += iprot->readMapBegin(_ktype52, _vtype53, _size51); - uint32_t _i55; - for (_i55 = 0; _i55 < _size51; ++_i55) - { - std::string _key56; - xfer += iprot->readString(_key56); - std::vector & _val57 = this->groupPrivileges[_key56]; - { - _val57.clear(); - uint32_t _size58; - ::apache::thrift::protocol::TType _etype61; - xfer += iprot->readListBegin(_etype61, _size58); - _val57.resize(_size58); - uint32_t _i62; - for (_i62 = 0; _i62 < _size58; ++_i62) - { - xfer += _val57[_i62].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.groupPrivileges = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->principalName); + this->__isset.principalName = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->rolePrivileges.clear(); - uint32_t _size63; - ::apache::thrift::protocol::TType _ktype64; - ::apache::thrift::protocol::TType _vtype65; - xfer += iprot->readMapBegin(_ktype64, _vtype65, _size63); - uint32_t _i67; - for (_i67 = 0; _i67 < _size63; ++_i67) - { - std::string _key68; - xfer += iprot->readString(_key68); - std::vector & _val69 = this->rolePrivileges[_key68]; - { - _val69.clear(); - uint32_t _size70; - ::apache::thrift::protocol::TType _etype73; - xfer += iprot->readListBegin(_etype73, _size70); - _val69.resize(_size70); - uint32_t _i74; - for (_i74 = 0; _i74 < _size70; ++_i74) - { - xfer += _val69[_i74].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.rolePrivileges = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast32; + xfer += iprot->readI32(ecast32); + this->principalType = (PrincipalType::type)ecast32; + this->__isset.principalType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->grantInfo.read(iprot); + this->__isset.grantInfo = true; } else { xfer += iprot->skip(ftype); } @@ -1926,72 +2037,25 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro return xfer; } -uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("PrincipalPrivilegeSet"); + xfer += oprot->writeStructBegin("HiveObjectPrivilege"); - 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 _iter75; - for (_iter75 = this->userPrivileges.begin(); _iter75 != this->userPrivileges.end(); ++_iter75) - { - xfer += oprot->writeString(_iter75->first); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter75->second.size())); - std::vector ::const_iterator _iter76; - for (_iter76 = _iter75->second.begin(); _iter76 != _iter75->second.end(); ++_iter76) - { - xfer += (*_iter76).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->hiveObject.write(oprot); xfer += oprot->writeFieldEnd(); - 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 _iter77; - for (_iter77 = this->groupPrivileges.begin(); _iter77 != this->groupPrivileges.end(); ++_iter77) - { - xfer += oprot->writeString(_iter77->first); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter77->second.size())); - std::vector ::const_iterator _iter78; - for (_iter78 = _iter77->second.begin(); _iter78 != _iter77->second.end(); ++_iter78) - { - xfer += (*_iter78).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("principalName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->principalName); xfer += oprot->writeFieldEnd(); - 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 _iter79; - for (_iter79 = this->rolePrivileges.begin(); _iter79 != this->rolePrivileges.end(); ++_iter79) - { - xfer += oprot->writeString(_iter79->first); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter79->second.size())); - std::vector ::const_iterator _iter80; - for (_iter80 = _iter79->second.begin(); _iter80 != _iter79->second.end(); ++_iter80) - { - xfer += (*_iter80).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("principalType", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->principalType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantInfo", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->grantInfo.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -1999,55 +2063,50 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr return xfer; } -void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { +void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { using ::std::swap; - swap(a.userPrivileges, b.userPrivileges); - swap(a.groupPrivileges, b.groupPrivileges); - swap(a.rolePrivileges, b.rolePrivileges); + swap(a.hiveObject, b.hiveObject); + swap(a.principalName, b.principalName); + swap(a.principalType, b.principalType); + swap(a.grantInfo, b.grantInfo); swap(a.__isset, b.__isset); } -PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other81) { - userPrivileges = other81.userPrivileges; - groupPrivileges = other81.groupPrivileges; - rolePrivileges = other81.rolePrivileges; - __isset = other81.__isset; +HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other33) { + hiveObject = other33.hiveObject; + principalName = other33.principalName; + principalType = other33.principalType; + grantInfo = other33.grantInfo; + __isset = other33.__isset; } -PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other82) { - userPrivileges = other82.userPrivileges; - groupPrivileges = other82.groupPrivileges; - rolePrivileges = other82.rolePrivileges; - __isset = other82.__isset; +HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other34) { + hiveObject = other34.hiveObject; + principalName = other34.principalName; + principalType = other34.principalType; + grantInfo = other34.grantInfo; + __isset = other34.__isset; return *this; } -void PrincipalPrivilegeSet::printTo(std::ostream& out) const { +void HiveObjectPrivilege::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "PrincipalPrivilegeSet("; - out << "userPrivileges=" << to_string(userPrivileges); - out << ", " << "groupPrivileges=" << to_string(groupPrivileges); - out << ", " << "rolePrivileges=" << to_string(rolePrivileges); + out << "HiveObjectPrivilege("; + out << "hiveObject=" << to_string(hiveObject); + out << ", " << "principalName=" << to_string(principalName); + out << ", " << "principalType=" << to_string(principalType); + out << ", " << "grantInfo=" << to_string(grantInfo); out << ")"; } -GrantRevokePrivilegeRequest::~GrantRevokePrivilegeRequest() throw() { +PrivilegeBag::~PrivilegeBag() throw() { } -void GrantRevokePrivilegeRequest::__set_requestType(const GrantRevokeType::type val) { - this->requestType = val; -} - -void GrantRevokePrivilegeRequest::__set_privileges(const PrivilegeBag& val) { +void PrivilegeBag::__set_privileges(const std::vector & val) { this->privileges = val; } -void GrantRevokePrivilegeRequest::__set_revokeGrantOption(const bool val) { - this->revokeGrantOption = val; -__isset.revokeGrantOption = true; -} - -uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -2069,31 +2128,25 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast83; - xfer += iprot->readI32(ecast83); - this->requestType = (GrantRevokeType::type)ecast83; - this->__isset.requestType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->privileges.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->privileges.clear(); + uint32_t _size35; + ::apache::thrift::protocol::TType _etype38; + xfer += iprot->readListBegin(_etype38, _size35); + this->privileges.resize(_size35); + uint32_t _i39; + for (_i39 = 0; _i39 < _size35; ++_i39) + { + xfer += this->privileges[_i39].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.privileges = true; } else { xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->revokeGrantOption); - this->__isset.revokeGrantOption = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -2106,70 +2159,68 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol return xfer; } -uint32_t GrantRevokePrivilegeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GrantRevokePrivilegeRequest"); - - xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->requestType); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("PrivilegeBag"); - xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->privileges.write(oprot); + xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->privileges.size())); + std::vector ::const_iterator _iter40; + for (_iter40 = this->privileges.begin(); _iter40 != this->privileges.end(); ++_iter40) + { + xfer += (*_iter40).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); - if (this->__isset.revokeGrantOption) { - xfer += oprot->writeFieldBegin("revokeGrantOption", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->revokeGrantOption); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { +void swap(PrivilegeBag &a, PrivilegeBag &b) { using ::std::swap; - swap(a.requestType, b.requestType); swap(a.privileges, b.privileges); - swap(a.revokeGrantOption, b.revokeGrantOption); swap(a.__isset, b.__isset); } -GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other84) { - requestType = other84.requestType; - privileges = other84.privileges; - revokeGrantOption = other84.revokeGrantOption; - __isset = other84.__isset; +PrivilegeBag::PrivilegeBag(const PrivilegeBag& other41) { + privileges = other41.privileges; + __isset = other41.__isset; } -GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other85) { - requestType = other85.requestType; - privileges = other85.privileges; - revokeGrantOption = other85.revokeGrantOption; - __isset = other85.__isset; +PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other42) { + privileges = other42.privileges; + __isset = other42.__isset; return *this; } -void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { +void PrivilegeBag::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "GrantRevokePrivilegeRequest("; - out << "requestType=" << to_string(requestType); - out << ", " << "privileges=" << to_string(privileges); - out << ", " << "revokeGrantOption="; (__isset.revokeGrantOption ? (out << to_string(revokeGrantOption)) : (out << "")); + out << "PrivilegeBag("; + out << "privileges=" << to_string(privileges); out << ")"; } -GrantRevokePrivilegeResponse::~GrantRevokePrivilegeResponse() throw() { +PrincipalPrivilegeSet::~PrincipalPrivilegeSet() throw() { } -void GrantRevokePrivilegeResponse::__set_success(const bool val) { - this->success = val; -__isset.success = true; +void PrincipalPrivilegeSet::__set_userPrivileges(const std::map > & val) { + this->userPrivileges = val; } -uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtocol* iprot) { +void PrincipalPrivilegeSet::__set_groupPrivileges(const std::map > & val) { + this->groupPrivileges = val; +} + +void PrincipalPrivilegeSet::__set_rolePrivileges(const std::map > & val) { + this->rolePrivileges = val; +} + +uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -2191,9 +2242,106 @@ uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtoco switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); - this->__isset.success = true; + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->userPrivileges.clear(); + uint32_t _size43; + ::apache::thrift::protocol::TType _ktype44; + ::apache::thrift::protocol::TType _vtype45; + xfer += iprot->readMapBegin(_ktype44, _vtype45, _size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) + { + std::string _key48; + xfer += iprot->readString(_key48); + std::vector & _val49 = this->userPrivileges[_key48]; + { + _val49.clear(); + uint32_t _size50; + ::apache::thrift::protocol::TType _etype53; + xfer += iprot->readListBegin(_etype53, _size50); + _val49.resize(_size50); + uint32_t _i54; + for (_i54 = 0; _i54 < _size50; ++_i54) + { + xfer += _val49[_i54].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.userPrivileges = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->groupPrivileges.clear(); + uint32_t _size55; + ::apache::thrift::protocol::TType _ktype56; + ::apache::thrift::protocol::TType _vtype57; + xfer += iprot->readMapBegin(_ktype56, _vtype57, _size55); + uint32_t _i59; + for (_i59 = 0; _i59 < _size55; ++_i59) + { + std::string _key60; + xfer += iprot->readString(_key60); + std::vector & _val61 = this->groupPrivileges[_key60]; + { + _val61.clear(); + uint32_t _size62; + ::apache::thrift::protocol::TType _etype65; + xfer += iprot->readListBegin(_etype65, _size62); + _val61.resize(_size62); + uint32_t _i66; + for (_i66 = 0; _i66 < _size62; ++_i66) + { + xfer += _val61[_i66].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.groupPrivileges = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->rolePrivileges.clear(); + uint32_t _size67; + ::apache::thrift::protocol::TType _ktype68; + ::apache::thrift::protocol::TType _vtype69; + xfer += iprot->readMapBegin(_ktype68, _vtype69, _size67); + uint32_t _i71; + for (_i71 = 0; _i71 < _size67; ++_i71) + { + std::string _key72; + xfer += iprot->readString(_key72); + std::vector & _val73 = this->rolePrivileges[_key72]; + { + _val73.clear(); + uint32_t _size74; + ::apache::thrift::protocol::TType _etype77; + xfer += iprot->readListBegin(_etype77, _size74); + _val73.resize(_size74); + uint32_t _i78; + for (_i78 = 0; _i78 < _size74; ++_i78) + { + xfer += _val73[_i78].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.rolePrivileges = true; } else { xfer += iprot->skip(ftype); } @@ -2210,61 +2358,128 @@ uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtoco return xfer; } -uint32_t GrantRevokePrivilegeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GrantRevokePrivilegeResponse"); + xfer += oprot->writeStructBegin("PrincipalPrivilegeSet"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->success); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->userPrivileges.size())); + std::map > ::const_iterator _iter79; + for (_iter79 = this->userPrivileges.begin(); _iter79 != this->userPrivileges.end(); ++_iter79) + { + xfer += oprot->writeString(_iter79->first); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter79->second.size())); + std::vector ::const_iterator _iter80; + for (_iter80 = _iter79->second.begin(); _iter80 != _iter79->second.end(); ++_iter80) + { + xfer += (*_iter80).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->groupPrivileges.size())); + std::map > ::const_iterator _iter81; + for (_iter81 = this->groupPrivileges.begin(); _iter81 != this->groupPrivileges.end(); ++_iter81) + { + xfer += oprot->writeString(_iter81->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 += (*_iter82).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->rolePrivileges.size())); + std::map > ::const_iterator _iter83; + for (_iter83 = this->rolePrivileges.begin(); _iter83 != this->rolePrivileges.end(); ++_iter83) + { + xfer += oprot->writeString(_iter83->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 += (*_iter84).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeMapEnd(); } + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { +void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { using ::std::swap; - swap(a.success, b.success); + swap(a.userPrivileges, b.userPrivileges); + swap(a.groupPrivileges, b.groupPrivileges); + swap(a.rolePrivileges, b.rolePrivileges); swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other86) { - success = other86.success; - __isset = other86.__isset; +PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other85) { + userPrivileges = other85.userPrivileges; + groupPrivileges = other85.groupPrivileges; + rolePrivileges = other85.rolePrivileges; + __isset = other85.__isset; } -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other87) { - success = other87.success; - __isset = other87.__isset; +PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other86) { + userPrivileges = other86.userPrivileges; + groupPrivileges = other86.groupPrivileges; + rolePrivileges = other86.rolePrivileges; + __isset = other86.__isset; return *this; } -void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { +void PrincipalPrivilegeSet::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "GrantRevokePrivilegeResponse("; - out << "success="; (__isset.success ? (out << to_string(success)) : (out << "")); + out << "PrincipalPrivilegeSet("; + out << "userPrivileges=" << to_string(userPrivileges); + out << ", " << "groupPrivileges=" << to_string(groupPrivileges); + out << ", " << "rolePrivileges=" << to_string(rolePrivileges); out << ")"; } -Role::~Role() throw() { +GrantRevokePrivilegeRequest::~GrantRevokePrivilegeRequest() throw() { } -void Role::__set_roleName(const std::string& val) { - this->roleName = val; +void GrantRevokePrivilegeRequest::__set_requestType(const GrantRevokeType::type val) { + this->requestType = val; } -void Role::__set_createTime(const int32_t val) { - this->createTime = val; +void GrantRevokePrivilegeRequest::__set_privileges(const PrivilegeBag& val) { + this->privileges = val; } -void Role::__set_ownerName(const std::string& val) { - this->ownerName = val; +void GrantRevokePrivilegeRequest::__set_revokeGrantOption(const bool val) { + this->revokeGrantOption = val; +__isset.revokeGrantOption = true; } -uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -2286,15 +2501,232 @@ uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->roleName); - this->__isset.roleName = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast87; + xfer += iprot->readI32(ecast87); + this->requestType = (GrantRevokeType::type)ecast87; + this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->privileges.read(iprot); + this->__isset.privileges = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->revokeGrantOption); + this->__isset.revokeGrantOption = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t GrantRevokePrivilegeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("GrantRevokePrivilegeRequest"); + + xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->requestType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->privileges.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.revokeGrantOption) { + xfer += oprot->writeFieldBegin("revokeGrantOption", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->revokeGrantOption); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { + using ::std::swap; + swap(a.requestType, b.requestType); + swap(a.privileges, b.privileges); + swap(a.revokeGrantOption, b.revokeGrantOption); + swap(a.__isset, b.__isset); +} + +GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other88) { + requestType = other88.requestType; + privileges = other88.privileges; + revokeGrantOption = other88.revokeGrantOption; + __isset = other88.__isset; +} +GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other89) { + requestType = other89.requestType; + privileges = other89.privileges; + revokeGrantOption = other89.revokeGrantOption; + __isset = other89.__isset; + return *this; +} +void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "GrantRevokePrivilegeRequest("; + out << "requestType=" << to_string(requestType); + out << ", " << "privileges=" << to_string(privileges); + out << ", " << "revokeGrantOption="; (__isset.revokeGrantOption ? (out << to_string(revokeGrantOption)) : (out << "")); + out << ")"; +} + + +GrantRevokePrivilegeResponse::~GrantRevokePrivilegeResponse() throw() { +} + + +void GrantRevokePrivilegeResponse::__set_success(const bool val) { + this->success = val; +__isset.success = true; +} + +uint32_t GrantRevokePrivilegeResponse::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_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t GrantRevokePrivilegeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("GrantRevokePrivilegeResponse"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { + using ::std::swap; + swap(a.success, b.success); + swap(a.__isset, b.__isset); +} + +GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other90) { + success = other90.success; + __isset = other90.__isset; +} +GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other91) { + success = other91.success; + __isset = other91.__isset; + return *this; +} +void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "GrantRevokePrivilegeResponse("; + out << "success="; (__isset.success ? (out << to_string(success)) : (out << "")); + out << ")"; +} + + +Role::~Role() throw() { +} + + +void Role::__set_roleName(const std::string& val) { + this->roleName = val; +} + +void Role::__set_createTime(const int32_t val) { + this->createTime = val; +} + +void Role::__set_ownerName(const std::string& val) { + this->ownerName = val; +} + +uint32_t Role::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->roleName); + this->__isset.roleName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->createTime); this->__isset.createTime = true; } else { @@ -2351,17 +2783,17 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } -Role::Role(const Role& other88) { - roleName = other88.roleName; - createTime = other88.createTime; - ownerName = other88.ownerName; - __isset = other88.__isset; +Role::Role(const Role& other92) { + roleName = other92.roleName; + createTime = other92.createTime; + ownerName = other92.ownerName; + __isset = other92.__isset; } -Role& Role::operator=(const Role& other89) { - roleName = other89.roleName; - createTime = other89.createTime; - ownerName = other89.ownerName; - __isset = other89.__isset; +Role& Role::operator=(const Role& other93) { + roleName = other93.roleName; + createTime = other93.createTime; + ownerName = other93.ownerName; + __isset = other93.__isset; return *this; } void Role::printTo(std::ostream& out) const { @@ -2445,9 +2877,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast90; - xfer += iprot->readI32(ecast90); - this->principalType = (PrincipalType::type)ecast90; + int32_t ecast94; + xfer += iprot->readI32(ecast94); + this->principalType = (PrincipalType::type)ecast94; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2479,9 +2911,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast91; - xfer += iprot->readI32(ecast91); - this->grantorPrincipalType = (PrincipalType::type)ecast91; + int32_t ecast95; + xfer += iprot->readI32(ecast95); + this->grantorPrincipalType = (PrincipalType::type)ecast95; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -2549,25 +2981,25 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__isset); } -RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other92) { - roleName = other92.roleName; - principalName = other92.principalName; - principalType = other92.principalType; - grantOption = other92.grantOption; - grantTime = other92.grantTime; - grantorName = other92.grantorName; - grantorPrincipalType = other92.grantorPrincipalType; - __isset = other92.__isset; -} -RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other93) { - roleName = other93.roleName; - principalName = other93.principalName; - principalType = other93.principalType; - grantOption = other93.grantOption; - grantTime = other93.grantTime; - grantorName = other93.grantorName; - grantorPrincipalType = other93.grantorPrincipalType; - __isset = other93.__isset; +RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other96) { + roleName = other96.roleName; + principalName = other96.principalName; + principalType = other96.principalType; + grantOption = other96.grantOption; + grantTime = other96.grantTime; + grantorName = other96.grantorName; + grantorPrincipalType = other96.grantorPrincipalType; + __isset = other96.__isset; +} +RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other97) { + roleName = other97.roleName; + principalName = other97.principalName; + principalType = other97.principalType; + grantOption = other97.grantOption; + grantTime = other97.grantTime; + grantorName = other97.grantorName; + grantorPrincipalType = other97.grantorPrincipalType; + __isset = other97.__isset; return *this; } void RolePrincipalGrant::printTo(std::ostream& out) const { @@ -2629,9 +3061,9 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast94; - xfer += iprot->readI32(ecast94); - this->principal_type = (PrincipalType::type)ecast94; + int32_t ecast98; + xfer += iprot->readI32(ecast98); + this->principal_type = (PrincipalType::type)ecast98; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -2677,13 +3109,13 @@ void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest swap(a.principal_type, b.principal_type); } -GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other95) { - principal_name = other95.principal_name; - principal_type = other95.principal_type; +GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other99) { + principal_name = other99.principal_name; + principal_type = other99.principal_type; } -GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other96) { - principal_name = other96.principal_name; - principal_type = other96.principal_type; +GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other100) { + principal_name = other100.principal_name; + principal_type = other100.principal_type; return *this; } void GetRoleGrantsForPrincipalRequest::printTo(std::ostream& out) const { @@ -2729,14 +3161,14 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size97; - ::apache::thrift::protocol::TType _etype100; - xfer += iprot->readListBegin(_etype100, _size97); - this->principalGrants.resize(_size97); - uint32_t _i101; - for (_i101 = 0; _i101 < _size97; ++_i101) + uint32_t _size101; + ::apache::thrift::protocol::TType _etype104; + xfer += iprot->readListBegin(_etype104, _size101); + this->principalGrants.resize(_size101); + uint32_t _i105; + for (_i105 = 0; _i105 < _size101; ++_i105) { - xfer += this->principalGrants[_i101].read(iprot); + xfer += this->principalGrants[_i105].read(iprot); } xfer += iprot->readListEnd(); } @@ -2767,10 +3199,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 _iter102; - for (_iter102 = this->principalGrants.begin(); _iter102 != this->principalGrants.end(); ++_iter102) + std::vector ::const_iterator _iter106; + for (_iter106 = this->principalGrants.begin(); _iter106 != this->principalGrants.end(); ++_iter106) { - xfer += (*_iter102).write(oprot); + xfer += (*_iter106).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2786,11 +3218,11 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other103) { - principalGrants = other103.principalGrants; +GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other107) { + principalGrants = other107.principalGrants; } -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other104) { - principalGrants = other104.principalGrants; +GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other108) { + principalGrants = other108.principalGrants; return *this; } void GetRoleGrantsForPrincipalResponse::printTo(std::ostream& out) const { @@ -2872,11 +3304,11 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other105) { - roleName = other105.roleName; +GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other109) { + roleName = other109.roleName; } -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other106) { - roleName = other106.roleName; +GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other110) { + roleName = other110.roleName; return *this; } void GetPrincipalsInRoleRequest::printTo(std::ostream& out) const { @@ -2921,14 +3353,14 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size107; - ::apache::thrift::protocol::TType _etype110; - xfer += iprot->readListBegin(_etype110, _size107); - this->principalGrants.resize(_size107); - uint32_t _i111; - for (_i111 = 0; _i111 < _size107; ++_i111) + uint32_t _size111; + ::apache::thrift::protocol::TType _etype114; + xfer += iprot->readListBegin(_etype114, _size111); + this->principalGrants.resize(_size111); + uint32_t _i115; + for (_i115 = 0; _i115 < _size111; ++_i115) { - xfer += this->principalGrants[_i111].read(iprot); + xfer += this->principalGrants[_i115].read(iprot); } xfer += iprot->readListEnd(); } @@ -2959,10 +3391,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 _iter112; - for (_iter112 = this->principalGrants.begin(); _iter112 != this->principalGrants.end(); ++_iter112) + std::vector ::const_iterator _iter116; + for (_iter116 = this->principalGrants.begin(); _iter116 != this->principalGrants.end(); ++_iter116) { - xfer += (*_iter112).write(oprot); + xfer += (*_iter116).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2978,11 +3410,11 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other113) { - principalGrants = other113.principalGrants; +GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other117) { + principalGrants = other117.principalGrants; } -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other114) { - principalGrants = other114.principalGrants; +GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other118) { + principalGrants = other118.principalGrants; return *this; } void GetPrincipalsInRoleResponse::printTo(std::ostream& out) const { @@ -3051,9 +3483,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast115; - xfer += iprot->readI32(ecast115); - this->requestType = (GrantRevokeType::type)ecast115; + int32_t ecast119; + xfer += iprot->readI32(ecast119); + this->requestType = (GrantRevokeType::type)ecast119; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -3077,9 +3509,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast116; - xfer += iprot->readI32(ecast116); - this->principalType = (PrincipalType::type)ecast116; + int32_t ecast120; + xfer += iprot->readI32(ecast120); + this->principalType = (PrincipalType::type)ecast120; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -3095,9 +3527,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast117; - xfer += iprot->readI32(ecast117); - this->grantorType = (PrincipalType::type)ecast117; + int32_t ecast121; + xfer += iprot->readI32(ecast121); + this->grantorType = (PrincipalType::type)ecast121; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -3176,25 +3608,25 @@ void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other118) { - requestType = other118.requestType; - roleName = other118.roleName; - principalName = other118.principalName; - principalType = other118.principalType; - grantor = other118.grantor; - grantorType = other118.grantorType; - grantOption = other118.grantOption; - __isset = other118.__isset; -} -GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other119) { - requestType = other119.requestType; - roleName = other119.roleName; - principalName = other119.principalName; - principalType = other119.principalType; - grantor = other119.grantor; - grantorType = other119.grantorType; - grantOption = other119.grantOption; - __isset = other119.__isset; +GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other122) { + requestType = other122.requestType; + roleName = other122.roleName; + principalName = other122.principalName; + principalType = other122.principalType; + grantor = other122.grantor; + grantorType = other122.grantorType; + grantOption = other122.grantOption; + __isset = other122.__isset; +} +GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other123) { + requestType = other123.requestType; + roleName = other123.roleName; + principalName = other123.principalName; + principalType = other123.principalType; + grantor = other123.grantor; + grantorType = other123.grantorType; + grantOption = other123.grantOption; + __isset = other123.__isset; return *this; } void GrantRevokeRoleRequest::printTo(std::ostream& out) const { @@ -3282,13 +3714,13 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other120) { - success = other120.success; - __isset = other120.__isset; +GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other124) { + success = other124.success; + __isset = other124.__isset; } -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other121) { - success = other121.success; - __isset = other121.__isset; +GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other125) { + success = other125.success; + __isset = other125.__isset; return *this; } void GrantRevokeRoleResponse::printTo(std::ostream& out) const { @@ -3383,17 +3815,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size122; - ::apache::thrift::protocol::TType _ktype123; - ::apache::thrift::protocol::TType _vtype124; - xfer += iprot->readMapBegin(_ktype123, _vtype124, _size122); - uint32_t _i126; - for (_i126 = 0; _i126 < _size122; ++_i126) + uint32_t _size126; + ::apache::thrift::protocol::TType _ktype127; + ::apache::thrift::protocol::TType _vtype128; + xfer += iprot->readMapBegin(_ktype127, _vtype128, _size126); + uint32_t _i130; + for (_i130 = 0; _i130 < _size126; ++_i130) { - std::string _key127; - xfer += iprot->readString(_key127); - std::string& _val128 = this->parameters[_key127]; - xfer += iprot->readString(_val128); + std::string _key131; + xfer += iprot->readString(_key131); + std::string& _val132 = this->parameters[_key131]; + xfer += iprot->readString(_val132); } xfer += iprot->readMapEnd(); } @@ -3420,9 +3852,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast129; - xfer += iprot->readI32(ecast129); - this->ownerType = (PrincipalType::type)ecast129; + int32_t ecast133; + xfer += iprot->readI32(ecast133); + this->ownerType = (PrincipalType::type)ecast133; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -3460,11 +3892,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 _iter130; - for (_iter130 = this->parameters.begin(); _iter130 != this->parameters.end(); ++_iter130) + std::map ::const_iterator _iter134; + for (_iter134 = this->parameters.begin(); _iter134 != this->parameters.end(); ++_iter134) { - xfer += oprot->writeString(_iter130->first); - xfer += oprot->writeString(_iter130->second); + xfer += oprot->writeString(_iter134->first); + xfer += oprot->writeString(_iter134->second); } xfer += oprot->writeMapEnd(); } @@ -3502,25 +3934,25 @@ void swap(Database &a, Database &b) { swap(a.__isset, b.__isset); } -Database::Database(const Database& other131) { - name = other131.name; - description = other131.description; - locationUri = other131.locationUri; - parameters = other131.parameters; - privileges = other131.privileges; - ownerName = other131.ownerName; - ownerType = other131.ownerType; - __isset = other131.__isset; -} -Database& Database::operator=(const Database& other132) { - name = other132.name; - description = other132.description; - locationUri = other132.locationUri; - parameters = other132.parameters; - privileges = other132.privileges; - ownerName = other132.ownerName; - ownerType = other132.ownerType; - __isset = other132.__isset; +Database::Database(const Database& other135) { + name = other135.name; + description = other135.description; + locationUri = other135.locationUri; + parameters = other135.parameters; + privileges = other135.privileges; + ownerName = other135.ownerName; + ownerType = other135.ownerType; + __isset = other135.__isset; +} +Database& Database::operator=(const Database& other136) { + name = other136.name; + description = other136.description; + locationUri = other136.locationUri; + parameters = other136.parameters; + privileges = other136.privileges; + ownerName = other136.ownerName; + ownerType = other136.ownerType; + __isset = other136.__isset; return *this; } void Database::printTo(std::ostream& out) const { @@ -3594,17 +4026,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size133; - ::apache::thrift::protocol::TType _ktype134; - ::apache::thrift::protocol::TType _vtype135; - xfer += iprot->readMapBegin(_ktype134, _vtype135, _size133); - uint32_t _i137; - for (_i137 = 0; _i137 < _size133; ++_i137) + uint32_t _size137; + ::apache::thrift::protocol::TType _ktype138; + ::apache::thrift::protocol::TType _vtype139; + xfer += iprot->readMapBegin(_ktype138, _vtype139, _size137); + uint32_t _i141; + for (_i141 = 0; _i141 < _size137; ++_i141) { - std::string _key138; - xfer += iprot->readString(_key138); - std::string& _val139 = this->parameters[_key138]; - xfer += iprot->readString(_val139); + std::string _key142; + xfer += iprot->readString(_key142); + std::string& _val143 = this->parameters[_key142]; + xfer += iprot->readString(_val143); } xfer += iprot->readMapEnd(); } @@ -3641,11 +4073,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 _iter140; - for (_iter140 = this->parameters.begin(); _iter140 != this->parameters.end(); ++_iter140) + std::map ::const_iterator _iter144; + for (_iter144 = this->parameters.begin(); _iter144 != this->parameters.end(); ++_iter144) { - xfer += oprot->writeString(_iter140->first); - xfer += oprot->writeString(_iter140->second); + xfer += oprot->writeString(_iter144->first); + xfer += oprot->writeString(_iter144->second); } xfer += oprot->writeMapEnd(); } @@ -3664,17 +4096,17 @@ void swap(SerDeInfo &a, SerDeInfo &b) { swap(a.__isset, b.__isset); } -SerDeInfo::SerDeInfo(const SerDeInfo& other141) { - name = other141.name; - serializationLib = other141.serializationLib; - parameters = other141.parameters; - __isset = other141.__isset; +SerDeInfo::SerDeInfo(const SerDeInfo& other145) { + name = other145.name; + serializationLib = other145.serializationLib; + parameters = other145.parameters; + __isset = other145.__isset; } -SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other142) { - name = other142.name; - serializationLib = other142.serializationLib; - parameters = other142.parameters; - __isset = other142.__isset; +SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other146) { + name = other146.name; + serializationLib = other146.serializationLib; + parameters = other146.parameters; + __isset = other146.__isset; return *this; } void SerDeInfo::printTo(std::ostream& out) const { @@ -3773,15 +4205,15 @@ void swap(Order &a, Order &b) { swap(a.__isset, b.__isset); } -Order::Order(const Order& other143) { - col = other143.col; - order = other143.order; - __isset = other143.__isset; +Order::Order(const Order& other147) { + col = other147.col; + order = other147.order; + __isset = other147.__isset; } -Order& Order::operator=(const Order& other144) { - col = other144.col; - order = other144.order; - __isset = other144.__isset; +Order& Order::operator=(const Order& other148) { + col = other148.col; + order = other148.order; + __isset = other148.__isset; return *this; } void Order::printTo(std::ostream& out) const { @@ -3834,14 +4266,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size145; - ::apache::thrift::protocol::TType _etype148; - xfer += iprot->readListBegin(_etype148, _size145); - this->skewedColNames.resize(_size145); - uint32_t _i149; - for (_i149 = 0; _i149 < _size145; ++_i149) + uint32_t _size149; + ::apache::thrift::protocol::TType _etype152; + xfer += iprot->readListBegin(_etype152, _size149); + this->skewedColNames.resize(_size149); + uint32_t _i153; + for (_i153 = 0; _i153 < _size149; ++_i153) { - xfer += iprot->readString(this->skewedColNames[_i149]); + xfer += iprot->readString(this->skewedColNames[_i153]); } xfer += iprot->readListEnd(); } @@ -3854,23 +4286,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size150; - ::apache::thrift::protocol::TType _etype153; - xfer += iprot->readListBegin(_etype153, _size150); - this->skewedColValues.resize(_size150); - uint32_t _i154; - for (_i154 = 0; _i154 < _size150; ++_i154) + uint32_t _size154; + ::apache::thrift::protocol::TType _etype157; + xfer += iprot->readListBegin(_etype157, _size154); + this->skewedColValues.resize(_size154); + uint32_t _i158; + for (_i158 = 0; _i158 < _size154; ++_i158) { { - this->skewedColValues[_i154].clear(); - uint32_t _size155; - ::apache::thrift::protocol::TType _etype158; - xfer += iprot->readListBegin(_etype158, _size155); - this->skewedColValues[_i154].resize(_size155); - uint32_t _i159; - for (_i159 = 0; _i159 < _size155; ++_i159) + this->skewedColValues[_i158].clear(); + uint32_t _size159; + ::apache::thrift::protocol::TType _etype162; + xfer += iprot->readListBegin(_etype162, _size159); + this->skewedColValues[_i158].resize(_size159); + uint32_t _i163; + for (_i163 = 0; _i163 < _size159; ++_i163) { - xfer += iprot->readString(this->skewedColValues[_i154][_i159]); + xfer += iprot->readString(this->skewedColValues[_i158][_i163]); } xfer += iprot->readListEnd(); } @@ -3886,29 +4318,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size160; - ::apache::thrift::protocol::TType _ktype161; - ::apache::thrift::protocol::TType _vtype162; - xfer += iprot->readMapBegin(_ktype161, _vtype162, _size160); - uint32_t _i164; - for (_i164 = 0; _i164 < _size160; ++_i164) + uint32_t _size164; + ::apache::thrift::protocol::TType _ktype165; + ::apache::thrift::protocol::TType _vtype166; + xfer += iprot->readMapBegin(_ktype165, _vtype166, _size164); + uint32_t _i168; + for (_i168 = 0; _i168 < _size164; ++_i168) { - std::vector _key165; + std::vector _key169; { - _key165.clear(); - uint32_t _size167; - ::apache::thrift::protocol::TType _etype170; - xfer += iprot->readListBegin(_etype170, _size167); - _key165.resize(_size167); - uint32_t _i171; - for (_i171 = 0; _i171 < _size167; ++_i171) + _key169.clear(); + uint32_t _size171; + ::apache::thrift::protocol::TType _etype174; + xfer += iprot->readListBegin(_etype174, _size171); + _key169.resize(_size171); + uint32_t _i175; + for (_i175 = 0; _i175 < _size171; ++_i175) { - xfer += iprot->readString(_key165[_i171]); + xfer += iprot->readString(_key169[_i175]); } xfer += iprot->readListEnd(); } - std::string& _val166 = this->skewedColValueLocationMaps[_key165]; - xfer += iprot->readString(_val166); + std::string& _val170 = this->skewedColValueLocationMaps[_key169]; + xfer += iprot->readString(_val170); } xfer += iprot->readMapEnd(); } @@ -3937,10 +4369,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 _iter172; - for (_iter172 = this->skewedColNames.begin(); _iter172 != this->skewedColNames.end(); ++_iter172) + std::vector ::const_iterator _iter176; + for (_iter176 = this->skewedColNames.begin(); _iter176 != this->skewedColNames.end(); ++_iter176) { - xfer += oprot->writeString((*_iter172)); + xfer += oprot->writeString((*_iter176)); } xfer += oprot->writeListEnd(); } @@ -3949,15 +4381,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 _iter173; - for (_iter173 = this->skewedColValues.begin(); _iter173 != this->skewedColValues.end(); ++_iter173) + std::vector > ::const_iterator _iter177; + for (_iter177 = this->skewedColValues.begin(); _iter177 != this->skewedColValues.end(); ++_iter177) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter173).size())); - std::vector ::const_iterator _iter174; - for (_iter174 = (*_iter173).begin(); _iter174 != (*_iter173).end(); ++_iter174) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter177).size())); + std::vector ::const_iterator _iter178; + for (_iter178 = (*_iter177).begin(); _iter178 != (*_iter177).end(); ++_iter178) { - xfer += oprot->writeString((*_iter174)); + xfer += oprot->writeString((*_iter178)); } xfer += oprot->writeListEnd(); } @@ -3969,19 +4401,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 _iter175; - for (_iter175 = this->skewedColValueLocationMaps.begin(); _iter175 != this->skewedColValueLocationMaps.end(); ++_iter175) + std::map , std::string> ::const_iterator _iter179; + for (_iter179 = this->skewedColValueLocationMaps.begin(); _iter179 != this->skewedColValueLocationMaps.end(); ++_iter179) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter175->first.size())); - std::vector ::const_iterator _iter176; - for (_iter176 = _iter175->first.begin(); _iter176 != _iter175->first.end(); ++_iter176) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter179->first.size())); + std::vector ::const_iterator _iter180; + for (_iter180 = _iter179->first.begin(); _iter180 != _iter179->first.end(); ++_iter180) { - xfer += oprot->writeString((*_iter176)); + xfer += oprot->writeString((*_iter180)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter175->second); + xfer += oprot->writeString(_iter179->second); } xfer += oprot->writeMapEnd(); } @@ -4000,17 +4432,17 @@ void swap(SkewedInfo &a, SkewedInfo &b) { swap(a.__isset, b.__isset); } -SkewedInfo::SkewedInfo(const SkewedInfo& other177) { - skewedColNames = other177.skewedColNames; - skewedColValues = other177.skewedColValues; - skewedColValueLocationMaps = other177.skewedColValueLocationMaps; - __isset = other177.__isset; +SkewedInfo::SkewedInfo(const SkewedInfo& other181) { + skewedColNames = other181.skewedColNames; + skewedColValues = other181.skewedColValues; + skewedColValueLocationMaps = other181.skewedColValueLocationMaps; + __isset = other181.__isset; } -SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other178) { - skewedColNames = other178.skewedColNames; - skewedColValues = other178.skewedColValues; - skewedColValueLocationMaps = other178.skewedColValueLocationMaps; - __isset = other178.__isset; +SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other182) { + skewedColNames = other182.skewedColNames; + skewedColValues = other182.skewedColValues; + skewedColValueLocationMaps = other182.skewedColValueLocationMaps; + __isset = other182.__isset; return *this; } void SkewedInfo::printTo(std::ostream& out) const { @@ -4102,14 +4534,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size179; - ::apache::thrift::protocol::TType _etype182; - xfer += iprot->readListBegin(_etype182, _size179); - this->cols.resize(_size179); - uint32_t _i183; - for (_i183 = 0; _i183 < _size179; ++_i183) + uint32_t _size183; + ::apache::thrift::protocol::TType _etype186; + xfer += iprot->readListBegin(_etype186, _size183); + this->cols.resize(_size183); + uint32_t _i187; + for (_i187 = 0; _i187 < _size183; ++_i187) { - xfer += this->cols[_i183].read(iprot); + xfer += this->cols[_i187].read(iprot); } xfer += iprot->readListEnd(); } @@ -4170,14 +4602,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size184; - ::apache::thrift::protocol::TType _etype187; - xfer += iprot->readListBegin(_etype187, _size184); - this->bucketCols.resize(_size184); - uint32_t _i188; - for (_i188 = 0; _i188 < _size184; ++_i188) + uint32_t _size188; + ::apache::thrift::protocol::TType _etype191; + xfer += iprot->readListBegin(_etype191, _size188); + this->bucketCols.resize(_size188); + uint32_t _i192; + for (_i192 = 0; _i192 < _size188; ++_i192) { - xfer += iprot->readString(this->bucketCols[_i188]); + xfer += iprot->readString(this->bucketCols[_i192]); } xfer += iprot->readListEnd(); } @@ -4190,14 +4622,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size189; - ::apache::thrift::protocol::TType _etype192; - xfer += iprot->readListBegin(_etype192, _size189); - this->sortCols.resize(_size189); - uint32_t _i193; - for (_i193 = 0; _i193 < _size189; ++_i193) + uint32_t _size193; + ::apache::thrift::protocol::TType _etype196; + xfer += iprot->readListBegin(_etype196, _size193); + this->sortCols.resize(_size193); + uint32_t _i197; + for (_i197 = 0; _i197 < _size193; ++_i197) { - xfer += this->sortCols[_i193].read(iprot); + xfer += this->sortCols[_i197].read(iprot); } xfer += iprot->readListEnd(); } @@ -4210,17 +4642,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size194; - ::apache::thrift::protocol::TType _ktype195; - ::apache::thrift::protocol::TType _vtype196; - xfer += iprot->readMapBegin(_ktype195, _vtype196, _size194); - uint32_t _i198; - for (_i198 = 0; _i198 < _size194; ++_i198) + uint32_t _size198; + ::apache::thrift::protocol::TType _ktype199; + ::apache::thrift::protocol::TType _vtype200; + xfer += iprot->readMapBegin(_ktype199, _vtype200, _size198); + uint32_t _i202; + for (_i202 = 0; _i202 < _size198; ++_i202) { - std::string _key199; - xfer += iprot->readString(_key199); - std::string& _val200 = this->parameters[_key199]; - xfer += iprot->readString(_val200); + std::string _key203; + xfer += iprot->readString(_key203); + std::string& _val204 = this->parameters[_key203]; + xfer += iprot->readString(_val204); } xfer += iprot->readMapEnd(); } @@ -4265,10 +4697,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 _iter201; - for (_iter201 = this->cols.begin(); _iter201 != this->cols.end(); ++_iter201) + std::vector ::const_iterator _iter205; + for (_iter205 = this->cols.begin(); _iter205 != this->cols.end(); ++_iter205) { - xfer += (*_iter201).write(oprot); + xfer += (*_iter205).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4301,10 +4733,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 _iter202; - for (_iter202 = this->bucketCols.begin(); _iter202 != this->bucketCols.end(); ++_iter202) + std::vector ::const_iterator _iter206; + for (_iter206 = this->bucketCols.begin(); _iter206 != this->bucketCols.end(); ++_iter206) { - xfer += oprot->writeString((*_iter202)); + xfer += oprot->writeString((*_iter206)); } xfer += oprot->writeListEnd(); } @@ -4313,10 +4745,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 _iter203; - for (_iter203 = this->sortCols.begin(); _iter203 != this->sortCols.end(); ++_iter203) + std::vector ::const_iterator _iter207; + for (_iter207 = this->sortCols.begin(); _iter207 != this->sortCols.end(); ++_iter207) { - xfer += (*_iter203).write(oprot); + xfer += (*_iter207).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4325,11 +4757,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 _iter204; - for (_iter204 = this->parameters.begin(); _iter204 != this->parameters.end(); ++_iter204) + std::map ::const_iterator _iter208; + for (_iter208 = this->parameters.begin(); _iter208 != this->parameters.end(); ++_iter208) { - xfer += oprot->writeString(_iter204->first); - xfer += oprot->writeString(_iter204->second); + xfer += oprot->writeString(_iter208->first); + xfer += oprot->writeString(_iter208->second); } xfer += oprot->writeMapEnd(); } @@ -4367,35 +4799,35 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) { swap(a.__isset, b.__isset); } -StorageDescriptor::StorageDescriptor(const StorageDescriptor& other205) { - cols = other205.cols; - location = other205.location; - inputFormat = other205.inputFormat; - outputFormat = other205.outputFormat; - compressed = other205.compressed; - numBuckets = other205.numBuckets; - serdeInfo = other205.serdeInfo; - bucketCols = other205.bucketCols; - sortCols = other205.sortCols; - parameters = other205.parameters; - skewedInfo = other205.skewedInfo; - storedAsSubDirectories = other205.storedAsSubDirectories; - __isset = other205.__isset; -} -StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other206) { - cols = other206.cols; - location = other206.location; - inputFormat = other206.inputFormat; - outputFormat = other206.outputFormat; - compressed = other206.compressed; - numBuckets = other206.numBuckets; - serdeInfo = other206.serdeInfo; - bucketCols = other206.bucketCols; - sortCols = other206.sortCols; - parameters = other206.parameters; - skewedInfo = other206.skewedInfo; - storedAsSubDirectories = other206.storedAsSubDirectories; - __isset = other206.__isset; +StorageDescriptor::StorageDescriptor(const StorageDescriptor& other209) { + cols = other209.cols; + location = other209.location; + inputFormat = other209.inputFormat; + outputFormat = other209.outputFormat; + compressed = other209.compressed; + numBuckets = other209.numBuckets; + serdeInfo = other209.serdeInfo; + bucketCols = other209.bucketCols; + sortCols = other209.sortCols; + parameters = other209.parameters; + skewedInfo = other209.skewedInfo; + storedAsSubDirectories = other209.storedAsSubDirectories; + __isset = other209.__isset; +} +StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other210) { + cols = other210.cols; + location = other210.location; + inputFormat = other210.inputFormat; + outputFormat = other210.outputFormat; + compressed = other210.compressed; + numBuckets = other210.numBuckets; + serdeInfo = other210.serdeInfo; + bucketCols = other210.bucketCols; + sortCols = other210.sortCols; + parameters = other210.parameters; + skewedInfo = other210.skewedInfo; + storedAsSubDirectories = other210.storedAsSubDirectories; + __isset = other210.__isset; return *this; } void StorageDescriptor::printTo(std::ostream& out) const { @@ -4565,14 +4997,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size207; - ::apache::thrift::protocol::TType _etype210; - xfer += iprot->readListBegin(_etype210, _size207); - this->partitionKeys.resize(_size207); - uint32_t _i211; - for (_i211 = 0; _i211 < _size207; ++_i211) + uint32_t _size211; + ::apache::thrift::protocol::TType _etype214; + xfer += iprot->readListBegin(_etype214, _size211); + this->partitionKeys.resize(_size211); + uint32_t _i215; + for (_i215 = 0; _i215 < _size211; ++_i215) { - xfer += this->partitionKeys[_i211].read(iprot); + xfer += this->partitionKeys[_i215].read(iprot); } xfer += iprot->readListEnd(); } @@ -4585,17 +5017,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size212; - ::apache::thrift::protocol::TType _ktype213; - ::apache::thrift::protocol::TType _vtype214; - xfer += iprot->readMapBegin(_ktype213, _vtype214, _size212); - uint32_t _i216; - for (_i216 = 0; _i216 < _size212; ++_i216) + uint32_t _size216; + ::apache::thrift::protocol::TType _ktype217; + ::apache::thrift::protocol::TType _vtype218; + xfer += iprot->readMapBegin(_ktype217, _vtype218, _size216); + uint32_t _i220; + for (_i220 = 0; _i220 < _size216; ++_i220) { - std::string _key217; - xfer += iprot->readString(_key217); - std::string& _val218 = this->parameters[_key217]; - xfer += iprot->readString(_val218); + std::string _key221; + xfer += iprot->readString(_key221); + std::string& _val222 = this->parameters[_key221]; + xfer += iprot->readString(_val222); } xfer += iprot->readMapEnd(); } @@ -4700,10 +5132,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 _iter219; - for (_iter219 = this->partitionKeys.begin(); _iter219 != this->partitionKeys.end(); ++_iter219) + std::vector ::const_iterator _iter223; + for (_iter223 = this->partitionKeys.begin(); _iter223 != this->partitionKeys.end(); ++_iter223) { - xfer += (*_iter219).write(oprot); + xfer += (*_iter223).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4712,11 +5144,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 _iter220; - for (_iter220 = this->parameters.begin(); _iter220 != this->parameters.end(); ++_iter220) + std::map ::const_iterator _iter224; + for (_iter224 = this->parameters.begin(); _iter224 != this->parameters.end(); ++_iter224) { - xfer += oprot->writeString(_iter220->first); - xfer += oprot->writeString(_iter220->second); + xfer += oprot->writeString(_iter224->first); + xfer += oprot->writeString(_iter224->second); } xfer += oprot->writeMapEnd(); } @@ -4774,41 +5206,41 @@ void swap(Table &a, Table &b) { swap(a.__isset, b.__isset); } -Table::Table(const Table& other221) { - tableName = other221.tableName; - dbName = other221.dbName; - owner = other221.owner; - createTime = other221.createTime; - lastAccessTime = other221.lastAccessTime; - retention = other221.retention; - sd = other221.sd; - partitionKeys = other221.partitionKeys; - parameters = other221.parameters; - viewOriginalText = other221.viewOriginalText; - viewExpandedText = other221.viewExpandedText; - tableType = other221.tableType; - privileges = other221.privileges; - temporary = other221.temporary; - rewriteEnabled = other221.rewriteEnabled; - __isset = other221.__isset; -} -Table& Table::operator=(const Table& other222) { - tableName = other222.tableName; - dbName = other222.dbName; - owner = other222.owner; - createTime = other222.createTime; - lastAccessTime = other222.lastAccessTime; - retention = other222.retention; - sd = other222.sd; - partitionKeys = other222.partitionKeys; - parameters = other222.parameters; - viewOriginalText = other222.viewOriginalText; - viewExpandedText = other222.viewExpandedText; - tableType = other222.tableType; - privileges = other222.privileges; - temporary = other222.temporary; - rewriteEnabled = other222.rewriteEnabled; - __isset = other222.__isset; +Table::Table(const Table& other225) { + tableName = other225.tableName; + dbName = other225.dbName; + owner = other225.owner; + createTime = other225.createTime; + lastAccessTime = other225.lastAccessTime; + retention = other225.retention; + sd = other225.sd; + partitionKeys = other225.partitionKeys; + parameters = other225.parameters; + viewOriginalText = other225.viewOriginalText; + viewExpandedText = other225.viewExpandedText; + tableType = other225.tableType; + privileges = other225.privileges; + temporary = other225.temporary; + rewriteEnabled = other225.rewriteEnabled; + __isset = other225.__isset; +} +Table& Table::operator=(const Table& other226) { + tableName = other226.tableName; + dbName = other226.dbName; + owner = other226.owner; + createTime = other226.createTime; + lastAccessTime = other226.lastAccessTime; + retention = other226.retention; + sd = other226.sd; + partitionKeys = other226.partitionKeys; + parameters = other226.parameters; + viewOriginalText = other226.viewOriginalText; + viewExpandedText = other226.viewExpandedText; + tableType = other226.tableType; + privileges = other226.privileges; + temporary = other226.temporary; + rewriteEnabled = other226.rewriteEnabled; + __isset = other226.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -4895,14 +5327,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size223; - ::apache::thrift::protocol::TType _etype226; - xfer += iprot->readListBegin(_etype226, _size223); - this->values.resize(_size223); - uint32_t _i227; - for (_i227 = 0; _i227 < _size223; ++_i227) + uint32_t _size227; + ::apache::thrift::protocol::TType _etype230; + xfer += iprot->readListBegin(_etype230, _size227); + this->values.resize(_size227); + uint32_t _i231; + for (_i231 = 0; _i231 < _size227; ++_i231) { - xfer += iprot->readString(this->values[_i227]); + xfer += iprot->readString(this->values[_i231]); } xfer += iprot->readListEnd(); } @@ -4955,17 +5387,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size228; - ::apache::thrift::protocol::TType _ktype229; - ::apache::thrift::protocol::TType _vtype230; - xfer += iprot->readMapBegin(_ktype229, _vtype230, _size228); - uint32_t _i232; - for (_i232 = 0; _i232 < _size228; ++_i232) + uint32_t _size232; + ::apache::thrift::protocol::TType _ktype233; + ::apache::thrift::protocol::TType _vtype234; + xfer += iprot->readMapBegin(_ktype233, _vtype234, _size232); + uint32_t _i236; + for (_i236 = 0; _i236 < _size232; ++_i236) { - std::string _key233; - xfer += iprot->readString(_key233); - std::string& _val234 = this->parameters[_key233]; - xfer += iprot->readString(_val234); + std::string _key237; + xfer += iprot->readString(_key237); + std::string& _val238 = this->parameters[_key237]; + xfer += iprot->readString(_val238); } xfer += iprot->readMapEnd(); } @@ -5002,10 +5434,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 _iter235; - for (_iter235 = this->values.begin(); _iter235 != this->values.end(); ++_iter235) + std::vector ::const_iterator _iter239; + for (_iter239 = this->values.begin(); _iter239 != this->values.end(); ++_iter239) { - xfer += oprot->writeString((*_iter235)); + xfer += oprot->writeString((*_iter239)); } xfer += oprot->writeListEnd(); } @@ -5034,11 +5466,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 _iter236; - for (_iter236 = this->parameters.begin(); _iter236 != this->parameters.end(); ++_iter236) + std::map ::const_iterator _iter240; + for (_iter240 = this->parameters.begin(); _iter240 != this->parameters.end(); ++_iter240) { - xfer += oprot->writeString(_iter236->first); - xfer += oprot->writeString(_iter236->second); + xfer += oprot->writeString(_iter240->first); + xfer += oprot->writeString(_iter240->second); } xfer += oprot->writeMapEnd(); } @@ -5067,27 +5499,27 @@ void swap(Partition &a, Partition &b) { swap(a.__isset, b.__isset); } -Partition::Partition(const Partition& other237) { - values = other237.values; - dbName = other237.dbName; - tableName = other237.tableName; - createTime = other237.createTime; - lastAccessTime = other237.lastAccessTime; - sd = other237.sd; - parameters = other237.parameters; - privileges = other237.privileges; - __isset = other237.__isset; -} -Partition& Partition::operator=(const Partition& other238) { - values = other238.values; - dbName = other238.dbName; - tableName = other238.tableName; - createTime = other238.createTime; - lastAccessTime = other238.lastAccessTime; - sd = other238.sd; - parameters = other238.parameters; - privileges = other238.privileges; - __isset = other238.__isset; +Partition::Partition(const Partition& other241) { + values = other241.values; + dbName = other241.dbName; + tableName = other241.tableName; + createTime = other241.createTime; + lastAccessTime = other241.lastAccessTime; + sd = other241.sd; + parameters = other241.parameters; + privileges = other241.privileges; + __isset = other241.__isset; +} +Partition& Partition::operator=(const Partition& other242) { + values = other242.values; + dbName = other242.dbName; + tableName = other242.tableName; + createTime = other242.createTime; + lastAccessTime = other242.lastAccessTime; + sd = other242.sd; + parameters = other242.parameters; + privileges = other242.privileges; + __isset = other242.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -5159,14 +5591,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size239; - ::apache::thrift::protocol::TType _etype242; - xfer += iprot->readListBegin(_etype242, _size239); - this->values.resize(_size239); - uint32_t _i243; - for (_i243 = 0; _i243 < _size239; ++_i243) + uint32_t _size243; + ::apache::thrift::protocol::TType _etype246; + xfer += iprot->readListBegin(_etype246, _size243); + this->values.resize(_size243); + uint32_t _i247; + for (_i247 = 0; _i247 < _size243; ++_i247) { - xfer += iprot->readString(this->values[_i243]); + xfer += iprot->readString(this->values[_i247]); } xfer += iprot->readListEnd(); } @@ -5203,17 +5635,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size244; - ::apache::thrift::protocol::TType _ktype245; - ::apache::thrift::protocol::TType _vtype246; - xfer += iprot->readMapBegin(_ktype245, _vtype246, _size244); - uint32_t _i248; - for (_i248 = 0; _i248 < _size244; ++_i248) + uint32_t _size248; + ::apache::thrift::protocol::TType _ktype249; + ::apache::thrift::protocol::TType _vtype250; + xfer += iprot->readMapBegin(_ktype249, _vtype250, _size248); + uint32_t _i252; + for (_i252 = 0; _i252 < _size248; ++_i252) { - std::string _key249; - xfer += iprot->readString(_key249); - std::string& _val250 = this->parameters[_key249]; - xfer += iprot->readString(_val250); + std::string _key253; + xfer += iprot->readString(_key253); + std::string& _val254 = this->parameters[_key253]; + xfer += iprot->readString(_val254); } xfer += iprot->readMapEnd(); } @@ -5250,10 +5682,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 _iter251; - for (_iter251 = this->values.begin(); _iter251 != this->values.end(); ++_iter251) + std::vector ::const_iterator _iter255; + for (_iter255 = this->values.begin(); _iter255 != this->values.end(); ++_iter255) { - xfer += oprot->writeString((*_iter251)); + xfer += oprot->writeString((*_iter255)); } xfer += oprot->writeListEnd(); } @@ -5274,11 +5706,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 _iter252; - for (_iter252 = this->parameters.begin(); _iter252 != this->parameters.end(); ++_iter252) + std::map ::const_iterator _iter256; + for (_iter256 = this->parameters.begin(); _iter256 != this->parameters.end(); ++_iter256) { - xfer += oprot->writeString(_iter252->first); - xfer += oprot->writeString(_iter252->second); + xfer += oprot->writeString(_iter256->first); + xfer += oprot->writeString(_iter256->second); } xfer += oprot->writeMapEnd(); } @@ -5305,23 +5737,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other253) { - values = other253.values; - createTime = other253.createTime; - lastAccessTime = other253.lastAccessTime; - relativePath = other253.relativePath; - parameters = other253.parameters; - privileges = other253.privileges; - __isset = other253.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other254) { - values = other254.values; - createTime = other254.createTime; - lastAccessTime = other254.lastAccessTime; - relativePath = other254.relativePath; - parameters = other254.parameters; - privileges = other254.privileges; - __isset = other254.__isset; +PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other257) { + values = other257.values; + createTime = other257.createTime; + lastAccessTime = other257.lastAccessTime; + relativePath = other257.relativePath; + parameters = other257.parameters; + privileges = other257.privileges; + __isset = other257.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other258) { + values = other258.values; + createTime = other258.createTime; + lastAccessTime = other258.lastAccessTime; + relativePath = other258.relativePath; + parameters = other258.parameters; + privileges = other258.privileges; + __isset = other258.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -5374,14 +5806,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size255; - ::apache::thrift::protocol::TType _etype258; - xfer += iprot->readListBegin(_etype258, _size255); - this->partitions.resize(_size255); - uint32_t _i259; - for (_i259 = 0; _i259 < _size255; ++_i259) + uint32_t _size259; + ::apache::thrift::protocol::TType _etype262; + xfer += iprot->readListBegin(_etype262, _size259); + this->partitions.resize(_size259); + uint32_t _i263; + for (_i263 = 0; _i263 < _size259; ++_i263) { - xfer += this->partitions[_i259].read(iprot); + xfer += this->partitions[_i263].read(iprot); } xfer += iprot->readListEnd(); } @@ -5418,10 +5850,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 _iter260; - for (_iter260 = this->partitions.begin(); _iter260 != this->partitions.end(); ++_iter260) + std::vector ::const_iterator _iter264; + for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) { - xfer += (*_iter260).write(oprot); + xfer += (*_iter264).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5443,15 +5875,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other261) { - partitions = other261.partitions; - sd = other261.sd; - __isset = other261.__isset; +PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other265) { + partitions = other265.partitions; + sd = other265.sd; + __isset = other265.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other262) { - partitions = other262.partitions; - sd = other262.sd; - __isset = other262.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other266) { + partitions = other266.partitions; + sd = other266.sd; + __isset = other266.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -5496,14 +5928,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size263; - ::apache::thrift::protocol::TType _etype266; - xfer += iprot->readListBegin(_etype266, _size263); - this->partitions.resize(_size263); - uint32_t _i267; - for (_i267 = 0; _i267 < _size263; ++_i267) + uint32_t _size267; + ::apache::thrift::protocol::TType _etype270; + xfer += iprot->readListBegin(_etype270, _size267); + this->partitions.resize(_size267); + uint32_t _i271; + for (_i271 = 0; _i271 < _size267; ++_i271) { - xfer += this->partitions[_i267].read(iprot); + xfer += this->partitions[_i271].read(iprot); } xfer += iprot->readListEnd(); } @@ -5532,10 +5964,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 _iter268; - for (_iter268 = this->partitions.begin(); _iter268 != this->partitions.end(); ++_iter268) + std::vector ::const_iterator _iter272; + for (_iter272 = this->partitions.begin(); _iter272 != this->partitions.end(); ++_iter272) { - xfer += (*_iter268).write(oprot); + xfer += (*_iter272).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5552,13 +5984,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other269) { - partitions = other269.partitions; - __isset = other269.__isset; +PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other273) { + partitions = other273.partitions; + __isset = other273.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other270) { - partitions = other270.partitions; - __isset = other270.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other274) { + partitions = other274.partitions; + __isset = other274.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -5710,21 +6142,21 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other271) { - dbName = other271.dbName; - tableName = other271.tableName; - rootPath = other271.rootPath; - sharedSDPartitionSpec = other271.sharedSDPartitionSpec; - partitionList = other271.partitionList; - __isset = other271.__isset; -} -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other272) { - dbName = other272.dbName; - tableName = other272.tableName; - rootPath = other272.rootPath; - sharedSDPartitionSpec = other272.sharedSDPartitionSpec; - partitionList = other272.partitionList; - __isset = other272.__isset; +PartitionSpec::PartitionSpec(const PartitionSpec& other275) { + dbName = other275.dbName; + tableName = other275.tableName; + rootPath = other275.rootPath; + sharedSDPartitionSpec = other275.sharedSDPartitionSpec; + partitionList = other275.partitionList; + __isset = other275.__isset; +} +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other276) { + dbName = other276.dbName; + tableName = other276.tableName; + rootPath = other276.rootPath; + sharedSDPartitionSpec = other276.sharedSDPartitionSpec; + partitionList = other276.partitionList; + __isset = other276.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -5872,17 +6304,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size273; - ::apache::thrift::protocol::TType _ktype274; - ::apache::thrift::protocol::TType _vtype275; - xfer += iprot->readMapBegin(_ktype274, _vtype275, _size273); - uint32_t _i277; - for (_i277 = 0; _i277 < _size273; ++_i277) + uint32_t _size277; + ::apache::thrift::protocol::TType _ktype278; + ::apache::thrift::protocol::TType _vtype279; + xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); + uint32_t _i281; + for (_i281 = 0; _i281 < _size277; ++_i281) { - std::string _key278; - xfer += iprot->readString(_key278); - std::string& _val279 = this->parameters[_key278]; - xfer += iprot->readString(_val279); + std::string _key282; + xfer += iprot->readString(_key282); + std::string& _val283 = this->parameters[_key282]; + xfer += iprot->readString(_val283); } xfer += iprot->readMapEnd(); } @@ -5951,11 +6383,11 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter280; - for (_iter280 = this->parameters.begin(); _iter280 != this->parameters.end(); ++_iter280) + std::map ::const_iterator _iter284; + for (_iter284 = this->parameters.begin(); _iter284 != this->parameters.end(); ++_iter284) { - xfer += oprot->writeString(_iter280->first); - xfer += oprot->writeString(_iter280->second); + xfer += oprot->writeString(_iter284->first); + xfer += oprot->writeString(_iter284->second); } xfer += oprot->writeMapEnd(); } @@ -5985,31 +6417,31 @@ void swap(Index &a, Index &b) { swap(a.__isset, b.__isset); } -Index::Index(const Index& other281) { - indexName = other281.indexName; - indexHandlerClass = other281.indexHandlerClass; - dbName = other281.dbName; - origTableName = other281.origTableName; - createTime = other281.createTime; - lastAccessTime = other281.lastAccessTime; - indexTableName = other281.indexTableName; - sd = other281.sd; - parameters = other281.parameters; - deferredRebuild = other281.deferredRebuild; - __isset = other281.__isset; -} -Index& Index::operator=(const Index& other282) { - indexName = other282.indexName; - indexHandlerClass = other282.indexHandlerClass; - dbName = other282.dbName; - origTableName = other282.origTableName; - createTime = other282.createTime; - lastAccessTime = other282.lastAccessTime; - indexTableName = other282.indexTableName; - sd = other282.sd; - parameters = other282.parameters; - deferredRebuild = other282.deferredRebuild; - __isset = other282.__isset; +Index::Index(const Index& other285) { + indexName = other285.indexName; + indexHandlerClass = other285.indexHandlerClass; + dbName = other285.dbName; + origTableName = other285.origTableName; + createTime = other285.createTime; + lastAccessTime = other285.lastAccessTime; + indexTableName = other285.indexTableName; + sd = other285.sd; + parameters = other285.parameters; + deferredRebuild = other285.deferredRebuild; + __isset = other285.__isset; +} +Index& Index::operator=(const Index& other286) { + indexName = other286.indexName; + indexHandlerClass = other286.indexHandlerClass; + dbName = other286.dbName; + origTableName = other286.origTableName; + createTime = other286.createTime; + lastAccessTime = other286.lastAccessTime; + indexTableName = other286.indexTableName; + sd = other286.sd; + parameters = other286.parameters; + deferredRebuild = other286.deferredRebuild; + __isset = other286.__isset; return *this; } void Index::printTo(std::ostream& out) const { @@ -6160,19 +6592,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.__isset, b.__isset); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other283) { - numTrues = other283.numTrues; - numFalses = other283.numFalses; - numNulls = other283.numNulls; - bitVectors = other283.bitVectors; - __isset = other283.__isset; +BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other287) { + numTrues = other287.numTrues; + numFalses = other287.numFalses; + numNulls = other287.numNulls; + bitVectors = other287.bitVectors; + __isset = other287.__isset; } -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other284) { - numTrues = other284.numTrues; - numFalses = other284.numFalses; - numNulls = other284.numNulls; - bitVectors = other284.bitVectors; - __isset = other284.__isset; +BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other288) { + numTrues = other288.numTrues; + numFalses = other288.numFalses; + numNulls = other288.numNulls; + bitVectors = other288.bitVectors; + __isset = other288.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -6335,21 +6767,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other285) { - lowValue = other285.lowValue; - highValue = other285.highValue; - numNulls = other285.numNulls; - numDVs = other285.numDVs; - bitVectors = other285.bitVectors; - __isset = other285.__isset; +DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other289) { + lowValue = other289.lowValue; + highValue = other289.highValue; + numNulls = other289.numNulls; + numDVs = other289.numDVs; + bitVectors = other289.bitVectors; + __isset = other289.__isset; } -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other286) { - lowValue = other286.lowValue; - highValue = other286.highValue; - numNulls = other286.numNulls; - numDVs = other286.numDVs; - bitVectors = other286.bitVectors; - __isset = other286.__isset; +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other290) { + lowValue = other290.lowValue; + highValue = other290.highValue; + numNulls = other290.numNulls; + numDVs = other290.numDVs; + bitVectors = other290.bitVectors; + __isset = other290.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -6513,21 +6945,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other287) { - lowValue = other287.lowValue; - highValue = other287.highValue; - numNulls = other287.numNulls; - numDVs = other287.numDVs; - bitVectors = other287.bitVectors; - __isset = other287.__isset; +LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other291) { + lowValue = other291.lowValue; + highValue = other291.highValue; + numNulls = other291.numNulls; + numDVs = other291.numDVs; + bitVectors = other291.bitVectors; + __isset = other291.__isset; } -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other288) { - lowValue = other288.lowValue; - highValue = other288.highValue; - numNulls = other288.numNulls; - numDVs = other288.numDVs; - bitVectors = other288.bitVectors; - __isset = other288.__isset; +LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other292) { + lowValue = other292.lowValue; + highValue = other292.highValue; + numNulls = other292.numNulls; + numDVs = other292.numDVs; + bitVectors = other292.bitVectors; + __isset = other292.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -6693,22 +7125,22 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.__isset, b.__isset); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other289) { - maxColLen = other289.maxColLen; - avgColLen = other289.avgColLen; - numNulls = other289.numNulls; - numDVs = other289.numDVs; - bitVectors = other289.bitVectors; - __isset = other289.__isset; -} -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other290) { - maxColLen = other290.maxColLen; - avgColLen = other290.avgColLen; - numNulls = other290.numNulls; - numDVs = other290.numDVs; - bitVectors = other290.bitVectors; - __isset = other290.__isset; - return *this; +StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other293) { + maxColLen = other293.maxColLen; + avgColLen = other293.avgColLen; + numNulls = other293.numNulls; + numDVs = other293.numDVs; + bitVectors = other293.bitVectors; + __isset = other293.__isset; +} +StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other294) { + maxColLen = other294.maxColLen; + avgColLen = other294.avgColLen; + numNulls = other294.numNulls; + numDVs = other294.numDVs; + bitVectors = other294.bitVectors; + __isset = other294.__isset; + return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { using ::apache::thrift::to_string; @@ -6853,19 +7285,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.__isset, b.__isset); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other291) { - maxColLen = other291.maxColLen; - avgColLen = other291.avgColLen; - numNulls = other291.numNulls; - bitVectors = other291.bitVectors; - __isset = other291.__isset; +BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other295) { + maxColLen = other295.maxColLen; + avgColLen = other295.avgColLen; + numNulls = other295.numNulls; + bitVectors = other295.bitVectors; + __isset = other295.__isset; } -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other292) { - maxColLen = other292.maxColLen; - avgColLen = other292.avgColLen; - numNulls = other292.numNulls; - bitVectors = other292.bitVectors; - __isset = other292.__isset; +BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other296) { + maxColLen = other296.maxColLen; + avgColLen = other296.avgColLen; + numNulls = other296.numNulls; + bitVectors = other296.bitVectors; + __isset = other296.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -6970,13 +7402,13 @@ void swap(Decimal &a, Decimal &b) { swap(a.scale, b.scale); } -Decimal::Decimal(const Decimal& other293) { - unscaled = other293.unscaled; - scale = other293.scale; +Decimal::Decimal(const Decimal& other297) { + unscaled = other297.unscaled; + scale = other297.scale; } -Decimal& Decimal::operator=(const Decimal& other294) { - unscaled = other294.unscaled; - scale = other294.scale; +Decimal& Decimal::operator=(const Decimal& other298) { + unscaled = other298.unscaled; + scale = other298.scale; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -7137,21 +7569,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other295) { - lowValue = other295.lowValue; - highValue = other295.highValue; - numNulls = other295.numNulls; - numDVs = other295.numDVs; - bitVectors = other295.bitVectors; - __isset = other295.__isset; +DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other299) { + lowValue = other299.lowValue; + highValue = other299.highValue; + numNulls = other299.numNulls; + numDVs = other299.numDVs; + bitVectors = other299.bitVectors; + __isset = other299.__isset; } -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other296) { - lowValue = other296.lowValue; - highValue = other296.highValue; - numNulls = other296.numNulls; - numDVs = other296.numDVs; - bitVectors = other296.bitVectors; - __isset = other296.__isset; +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other300) { + lowValue = other300.lowValue; + highValue = other300.highValue; + numNulls = other300.numNulls; + numDVs = other300.numDVs; + bitVectors = other300.bitVectors; + __isset = other300.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -7237,11 +7669,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other297) { - daysSinceEpoch = other297.daysSinceEpoch; +Date::Date(const Date& other301) { + daysSinceEpoch = other301.daysSinceEpoch; } -Date& Date::operator=(const Date& other298) { - daysSinceEpoch = other298.daysSinceEpoch; +Date& Date::operator=(const Date& other302) { + daysSinceEpoch = other302.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -7401,21 +7833,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other299) { - lowValue = other299.lowValue; - highValue = other299.highValue; - numNulls = other299.numNulls; - numDVs = other299.numDVs; - bitVectors = other299.bitVectors; - __isset = other299.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other300) { - lowValue = other300.lowValue; - highValue = other300.highValue; - numNulls = other300.numNulls; - numDVs = other300.numDVs; - bitVectors = other300.bitVectors; - __isset = other300.__isset; +DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other303) { + lowValue = other303.lowValue; + highValue = other303.highValue; + numNulls = other303.numNulls; + numDVs = other303.numDVs; + bitVectors = other303.bitVectors; + __isset = other303.__isset; +} +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other304) { + lowValue = other304.lowValue; + highValue = other304.highValue; + numNulls = other304.numNulls; + numDVs = other304.numDVs; + bitVectors = other304.bitVectors; + __isset = other304.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -7531,10 +7963,610 @@ uint32_t ColumnStatisticsData::read(::apache::thrift::protocol::TProtocol* iprot xfer += iprot->skip(ftype); } break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->dateStats.read(iprot); - this->__isset.dateStats = true; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->dateStats.read(iprot); + this->__isset.dateStats = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ColumnStatisticsData"); + + xfer += oprot->writeFieldBegin("booleanStats", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->booleanStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("longStats", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->longStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("doubleStats", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->doubleStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("stringStats", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->stringStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("binaryStats", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->binaryStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("decimalStats", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->decimalStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dateStats", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->dateStats.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { + using ::std::swap; + swap(a.booleanStats, b.booleanStats); + swap(a.longStats, b.longStats); + swap(a.doubleStats, b.doubleStats); + swap(a.stringStats, b.stringStats); + swap(a.binaryStats, b.binaryStats); + swap(a.decimalStats, b.decimalStats); + swap(a.dateStats, b.dateStats); + swap(a.__isset, b.__isset); +} + +ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other305) { + booleanStats = other305.booleanStats; + longStats = other305.longStats; + doubleStats = other305.doubleStats; + stringStats = other305.stringStats; + binaryStats = other305.binaryStats; + decimalStats = other305.decimalStats; + dateStats = other305.dateStats; + __isset = other305.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other306) { + booleanStats = other306.booleanStats; + longStats = other306.longStats; + doubleStats = other306.doubleStats; + stringStats = other306.stringStats; + binaryStats = other306.binaryStats; + decimalStats = other306.decimalStats; + dateStats = other306.dateStats; + __isset = other306.__isset; + return *this; +} +void ColumnStatisticsData::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ColumnStatisticsData("; + out << "booleanStats=" << to_string(booleanStats); + out << ", " << "longStats=" << to_string(longStats); + out << ", " << "doubleStats=" << to_string(doubleStats); + out << ", " << "stringStats=" << to_string(stringStats); + out << ", " << "binaryStats=" << to_string(binaryStats); + out << ", " << "decimalStats=" << to_string(decimalStats); + out << ", " << "dateStats=" << to_string(dateStats); + out << ")"; +} + + +ColumnStatisticsObj::~ColumnStatisticsObj() throw() { +} + + +void ColumnStatisticsObj::__set_colName(const std::string& val) { + this->colName = val; +} + +void ColumnStatisticsObj::__set_colType(const std::string& val) { + this->colType = val; +} + +void ColumnStatisticsObj::__set_statsData(const ColumnStatisticsData& val) { + this->statsData = val; +} + +uint32_t ColumnStatisticsObj::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_colName = false; + bool isset_colType = false; + bool isset_statsData = 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->colName); + isset_colName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->colType); + isset_colType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->statsData.read(iprot); + isset_statsData = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_colName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_colType) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_statsData) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t ColumnStatisticsObj::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ColumnStatisticsObj"); + + xfer += oprot->writeFieldBegin("colName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->colName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("colType", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->colType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("statsData", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->statsData.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { + using ::std::swap; + swap(a.colName, b.colName); + swap(a.colType, b.colType); + swap(a.statsData, b.statsData); +} + +ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other307) { + colName = other307.colName; + colType = other307.colType; + statsData = other307.statsData; +} +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other308) { + colName = other308.colName; + colType = other308.colType; + statsData = other308.statsData; + return *this; +} +void ColumnStatisticsObj::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ColumnStatisticsObj("; + out << "colName=" << to_string(colName); + out << ", " << "colType=" << to_string(colType); + out << ", " << "statsData=" << to_string(statsData); + out << ")"; +} + + +ColumnStatisticsDesc::~ColumnStatisticsDesc() throw() { +} + + +void ColumnStatisticsDesc::__set_isTblLevel(const bool val) { + this->isTblLevel = val; +} + +void ColumnStatisticsDesc::__set_dbName(const std::string& val) { + this->dbName = val; +} + +void ColumnStatisticsDesc::__set_tableName(const std::string& val) { + this->tableName = val; +} + +void ColumnStatisticsDesc::__set_partName(const std::string& val) { + this->partName = val; +__isset.partName = true; +} + +void ColumnStatisticsDesc::__set_lastAnalyzed(const int64_t val) { + this->lastAnalyzed = val; +__isset.lastAnalyzed = true; +} + +uint32_t ColumnStatisticsDesc::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_isTblLevel = false; + bool isset_dbName = false; + bool isset_tableName = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->isTblLevel); + isset_isTblLevel = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbName); + isset_dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tableName); + isset_tableName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->partName); + this->__isset.partName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->lastAnalyzed); + this->__isset.lastAnalyzed = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_isTblLevel) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_dbName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tableName) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t ColumnStatisticsDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ColumnStatisticsDesc"); + + xfer += oprot->writeFieldBegin("isTblLevel", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->isTblLevel); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.partName) { + xfer += oprot->writeFieldBegin("partName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->partName); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.lastAnalyzed) { + xfer += oprot->writeFieldBegin("lastAnalyzed", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->lastAnalyzed); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { + using ::std::swap; + swap(a.isTblLevel, b.isTblLevel); + swap(a.dbName, b.dbName); + swap(a.tableName, b.tableName); + swap(a.partName, b.partName); + swap(a.lastAnalyzed, b.lastAnalyzed); + swap(a.__isset, b.__isset); +} + +ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other309) { + isTblLevel = other309.isTblLevel; + dbName = other309.dbName; + tableName = other309.tableName; + partName = other309.partName; + lastAnalyzed = other309.lastAnalyzed; + __isset = other309.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other310) { + isTblLevel = other310.isTblLevel; + dbName = other310.dbName; + tableName = other310.tableName; + partName = other310.partName; + lastAnalyzed = other310.lastAnalyzed; + __isset = other310.__isset; + return *this; +} +void ColumnStatisticsDesc::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ColumnStatisticsDesc("; + out << "isTblLevel=" << to_string(isTblLevel); + out << ", " << "dbName=" << to_string(dbName); + out << ", " << "tableName=" << to_string(tableName); + out << ", " << "partName="; (__isset.partName ? (out << to_string(partName)) : (out << "")); + out << ", " << "lastAnalyzed="; (__isset.lastAnalyzed ? (out << to_string(lastAnalyzed)) : (out << "")); + out << ")"; +} + + +ColumnStatistics::~ColumnStatistics() throw() { +} + + +void ColumnStatistics::__set_statsDesc(const ColumnStatisticsDesc& val) { + this->statsDesc = val; +} + +void ColumnStatistics::__set_statsObj(const std::vector & val) { + this->statsObj = val; +} + +uint32_t ColumnStatistics::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_statsDesc = false; + bool isset_statsObj = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->statsDesc.read(iprot); + isset_statsDesc = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->statsObj.clear(); + uint32_t _size311; + ::apache::thrift::protocol::TType _etype314; + xfer += iprot->readListBegin(_etype314, _size311); + this->statsObj.resize(_size311); + uint32_t _i315; + for (_i315 = 0; _i315 < _size311; ++_i315) + { + xfer += this->statsObj[_i315].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_statsObj = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_statsDesc) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_statsObj) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ColumnStatistics"); + + xfer += oprot->writeFieldBegin("statsDesc", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->statsDesc.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); + std::vector ::const_iterator _iter316; + for (_iter316 = this->statsObj.begin(); _iter316 != this->statsObj.end(); ++_iter316) + { + xfer += (*_iter316).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ColumnStatistics &a, ColumnStatistics &b) { + using ::std::swap; + swap(a.statsDesc, b.statsDesc); + swap(a.statsObj, b.statsObj); +} + +ColumnStatistics::ColumnStatistics(const ColumnStatistics& other317) { + statsDesc = other317.statsDesc; + statsObj = other317.statsObj; +} +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other318) { + statsDesc = other318.statsDesc; + statsObj = other318.statsObj; + return *this; +} +void ColumnStatistics::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ColumnStatistics("; + out << "statsDesc=" << to_string(statsDesc); + out << ", " << "statsObj=" << to_string(statsObj); + out << ")"; +} + + +AggrStats::~AggrStats() throw() { +} + + +void AggrStats::__set_colStats(const std::vector & val) { + this->colStats = val; +} + +void AggrStats::__set_partsFound(const int64_t val) { + this->partsFound = val; +} + +uint32_t AggrStats::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_colStats = false; + bool isset_partsFound = 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->colStats.clear(); + uint32_t _size319; + ::apache::thrift::protocol::TType _etype322; + xfer += iprot->readListBegin(_etype322, _size319); + this->colStats.resize(_size319); + uint32_t _i323; + for (_i323 = 0; _i323 < _size319; ++_i323) + { + xfer += this->colStats[_i323].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_colStats = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->partsFound); + isset_partsFound = true; } else { xfer += iprot->skip(ftype); } @@ -7548,40 +8580,32 @@ uint32_t ColumnStatisticsData::read(::apache::thrift::protocol::TProtocol* iprot xfer += iprot->readStructEnd(); + if (!isset_colStats) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_partsFound) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ColumnStatisticsData"); - - xfer += oprot->writeFieldBegin("booleanStats", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->booleanStats.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("longStats", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->longStats.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("doubleStats", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->doubleStats.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("stringStats", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->stringStats.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("binaryStats", ::apache::thrift::protocol::T_STRUCT, 5); - xfer += this->binaryStats.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("AggrStats"); - xfer += oprot->writeFieldBegin("decimalStats", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->decimalStats.write(oprot); + xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); + std::vector ::const_iterator _iter324; + for (_iter324 = this->colStats.begin(); _iter324 != this->colStats.end(); ++_iter324) + { + xfer += (*_iter324).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dateStats", ::apache::thrift::protocol::T_STRUCT, 7); - xfer += this->dateStats.write(oprot); + xfer += oprot->writeFieldBegin("partsFound", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->partsFound); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7589,70 +8613,44 @@ uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* opro return xfer; } -void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { +void swap(AggrStats &a, AggrStats &b) { using ::std::swap; - swap(a.booleanStats, b.booleanStats); - swap(a.longStats, b.longStats); - swap(a.doubleStats, b.doubleStats); - swap(a.stringStats, b.stringStats); - swap(a.binaryStats, b.binaryStats); - swap(a.decimalStats, b.decimalStats); - swap(a.dateStats, b.dateStats); - swap(a.__isset, b.__isset); + swap(a.colStats, b.colStats); + swap(a.partsFound, b.partsFound); } -ColumnStatisticsData::ColumnStatisticsData(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; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other302) { - booleanStats = other302.booleanStats; - longStats = other302.longStats; - doubleStats = other302.doubleStats; - stringStats = other302.stringStats; - binaryStats = other302.binaryStats; - decimalStats = other302.decimalStats; - dateStats = other302.dateStats; - __isset = other302.__isset; +AggrStats::AggrStats(const AggrStats& other325) { + colStats = other325.colStats; + partsFound = other325.partsFound; +} +AggrStats& AggrStats::operator=(const AggrStats& other326) { + colStats = other326.colStats; + partsFound = other326.partsFound; return *this; } -void ColumnStatisticsData::printTo(std::ostream& out) const { +void AggrStats::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ColumnStatisticsData("; - out << "booleanStats=" << to_string(booleanStats); - out << ", " << "longStats=" << to_string(longStats); - out << ", " << "doubleStats=" << to_string(doubleStats); - out << ", " << "stringStats=" << to_string(stringStats); - out << ", " << "binaryStats=" << to_string(binaryStats); - out << ", " << "decimalStats=" << to_string(decimalStats); - out << ", " << "dateStats=" << to_string(dateStats); + out << "AggrStats("; + out << "colStats=" << to_string(colStats); + out << ", " << "partsFound=" << to_string(partsFound); out << ")"; } -ColumnStatisticsObj::~ColumnStatisticsObj() throw() { +SetPartitionsStatsRequest::~SetPartitionsStatsRequest() throw() { } -void ColumnStatisticsObj::__set_colName(const std::string& val) { - this->colName = val; -} - -void ColumnStatisticsObj::__set_colType(const std::string& val) { - this->colType = val; +void SetPartitionsStatsRequest::__set_colStats(const std::vector & val) { + this->colStats = val; } -void ColumnStatisticsObj::__set_statsData(const ColumnStatisticsData& val) { - this->statsData = val; +void SetPartitionsStatsRequest::__set_needMerge(const bool val) { + this->needMerge = val; +__isset.needMerge = true; } -uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7664,9 +8662,7 @@ uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) using ::apache::thrift::protocol::TProtocolException; - bool isset_colName = false; - bool isset_colType = false; - bool isset_statsData = false; + bool isset_colStats = false; while (true) { @@ -7677,25 +8673,29 @@ uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->colName); - isset_colName = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->colStats.clear(); + uint32_t _size327; + ::apache::thrift::protocol::TType _etype330; + xfer += iprot->readListBegin(_etype330, _size327); + this->colStats.resize(_size327); + uint32_t _i331; + for (_i331 = 0; _i331 < _size327; ++_i331) + { + xfer += this->colStats[_i331].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_colStats = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->colType); - isset_colType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->statsData.read(iprot); - isset_statsData = true; + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->needMerge); + this->__isset.needMerge = true; } else { xfer += iprot->skip(ftype); } @@ -7709,92 +8709,78 @@ uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->readStructEnd(); - if (!isset_colName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_colType) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_statsData) + if (!isset_colStats) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t ColumnStatisticsObj::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ColumnStatisticsObj"); - - xfer += oprot->writeFieldBegin("colName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->colName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("colType", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->colType); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("SetPartitionsStatsRequest"); - xfer += oprot->writeFieldBegin("statsData", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->statsData.write(oprot); + xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); + std::vector ::const_iterator _iter332; + for (_iter332 = this->colStats.begin(); _iter332 != this->colStats.end(); ++_iter332) + { + xfer += (*_iter332).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); + if (this->__isset.needMerge) { + xfer += oprot->writeFieldBegin("needMerge", ::apache::thrift::protocol::T_BOOL, 2); + xfer += oprot->writeBool(this->needMerge); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { +void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { using ::std::swap; - swap(a.colName, b.colName); - swap(a.colType, b.colType); - swap(a.statsData, b.statsData); + swap(a.colStats, b.colStats); + swap(a.needMerge, b.needMerge); + swap(a.__isset, b.__isset); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other303) { - colName = other303.colName; - colType = other303.colType; - statsData = other303.statsData; +SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other333) { + colStats = other333.colStats; + needMerge = other333.needMerge; + __isset = other333.__isset; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other304) { - colName = other304.colName; - colType = other304.colType; - statsData = other304.statsData; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other334) { + colStats = other334.colStats; + needMerge = other334.needMerge; + __isset = other334.__isset; return *this; } -void ColumnStatisticsObj::printTo(std::ostream& out) const { +void SetPartitionsStatsRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ColumnStatisticsObj("; - out << "colName=" << to_string(colName); - out << ", " << "colType=" << to_string(colType); - out << ", " << "statsData=" << to_string(statsData); + out << "SetPartitionsStatsRequest("; + out << "colStats=" << to_string(colStats); + out << ", " << "needMerge="; (__isset.needMerge ? (out << to_string(needMerge)) : (out << "")); out << ")"; } -ColumnStatisticsDesc::~ColumnStatisticsDesc() throw() { -} - - -void ColumnStatisticsDesc::__set_isTblLevel(const bool val) { - this->isTblLevel = val; -} - -void ColumnStatisticsDesc::__set_dbName(const std::string& val) { - this->dbName = val; +Schema::~Schema() throw() { } -void ColumnStatisticsDesc::__set_tableName(const std::string& val) { - this->tableName = val; -} -void ColumnStatisticsDesc::__set_partName(const std::string& val) { - this->partName = val; -__isset.partName = true; +void Schema::__set_fieldSchemas(const std::vector & val) { + this->fieldSchemas = val; } -void ColumnStatisticsDesc::__set_lastAnalyzed(const int64_t val) { - this->lastAnalyzed = val; -__isset.lastAnalyzed = true; +void Schema::__set_properties(const std::map & val) { + this->properties = val; } -uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7806,9 +8792,6 @@ uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot using ::apache::thrift::protocol::TProtocolException; - bool isset_isTblLevel = false; - bool isset_dbName = false; - bool isset_tableName = false; while (true) { @@ -7819,41 +8802,44 @@ uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->isTblLevel); - isset_isTblLevel = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - isset_dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tableName); - isset_tableName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->partName); - this->__isset.partName = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->fieldSchemas.clear(); + uint32_t _size335; + ::apache::thrift::protocol::TType _etype338; + xfer += iprot->readListBegin(_etype338, _size335); + this->fieldSchemas.resize(_size335); + uint32_t _i339; + for (_i339 = 0; _i339 < _size335; ++_i339) + { + xfer += this->fieldSchemas[_i339].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.fieldSchemas = true; } else { xfer += iprot->skip(ftype); } break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastAnalyzed); - this->__isset.lastAnalyzed = true; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->properties.clear(); + uint32_t _size340; + ::apache::thrift::protocol::TType _ktype341; + ::apache::thrift::protocol::TType _vtype342; + xfer += iprot->readMapBegin(_ktype341, _vtype342, _size340); + uint32_t _i344; + for (_i344 = 0; _i344 < _size340; ++_i344) + { + std::string _key345; + xfer += iprot->readString(_key345); + std::string& _val346 = this->properties[_key345]; + xfer += iprot->readString(_val346); + } + xfer += iprot->readMapEnd(); + } + this->__isset.properties = true; } else { xfer += iprot->skip(ftype); } @@ -7867,99 +8853,80 @@ uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot xfer += iprot->readStructEnd(); - if (!isset_isTblLevel) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_dbName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_tableName) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t ColumnStatisticsDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ColumnStatisticsDesc"); - - xfer += oprot->writeFieldBegin("isTblLevel", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->isTblLevel); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("Schema"); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); + std::vector ::const_iterator _iter347; + for (_iter347 = this->fieldSchemas.begin(); _iter347 != this->fieldSchemas.end(); ++_iter347) + { + xfer += (*_iter347).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->tableName); + xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); + std::map ::const_iterator _iter348; + for (_iter348 = this->properties.begin(); _iter348 != this->properties.end(); ++_iter348) + { + xfer += oprot->writeString(_iter348->first); + xfer += oprot->writeString(_iter348->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); - if (this->__isset.partName) { - xfer += oprot->writeFieldBegin("partName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->partName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastAnalyzed) { - xfer += oprot->writeFieldBegin("lastAnalyzed", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->lastAnalyzed); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { +void swap(Schema &a, Schema &b) { using ::std::swap; - swap(a.isTblLevel, b.isTblLevel); - swap(a.dbName, b.dbName); - swap(a.tableName, b.tableName); - swap(a.partName, b.partName); - swap(a.lastAnalyzed, b.lastAnalyzed); + swap(a.fieldSchemas, b.fieldSchemas); + swap(a.properties, b.properties); swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other305) { - isTblLevel = other305.isTblLevel; - dbName = other305.dbName; - tableName = other305.tableName; - partName = other305.partName; - lastAnalyzed = other305.lastAnalyzed; - __isset = other305.__isset; +Schema::Schema(const Schema& other349) { + fieldSchemas = other349.fieldSchemas; + properties = other349.properties; + __isset = other349.__isset; } -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other306) { - isTblLevel = other306.isTblLevel; - dbName = other306.dbName; - tableName = other306.tableName; - partName = other306.partName; - lastAnalyzed = other306.lastAnalyzed; - __isset = other306.__isset; +Schema& Schema::operator=(const Schema& other350) { + fieldSchemas = other350.fieldSchemas; + properties = other350.properties; + __isset = other350.__isset; return *this; } -void ColumnStatisticsDesc::printTo(std::ostream& out) const { +void Schema::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ColumnStatisticsDesc("; - out << "isTblLevel=" << to_string(isTblLevel); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "tableName=" << to_string(tableName); - out << ", " << "partName="; (__isset.partName ? (out << to_string(partName)) : (out << "")); - out << ", " << "lastAnalyzed="; (__isset.lastAnalyzed ? (out << to_string(lastAnalyzed)) : (out << "")); + out << "Schema("; + out << "fieldSchemas=" << to_string(fieldSchemas); + out << ", " << "properties=" << to_string(properties); out << ")"; } -ColumnStatistics::~ColumnStatistics() throw() { +EnvironmentContext::~EnvironmentContext() throw() { } -void ColumnStatistics::__set_statsDesc(const ColumnStatisticsDesc& val) { - this->statsDesc = val; -} - -void ColumnStatistics::__set_statsObj(const std::vector & val) { - this->statsObj = val; +void EnvironmentContext::__set_properties(const std::map & val) { + this->properties = val; } -uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7971,8 +8938,6 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { using ::apache::thrift::protocol::TProtocolException; - bool isset_statsDesc = false; - bool isset_statsObj = false; while (true) { @@ -7983,29 +8948,24 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->statsDesc.read(iprot); - isset_statsDesc = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { + if (ftype == ::apache::thrift::protocol::T_MAP) { { - this->statsObj.clear(); - uint32_t _size307; - ::apache::thrift::protocol::TType _etype310; - xfer += iprot->readListBegin(_etype310, _size307); - this->statsObj.resize(_size307); - uint32_t _i311; - for (_i311 = 0; _i311 < _size307; ++_i311) + this->properties.clear(); + uint32_t _size351; + ::apache::thrift::protocol::TType _ktype352; + ::apache::thrift::protocol::TType _vtype353; + xfer += iprot->readMapBegin(_ktype352, _vtype353, _size351); + uint32_t _i355; + for (_i355 = 0; _i355 < _size351; ++_i355) { - xfer += this->statsObj[_i311].read(iprot); + std::string _key356; + xfer += iprot->readString(_key356); + std::string& _val357 = this->properties[_key356]; + xfer += iprot->readString(_val357); } - xfer += iprot->readListEnd(); + xfer += iprot->readMapEnd(); } - isset_statsObj = true; + this->__isset.properties = true; } else { xfer += iprot->skip(ftype); } @@ -8019,31 +8979,24 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->readStructEnd(); - if (!isset_statsDesc) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_statsObj) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ColumnStatistics"); - - xfer += oprot->writeFieldBegin("statsDesc", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->statsDesc.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("EnvironmentContext"); - xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); + xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter312; - for (_iter312 = this->statsObj.begin(); _iter312 != this->statsObj.end(); ++_iter312) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); + std::map ::const_iterator _iter358; + for (_iter358 = this->properties.begin(); _iter358 != this->properties.end(); ++_iter358) { - xfer += (*_iter312).write(oprot); + xfer += oprot->writeString(_iter358->first); + xfer += oprot->writeString(_iter358->second); } - xfer += oprot->writeListEnd(); + xfer += oprot->writeMapEnd(); } xfer += oprot->writeFieldEnd(); @@ -8052,43 +9005,42 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c return xfer; } -void swap(ColumnStatistics &a, ColumnStatistics &b) { +void swap(EnvironmentContext &a, EnvironmentContext &b) { using ::std::swap; - swap(a.statsDesc, b.statsDesc); - swap(a.statsObj, b.statsObj); + swap(a.properties, b.properties); + swap(a.__isset, b.__isset); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other313) { - statsDesc = other313.statsDesc; - statsObj = other313.statsObj; +EnvironmentContext::EnvironmentContext(const EnvironmentContext& other359) { + properties = other359.properties; + __isset = other359.__isset; } -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other314) { - statsDesc = other314.statsDesc; - statsObj = other314.statsObj; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other360) { + properties = other360.properties; + __isset = other360.__isset; return *this; } -void ColumnStatistics::printTo(std::ostream& out) const { +void EnvironmentContext::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ColumnStatistics("; - out << "statsDesc=" << to_string(statsDesc); - out << ", " << "statsObj=" << to_string(statsObj); + out << "EnvironmentContext("; + out << "properties=" << to_string(properties); out << ")"; } -AggrStats::~AggrStats() throw() { +PrimaryKeysRequest::~PrimaryKeysRequest() throw() { } -void AggrStats::__set_colStats(const std::vector & val) { - this->colStats = val; +void PrimaryKeysRequest::__set_db_name(const std::string& val) { + this->db_name = val; } -void AggrStats::__set_partsFound(const int64_t val) { - this->partsFound = val; +void PrimaryKeysRequest::__set_tbl_name(const std::string& val) { + this->tbl_name = val; } -uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t PrimaryKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8100,8 +9052,8 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { using ::apache::thrift::protocol::TProtocolException; - bool isset_colStats = false; - bool isset_partsFound = false; + bool isset_db_name = false; + bool isset_tbl_name = false; while (true) { @@ -8112,29 +9064,17 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->colStats.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - xfer += iprot->readListBegin(_etype318, _size315); - this->colStats.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) - { - xfer += this->colStats[_i319].read(iprot); - } - xfer += iprot->readListEnd(); - } - isset_colStats = true; + 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_I64) { - xfer += iprot->readI64(this->partsFound); - isset_partsFound = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + isset_tbl_name = true; } else { xfer += iprot->skip(ftype); } @@ -8148,32 +9088,24 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->readStructEnd(); - if (!isset_colStats) + if (!isset_db_name) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_partsFound) + if (!isset_tbl_name) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t PrimaryKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("AggrStats"); + xfer += oprot->writeStructBegin("PrimaryKeysRequest"); - 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 _iter320; - for (_iter320 = this->colStats.begin(); _iter320 != this->colStats.end(); ++_iter320) - { - xfer += (*_iter320).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partsFound", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->partsFound); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8181,44 +9113,39 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { return xfer; } -void swap(AggrStats &a, AggrStats &b) { +void swap(PrimaryKeysRequest &a, PrimaryKeysRequest &b) { using ::std::swap; - swap(a.colStats, b.colStats); - swap(a.partsFound, b.partsFound); + swap(a.db_name, b.db_name); + swap(a.tbl_name, b.tbl_name); } -AggrStats::AggrStats(const AggrStats& other321) { - colStats = other321.colStats; - partsFound = other321.partsFound; +PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other361) { + db_name = other361.db_name; + tbl_name = other361.tbl_name; } -AggrStats& AggrStats::operator=(const AggrStats& other322) { - colStats = other322.colStats; - partsFound = other322.partsFound; +PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other362) { + db_name = other362.db_name; + tbl_name = other362.tbl_name; return *this; } -void AggrStats::printTo(std::ostream& out) const { +void PrimaryKeysRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AggrStats("; - out << "colStats=" << to_string(colStats); - out << ", " << "partsFound=" << to_string(partsFound); + out << "PrimaryKeysRequest("; + out << "db_name=" << to_string(db_name); + out << ", " << "tbl_name=" << to_string(tbl_name); out << ")"; } -SetPartitionsStatsRequest::~SetPartitionsStatsRequest() throw() { +PrimaryKeysResponse::~PrimaryKeysResponse() throw() { } -void SetPartitionsStatsRequest::__set_colStats(const std::vector & val) { - this->colStats = val; -} - -void SetPartitionsStatsRequest::__set_needMerge(const bool val) { - this->needMerge = val; -__isset.needMerge = true; +void PrimaryKeysResponse::__set_primaryKeys(const std::vector & val) { + this->primaryKeys = val; } -uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8230,7 +9157,7 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* using ::apache::thrift::protocol::TProtocolException; - bool isset_colStats = false; + bool isset_primaryKeys = false; while (true) { @@ -8243,27 +9170,19 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->colStats.clear(); - uint32_t _size323; - ::apache::thrift::protocol::TType _etype326; - xfer += iprot->readListBegin(_etype326, _size323); - this->colStats.resize(_size323); - uint32_t _i327; - for (_i327 = 0; _i327 < _size323; ++_i327) + this->primaryKeys.clear(); + uint32_t _size363; + ::apache::thrift::protocol::TType _etype366; + xfer += iprot->readListBegin(_etype366, _size363); + this->primaryKeys.resize(_size363); + uint32_t _i367; + for (_i367 = 0; _i367 < _size363; ++_i367) { - xfer += this->colStats[_i327].read(iprot); + xfer += this->primaryKeys[_i367].read(iprot); } xfer += iprot->readListEnd(); } - isset_colStats = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->needMerge); - this->__isset.needMerge = true; + isset_primaryKeys = true; } else { xfer += iprot->skip(ftype); } @@ -8277,78 +9196,74 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* xfer += iprot->readStructEnd(); - if (!isset_colStats) + if (!isset_primaryKeys) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t PrimaryKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("SetPartitionsStatsRequest"); + xfer += oprot->writeStructBegin("PrimaryKeysResponse"); - xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter328; - for (_iter328 = this->colStats.begin(); _iter328 != this->colStats.end(); ++_iter328) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); + std::vector ::const_iterator _iter368; + for (_iter368 = this->primaryKeys.begin(); _iter368 != this->primaryKeys.end(); ++_iter368) { - xfer += (*_iter328).write(oprot); + xfer += (*_iter368).write(oprot); } xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); - if (this->__isset.needMerge) { - xfer += oprot->writeFieldBegin("needMerge", ::apache::thrift::protocol::T_BOOL, 2); - xfer += oprot->writeBool(this->needMerge); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { +void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { using ::std::swap; - swap(a.colStats, b.colStats); - swap(a.needMerge, b.needMerge); - swap(a.__isset, b.__isset); + swap(a.primaryKeys, b.primaryKeys); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other329) { - colStats = other329.colStats; - needMerge = other329.needMerge; - __isset = other329.__isset; +PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other369) { + primaryKeys = other369.primaryKeys; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other330) { - colStats = other330.colStats; - needMerge = other330.needMerge; - __isset = other330.__isset; +PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other370) { + primaryKeys = other370.primaryKeys; return *this; } -void SetPartitionsStatsRequest::printTo(std::ostream& out) const { +void PrimaryKeysResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "SetPartitionsStatsRequest("; - out << "colStats=" << to_string(colStats); - out << ", " << "needMerge="; (__isset.needMerge ? (out << to_string(needMerge)) : (out << "")); + out << "PrimaryKeysResponse("; + out << "primaryKeys=" << to_string(primaryKeys); out << ")"; } -Schema::~Schema() throw() { +ForeignKeysRequest::~ForeignKeysRequest() throw() { } -void Schema::__set_fieldSchemas(const std::vector & val) { - this->fieldSchemas = val; +void ForeignKeysRequest::__set_parent_db_name(const std::string& val) { + this->parent_db_name = val; } -void Schema::__set_properties(const std::map & val) { - this->properties = val; +void ForeignKeysRequest::__set_parent_tbl_name(const std::string& val) { + this->parent_tbl_name = val; } -uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { +void ForeignKeysRequest::__set_foreign_db_name(const std::string& val) { + this->foreign_db_name = val; +} + +void ForeignKeysRequest::__set_foreign_tbl_name(const std::string& val) { + this->foreign_tbl_name = val; +} + +uint32_t ForeignKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8370,44 +9285,33 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->fieldSchemas.clear(); - uint32_t _size331; - ::apache::thrift::protocol::TType _etype334; - xfer += iprot->readListBegin(_etype334, _size331); - this->fieldSchemas.resize(_size331); - uint32_t _i335; - for (_i335 = 0; _i335 < _size331; ++_i335) - { - xfer += this->fieldSchemas[_i335].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.fieldSchemas = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->parent_db_name); + this->__isset.parent_db_name = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->properties.clear(); - uint32_t _size336; - ::apache::thrift::protocol::TType _ktype337; - ::apache::thrift::protocol::TType _vtype338; - xfer += iprot->readMapBegin(_ktype337, _vtype338, _size336); - uint32_t _i340; - for (_i340 = 0; _i340 < _size336; ++_i340) - { - std::string _key341; - xfer += iprot->readString(_key341); - std::string& _val342 = this->properties[_key341]; - xfer += iprot->readString(_val342); - } - xfer += iprot->readMapEnd(); - } - this->__isset.properties = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->parent_tbl_name); + this->__isset.parent_tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->foreign_db_name); + this->__isset.foreign_db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->foreign_tbl_name); + this->__isset.foreign_tbl_name = true; } else { xfer += iprot->skip(ftype); } @@ -8424,34 +9328,25 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ForeignKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("Schema"); + xfer += oprot->writeStructBegin("ForeignKeysRequest"); - 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 _iter343; - for (_iter343 = this->fieldSchemas.begin(); _iter343 != this->fieldSchemas.end(); ++_iter343) - { - xfer += (*_iter343).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("parent_db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->parent_db_name); xfer += oprot->writeFieldEnd(); - 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 _iter344; - for (_iter344 = this->properties.begin(); _iter344 != this->properties.end(); ++_iter344) - { - xfer += oprot->writeString(_iter344->first); - xfer += oprot->writeString(_iter344->second); - } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeFieldBegin("parent_tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->parent_tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_db_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->foreign_db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_tbl_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->foreign_tbl_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8459,42 +9354,50 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { return xfer; } -void swap(Schema &a, Schema &b) { +void swap(ForeignKeysRequest &a, ForeignKeysRequest &b) { using ::std::swap; - swap(a.fieldSchemas, b.fieldSchemas); - swap(a.properties, b.properties); + swap(a.parent_db_name, b.parent_db_name); + swap(a.parent_tbl_name, b.parent_tbl_name); + swap(a.foreign_db_name, b.foreign_db_name); + swap(a.foreign_tbl_name, b.foreign_tbl_name); swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other345) { - fieldSchemas = other345.fieldSchemas; - properties = other345.properties; - __isset = other345.__isset; +ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other371) { + parent_db_name = other371.parent_db_name; + parent_tbl_name = other371.parent_tbl_name; + foreign_db_name = other371.foreign_db_name; + foreign_tbl_name = other371.foreign_tbl_name; + __isset = other371.__isset; } -Schema& Schema::operator=(const Schema& other346) { - fieldSchemas = other346.fieldSchemas; - properties = other346.properties; - __isset = other346.__isset; +ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other372) { + parent_db_name = other372.parent_db_name; + parent_tbl_name = other372.parent_tbl_name; + foreign_db_name = other372.foreign_db_name; + foreign_tbl_name = other372.foreign_tbl_name; + __isset = other372.__isset; return *this; } -void Schema::printTo(std::ostream& out) const { +void ForeignKeysRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "Schema("; - out << "fieldSchemas=" << to_string(fieldSchemas); - out << ", " << "properties=" << to_string(properties); + out << "ForeignKeysRequest("; + out << "parent_db_name=" << to_string(parent_db_name); + out << ", " << "parent_tbl_name=" << to_string(parent_tbl_name); + out << ", " << "foreign_db_name=" << to_string(foreign_db_name); + out << ", " << "foreign_tbl_name=" << to_string(foreign_tbl_name); out << ")"; } -EnvironmentContext::~EnvironmentContext() throw() { +ForeignKeysResponse::~ForeignKeysResponse() throw() { } -void EnvironmentContext::__set_properties(const std::map & val) { - this->properties = val; +void ForeignKeysResponse::__set_foreignKeys(const std::vector & val) { + this->foreignKeys = val; } -uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8506,6 +9409,7 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) using ::apache::thrift::protocol::TProtocolException; + bool isset_foreignKeys = false; while (true) { @@ -8516,24 +9420,21 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { + if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->properties.clear(); - uint32_t _size347; - ::apache::thrift::protocol::TType _ktype348; - ::apache::thrift::protocol::TType _vtype349; - xfer += iprot->readMapBegin(_ktype348, _vtype349, _size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) + this->foreignKeys.clear(); + uint32_t _size373; + ::apache::thrift::protocol::TType _etype376; + xfer += iprot->readListBegin(_etype376, _size373); + this->foreignKeys.resize(_size373); + uint32_t _i377; + for (_i377 = 0; _i377 < _size373; ++_i377) { - std::string _key352; - xfer += iprot->readString(_key352); - std::string& _val353 = this->properties[_key352]; - xfer += iprot->readString(_val353); + xfer += this->foreignKeys[_i377].read(iprot); } - xfer += iprot->readMapEnd(); + xfer += iprot->readListEnd(); } - this->__isset.properties = true; + isset_foreignKeys = true; } else { xfer += iprot->skip(ftype); } @@ -8547,24 +9448,25 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->readStructEnd(); + if (!isset_foreignKeys) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ForeignKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("EnvironmentContext"); + xfer += oprot->writeStructBegin("ForeignKeysResponse"); - xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); + xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter354; - for (_iter354 = this->properties.begin(); _iter354 != this->properties.end(); ++_iter354) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); + std::vector ::const_iterator _iter378; + for (_iter378 = this->foreignKeys.begin(); _iter378 != this->foreignKeys.end(); ++_iter378) { - xfer += oprot->writeString(_iter354->first); - xfer += oprot->writeString(_iter354->second); + xfer += (*_iter378).write(oprot); } - xfer += oprot->writeMapEnd(); + xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); @@ -8573,42 +9475,39 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) return xfer; } -void swap(EnvironmentContext &a, EnvironmentContext &b) { +void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { using ::std::swap; - swap(a.properties, b.properties); - swap(a.__isset, b.__isset); + swap(a.foreignKeys, b.foreignKeys); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other355) { - properties = other355.properties; - __isset = other355.__isset; +ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other379) { + foreignKeys = other379.foreignKeys; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other356) { - properties = other356.properties; - __isset = other356.__isset; +ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other380) { + foreignKeys = other380.foreignKeys; return *this; } -void EnvironmentContext::printTo(std::ostream& out) const { +void ForeignKeysResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "EnvironmentContext("; - out << "properties=" << to_string(properties); + out << "ForeignKeysResponse("; + out << "foreignKeys=" << to_string(foreignKeys); out << ")"; } -PrimaryKeysRequest::~PrimaryKeysRequest() throw() { +UniqueConstraintsRequest::~UniqueConstraintsRequest() throw() { } -void PrimaryKeysRequest::__set_db_name(const std::string& val) { +void UniqueConstraintsRequest::__set_db_name(const std::string& val) { this->db_name = val; } -void PrimaryKeysRequest::__set_tbl_name(const std::string& val) { +void UniqueConstraintsRequest::__set_tbl_name(const std::string& val) { this->tbl_name = val; } -uint32_t PrimaryKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t UniqueConstraintsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8663,10 +9562,10 @@ uint32_t PrimaryKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) return xfer; } -uint32_t PrimaryKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t UniqueConstraintsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("PrimaryKeysRequest"); + xfer += oprot->writeStructBegin("UniqueConstraintsRequest"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -8681,39 +9580,39 @@ uint32_t PrimaryKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) return xfer; } -void swap(PrimaryKeysRequest &a, PrimaryKeysRequest &b) { +void swap(UniqueConstraintsRequest &a, UniqueConstraintsRequest &b) { using ::std::swap; swap(a.db_name, b.db_name); swap(a.tbl_name, b.tbl_name); } -PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other357) { - db_name = other357.db_name; - tbl_name = other357.tbl_name; +UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other381) { + db_name = other381.db_name; + tbl_name = other381.tbl_name; } -PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other358) { - db_name = other358.db_name; - tbl_name = other358.tbl_name; +UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other382) { + db_name = other382.db_name; + tbl_name = other382.tbl_name; return *this; } -void PrimaryKeysRequest::printTo(std::ostream& out) const { +void UniqueConstraintsRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "PrimaryKeysRequest("; + out << "UniqueConstraintsRequest("; out << "db_name=" << to_string(db_name); out << ", " << "tbl_name=" << to_string(tbl_name); out << ")"; } -PrimaryKeysResponse::~PrimaryKeysResponse() throw() { +UniqueConstraintsResponse::~UniqueConstraintsResponse() throw() { } -void PrimaryKeysResponse::__set_primaryKeys(const std::vector & val) { - this->primaryKeys = val; +void UniqueConstraintsResponse::__set_uniqueConstraints(const std::vector & val) { + this->uniqueConstraints = val; } -uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t UniqueConstraintsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8725,7 +9624,7 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) using ::apache::thrift::protocol::TProtocolException; - bool isset_primaryKeys = false; + bool isset_uniqueConstraints = false; while (true) { @@ -8738,19 +9637,19 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->primaryKeys.clear(); - uint32_t _size359; - ::apache::thrift::protocol::TType _etype362; - xfer += iprot->readListBegin(_etype362, _size359); - this->primaryKeys.resize(_size359); - uint32_t _i363; - for (_i363 = 0; _i363 < _size359; ++_i363) + this->uniqueConstraints.clear(); + uint32_t _size383; + ::apache::thrift::protocol::TType _etype386; + xfer += iprot->readListBegin(_etype386, _size383); + this->uniqueConstraints.resize(_size383); + uint32_t _i387; + for (_i387 = 0; _i387 < _size383; ++_i387) { - xfer += this->primaryKeys[_i363].read(iprot); + xfer += this->uniqueConstraints[_i387].read(iprot); } xfer += iprot->readListEnd(); } - isset_primaryKeys = true; + isset_uniqueConstraints = true; } else { xfer += iprot->skip(ftype); } @@ -8764,23 +9663,23 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->readStructEnd(); - if (!isset_primaryKeys) + if (!isset_uniqueConstraints) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t PrimaryKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t UniqueConstraintsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("PrimaryKeysResponse"); + xfer += oprot->writeStructBegin("UniqueConstraintsResponse"); - xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter364; - for (_iter364 = this->primaryKeys.begin(); _iter364 != this->primaryKeys.end(); ++_iter364) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraints.size())); + std::vector ::const_iterator _iter388; + for (_iter388 = this->uniqueConstraints.begin(); _iter388 != this->uniqueConstraints.end(); ++_iter388) { - xfer += (*_iter364).write(oprot); + xfer += (*_iter388).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8791,47 +9690,39 @@ uint32_t PrimaryKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot return xfer; } -void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { +void swap(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b) { using ::std::swap; - swap(a.primaryKeys, b.primaryKeys); + swap(a.uniqueConstraints, b.uniqueConstraints); } -PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other365) { - primaryKeys = other365.primaryKeys; +UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other389) { + uniqueConstraints = other389.uniqueConstraints; } -PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other366) { - primaryKeys = other366.primaryKeys; +UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other390) { + uniqueConstraints = other390.uniqueConstraints; return *this; } -void PrimaryKeysResponse::printTo(std::ostream& out) const { +void UniqueConstraintsResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "PrimaryKeysResponse("; - out << "primaryKeys=" << to_string(primaryKeys); + out << "UniqueConstraintsResponse("; + out << "uniqueConstraints=" << to_string(uniqueConstraints); out << ")"; } -ForeignKeysRequest::~ForeignKeysRequest() throw() { -} - - -void ForeignKeysRequest::__set_parent_db_name(const std::string& val) { - this->parent_db_name = val; +NotNullConstraintsRequest::~NotNullConstraintsRequest() throw() { } -void ForeignKeysRequest::__set_parent_tbl_name(const std::string& val) { - this->parent_tbl_name = val; -} -void ForeignKeysRequest::__set_foreign_db_name(const std::string& val) { - this->foreign_db_name = val; +void NotNullConstraintsRequest::__set_db_name(const std::string& val) { + this->db_name = val; } -void ForeignKeysRequest::__set_foreign_tbl_name(const std::string& val) { - this->foreign_tbl_name = val; +void NotNullConstraintsRequest::__set_tbl_name(const std::string& val) { + this->tbl_name = val; } -uint32_t ForeignKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t NotNullConstraintsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8843,6 +9734,8 @@ uint32_t ForeignKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) using ::apache::thrift::protocol::TProtocolException; + bool isset_db_name = false; + bool isset_tbl_name = false; while (true) { @@ -8854,32 +9747,16 @@ uint32_t ForeignKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->parent_db_name); - this->__isset.parent_db_name = true; + 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->parent_tbl_name); - this->__isset.parent_tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->foreign_db_name); - this->__isset.foreign_db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->foreign_tbl_name); - this->__isset.foreign_tbl_name = true; + xfer += iprot->readString(this->tbl_name); + isset_tbl_name = true; } else { xfer += iprot->skip(ftype); } @@ -8893,28 +9770,24 @@ uint32_t ForeignKeysRequest::read(::apache::thrift::protocol::TProtocol* iprot) 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 ForeignKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t NotNullConstraintsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ForeignKeysRequest"); - - xfer += oprot->writeFieldBegin("parent_db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->parent_db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("parent_tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->parent_tbl_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("NotNullConstraintsRequest"); - xfer += oprot->writeFieldBegin("foreign_db_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->foreign_db_name); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("foreign_tbl_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->foreign_tbl_name); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -8922,50 +9795,39 @@ uint32_t ForeignKeysRequest::write(::apache::thrift::protocol::TProtocol* oprot) return xfer; } -void swap(ForeignKeysRequest &a, ForeignKeysRequest &b) { +void swap(NotNullConstraintsRequest &a, NotNullConstraintsRequest &b) { using ::std::swap; - swap(a.parent_db_name, b.parent_db_name); - swap(a.parent_tbl_name, b.parent_tbl_name); - swap(a.foreign_db_name, b.foreign_db_name); - swap(a.foreign_tbl_name, b.foreign_tbl_name); - swap(a.__isset, b.__isset); + swap(a.db_name, b.db_name); + swap(a.tbl_name, b.tbl_name); } -ForeignKeysRequest::ForeignKeysRequest(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; +NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other391) { + db_name = other391.db_name; + tbl_name = other391.tbl_name; } -ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other368) { - parent_db_name = other368.parent_db_name; - parent_tbl_name = other368.parent_tbl_name; - foreign_db_name = other368.foreign_db_name; - foreign_tbl_name = other368.foreign_tbl_name; - __isset = other368.__isset; +NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other392) { + db_name = other392.db_name; + tbl_name = other392.tbl_name; return *this; } -void ForeignKeysRequest::printTo(std::ostream& out) const { +void NotNullConstraintsRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ForeignKeysRequest("; - out << "parent_db_name=" << to_string(parent_db_name); - out << ", " << "parent_tbl_name=" << to_string(parent_tbl_name); - out << ", " << "foreign_db_name=" << to_string(foreign_db_name); - out << ", " << "foreign_tbl_name=" << to_string(foreign_tbl_name); + out << "NotNullConstraintsRequest("; + out << "db_name=" << to_string(db_name); + out << ", " << "tbl_name=" << to_string(tbl_name); out << ")"; } -ForeignKeysResponse::~ForeignKeysResponse() throw() { +NotNullConstraintsResponse::~NotNullConstraintsResponse() throw() { } -void ForeignKeysResponse::__set_foreignKeys(const std::vector & val) { - this->foreignKeys = val; +void NotNullConstraintsResponse::__set_notNullConstraints(const std::vector & val) { + this->notNullConstraints = val; } -uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t NotNullConstraintsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -8977,7 +9839,7 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) using ::apache::thrift::protocol::TProtocolException; - bool isset_foreignKeys = false; + bool isset_notNullConstraints = false; while (true) { @@ -8990,19 +9852,19 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->foreignKeys.clear(); - uint32_t _size369; - ::apache::thrift::protocol::TType _etype372; - xfer += iprot->readListBegin(_etype372, _size369); - this->foreignKeys.resize(_size369); - uint32_t _i373; - for (_i373 = 0; _i373 < _size369; ++_i373) + this->notNullConstraints.clear(); + uint32_t _size393; + ::apache::thrift::protocol::TType _etype396; + xfer += iprot->readListBegin(_etype396, _size393); + this->notNullConstraints.resize(_size393); + uint32_t _i397; + for (_i397 = 0; _i397 < _size393; ++_i397) { - xfer += this->foreignKeys[_i373].read(iprot); + xfer += this->notNullConstraints[_i397].read(iprot); } xfer += iprot->readListEnd(); } - isset_foreignKeys = true; + isset_notNullConstraints = true; } else { xfer += iprot->skip(ftype); } @@ -9016,23 +9878,23 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->readStructEnd(); - if (!isset_foreignKeys) + if (!isset_notNullConstraints) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t ForeignKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t NotNullConstraintsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ForeignKeysResponse"); + xfer += oprot->writeStructBegin("NotNullConstraintsResponse"); - xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter374; - for (_iter374 = this->foreignKeys.begin(); _iter374 != this->foreignKeys.end(); ++_iter374) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); + std::vector ::const_iterator _iter398; + for (_iter398 = this->notNullConstraints.begin(); _iter398 != this->notNullConstraints.end(); ++_iter398) { - xfer += (*_iter374).write(oprot); + xfer += (*_iter398).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9043,22 +9905,22 @@ uint32_t ForeignKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot return xfer; } -void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { +void swap(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b) { using ::std::swap; - swap(a.foreignKeys, b.foreignKeys); + swap(a.notNullConstraints, b.notNullConstraints); } -ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other375) { - foreignKeys = other375.foreignKeys; +NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other399) { + notNullConstraints = other399.notNullConstraints; } -ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other376) { - foreignKeys = other376.foreignKeys; +NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other400) { + notNullConstraints = other400.notNullConstraints; return *this; } -void ForeignKeysResponse::printTo(std::ostream& out) const { +void NotNullConstraintsResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "ForeignKeysResponse("; - out << "foreignKeys=" << to_string(foreignKeys); + out << "NotNullConstraintsResponse("; + out << "notNullConstraints=" << to_string(notNullConstraints); out << ")"; } @@ -9174,15 +10036,15 @@ void swap(DropConstraintRequest &a, DropConstraintRequest &b) { swap(a.constraintname, b.constraintname); } -DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other377) { - dbname = other377.dbname; - tablename = other377.tablename; - constraintname = other377.constraintname; +DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other401) { + dbname = other401.dbname; + tablename = other401.tablename; + constraintname = other401.constraintname; } -DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other378) { - dbname = other378.dbname; - tablename = other378.tablename; - constraintname = other378.constraintname; +DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other402) { + dbname = other402.dbname; + tablename = other402.tablename; + constraintname = other402.constraintname; return *this; } void DropConstraintRequest::printTo(std::ostream& out) const { @@ -9229,14 +10091,14 @@ uint32_t AddPrimaryKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeyCols.clear(); - uint32_t _size379; - ::apache::thrift::protocol::TType _etype382; - xfer += iprot->readListBegin(_etype382, _size379); - this->primaryKeyCols.resize(_size379); - uint32_t _i383; - for (_i383 = 0; _i383 < _size379; ++_i383) + uint32_t _size403; + ::apache::thrift::protocol::TType _etype406; + xfer += iprot->readListBegin(_etype406, _size403); + this->primaryKeyCols.resize(_size403); + uint32_t _i407; + for (_i407 = 0; _i407 < _size403; ++_i407) { - xfer += this->primaryKeyCols[_i383].read(iprot); + xfer += this->primaryKeyCols[_i407].read(iprot); } xfer += iprot->readListEnd(); } @@ -9267,10 +10129,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 _iter384; - for (_iter384 = this->primaryKeyCols.begin(); _iter384 != this->primaryKeyCols.end(); ++_iter384) + std::vector ::const_iterator _iter408; + for (_iter408 = this->primaryKeyCols.begin(); _iter408 != this->primaryKeyCols.end(); ++_iter408) { - xfer += (*_iter384).write(oprot); + xfer += (*_iter408).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9286,11 +10148,11 @@ void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { swap(a.primaryKeyCols, b.primaryKeyCols); } -AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other385) { - primaryKeyCols = other385.primaryKeyCols; +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other409) { + primaryKeyCols = other409.primaryKeyCols; } -AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other386) { - primaryKeyCols = other386.primaryKeyCols; +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other410) { + primaryKeyCols = other410.primaryKeyCols; return *this; } void AddPrimaryKeyRequest::printTo(std::ostream& out) const { @@ -9335,14 +10197,14 @@ uint32_t AddForeignKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeyCols.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - xfer += iprot->readListBegin(_etype390, _size387); - this->foreignKeyCols.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size411; + ::apache::thrift::protocol::TType _etype414; + xfer += iprot->readListBegin(_etype414, _size411); + this->foreignKeyCols.resize(_size411); + uint32_t _i415; + for (_i415 = 0; _i415 < _size411; ++_i415) { - xfer += this->foreignKeyCols[_i391].read(iprot); + xfer += this->foreignKeyCols[_i415].read(iprot); } xfer += iprot->readListEnd(); } @@ -9373,10 +10235,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 _iter392; - for (_iter392 = this->foreignKeyCols.begin(); _iter392 != this->foreignKeyCols.end(); ++_iter392) + std::vector ::const_iterator _iter416; + for (_iter416 = this->foreignKeyCols.begin(); _iter416 != this->foreignKeyCols.end(); ++_iter416) { - xfer += (*_iter392).write(oprot); + xfer += (*_iter416).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9392,11 +10254,11 @@ void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { swap(a.foreignKeyCols, b.foreignKeyCols); } -AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other393) { - foreignKeyCols = other393.foreignKeyCols; +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other417) { + foreignKeyCols = other417.foreignKeyCols; } -AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other394) { - foreignKeyCols = other394.foreignKeyCols; +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other418) { + foreignKeyCols = other418.foreignKeyCols; return *this; } void AddForeignKeyRequest::printTo(std::ostream& out) const { @@ -9407,6 +10269,218 @@ void AddForeignKeyRequest::printTo(std::ostream& out) const { } +AddUniqueConstraintRequest::~AddUniqueConstraintRequest() throw() { +} + + +void AddUniqueConstraintRequest::__set_uniqueConstraintCols(const std::vector & val) { + this->uniqueConstraintCols = val; +} + +uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_uniqueConstraintCols = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->uniqueConstraintCols.clear(); + uint32_t _size419; + ::apache::thrift::protocol::TType _etype422; + xfer += iprot->readListBegin(_etype422, _size419); + this->uniqueConstraintCols.resize(_size419); + uint32_t _i423; + for (_i423 = 0; _i423 < _size419; ++_i423) + { + xfer += this->uniqueConstraintCols[_i423].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_uniqueConstraintCols = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_uniqueConstraintCols) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("AddUniqueConstraintRequest"); + + xfer += oprot->writeFieldBegin("uniqueConstraintCols", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraintCols.size())); + std::vector ::const_iterator _iter424; + for (_iter424 = this->uniqueConstraintCols.begin(); _iter424 != this->uniqueConstraintCols.end(); ++_iter424) + { + xfer += (*_iter424).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { + using ::std::swap; + swap(a.uniqueConstraintCols, b.uniqueConstraintCols); +} + +AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other425) { + uniqueConstraintCols = other425.uniqueConstraintCols; +} +AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other426) { + uniqueConstraintCols = other426.uniqueConstraintCols; + return *this; +} +void AddUniqueConstraintRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddUniqueConstraintRequest("; + out << "uniqueConstraintCols=" << to_string(uniqueConstraintCols); + out << ")"; +} + + +AddNotNullConstraintRequest::~AddNotNullConstraintRequest() throw() { +} + + +void AddNotNullConstraintRequest::__set_notNullConstraintCols(const std::vector & val) { + this->notNullConstraintCols = val; +} + +uint32_t AddNotNullConstraintRequest::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_notNullConstraintCols = 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->notNullConstraintCols.clear(); + uint32_t _size427; + ::apache::thrift::protocol::TType _etype430; + xfer += iprot->readListBegin(_etype430, _size427); + this->notNullConstraintCols.resize(_size427); + uint32_t _i431; + for (_i431 = 0; _i431 < _size427; ++_i431) + { + xfer += this->notNullConstraintCols[_i431].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 _iter432; + for (_iter432 = this->notNullConstraintCols.begin(); _iter432 != this->notNullConstraintCols.end(); ++_iter432) + { + xfer += (*_iter432).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& other433) { + notNullConstraintCols = other433.notNullConstraintCols; +} +AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other434) { + notNullConstraintCols = other434.notNullConstraintCols; + return *this; +} +void AddNotNullConstraintRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddNotNullConstraintRequest("; + out << "notNullConstraintCols=" << to_string(notNullConstraintCols); + out << ")"; +} + + PartitionsByExprResult::~PartitionsByExprResult() throw() { } @@ -9446,14 +10520,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size395; - ::apache::thrift::protocol::TType _etype398; - xfer += iprot->readListBegin(_etype398, _size395); - this->partitions.resize(_size395); - uint32_t _i399; - for (_i399 = 0; _i399 < _size395; ++_i399) + uint32_t _size435; + ::apache::thrift::protocol::TType _etype438; + xfer += iprot->readListBegin(_etype438, _size435); + this->partitions.resize(_size435); + uint32_t _i439; + for (_i439 = 0; _i439 < _size435; ++_i439) { - xfer += this->partitions[_i399].read(iprot); + xfer += this->partitions[_i439].read(iprot); } xfer += iprot->readListEnd(); } @@ -9494,10 +10568,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 _iter400; - for (_iter400 = this->partitions.begin(); _iter400 != this->partitions.end(); ++_iter400) + std::vector ::const_iterator _iter440; + for (_iter440 = this->partitions.begin(); _iter440 != this->partitions.end(); ++_iter440) { - xfer += (*_iter400).write(oprot); + xfer += (*_iter440).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9518,13 +10592,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other401) { - partitions = other401.partitions; - hasUnknownPartitions = other401.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other441) { + partitions = other441.partitions; + hasUnknownPartitions = other441.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other402) { - partitions = other402.partitions; - hasUnknownPartitions = other402.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other442) { + partitions = other442.partitions; + hasUnknownPartitions = other442.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -9686,21 +10760,21 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other403) { - dbName = other403.dbName; - tblName = other403.tblName; - expr = other403.expr; - defaultPartitionName = other403.defaultPartitionName; - maxParts = other403.maxParts; - __isset = other403.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other404) { - dbName = other404.dbName; - tblName = other404.tblName; - expr = other404.expr; - defaultPartitionName = other404.defaultPartitionName; - maxParts = other404.maxParts; - __isset = other404.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other443) { + dbName = other443.dbName; + tblName = other443.tblName; + expr = other443.expr; + defaultPartitionName = other443.defaultPartitionName; + maxParts = other443.maxParts; + __isset = other443.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other444) { + dbName = other444.dbName; + tblName = other444.tblName; + expr = other444.expr; + defaultPartitionName = other444.defaultPartitionName; + maxParts = other444.maxParts; + __isset = other444.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -9749,14 +10823,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size405; - ::apache::thrift::protocol::TType _etype408; - xfer += iprot->readListBegin(_etype408, _size405); - this->tableStats.resize(_size405); - uint32_t _i409; - for (_i409 = 0; _i409 < _size405; ++_i409) + uint32_t _size445; + ::apache::thrift::protocol::TType _etype448; + xfer += iprot->readListBegin(_etype448, _size445); + this->tableStats.resize(_size445); + uint32_t _i449; + for (_i449 = 0; _i449 < _size445; ++_i449) { - xfer += this->tableStats[_i409].read(iprot); + xfer += this->tableStats[_i449].read(iprot); } xfer += iprot->readListEnd(); } @@ -9787,10 +10861,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 _iter410; - for (_iter410 = this->tableStats.begin(); _iter410 != this->tableStats.end(); ++_iter410) + std::vector ::const_iterator _iter450; + for (_iter450 = this->tableStats.begin(); _iter450 != this->tableStats.end(); ++_iter450) { - xfer += (*_iter410).write(oprot); + xfer += (*_iter450).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9806,11 +10880,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other411) { - tableStats = other411.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other451) { + tableStats = other451.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other412) { - tableStats = other412.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other452) { + tableStats = other452.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -9855,26 +10929,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size413; - ::apache::thrift::protocol::TType _ktype414; - ::apache::thrift::protocol::TType _vtype415; - xfer += iprot->readMapBegin(_ktype414, _vtype415, _size413); - uint32_t _i417; - for (_i417 = 0; _i417 < _size413; ++_i417) + uint32_t _size453; + ::apache::thrift::protocol::TType _ktype454; + ::apache::thrift::protocol::TType _vtype455; + xfer += iprot->readMapBegin(_ktype454, _vtype455, _size453); + uint32_t _i457; + for (_i457 = 0; _i457 < _size453; ++_i457) { - std::string _key418; - xfer += iprot->readString(_key418); - std::vector & _val419 = this->partStats[_key418]; + std::string _key458; + xfer += iprot->readString(_key458); + std::vector & _val459 = this->partStats[_key458]; { - _val419.clear(); - uint32_t _size420; - ::apache::thrift::protocol::TType _etype423; - xfer += iprot->readListBegin(_etype423, _size420); - _val419.resize(_size420); - uint32_t _i424; - for (_i424 = 0; _i424 < _size420; ++_i424) + _val459.clear(); + uint32_t _size460; + ::apache::thrift::protocol::TType _etype463; + xfer += iprot->readListBegin(_etype463, _size460); + _val459.resize(_size460); + uint32_t _i464; + for (_i464 = 0; _i464 < _size460; ++_i464) { - xfer += _val419[_i424].read(iprot); + xfer += _val459[_i464].read(iprot); } xfer += iprot->readListEnd(); } @@ -9908,16 +10982,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 _iter425; - for (_iter425 = this->partStats.begin(); _iter425 != this->partStats.end(); ++_iter425) + std::map > ::const_iterator _iter465; + for (_iter465 = this->partStats.begin(); _iter465 != this->partStats.end(); ++_iter465) { - xfer += oprot->writeString(_iter425->first); + xfer += oprot->writeString(_iter465->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter425->second.size())); - std::vector ::const_iterator _iter426; - for (_iter426 = _iter425->second.begin(); _iter426 != _iter425->second.end(); ++_iter426) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter465->second.size())); + std::vector ::const_iterator _iter466; + for (_iter466 = _iter465->second.begin(); _iter466 != _iter465->second.end(); ++_iter466) { - xfer += (*_iter426).write(oprot); + xfer += (*_iter466).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9936,11 +11010,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other427) { - partStats = other427.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other467) { + partStats = other467.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other428) { - partStats = other428.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other468) { + partStats = other468.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -10011,14 +11085,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size429; - ::apache::thrift::protocol::TType _etype432; - xfer += iprot->readListBegin(_etype432, _size429); - this->colNames.resize(_size429); - uint32_t _i433; - for (_i433 = 0; _i433 < _size429; ++_i433) + uint32_t _size469; + ::apache::thrift::protocol::TType _etype472; + xfer += iprot->readListBegin(_etype472, _size469); + this->colNames.resize(_size469); + uint32_t _i473; + for (_i473 = 0; _i473 < _size469; ++_i473) { - xfer += iprot->readString(this->colNames[_i433]); + xfer += iprot->readString(this->colNames[_i473]); } xfer += iprot->readListEnd(); } @@ -10061,10 +11135,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 _iter434; - for (_iter434 = this->colNames.begin(); _iter434 != this->colNames.end(); ++_iter434) + std::vector ::const_iterator _iter474; + for (_iter474 = this->colNames.begin(); _iter474 != this->colNames.end(); ++_iter474) { - xfer += oprot->writeString((*_iter434)); + xfer += oprot->writeString((*_iter474)); } xfer += oprot->writeListEnd(); } @@ -10082,15 +11156,15 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other435) { - dbName = other435.dbName; - tblName = other435.tblName; - colNames = other435.colNames; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other475) { + dbName = other475.dbName; + tblName = other475.tblName; + colNames = other475.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other436) { - dbName = other436.dbName; - tblName = other436.tblName; - colNames = other436.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other476) { + dbName = other476.dbName; + tblName = other476.tblName; + colNames = other476.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -10168,14 +11242,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _etype440; - xfer += iprot->readListBegin(_etype440, _size437); - this->colNames.resize(_size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) + uint32_t _size477; + ::apache::thrift::protocol::TType _etype480; + xfer += iprot->readListBegin(_etype480, _size477); + this->colNames.resize(_size477); + uint32_t _i481; + for (_i481 = 0; _i481 < _size477; ++_i481) { - xfer += iprot->readString(this->colNames[_i441]); + xfer += iprot->readString(this->colNames[_i481]); } xfer += iprot->readListEnd(); } @@ -10188,14 +11262,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size442; - ::apache::thrift::protocol::TType _etype445; - xfer += iprot->readListBegin(_etype445, _size442); - this->partNames.resize(_size442); - uint32_t _i446; - for (_i446 = 0; _i446 < _size442; ++_i446) + uint32_t _size482; + ::apache::thrift::protocol::TType _etype485; + xfer += iprot->readListBegin(_etype485, _size482); + this->partNames.resize(_size482); + uint32_t _i486; + for (_i486 = 0; _i486 < _size482; ++_i486) { - xfer += iprot->readString(this->partNames[_i446]); + xfer += iprot->readString(this->partNames[_i486]); } xfer += iprot->readListEnd(); } @@ -10240,10 +11314,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 _iter447; - for (_iter447 = this->colNames.begin(); _iter447 != this->colNames.end(); ++_iter447) + std::vector ::const_iterator _iter487; + for (_iter487 = this->colNames.begin(); _iter487 != this->colNames.end(); ++_iter487) { - xfer += oprot->writeString((*_iter447)); + xfer += oprot->writeString((*_iter487)); } xfer += oprot->writeListEnd(); } @@ -10252,10 +11326,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 _iter448; - for (_iter448 = this->partNames.begin(); _iter448 != this->partNames.end(); ++_iter448) + std::vector ::const_iterator _iter488; + for (_iter488 = this->partNames.begin(); _iter488 != this->partNames.end(); ++_iter488) { - xfer += oprot->writeString((*_iter448)); + xfer += oprot->writeString((*_iter488)); } xfer += oprot->writeListEnd(); } @@ -10274,17 +11348,17 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other449) { - dbName = other449.dbName; - tblName = other449.tblName; - colNames = other449.colNames; - partNames = other449.partNames; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other489) { + dbName = other489.dbName; + tblName = other489.tblName; + colNames = other489.colNames; + partNames = other489.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other450) { - dbName = other450.dbName; - tblName = other450.tblName; - colNames = other450.colNames; - partNames = other450.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other490) { + dbName = other490.dbName; + tblName = other490.tblName; + colNames = other490.colNames; + partNames = other490.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -10332,14 +11406,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size451; - ::apache::thrift::protocol::TType _etype454; - xfer += iprot->readListBegin(_etype454, _size451); - this->partitions.resize(_size451); - uint32_t _i455; - for (_i455 = 0; _i455 < _size451; ++_i455) + uint32_t _size491; + ::apache::thrift::protocol::TType _etype494; + xfer += iprot->readListBegin(_etype494, _size491); + this->partitions.resize(_size491); + uint32_t _i495; + for (_i495 = 0; _i495 < _size491; ++_i495) { - xfer += this->partitions[_i455].read(iprot); + xfer += this->partitions[_i495].read(iprot); } xfer += iprot->readListEnd(); } @@ -10369,10 +11443,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 _iter456; - for (_iter456 = this->partitions.begin(); _iter456 != this->partitions.end(); ++_iter456) + std::vector ::const_iterator _iter496; + for (_iter496 = this->partitions.begin(); _iter496 != this->partitions.end(); ++_iter496) { - xfer += (*_iter456).write(oprot); + xfer += (*_iter496).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10389,13 +11463,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other457) { - partitions = other457.partitions; - __isset = other457.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other497) { + partitions = other497.partitions; + __isset = other497.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other458) { - partitions = other458.partitions; - __isset = other458.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other498) { + partitions = other498.partitions; + __isset = other498.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -10476,14 +11550,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size459; - ::apache::thrift::protocol::TType _etype462; - xfer += iprot->readListBegin(_etype462, _size459); - this->parts.resize(_size459); - uint32_t _i463; - for (_i463 = 0; _i463 < _size459; ++_i463) + uint32_t _size499; + ::apache::thrift::protocol::TType _etype502; + xfer += iprot->readListBegin(_etype502, _size499); + this->parts.resize(_size499); + uint32_t _i503; + for (_i503 = 0; _i503 < _size499; ++_i503) { - xfer += this->parts[_i463].read(iprot); + xfer += this->parts[_i503].read(iprot); } xfer += iprot->readListEnd(); } @@ -10544,10 +11618,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 _iter464; - for (_iter464 = this->parts.begin(); _iter464 != this->parts.end(); ++_iter464) + std::vector ::const_iterator _iter504; + for (_iter504 = this->parts.begin(); _iter504 != this->parts.end(); ++_iter504) { - xfer += (*_iter464).write(oprot); + xfer += (*_iter504).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10577,21 +11651,21 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other465) { - dbName = other465.dbName; - tblName = other465.tblName; - parts = other465.parts; - ifNotExists = other465.ifNotExists; - needResult = other465.needResult; - __isset = other465.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other466) { - dbName = other466.dbName; - tblName = other466.tblName; - parts = other466.parts; - ifNotExists = other466.ifNotExists; - needResult = other466.needResult; - __isset = other466.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other505) { + dbName = other505.dbName; + tblName = other505.tblName; + parts = other505.parts; + ifNotExists = other505.ifNotExists; + needResult = other505.needResult; + __isset = other505.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other506) { + dbName = other506.dbName; + tblName = other506.tblName; + parts = other506.parts; + ifNotExists = other506.ifNotExists; + needResult = other506.needResult; + __isset = other506.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -10640,14 +11714,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size467; - ::apache::thrift::protocol::TType _etype470; - xfer += iprot->readListBegin(_etype470, _size467); - this->partitions.resize(_size467); - uint32_t _i471; - for (_i471 = 0; _i471 < _size467; ++_i471) + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->partitions.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += this->partitions[_i471].read(iprot); + xfer += this->partitions[_i511].read(iprot); } xfer += iprot->readListEnd(); } @@ -10677,10 +11751,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 _iter472; - for (_iter472 = this->partitions.begin(); _iter472 != this->partitions.end(); ++_iter472) + std::vector ::const_iterator _iter512; + for (_iter512 = this->partitions.begin(); _iter512 != this->partitions.end(); ++_iter512) { - xfer += (*_iter472).write(oprot); + xfer += (*_iter512).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10697,13 +11771,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other473) { - partitions = other473.partitions; - __isset = other473.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other513) { + partitions = other513.partitions; + __isset = other513.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other474) { - partitions = other474.partitions; - __isset = other474.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other514) { + partitions = other514.partitions; + __isset = other514.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -10805,15 +11879,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other475) { - expr = other475.expr; - partArchiveLevel = other475.partArchiveLevel; - __isset = other475.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other515) { + expr = other515.expr; + partArchiveLevel = other515.partArchiveLevel; + __isset = other515.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other476) { - expr = other476.expr; - partArchiveLevel = other476.partArchiveLevel; - __isset = other476.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other516) { + expr = other516.expr; + partArchiveLevel = other516.partArchiveLevel; + __isset = other516.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -10862,14 +11936,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size477; - ::apache::thrift::protocol::TType _etype480; - xfer += iprot->readListBegin(_etype480, _size477); - this->names.resize(_size477); - uint32_t _i481; - for (_i481 = 0; _i481 < _size477; ++_i481) + uint32_t _size517; + ::apache::thrift::protocol::TType _etype520; + xfer += iprot->readListBegin(_etype520, _size517); + this->names.resize(_size517); + uint32_t _i521; + for (_i521 = 0; _i521 < _size517; ++_i521) { - xfer += iprot->readString(this->names[_i481]); + xfer += iprot->readString(this->names[_i521]); } xfer += iprot->readListEnd(); } @@ -10882,14 +11956,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size482; - ::apache::thrift::protocol::TType _etype485; - xfer += iprot->readListBegin(_etype485, _size482); - this->exprs.resize(_size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + uint32_t _size522; + ::apache::thrift::protocol::TType _etype525; + xfer += iprot->readListBegin(_etype525, _size522); + this->exprs.resize(_size522); + uint32_t _i526; + for (_i526 = 0; _i526 < _size522; ++_i526) { - xfer += this->exprs[_i486].read(iprot); + xfer += this->exprs[_i526].read(iprot); } xfer += iprot->readListEnd(); } @@ -10918,10 +11992,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 _iter487; - for (_iter487 = this->names.begin(); _iter487 != this->names.end(); ++_iter487) + std::vector ::const_iterator _iter527; + for (_iter527 = this->names.begin(); _iter527 != this->names.end(); ++_iter527) { - xfer += oprot->writeString((*_iter487)); + xfer += oprot->writeString((*_iter527)); } xfer += oprot->writeListEnd(); } @@ -10930,10 +12004,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 _iter488; - for (_iter488 = this->exprs.begin(); _iter488 != this->exprs.end(); ++_iter488) + std::vector ::const_iterator _iter528; + for (_iter528 = this->exprs.begin(); _iter528 != this->exprs.end(); ++_iter528) { - xfer += (*_iter488).write(oprot); + xfer += (*_iter528).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10951,15 +12025,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other489) { - names = other489.names; - exprs = other489.exprs; - __isset = other489.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other529) { + names = other529.names; + exprs = other529.exprs; + __isset = other529.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other490) { - names = other490.names; - exprs = other490.exprs; - __isset = other490.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other530) { + names = other530.names; + exprs = other530.exprs; + __isset = other530.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -11178,27 +12252,27 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other491) { - dbName = other491.dbName; - tblName = other491.tblName; - parts = other491.parts; - deleteData = other491.deleteData; - ifExists = other491.ifExists; - ignoreProtection = other491.ignoreProtection; - environmentContext = other491.environmentContext; - needResult = other491.needResult; - __isset = other491.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other492) { - dbName = other492.dbName; - tblName = other492.tblName; - parts = other492.parts; - deleteData = other492.deleteData; - ifExists = other492.ifExists; - ignoreProtection = other492.ignoreProtection; - environmentContext = other492.environmentContext; - needResult = other492.needResult; - __isset = other492.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other531) { + dbName = other531.dbName; + tblName = other531.tblName; + parts = other531.parts; + deleteData = other531.deleteData; + ifExists = other531.ifExists; + ignoreProtection = other531.ignoreProtection; + environmentContext = other531.environmentContext; + needResult = other531.needResult; + __isset = other531.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other532) { + dbName = other532.dbName; + tblName = other532.tblName; + parts = other532.parts; + deleteData = other532.deleteData; + ifExists = other532.ifExists; + ignoreProtection = other532.ignoreProtection; + environmentContext = other532.environmentContext; + needResult = other532.needResult; + __isset = other532.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -11251,9 +12325,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast493; - xfer += iprot->readI32(ecast493); - this->resourceType = (ResourceType::type)ecast493; + int32_t ecast533; + xfer += iprot->readI32(ecast533); + this->resourceType = (ResourceType::type)ecast533; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -11304,15 +12378,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other494) { - resourceType = other494.resourceType; - uri = other494.uri; - __isset = other494.__isset; +ResourceUri::ResourceUri(const ResourceUri& other534) { + resourceType = other534.resourceType; + uri = other534.uri; + __isset = other534.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other495) { - resourceType = other495.resourceType; - uri = other495.uri; - __isset = other495.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other535) { + resourceType = other535.resourceType; + uri = other535.uri; + __isset = other535.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -11415,9 +12489,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast496; - xfer += iprot->readI32(ecast496); - this->ownerType = (PrincipalType::type)ecast496; + int32_t ecast536; + xfer += iprot->readI32(ecast536); + this->ownerType = (PrincipalType::type)ecast536; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -11433,9 +12507,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast497; - xfer += iprot->readI32(ecast497); - this->functionType = (FunctionType::type)ecast497; + int32_t ecast537; + xfer += iprot->readI32(ecast537); + this->functionType = (FunctionType::type)ecast537; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -11445,14 +12519,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size498; - ::apache::thrift::protocol::TType _etype501; - xfer += iprot->readListBegin(_etype501, _size498); - this->resourceUris.resize(_size498); - uint32_t _i502; - for (_i502 = 0; _i502 < _size498; ++_i502) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + this->resourceUris.resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += this->resourceUris[_i502].read(iprot); + xfer += this->resourceUris[_i542].read(iprot); } xfer += iprot->readListEnd(); } @@ -11509,10 +12583,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 _iter503; - for (_iter503 = this->resourceUris.begin(); _iter503 != this->resourceUris.end(); ++_iter503) + std::vector ::const_iterator _iter543; + for (_iter543 = this->resourceUris.begin(); _iter543 != this->resourceUris.end(); ++_iter543) { - xfer += (*_iter503).write(oprot); + xfer += (*_iter543).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11536,27 +12610,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other504) { - functionName = other504.functionName; - dbName = other504.dbName; - className = other504.className; - ownerName = other504.ownerName; - ownerType = other504.ownerType; - createTime = other504.createTime; - functionType = other504.functionType; - resourceUris = other504.resourceUris; - __isset = other504.__isset; -} -Function& Function::operator=(const Function& other505) { - functionName = other505.functionName; - dbName = other505.dbName; - className = other505.className; - ownerName = other505.ownerName; - ownerType = other505.ownerType; - createTime = other505.createTime; - functionType = other505.functionType; - resourceUris = other505.resourceUris; - __isset = other505.__isset; +Function::Function(const Function& other544) { + functionName = other544.functionName; + dbName = other544.dbName; + className = other544.className; + ownerName = other544.ownerName; + ownerType = other544.ownerType; + createTime = other544.createTime; + functionType = other544.functionType; + resourceUris = other544.resourceUris; + __isset = other544.__isset; +} +Function& Function::operator=(const Function& other545) { + functionName = other545.functionName; + dbName = other545.dbName; + className = other545.className; + ownerName = other545.ownerName; + ownerType = other545.ownerType; + createTime = other545.createTime; + functionType = other545.functionType; + resourceUris = other545.resourceUris; + __isset = other545.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -11654,9 +12728,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast506; - xfer += iprot->readI32(ecast506); - this->state = (TxnState::type)ecast506; + int32_t ecast546; + xfer += iprot->readI32(ecast546); + this->state = (TxnState::type)ecast546; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11803,29 +12877,29 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other507) { - id = other507.id; - state = other507.state; - user = other507.user; - hostname = other507.hostname; - agentInfo = other507.agentInfo; - heartbeatCount = other507.heartbeatCount; - metaInfo = other507.metaInfo; - startedTime = other507.startedTime; - lastHeartbeatTime = other507.lastHeartbeatTime; - __isset = other507.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other508) { - id = other508.id; - state = other508.state; - user = other508.user; - hostname = other508.hostname; - agentInfo = other508.agentInfo; - heartbeatCount = other508.heartbeatCount; - metaInfo = other508.metaInfo; - startedTime = other508.startedTime; - lastHeartbeatTime = other508.lastHeartbeatTime; - __isset = other508.__isset; +TxnInfo::TxnInfo(const TxnInfo& other547) { + id = other547.id; + state = other547.state; + user = other547.user; + hostname = other547.hostname; + agentInfo = other547.agentInfo; + heartbeatCount = other547.heartbeatCount; + metaInfo = other547.metaInfo; + startedTime = other547.startedTime; + lastHeartbeatTime = other547.lastHeartbeatTime; + __isset = other547.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other548) { + id = other548.id; + state = other548.state; + user = other548.user; + hostname = other548.hostname; + agentInfo = other548.agentInfo; + heartbeatCount = other548.heartbeatCount; + metaInfo = other548.metaInfo; + startedTime = other548.startedTime; + lastHeartbeatTime = other548.lastHeartbeatTime; + __isset = other548.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -11891,14 +12965,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size509; - ::apache::thrift::protocol::TType _etype512; - xfer += iprot->readListBegin(_etype512, _size509); - this->open_txns.resize(_size509); - uint32_t _i513; - for (_i513 = 0; _i513 < _size509; ++_i513) + uint32_t _size549; + ::apache::thrift::protocol::TType _etype552; + xfer += iprot->readListBegin(_etype552, _size549); + this->open_txns.resize(_size549); + uint32_t _i553; + for (_i553 = 0; _i553 < _size549; ++_i553) { - xfer += this->open_txns[_i513].read(iprot); + xfer += this->open_txns[_i553].read(iprot); } xfer += iprot->readListEnd(); } @@ -11935,10 +13009,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 _iter514; - for (_iter514 = this->open_txns.begin(); _iter514 != this->open_txns.end(); ++_iter514) + std::vector ::const_iterator _iter554; + for (_iter554 = this->open_txns.begin(); _iter554 != this->open_txns.end(); ++_iter554) { - xfer += (*_iter514).write(oprot); + xfer += (*_iter554).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11955,13 +13029,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other515) { - txn_high_water_mark = other515.txn_high_water_mark; - open_txns = other515.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other555) { + txn_high_water_mark = other555.txn_high_water_mark; + open_txns = other555.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other516) { - txn_high_water_mark = other516.txn_high_water_mark; - open_txns = other516.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other556) { + txn_high_water_mark = other556.txn_high_water_mark; + open_txns = other556.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -12030,14 +13104,14 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size517; - ::apache::thrift::protocol::TType _etype520; - xfer += iprot->readListBegin(_etype520, _size517); - this->open_txns.resize(_size517); - uint32_t _i521; - for (_i521 = 0; _i521 < _size517; ++_i521) + uint32_t _size557; + ::apache::thrift::protocol::TType _etype560; + xfer += iprot->readListBegin(_etype560, _size557); + this->open_txns.resize(_size557); + uint32_t _i561; + for (_i561 = 0; _i561 < _size557; ++_i561) { - xfer += iprot->readI64(this->open_txns[_i521]); + xfer += iprot->readI64(this->open_txns[_i561]); } xfer += iprot->readListEnd(); } @@ -12092,10 +13166,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 _iter522; - for (_iter522 = this->open_txns.begin(); _iter522 != this->open_txns.end(); ++_iter522) + std::vector ::const_iterator _iter562; + for (_iter562 = this->open_txns.begin(); _iter562 != this->open_txns.end(); ++_iter562) { - xfer += oprot->writeI64((*_iter522)); + xfer += oprot->writeI64((*_iter562)); } xfer += oprot->writeListEnd(); } @@ -12124,19 +13198,19 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.__isset, b.__isset); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other523) { - txn_high_water_mark = other523.txn_high_water_mark; - open_txns = other523.open_txns; - min_open_txn = other523.min_open_txn; - abortedBits = other523.abortedBits; - __isset = other523.__isset; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other563) { + txn_high_water_mark = other563.txn_high_water_mark; + open_txns = other563.open_txns; + min_open_txn = other563.min_open_txn; + abortedBits = other563.abortedBits; + __isset = other563.__isset; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other524) { - txn_high_water_mark = other524.txn_high_water_mark; - open_txns = other524.open_txns; - min_open_txn = other524.min_open_txn; - abortedBits = other524.abortedBits; - __isset = other524.__isset; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other564) { + txn_high_water_mark = other564.txn_high_water_mark; + open_txns = other564.open_txns; + min_open_txn = other564.min_open_txn; + abortedBits = other564.abortedBits; + __isset = other564.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -12281,19 +13355,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other525) { - num_txns = other525.num_txns; - user = other525.user; - hostname = other525.hostname; - agentInfo = other525.agentInfo; - __isset = other525.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other565) { + num_txns = other565.num_txns; + user = other565.user; + hostname = other565.hostname; + agentInfo = other565.agentInfo; + __isset = other565.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other526) { - num_txns = other526.num_txns; - user = other526.user; - hostname = other526.hostname; - agentInfo = other526.agentInfo; - __isset = other526.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other566) { + num_txns = other566.num_txns; + user = other566.user; + hostname = other566.hostname; + agentInfo = other566.agentInfo; + __isset = other566.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -12341,14 +13415,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size527; - ::apache::thrift::protocol::TType _etype530; - xfer += iprot->readListBegin(_etype530, _size527); - this->txn_ids.resize(_size527); - uint32_t _i531; - for (_i531 = 0; _i531 < _size527; ++_i531) + uint32_t _size567; + ::apache::thrift::protocol::TType _etype570; + xfer += iprot->readListBegin(_etype570, _size567); + this->txn_ids.resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += iprot->readI64(this->txn_ids[_i531]); + xfer += iprot->readI64(this->txn_ids[_i571]); } xfer += iprot->readListEnd(); } @@ -12379,10 +13453,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 _iter532; - for (_iter532 = this->txn_ids.begin(); _iter532 != this->txn_ids.end(); ++_iter532) + std::vector ::const_iterator _iter572; + for (_iter572 = this->txn_ids.begin(); _iter572 != this->txn_ids.end(); ++_iter572) { - xfer += oprot->writeI64((*_iter532)); + xfer += oprot->writeI64((*_iter572)); } xfer += oprot->writeListEnd(); } @@ -12398,11 +13472,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other533) { - txn_ids = other533.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other573) { + txn_ids = other573.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other534) { - txn_ids = other534.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other574) { + txn_ids = other574.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -12484,11 +13558,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other535) { - txnid = other535.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other575) { + txnid = other575.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other536) { - txnid = other536.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other576) { + txnid = other576.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -12533,14 +13607,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size537; - ::apache::thrift::protocol::TType _etype540; - xfer += iprot->readListBegin(_etype540, _size537); - this->txn_ids.resize(_size537); - uint32_t _i541; - for (_i541 = 0; _i541 < _size537; ++_i541) + uint32_t _size577; + ::apache::thrift::protocol::TType _etype580; + xfer += iprot->readListBegin(_etype580, _size577); + this->txn_ids.resize(_size577); + uint32_t _i581; + for (_i581 = 0; _i581 < _size577; ++_i581) { - xfer += iprot->readI64(this->txn_ids[_i541]); + xfer += iprot->readI64(this->txn_ids[_i581]); } xfer += iprot->readListEnd(); } @@ -12571,10 +13645,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 _iter542; - for (_iter542 = this->txn_ids.begin(); _iter542 != this->txn_ids.end(); ++_iter542) + std::vector ::const_iterator _iter582; + for (_iter582 = this->txn_ids.begin(); _iter582 != this->txn_ids.end(); ++_iter582) { - xfer += oprot->writeI64((*_iter542)); + xfer += oprot->writeI64((*_iter582)); } xfer += oprot->writeListEnd(); } @@ -12590,11 +13664,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other543) { - txn_ids = other543.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other583) { + txn_ids = other583.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other544) { - txn_ids = other544.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other584) { + txn_ids = other584.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -12676,11 +13750,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other545) { - txnid = other545.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other585) { + txnid = other585.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other546) { - txnid = other546.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other586) { + txnid = other586.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -12758,9 +13832,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast547; - xfer += iprot->readI32(ecast547); - this->type = (LockType::type)ecast547; + int32_t ecast587; + xfer += iprot->readI32(ecast587); + this->type = (LockType::type)ecast587; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12768,9 +13842,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast548; - xfer += iprot->readI32(ecast548); - this->level = (LockLevel::type)ecast548; + int32_t ecast588; + xfer += iprot->readI32(ecast588); + this->level = (LockLevel::type)ecast588; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -12802,9 +13876,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast549; - xfer += iprot->readI32(ecast549); - this->operationType = (DataOperationType::type)ecast549; + int32_t ecast589; + xfer += iprot->readI32(ecast589); + this->operationType = (DataOperationType::type)ecast589; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -12904,27 +13978,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other550) { - type = other550.type; - level = other550.level; - dbname = other550.dbname; - tablename = other550.tablename; - partitionname = other550.partitionname; - operationType = other550.operationType; - isAcid = other550.isAcid; - isDynamicPartitionWrite = other550.isDynamicPartitionWrite; - __isset = other550.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other551) { - type = other551.type; - level = other551.level; - dbname = other551.dbname; - tablename = other551.tablename; - partitionname = other551.partitionname; - operationType = other551.operationType; - isAcid = other551.isAcid; - isDynamicPartitionWrite = other551.isDynamicPartitionWrite; - __isset = other551.__isset; +LockComponent::LockComponent(const LockComponent& other590) { + type = other590.type; + level = other590.level; + dbname = other590.dbname; + tablename = other590.tablename; + partitionname = other590.partitionname; + operationType = other590.operationType; + isAcid = other590.isAcid; + isDynamicPartitionWrite = other590.isDynamicPartitionWrite; + __isset = other590.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other591) { + type = other591.type; + level = other591.level; + dbname = other591.dbname; + tablename = other591.tablename; + partitionname = other591.partitionname; + operationType = other591.operationType; + isAcid = other591.isAcid; + isDynamicPartitionWrite = other591.isDynamicPartitionWrite; + __isset = other591.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -12996,14 +14070,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size552; - ::apache::thrift::protocol::TType _etype555; - xfer += iprot->readListBegin(_etype555, _size552); - this->component.resize(_size552); - uint32_t _i556; - for (_i556 = 0; _i556 < _size552; ++_i556) + uint32_t _size592; + ::apache::thrift::protocol::TType _etype595; + xfer += iprot->readListBegin(_etype595, _size592); + this->component.resize(_size592); + uint32_t _i596; + for (_i596 = 0; _i596 < _size592; ++_i596) { - xfer += this->component[_i556].read(iprot); + xfer += this->component[_i596].read(iprot); } xfer += iprot->readListEnd(); } @@ -13070,10 +14144,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 _iter557; - for (_iter557 = this->component.begin(); _iter557 != this->component.end(); ++_iter557) + std::vector ::const_iterator _iter597; + for (_iter597 = this->component.begin(); _iter597 != this->component.end(); ++_iter597) { - xfer += (*_iter557).write(oprot); + xfer += (*_iter597).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13112,21 +14186,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other558) { - component = other558.component; - txnid = other558.txnid; - user = other558.user; - hostname = other558.hostname; - agentInfo = other558.agentInfo; - __isset = other558.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other559) { - component = other559.component; - txnid = other559.txnid; - user = other559.user; - hostname = other559.hostname; - agentInfo = other559.agentInfo; - __isset = other559.__isset; +LockRequest::LockRequest(const LockRequest& other598) { + component = other598.component; + txnid = other598.txnid; + user = other598.user; + hostname = other598.hostname; + agentInfo = other598.agentInfo; + __isset = other598.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other599) { + component = other599.component; + txnid = other599.txnid; + user = other599.user; + hostname = other599.hostname; + agentInfo = other599.agentInfo; + __isset = other599.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -13186,9 +14260,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast560; - xfer += iprot->readI32(ecast560); - this->state = (LockState::type)ecast560; + int32_t ecast600; + xfer += iprot->readI32(ecast600); + this->state = (LockState::type)ecast600; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13234,13 +14308,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other561) { - lockid = other561.lockid; - state = other561.state; +LockResponse::LockResponse(const LockResponse& other601) { + lockid = other601.lockid; + state = other601.state; } -LockResponse& LockResponse::operator=(const LockResponse& other562) { - lockid = other562.lockid; - state = other562.state; +LockResponse& LockResponse::operator=(const LockResponse& other602) { + lockid = other602.lockid; + state = other602.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -13362,17 +14436,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other563) { - lockid = other563.lockid; - txnid = other563.txnid; - elapsed_ms = other563.elapsed_ms; - __isset = other563.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other603) { + lockid = other603.lockid; + txnid = other603.txnid; + elapsed_ms = other603.elapsed_ms; + __isset = other603.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other564) { - lockid = other564.lockid; - txnid = other564.txnid; - elapsed_ms = other564.elapsed_ms; - __isset = other564.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other604) { + lockid = other604.lockid; + txnid = other604.txnid; + elapsed_ms = other604.elapsed_ms; + __isset = other604.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -13456,11 +14530,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other565) { - lockid = other565.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other605) { + lockid = other605.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other566) { - lockid = other566.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other606) { + lockid = other606.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -13599,19 +14673,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other567) { - dbname = other567.dbname; - tablename = other567.tablename; - partname = other567.partname; - isExtended = other567.isExtended; - __isset = other567.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other607) { + dbname = other607.dbname; + tablename = other607.tablename; + partname = other607.partname; + isExtended = other607.isExtended; + __isset = other607.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other568) { - dbname = other568.dbname; - tablename = other568.tablename; - partname = other568.partname; - isExtended = other568.isExtended; - __isset = other568.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other608) { + dbname = other608.dbname; + tablename = other608.tablename; + partname = other608.partname; + isExtended = other608.isExtended; + __isset = other608.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -13764,9 +14838,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast569; - xfer += iprot->readI32(ecast569); - this->state = (LockState::type)ecast569; + int32_t ecast609; + xfer += iprot->readI32(ecast609); + this->state = (LockState::type)ecast609; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13774,9 +14848,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast570; - xfer += iprot->readI32(ecast570); - this->type = (LockType::type)ecast570; + int32_t ecast610; + xfer += iprot->readI32(ecast610); + this->type = (LockType::type)ecast610; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -13992,43 +15066,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other571) { - lockid = other571.lockid; - dbname = other571.dbname; - tablename = other571.tablename; - partname = other571.partname; - state = other571.state; - type = other571.type; - txnid = other571.txnid; - lastheartbeat = other571.lastheartbeat; - acquiredat = other571.acquiredat; - user = other571.user; - hostname = other571.hostname; - heartbeatCount = other571.heartbeatCount; - agentInfo = other571.agentInfo; - blockedByExtId = other571.blockedByExtId; - blockedByIntId = other571.blockedByIntId; - lockIdInternal = other571.lockIdInternal; - __isset = other571.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other572) { - lockid = other572.lockid; - dbname = other572.dbname; - tablename = other572.tablename; - partname = other572.partname; - state = other572.state; - type = other572.type; - txnid = other572.txnid; - lastheartbeat = other572.lastheartbeat; - acquiredat = other572.acquiredat; - user = other572.user; - hostname = other572.hostname; - heartbeatCount = other572.heartbeatCount; - agentInfo = other572.agentInfo; - blockedByExtId = other572.blockedByExtId; - blockedByIntId = other572.blockedByIntId; - lockIdInternal = other572.lockIdInternal; - __isset = other572.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other611) { + lockid = other611.lockid; + dbname = other611.dbname; + tablename = other611.tablename; + partname = other611.partname; + state = other611.state; + type = other611.type; + txnid = other611.txnid; + lastheartbeat = other611.lastheartbeat; + acquiredat = other611.acquiredat; + user = other611.user; + hostname = other611.hostname; + heartbeatCount = other611.heartbeatCount; + agentInfo = other611.agentInfo; + blockedByExtId = other611.blockedByExtId; + blockedByIntId = other611.blockedByIntId; + lockIdInternal = other611.lockIdInternal; + __isset = other611.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other612) { + lockid = other612.lockid; + dbname = other612.dbname; + tablename = other612.tablename; + partname = other612.partname; + state = other612.state; + type = other612.type; + txnid = other612.txnid; + lastheartbeat = other612.lastheartbeat; + acquiredat = other612.acquiredat; + user = other612.user; + hostname = other612.hostname; + heartbeatCount = other612.heartbeatCount; + agentInfo = other612.agentInfo; + blockedByExtId = other612.blockedByExtId; + blockedByIntId = other612.blockedByIntId; + lockIdInternal = other612.lockIdInternal; + __isset = other612.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -14087,14 +15161,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size573; - ::apache::thrift::protocol::TType _etype576; - xfer += iprot->readListBegin(_etype576, _size573); - this->locks.resize(_size573); - uint32_t _i577; - for (_i577 = 0; _i577 < _size573; ++_i577) + uint32_t _size613; + ::apache::thrift::protocol::TType _etype616; + xfer += iprot->readListBegin(_etype616, _size613); + this->locks.resize(_size613); + uint32_t _i617; + for (_i617 = 0; _i617 < _size613; ++_i617) { - xfer += this->locks[_i577].read(iprot); + xfer += this->locks[_i617].read(iprot); } xfer += iprot->readListEnd(); } @@ -14123,10 +15197,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 _iter578; - for (_iter578 = this->locks.begin(); _iter578 != this->locks.end(); ++_iter578) + std::vector ::const_iterator _iter618; + for (_iter618 = this->locks.begin(); _iter618 != this->locks.end(); ++_iter618) { - xfer += (*_iter578).write(oprot); + xfer += (*_iter618).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14143,13 +15217,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other579) { - locks = other579.locks; - __isset = other579.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other619) { + locks = other619.locks; + __isset = other619.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other580) { - locks = other580.locks; - __isset = other580.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other620) { + locks = other620.locks; + __isset = other620.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -14250,15 +15324,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other581) { - lockid = other581.lockid; - txnid = other581.txnid; - __isset = other581.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other621) { + lockid = other621.lockid; + txnid = other621.txnid; + __isset = other621.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other582) { - lockid = other582.lockid; - txnid = other582.txnid; - __isset = other582.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other622) { + lockid = other622.lockid; + txnid = other622.txnid; + __isset = other622.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -14361,13 +15435,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other583) { - min = other583.min; - max = other583.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other623) { + min = other623.min; + max = other623.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other584) { - min = other584.min; - max = other584.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other624) { + min = other624.min; + max = other624.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -14418,15 +15492,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size585; - ::apache::thrift::protocol::TType _etype588; - xfer += iprot->readSetBegin(_etype588, _size585); - uint32_t _i589; - for (_i589 = 0; _i589 < _size585; ++_i589) + uint32_t _size625; + ::apache::thrift::protocol::TType _etype628; + xfer += iprot->readSetBegin(_etype628, _size625); + uint32_t _i629; + for (_i629 = 0; _i629 < _size625; ++_i629) { - int64_t _elem590; - xfer += iprot->readI64(_elem590); - this->aborted.insert(_elem590); + int64_t _elem630; + xfer += iprot->readI64(_elem630); + this->aborted.insert(_elem630); } xfer += iprot->readSetEnd(); } @@ -14439,15 +15513,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size591; - ::apache::thrift::protocol::TType _etype594; - xfer += iprot->readSetBegin(_etype594, _size591); - uint32_t _i595; - for (_i595 = 0; _i595 < _size591; ++_i595) + uint32_t _size631; + ::apache::thrift::protocol::TType _etype634; + xfer += iprot->readSetBegin(_etype634, _size631); + uint32_t _i635; + for (_i635 = 0; _i635 < _size631; ++_i635) { - int64_t _elem596; - xfer += iprot->readI64(_elem596); - this->nosuch.insert(_elem596); + int64_t _elem636; + xfer += iprot->readI64(_elem636); + this->nosuch.insert(_elem636); } xfer += iprot->readSetEnd(); } @@ -14480,10 +15554,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 _iter597; - for (_iter597 = this->aborted.begin(); _iter597 != this->aborted.end(); ++_iter597) + std::set ::const_iterator _iter637; + for (_iter637 = this->aborted.begin(); _iter637 != this->aborted.end(); ++_iter637) { - xfer += oprot->writeI64((*_iter597)); + xfer += oprot->writeI64((*_iter637)); } xfer += oprot->writeSetEnd(); } @@ -14492,10 +15566,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 _iter598; - for (_iter598 = this->nosuch.begin(); _iter598 != this->nosuch.end(); ++_iter598) + std::set ::const_iterator _iter638; + for (_iter638 = this->nosuch.begin(); _iter638 != this->nosuch.end(); ++_iter638) { - xfer += oprot->writeI64((*_iter598)); + xfer += oprot->writeI64((*_iter638)); } xfer += oprot->writeSetEnd(); } @@ -14512,13 +15586,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other599) { - aborted = other599.aborted; - nosuch = other599.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other639) { + aborted = other639.aborted; + nosuch = other639.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other600) { - aborted = other600.aborted; - nosuch = other600.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other640) { + aborted = other640.aborted; + nosuch = other640.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -14611,9 +15685,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast601; - xfer += iprot->readI32(ecast601); - this->type = (CompactionType::type)ecast601; + int32_t ecast641; + xfer += iprot->readI32(ecast641); + this->type = (CompactionType::type)ecast641; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14631,17 +15705,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size602; - ::apache::thrift::protocol::TType _ktype603; - ::apache::thrift::protocol::TType _vtype604; - xfer += iprot->readMapBegin(_ktype603, _vtype604, _size602); - uint32_t _i606; - for (_i606 = 0; _i606 < _size602; ++_i606) + uint32_t _size642; + ::apache::thrift::protocol::TType _ktype643; + ::apache::thrift::protocol::TType _vtype644; + xfer += iprot->readMapBegin(_ktype643, _vtype644, _size642); + uint32_t _i646; + for (_i646 = 0; _i646 < _size642; ++_i646) { - std::string _key607; - xfer += iprot->readString(_key607); - std::string& _val608 = this->properties[_key607]; - xfer += iprot->readString(_val608); + std::string _key647; + xfer += iprot->readString(_key647); + std::string& _val648 = this->properties[_key647]; + xfer += iprot->readString(_val648); } xfer += iprot->readMapEnd(); } @@ -14699,11 +15773,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 _iter609; - for (_iter609 = this->properties.begin(); _iter609 != this->properties.end(); ++_iter609) + std::map ::const_iterator _iter649; + for (_iter649 = this->properties.begin(); _iter649 != this->properties.end(); ++_iter649) { - xfer += oprot->writeString(_iter609->first); - xfer += oprot->writeString(_iter609->second); + xfer += oprot->writeString(_iter649->first); + xfer += oprot->writeString(_iter649->second); } xfer += oprot->writeMapEnd(); } @@ -14725,23 +15799,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other610) { - dbname = other610.dbname; - tablename = other610.tablename; - partitionname = other610.partitionname; - type = other610.type; - runas = other610.runas; - properties = other610.properties; - __isset = other610.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other611) { - dbname = other611.dbname; - tablename = other611.tablename; - partitionname = other611.partitionname; - type = other611.type; - runas = other611.runas; - properties = other611.properties; - __isset = other611.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other650) { + dbname = other650.dbname; + tablename = other650.tablename; + partitionname = other650.partitionname; + type = other650.type; + runas = other650.runas; + properties = other650.properties; + __isset = other650.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other651) { + dbname = other651.dbname; + tablename = other651.tablename; + partitionname = other651.partitionname; + type = other651.type; + runas = other651.runas; + properties = other651.properties; + __isset = other651.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -14868,15 +15942,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other612) { - id = other612.id; - state = other612.state; - accepted = other612.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other652) { + id = other652.id; + state = other652.state; + accepted = other652.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other613) { - id = other613.id; - state = other613.state; - accepted = other613.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other653) { + id = other653.id; + state = other653.state; + accepted = other653.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -14937,11 +16011,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other614) { - (void) other614; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other654) { + (void) other654; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other615) { - (void) other615; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other655) { + (void) other655; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -15067,9 +16141,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast616; - xfer += iprot->readI32(ecast616); - this->type = (CompactionType::type)ecast616; + int32_t ecast656; + xfer += iprot->readI32(ecast656); + this->type = (CompactionType::type)ecast656; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -15256,37 +16330,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other617) { - dbname = other617.dbname; - tablename = other617.tablename; - partitionname = other617.partitionname; - type = other617.type; - state = other617.state; - workerid = other617.workerid; - start = other617.start; - runAs = other617.runAs; - hightestTxnId = other617.hightestTxnId; - metaInfo = other617.metaInfo; - endTime = other617.endTime; - hadoopJobId = other617.hadoopJobId; - id = other617.id; - __isset = other617.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other618) { - dbname = other618.dbname; - tablename = other618.tablename; - partitionname = other618.partitionname; - type = other618.type; - state = other618.state; - workerid = other618.workerid; - start = other618.start; - runAs = other618.runAs; - hightestTxnId = other618.hightestTxnId; - metaInfo = other618.metaInfo; - endTime = other618.endTime; - hadoopJobId = other618.hadoopJobId; - id = other618.id; - __isset = other618.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other657) { + dbname = other657.dbname; + tablename = other657.tablename; + partitionname = other657.partitionname; + type = other657.type; + state = other657.state; + workerid = other657.workerid; + start = other657.start; + runAs = other657.runAs; + hightestTxnId = other657.hightestTxnId; + metaInfo = other657.metaInfo; + endTime = other657.endTime; + hadoopJobId = other657.hadoopJobId; + id = other657.id; + __isset = other657.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other658) { + dbname = other658.dbname; + tablename = other658.tablename; + partitionname = other658.partitionname; + type = other658.type; + state = other658.state; + workerid = other658.workerid; + start = other658.start; + runAs = other658.runAs; + hightestTxnId = other658.hightestTxnId; + metaInfo = other658.metaInfo; + endTime = other658.endTime; + hadoopJobId = other658.hadoopJobId; + id = other658.id; + __isset = other658.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -15343,14 +16417,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size619; - ::apache::thrift::protocol::TType _etype622; - xfer += iprot->readListBegin(_etype622, _size619); - this->compacts.resize(_size619); - uint32_t _i623; - for (_i623 = 0; _i623 < _size619; ++_i623) + uint32_t _size659; + ::apache::thrift::protocol::TType _etype662; + xfer += iprot->readListBegin(_etype662, _size659); + this->compacts.resize(_size659); + uint32_t _i663; + for (_i663 = 0; _i663 < _size659; ++_i663) { - xfer += this->compacts[_i623].read(iprot); + xfer += this->compacts[_i663].read(iprot); } xfer += iprot->readListEnd(); } @@ -15381,10 +16455,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 _iter624; - for (_iter624 = this->compacts.begin(); _iter624 != this->compacts.end(); ++_iter624) + std::vector ::const_iterator _iter664; + for (_iter664 = this->compacts.begin(); _iter664 != this->compacts.end(); ++_iter664) { - xfer += (*_iter624).write(oprot); + xfer += (*_iter664).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15400,11 +16474,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other625) { - compacts = other625.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other665) { + compacts = other665.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other626) { - compacts = other626.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other666) { + compacts = other666.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -15493,14 +16567,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size627; - ::apache::thrift::protocol::TType _etype630; - xfer += iprot->readListBegin(_etype630, _size627); - this->partitionnames.resize(_size627); - uint32_t _i631; - for (_i631 = 0; _i631 < _size627; ++_i631) + uint32_t _size667; + ::apache::thrift::protocol::TType _etype670; + xfer += iprot->readListBegin(_etype670, _size667); + this->partitionnames.resize(_size667); + uint32_t _i671; + for (_i671 = 0; _i671 < _size667; ++_i671) { - xfer += iprot->readString(this->partitionnames[_i631]); + xfer += iprot->readString(this->partitionnames[_i671]); } xfer += iprot->readListEnd(); } @@ -15511,9 +16585,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast632; - xfer += iprot->readI32(ecast632); - this->operationType = (DataOperationType::type)ecast632; + int32_t ecast672; + xfer += iprot->readI32(ecast672); + this->operationType = (DataOperationType::type)ecast672; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -15559,10 +16633,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter633; - for (_iter633 = this->partitionnames.begin(); _iter633 != this->partitionnames.end(); ++_iter633) + std::vector ::const_iterator _iter673; + for (_iter673 = this->partitionnames.begin(); _iter673 != this->partitionnames.end(); ++_iter673) { - xfer += oprot->writeString((*_iter633)); + xfer += oprot->writeString((*_iter673)); } xfer += oprot->writeListEnd(); } @@ -15588,21 +16662,21 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other634) { - txnid = other634.txnid; - dbname = other634.dbname; - tablename = other634.tablename; - partitionnames = other634.partitionnames; - operationType = other634.operationType; - __isset = other634.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other635) { - txnid = other635.txnid; - dbname = other635.dbname; - tablename = other635.tablename; - partitionnames = other635.partitionnames; - operationType = other635.operationType; - __isset = other635.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other674) { + txnid = other674.txnid; + dbname = other674.dbname; + tablename = other674.tablename; + partitionnames = other674.partitionnames; + operationType = other674.operationType; + __isset = other674.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other675) { + txnid = other675.txnid; + dbname = other675.dbname; + tablename = other675.tablename; + partitionnames = other675.partitionnames; + operationType = other675.operationType; + __isset = other675.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -15708,15 +16782,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other636) { - lastEvent = other636.lastEvent; - maxEvents = other636.maxEvents; - __isset = other636.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other676) { + lastEvent = other676.lastEvent; + maxEvents = other676.maxEvents; + __isset = other676.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other637) { - lastEvent = other637.lastEvent; - maxEvents = other637.maxEvents; - __isset = other637.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other677) { + lastEvent = other677.lastEvent; + maxEvents = other677.maxEvents; + __isset = other677.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -15917,25 +16991,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other638) { - eventId = other638.eventId; - eventTime = other638.eventTime; - eventType = other638.eventType; - dbName = other638.dbName; - tableName = other638.tableName; - message = other638.message; - messageFormat = other638.messageFormat; - __isset = other638.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other639) { - eventId = other639.eventId; - eventTime = other639.eventTime; - eventType = other639.eventType; - dbName = other639.dbName; - tableName = other639.tableName; - message = other639.message; - messageFormat = other639.messageFormat; - __isset = other639.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other678) { + eventId = other678.eventId; + eventTime = other678.eventTime; + eventType = other678.eventType; + dbName = other678.dbName; + tableName = other678.tableName; + message = other678.message; + messageFormat = other678.messageFormat; + __isset = other678.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other679) { + eventId = other679.eventId; + eventTime = other679.eventTime; + eventType = other679.eventType; + dbName = other679.dbName; + tableName = other679.tableName; + message = other679.message; + messageFormat = other679.messageFormat; + __isset = other679.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -15986,14 +17060,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size640; - ::apache::thrift::protocol::TType _etype643; - xfer += iprot->readListBegin(_etype643, _size640); - this->events.resize(_size640); - uint32_t _i644; - for (_i644 = 0; _i644 < _size640; ++_i644) + uint32_t _size680; + ::apache::thrift::protocol::TType _etype683; + xfer += iprot->readListBegin(_etype683, _size680); + this->events.resize(_size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) { - xfer += this->events[_i644].read(iprot); + xfer += this->events[_i684].read(iprot); } xfer += iprot->readListEnd(); } @@ -16024,10 +17098,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 _iter645; - for (_iter645 = this->events.begin(); _iter645 != this->events.end(); ++_iter645) + std::vector ::const_iterator _iter685; + for (_iter685 = this->events.begin(); _iter685 != this->events.end(); ++_iter685) { - xfer += (*_iter645).write(oprot); + xfer += (*_iter685).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16043,11 +17117,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other646) { - events = other646.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other686) { + events = other686.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other647) { - events = other647.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other687) { + events = other687.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -16129,11 +17203,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other648) { - eventId = other648.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other688) { + eventId = other688.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other649) { - eventId = other649.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other689) { + eventId = other689.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -16196,14 +17270,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size650; - ::apache::thrift::protocol::TType _etype653; - xfer += iprot->readListBegin(_etype653, _size650); - this->filesAdded.resize(_size650); - uint32_t _i654; - for (_i654 = 0; _i654 < _size650; ++_i654) + uint32_t _size690; + ::apache::thrift::protocol::TType _etype693; + xfer += iprot->readListBegin(_etype693, _size690); + this->filesAdded.resize(_size690); + uint32_t _i694; + for (_i694 = 0; _i694 < _size690; ++_i694) { - xfer += iprot->readString(this->filesAdded[_i654]); + xfer += iprot->readString(this->filesAdded[_i694]); } xfer += iprot->readListEnd(); } @@ -16216,14 +17290,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size655; - ::apache::thrift::protocol::TType _etype658; - xfer += iprot->readListBegin(_etype658, _size655); - this->filesAddedChecksum.resize(_size655); - uint32_t _i659; - for (_i659 = 0; _i659 < _size655; ++_i659) + uint32_t _size695; + ::apache::thrift::protocol::TType _etype698; + xfer += iprot->readListBegin(_etype698, _size695); + this->filesAddedChecksum.resize(_size695); + uint32_t _i699; + for (_i699 = 0; _i699 < _size695; ++_i699) { - xfer += iprot->readString(this->filesAddedChecksum[_i659]); + xfer += iprot->readString(this->filesAddedChecksum[_i699]); } xfer += iprot->readListEnd(); } @@ -16259,10 +17333,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 _iter660; - for (_iter660 = this->filesAdded.begin(); _iter660 != this->filesAdded.end(); ++_iter660) + std::vector ::const_iterator _iter700; + for (_iter700 = this->filesAdded.begin(); _iter700 != this->filesAdded.end(); ++_iter700) { - xfer += oprot->writeString((*_iter660)); + xfer += oprot->writeString((*_iter700)); } xfer += oprot->writeListEnd(); } @@ -16272,10 +17346,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 _iter661; - for (_iter661 = this->filesAddedChecksum.begin(); _iter661 != this->filesAddedChecksum.end(); ++_iter661) + std::vector ::const_iterator _iter701; + for (_iter701 = this->filesAddedChecksum.begin(); _iter701 != this->filesAddedChecksum.end(); ++_iter701) { - xfer += oprot->writeString((*_iter661)); + xfer += oprot->writeString((*_iter701)); } xfer += oprot->writeListEnd(); } @@ -16294,17 +17368,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other662) { - replace = other662.replace; - filesAdded = other662.filesAdded; - filesAddedChecksum = other662.filesAddedChecksum; - __isset = other662.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other702) { + replace = other702.replace; + filesAdded = other702.filesAdded; + filesAddedChecksum = other702.filesAddedChecksum; + __isset = other702.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other663) { - replace = other663.replace; - filesAdded = other663.filesAdded; - filesAddedChecksum = other663.filesAddedChecksum; - __isset = other663.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other703) { + replace = other703.replace; + filesAdded = other703.filesAdded; + filesAddedChecksum = other703.filesAddedChecksum; + __isset = other703.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -16386,13 +17460,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other664) { - insertData = other664.insertData; - __isset = other664.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other704) { + insertData = other704.insertData; + __isset = other704.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other665) { - insertData = other665.insertData; - __isset = other665.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other705) { + insertData = other705.insertData; + __isset = other705.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -16489,14 +17563,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size666; - ::apache::thrift::protocol::TType _etype669; - xfer += iprot->readListBegin(_etype669, _size666); - this->partitionVals.resize(_size666); - uint32_t _i670; - for (_i670 = 0; _i670 < _size666; ++_i670) + uint32_t _size706; + ::apache::thrift::protocol::TType _etype709; + xfer += iprot->readListBegin(_etype709, _size706); + this->partitionVals.resize(_size706); + uint32_t _i710; + for (_i710 = 0; _i710 < _size706; ++_i710) { - xfer += iprot->readString(this->partitionVals[_i670]); + xfer += iprot->readString(this->partitionVals[_i710]); } xfer += iprot->readListEnd(); } @@ -16548,10 +17622,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 _iter671; - for (_iter671 = this->partitionVals.begin(); _iter671 != this->partitionVals.end(); ++_iter671) + std::vector ::const_iterator _iter711; + for (_iter711 = this->partitionVals.begin(); _iter711 != this->partitionVals.end(); ++_iter711) { - xfer += oprot->writeString((*_iter671)); + xfer += oprot->writeString((*_iter711)); } xfer += oprot->writeListEnd(); } @@ -16572,21 +17646,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other672) { - successful = other672.successful; - data = other672.data; - dbName = other672.dbName; - tableName = other672.tableName; - partitionVals = other672.partitionVals; - __isset = other672.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other673) { - successful = other673.successful; - data = other673.data; - dbName = other673.dbName; - tableName = other673.tableName; - partitionVals = other673.partitionVals; - __isset = other673.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other712) { + successful = other712.successful; + data = other712.data; + dbName = other712.dbName; + tableName = other712.tableName; + partitionVals = other712.partitionVals; + __isset = other712.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other713) { + successful = other713.successful; + data = other713.data; + dbName = other713.dbName; + tableName = other713.tableName; + partitionVals = other713.partitionVals; + __isset = other713.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -16649,11 +17723,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other674) { - (void) other674; +FireEventResponse::FireEventResponse(const FireEventResponse& other714) { + (void) other714; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other675) { - (void) other675; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other715) { + (void) other715; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -16753,15 +17827,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other676) { - metadata = other676.metadata; - includeBitset = other676.includeBitset; - __isset = other676.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other716) { + metadata = other716.metadata; + includeBitset = other716.includeBitset; + __isset = other716.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other677) { - metadata = other677.metadata; - includeBitset = other677.includeBitset; - __isset = other677.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other717) { + metadata = other717.metadata; + includeBitset = other717.includeBitset; + __isset = other717.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -16812,17 +17886,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size678; - ::apache::thrift::protocol::TType _ktype679; - ::apache::thrift::protocol::TType _vtype680; - xfer += iprot->readMapBegin(_ktype679, _vtype680, _size678); - uint32_t _i682; - for (_i682 = 0; _i682 < _size678; ++_i682) + uint32_t _size718; + ::apache::thrift::protocol::TType _ktype719; + ::apache::thrift::protocol::TType _vtype720; + xfer += iprot->readMapBegin(_ktype719, _vtype720, _size718); + uint32_t _i722; + for (_i722 = 0; _i722 < _size718; ++_i722) { - int64_t _key683; - xfer += iprot->readI64(_key683); - MetadataPpdResult& _val684 = this->metadata[_key683]; - xfer += _val684.read(iprot); + int64_t _key723; + xfer += iprot->readI64(_key723); + MetadataPpdResult& _val724 = this->metadata[_key723]; + xfer += _val724.read(iprot); } xfer += iprot->readMapEnd(); } @@ -16863,11 +17937,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 _iter685; - for (_iter685 = this->metadata.begin(); _iter685 != this->metadata.end(); ++_iter685) + std::map ::const_iterator _iter725; + for (_iter725 = this->metadata.begin(); _iter725 != this->metadata.end(); ++_iter725) { - xfer += oprot->writeI64(_iter685->first); - xfer += _iter685->second.write(oprot); + xfer += oprot->writeI64(_iter725->first); + xfer += _iter725->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -16888,13 +17962,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other686) { - metadata = other686.metadata; - isSupported = other686.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other726) { + metadata = other726.metadata; + isSupported = other726.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other687) { - metadata = other687.metadata; - isSupported = other687.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other727) { + metadata = other727.metadata; + isSupported = other727.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -16955,14 +18029,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size688; - ::apache::thrift::protocol::TType _etype691; - xfer += iprot->readListBegin(_etype691, _size688); - this->fileIds.resize(_size688); - uint32_t _i692; - for (_i692 = 0; _i692 < _size688; ++_i692) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->fileIds.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += iprot->readI64(this->fileIds[_i692]); + xfer += iprot->readI64(this->fileIds[_i732]); } xfer += iprot->readListEnd(); } @@ -16989,9 +18063,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast693; - xfer += iprot->readI32(ecast693); - this->type = (FileMetadataExprType::type)ecast693; + int32_t ecast733; + xfer += iprot->readI32(ecast733); + this->type = (FileMetadataExprType::type)ecast733; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -17021,10 +18095,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 _iter694; - for (_iter694 = this->fileIds.begin(); _iter694 != this->fileIds.end(); ++_iter694) + std::vector ::const_iterator _iter734; + for (_iter734 = this->fileIds.begin(); _iter734 != this->fileIds.end(); ++_iter734) { - xfer += oprot->writeI64((*_iter694)); + xfer += oprot->writeI64((*_iter734)); } xfer += oprot->writeListEnd(); } @@ -17058,19 +18132,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other695) { - fileIds = other695.fileIds; - expr = other695.expr; - doGetFooters = other695.doGetFooters; - type = other695.type; - __isset = other695.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other735) { + fileIds = other735.fileIds; + expr = other735.expr; + doGetFooters = other735.doGetFooters; + type = other735.type; + __isset = other735.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other696) { - fileIds = other696.fileIds; - expr = other696.expr; - doGetFooters = other696.doGetFooters; - type = other696.type; - __isset = other696.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other736) { + fileIds = other736.fileIds; + expr = other736.expr; + doGetFooters = other736.doGetFooters; + type = other736.type; + __isset = other736.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -17123,17 +18197,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size697; - ::apache::thrift::protocol::TType _ktype698; - ::apache::thrift::protocol::TType _vtype699; - xfer += iprot->readMapBegin(_ktype698, _vtype699, _size697); - uint32_t _i701; - for (_i701 = 0; _i701 < _size697; ++_i701) + uint32_t _size737; + ::apache::thrift::protocol::TType _ktype738; + ::apache::thrift::protocol::TType _vtype739; + xfer += iprot->readMapBegin(_ktype738, _vtype739, _size737); + uint32_t _i741; + for (_i741 = 0; _i741 < _size737; ++_i741) { - int64_t _key702; - xfer += iprot->readI64(_key702); - std::string& _val703 = this->metadata[_key702]; - xfer += iprot->readBinary(_val703); + int64_t _key742; + xfer += iprot->readI64(_key742); + std::string& _val743 = this->metadata[_key742]; + xfer += iprot->readBinary(_val743); } xfer += iprot->readMapEnd(); } @@ -17174,11 +18248,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 _iter704; - for (_iter704 = this->metadata.begin(); _iter704 != this->metadata.end(); ++_iter704) + std::map ::const_iterator _iter744; + for (_iter744 = this->metadata.begin(); _iter744 != this->metadata.end(); ++_iter744) { - xfer += oprot->writeI64(_iter704->first); - xfer += oprot->writeBinary(_iter704->second); + xfer += oprot->writeI64(_iter744->first); + xfer += oprot->writeBinary(_iter744->second); } xfer += oprot->writeMapEnd(); } @@ -17199,13 +18273,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other705) { - metadata = other705.metadata; - isSupported = other705.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other745) { + metadata = other745.metadata; + isSupported = other745.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other706) { - metadata = other706.metadata; - isSupported = other706.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other746) { + metadata = other746.metadata; + isSupported = other746.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -17251,14 +18325,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size707; - ::apache::thrift::protocol::TType _etype710; - xfer += iprot->readListBegin(_etype710, _size707); - this->fileIds.resize(_size707); - uint32_t _i711; - for (_i711 = 0; _i711 < _size707; ++_i711) + uint32_t _size747; + ::apache::thrift::protocol::TType _etype750; + xfer += iprot->readListBegin(_etype750, _size747); + this->fileIds.resize(_size747); + uint32_t _i751; + for (_i751 = 0; _i751 < _size747; ++_i751) { - xfer += iprot->readI64(this->fileIds[_i711]); + xfer += iprot->readI64(this->fileIds[_i751]); } xfer += iprot->readListEnd(); } @@ -17289,10 +18363,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 _iter712; - for (_iter712 = this->fileIds.begin(); _iter712 != this->fileIds.end(); ++_iter712) + std::vector ::const_iterator _iter752; + for (_iter752 = this->fileIds.begin(); _iter752 != this->fileIds.end(); ++_iter752) { - xfer += oprot->writeI64((*_iter712)); + xfer += oprot->writeI64((*_iter752)); } xfer += oprot->writeListEnd(); } @@ -17308,11 +18382,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other713) { - fileIds = other713.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other753) { + fileIds = other753.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other714) { - fileIds = other714.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other754) { + fileIds = other754.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -17371,11 +18445,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other715) { - (void) other715; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other755) { + (void) other755; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other716) { - (void) other716; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other756) { + (void) other756; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -17429,14 +18503,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size717; - ::apache::thrift::protocol::TType _etype720; - xfer += iprot->readListBegin(_etype720, _size717); - this->fileIds.resize(_size717); - uint32_t _i721; - for (_i721 = 0; _i721 < _size717; ++_i721) + uint32_t _size757; + ::apache::thrift::protocol::TType _etype760; + xfer += iprot->readListBegin(_etype760, _size757); + this->fileIds.resize(_size757); + uint32_t _i761; + for (_i761 = 0; _i761 < _size757; ++_i761) { - xfer += iprot->readI64(this->fileIds[_i721]); + xfer += iprot->readI64(this->fileIds[_i761]); } xfer += iprot->readListEnd(); } @@ -17449,14 +18523,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size722; - ::apache::thrift::protocol::TType _etype725; - xfer += iprot->readListBegin(_etype725, _size722); - this->metadata.resize(_size722); - uint32_t _i726; - for (_i726 = 0; _i726 < _size722; ++_i726) + uint32_t _size762; + ::apache::thrift::protocol::TType _etype765; + xfer += iprot->readListBegin(_etype765, _size762); + this->metadata.resize(_size762); + uint32_t _i766; + for (_i766 = 0; _i766 < _size762; ++_i766) { - xfer += iprot->readBinary(this->metadata[_i726]); + xfer += iprot->readBinary(this->metadata[_i766]); } xfer += iprot->readListEnd(); } @@ -17467,9 +18541,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast727; - xfer += iprot->readI32(ecast727); - this->type = (FileMetadataExprType::type)ecast727; + int32_t ecast767; + xfer += iprot->readI32(ecast767); + this->type = (FileMetadataExprType::type)ecast767; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -17499,10 +18573,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 _iter728; - for (_iter728 = this->fileIds.begin(); _iter728 != this->fileIds.end(); ++_iter728) + std::vector ::const_iterator _iter768; + for (_iter768 = this->fileIds.begin(); _iter768 != this->fileIds.end(); ++_iter768) { - xfer += oprot->writeI64((*_iter728)); + xfer += oprot->writeI64((*_iter768)); } xfer += oprot->writeListEnd(); } @@ -17511,10 +18585,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 _iter729; - for (_iter729 = this->metadata.begin(); _iter729 != this->metadata.end(); ++_iter729) + std::vector ::const_iterator _iter769; + for (_iter769 = this->metadata.begin(); _iter769 != this->metadata.end(); ++_iter769) { - xfer += oprot->writeBinary((*_iter729)); + xfer += oprot->writeBinary((*_iter769)); } xfer += oprot->writeListEnd(); } @@ -17538,17 +18612,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other730) { - fileIds = other730.fileIds; - metadata = other730.metadata; - type = other730.type; - __isset = other730.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other770) { + fileIds = other770.fileIds; + metadata = other770.metadata; + type = other770.type; + __isset = other770.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other731) { - fileIds = other731.fileIds; - metadata = other731.metadata; - type = other731.type; - __isset = other731.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other771) { + fileIds = other771.fileIds; + metadata = other771.metadata; + type = other771.type; + __isset = other771.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -17609,11 +18683,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other732) { - (void) other732; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other772) { + (void) other772; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other733) { - (void) other733; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other773) { + (void) other773; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -17657,14 +18731,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size734; - ::apache::thrift::protocol::TType _etype737; - xfer += iprot->readListBegin(_etype737, _size734); - this->fileIds.resize(_size734); - uint32_t _i738; - for (_i738 = 0; _i738 < _size734; ++_i738) + uint32_t _size774; + ::apache::thrift::protocol::TType _etype777; + xfer += iprot->readListBegin(_etype777, _size774); + this->fileIds.resize(_size774); + uint32_t _i778; + for (_i778 = 0; _i778 < _size774; ++_i778) { - xfer += iprot->readI64(this->fileIds[_i738]); + xfer += iprot->readI64(this->fileIds[_i778]); } xfer += iprot->readListEnd(); } @@ -17695,10 +18769,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 _iter739; - for (_iter739 = this->fileIds.begin(); _iter739 != this->fileIds.end(); ++_iter739) + std::vector ::const_iterator _iter779; + for (_iter779 = this->fileIds.begin(); _iter779 != this->fileIds.end(); ++_iter779) { - xfer += oprot->writeI64((*_iter739)); + xfer += oprot->writeI64((*_iter779)); } xfer += oprot->writeListEnd(); } @@ -17714,11 +18788,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other740) { - fileIds = other740.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other780) { + fileIds = other780.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other741) { - fileIds = other741.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other781) { + fileIds = other781.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -17800,11 +18874,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other742) { - isSupported = other742.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other782) { + isSupported = other782.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other743) { - isSupported = other743.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other783) { + isSupported = other783.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -17945,19 +19019,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other744) { - dbName = other744.dbName; - tblName = other744.tblName; - partName = other744.partName; - isAllParts = other744.isAllParts; - __isset = other744.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other784) { + dbName = other784.dbName; + tblName = other784.tblName; + partName = other784.partName; + isAllParts = other784.isAllParts; + __isset = other784.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other745) { - dbName = other745.dbName; - tblName = other745.tblName; - partName = other745.partName; - isAllParts = other745.isAllParts; - __isset = other745.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other785) { + dbName = other785.dbName; + tblName = other785.tblName; + partName = other785.partName; + isAllParts = other785.isAllParts; + __isset = other785.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -18005,14 +19079,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size746; - ::apache::thrift::protocol::TType _etype749; - xfer += iprot->readListBegin(_etype749, _size746); - this->functions.resize(_size746); - uint32_t _i750; - for (_i750 = 0; _i750 < _size746; ++_i750) + uint32_t _size786; + ::apache::thrift::protocol::TType _etype789; + xfer += iprot->readListBegin(_etype789, _size786); + this->functions.resize(_size786); + uint32_t _i790; + for (_i790 = 0; _i790 < _size786; ++_i790) { - xfer += this->functions[_i750].read(iprot); + xfer += this->functions[_i790].read(iprot); } xfer += iprot->readListEnd(); } @@ -18042,10 +19116,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 _iter751; - for (_iter751 = this->functions.begin(); _iter751 != this->functions.end(); ++_iter751) + std::vector ::const_iterator _iter791; + for (_iter791 = this->functions.begin(); _iter791 != this->functions.end(); ++_iter791) { - xfer += (*_iter751).write(oprot); + xfer += (*_iter791).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18062,13 +19136,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other752) { - functions = other752.functions; - __isset = other752.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other792) { + functions = other792.functions; + __isset = other792.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other753) { - functions = other753.functions; - __isset = other753.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other793) { + functions = other793.functions; + __isset = other793.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -18113,16 +19187,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size754; - ::apache::thrift::protocol::TType _etype757; - xfer += iprot->readListBegin(_etype757, _size754); - this->values.resize(_size754); - uint32_t _i758; - for (_i758 = 0; _i758 < _size754; ++_i758) + uint32_t _size794; + ::apache::thrift::protocol::TType _etype797; + xfer += iprot->readListBegin(_etype797, _size794); + this->values.resize(_size794); + uint32_t _i798; + for (_i798 = 0; _i798 < _size794; ++_i798) { - int32_t ecast759; - xfer += iprot->readI32(ecast759); - this->values[_i758] = (ClientCapability::type)ecast759; + int32_t ecast799; + xfer += iprot->readI32(ecast799); + this->values[_i798] = (ClientCapability::type)ecast799; } xfer += iprot->readListEnd(); } @@ -18153,10 +19227,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 _iter760; - for (_iter760 = this->values.begin(); _iter760 != this->values.end(); ++_iter760) + std::vector ::const_iterator _iter800; + for (_iter800 = this->values.begin(); _iter800 != this->values.end(); ++_iter800) { - xfer += oprot->writeI32((int32_t)(*_iter760)); + xfer += oprot->writeI32((int32_t)(*_iter800)); } xfer += oprot->writeListEnd(); } @@ -18172,11 +19246,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other761) { - values = other761.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other801) { + values = other801.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other762) { - values = other762.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other802) { + values = other802.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -18298,17 +19372,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other763) { - dbName = other763.dbName; - tblName = other763.tblName; - capabilities = other763.capabilities; - __isset = other763.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other803) { + dbName = other803.dbName; + tblName = other803.tblName; + capabilities = other803.capabilities; + __isset = other803.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other764) { - dbName = other764.dbName; - tblName = other764.tblName; - capabilities = other764.capabilities; - __isset = other764.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other804) { + dbName = other804.dbName; + tblName = other804.tblName; + capabilities = other804.capabilities; + __isset = other804.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -18392,11 +19466,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other765) { - table = other765.table; +GetTableResult::GetTableResult(const GetTableResult& other805) { + table = other805.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other766) { - table = other766.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other806) { + table = other806.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -18459,14 +19533,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size767; - ::apache::thrift::protocol::TType _etype770; - xfer += iprot->readListBegin(_etype770, _size767); - this->tblNames.resize(_size767); - uint32_t _i771; - for (_i771 = 0; _i771 < _size767; ++_i771) + uint32_t _size807; + ::apache::thrift::protocol::TType _etype810; + xfer += iprot->readListBegin(_etype810, _size807); + this->tblNames.resize(_size807); + uint32_t _i811; + for (_i811 = 0; _i811 < _size807; ++_i811) { - xfer += iprot->readString(this->tblNames[_i771]); + xfer += iprot->readString(this->tblNames[_i811]); } xfer += iprot->readListEnd(); } @@ -18510,10 +19584,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 _iter772; - for (_iter772 = this->tblNames.begin(); _iter772 != this->tblNames.end(); ++_iter772) + std::vector ::const_iterator _iter812; + for (_iter812 = this->tblNames.begin(); _iter812 != this->tblNames.end(); ++_iter812) { - xfer += oprot->writeString((*_iter772)); + xfer += oprot->writeString((*_iter812)); } xfer += oprot->writeListEnd(); } @@ -18537,17 +19611,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other773) { - dbName = other773.dbName; - tblNames = other773.tblNames; - capabilities = other773.capabilities; - __isset = other773.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other813) { + dbName = other813.dbName; + tblNames = other813.tblNames; + capabilities = other813.capabilities; + __isset = other813.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other774) { - dbName = other774.dbName; - tblNames = other774.tblNames; - capabilities = other774.capabilities; - __isset = other774.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other814) { + dbName = other814.dbName; + tblNames = other814.tblNames; + capabilities = other814.capabilities; + __isset = other814.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -18594,14 +19668,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _etype778; - xfer += iprot->readListBegin(_etype778, _size775); - this->tables.resize(_size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size815; + ::apache::thrift::protocol::TType _etype818; + xfer += iprot->readListBegin(_etype818, _size815); + this->tables.resize(_size815); + uint32_t _i819; + for (_i819 = 0; _i819 < _size815; ++_i819) { - xfer += this->tables[_i779].read(iprot); + xfer += this->tables[_i819].read(iprot); } xfer += iprot->readListEnd(); } @@ -18632,10 +19706,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 _iter780; - for (_iter780 = this->tables.begin(); _iter780 != this->tables.end(); ++_iter780) + std::vector
::const_iterator _iter820; + for (_iter820 = this->tables.begin(); _iter820 != this->tables.end(); ++_iter820) { - xfer += (*_iter780).write(oprot); + xfer += (*_iter820).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18651,11 +19725,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other781) { - tables = other781.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other821) { + tables = other821.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other782) { - tables = other782.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other822) { + tables = other822.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -18797,19 +19871,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other783) { - dbName = other783.dbName; - tableName = other783.tableName; - tableType = other783.tableType; - comments = other783.comments; - __isset = other783.__isset; +TableMeta::TableMeta(const TableMeta& other823) { + dbName = other823.dbName; + tableName = other823.tableName; + tableType = other823.tableType; + comments = other823.comments; + __isset = other823.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other784) { - dbName = other784.dbName; - tableName = other784.tableName; - tableType = other784.tableType; - comments = other784.comments; - __isset = other784.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other824) { + dbName = other824.dbName; + tableName = other824.tableName; + tableType = other824.tableType; + comments = other824.comments; + __isset = other824.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -18892,13 +19966,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other785) : TException() { - message = other785.message; - __isset = other785.__isset; +MetaException::MetaException(const MetaException& other825) : TException() { + message = other825.message; + __isset = other825.__isset; } -MetaException& MetaException::operator=(const MetaException& other786) { - message = other786.message; - __isset = other786.__isset; +MetaException& MetaException::operator=(const MetaException& other826) { + message = other826.message; + __isset = other826.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -18989,13 +20063,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other787) : TException() { - message = other787.message; - __isset = other787.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other827) : TException() { + message = other827.message; + __isset = other827.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other788) { - message = other788.message; - __isset = other788.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other828) { + message = other828.message; + __isset = other828.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -19086,13 +20160,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other789) : TException() { - message = other789.message; - __isset = other789.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other829) : TException() { + message = other829.message; + __isset = other829.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other790) { - message = other790.message; - __isset = other790.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other830) { + message = other830.message; + __isset = other830.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -19183,13 +20257,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other791) : TException() { - message = other791.message; - __isset = other791.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other831) : TException() { + message = other831.message; + __isset = other831.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other792) { - message = other792.message; - __isset = other792.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other832) { + message = other832.message; + __isset = other832.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -19280,13 +20354,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other793) : TException() { - message = other793.message; - __isset = other793.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other833) : TException() { + message = other833.message; + __isset = other833.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other794) { - message = other794.message; - __isset = other794.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other834) { + message = other834.message; + __isset = other834.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -19377,13 +20451,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other795) : TException() { - message = other795.message; - __isset = other795.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other835) : TException() { + message = other835.message; + __isset = other835.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other796) { - message = other796.message; - __isset = other796.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other836) { + message = other836.message; + __isset = other836.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -19474,13 +20548,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other797) : TException() { - message = other797.message; - __isset = other797.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other837) : TException() { + message = other837.message; + __isset = other837.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other798) { - message = other798.message; - __isset = other798.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other838) { + message = other838.message; + __isset = other838.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -19571,13 +20645,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other799) : TException() { - message = other799.message; - __isset = other799.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other839) : TException() { + message = other839.message; + __isset = other839.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other800) { - message = other800.message; - __isset = other800.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other840) { + message = other840.message; + __isset = other840.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -19668,13 +20742,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other801) : TException() { - message = other801.message; - __isset = other801.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other841) : TException() { + message = other841.message; + __isset = other841.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other802) { - message = other802.message; - __isset = other802.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other842) { + message = other842.message; + __isset = other842.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -19765,13 +20839,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other803) : TException() { - message = other803.message; - __isset = other803.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other843) : TException() { + message = other843.message; + __isset = other843.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other804) { - message = other804.message; - __isset = other804.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other844) { + message = other844.message; + __isset = other844.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -19862,13 +20936,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other805) : TException() { - message = other805.message; - __isset = other805.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other845) : TException() { + message = other845.message; + __isset = other845.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other806) { - message = other806.message; - __isset = other806.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other846) { + message = other846.message; + __isset = other846.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -19959,13 +21033,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other807) : TException() { - message = other807.message; - __isset = other807.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other847) : TException() { + message = other847.message; + __isset = other847.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other808) { - message = other808.message; - __isset = other808.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other848) { + message = other848.message; + __isset = other848.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -20056,13 +21130,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other809) : TException() { - message = other809.message; - __isset = other809.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other849) : TException() { + message = other849.message; + __isset = other849.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other810) { - message = other810.message; - __isset = other810.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other850) { + message = other850.message; + __isset = other850.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -20153,13 +21227,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other811) : TException() { - message = other811.message; - __isset = other811.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other851) : TException() { + message = other851.message; + __isset = other851.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other812) { - message = other812.message; - __isset = other812.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other852) { + message = other852.message; + __isset = other852.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -20250,13 +21324,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other813) : TException() { - message = other813.message; - __isset = other813.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other853) : TException() { + message = other853.message; + __isset = other853.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other814) { - message = other814.message; - __isset = other814.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other854) { + message = other854.message; + __isset = other854.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -20347,13 +21421,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other815) : TException() { - message = other815.message; - __isset = other815.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other855) : TException() { + message = other855.message; + __isset = other855.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other816) { - message = other816.message; - __isset = other816.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other856) { + message = other856.message; + __isset = other856.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index c21ded1..20aeb96 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -174,6 +174,10 @@ class SQLPrimaryKey; class SQLForeignKey; +class SQLUniqueConstraint; + +class SQLNotNullConstraint; + class Type; class HiveObjectRef; @@ -272,12 +276,24 @@ class ForeignKeysRequest; class ForeignKeysResponse; +class UniqueConstraintsRequest; + +class UniqueConstraintsResponse; + +class NotNullConstraintsRequest; + +class NotNullConstraintsResponse; + class DropConstraintRequest; class AddPrimaryKeyRequest; class AddForeignKeyRequest; +class AddUniqueConstraintRequest; + +class AddNotNullConstraintRequest; + class PartitionsByExprResult; class PartitionsByExprRequest; @@ -762,6 +778,176 @@ inline std::ostream& operator<<(std::ostream& out, const SQLForeignKey& obj) return out; } +typedef struct _SQLUniqueConstraint__isset { + _SQLUniqueConstraint__isset() : table_db(false), table_name(false), column_name(false), key_seq(false), uk_name(false), enable_cstr(false), validate_cstr(false), rely_cstr(false) {} + bool table_db :1; + bool table_name :1; + bool column_name :1; + bool key_seq :1; + bool uk_name :1; + bool enable_cstr :1; + bool validate_cstr :1; + bool rely_cstr :1; +} _SQLUniqueConstraint__isset; + +class SQLUniqueConstraint { + public: + + SQLUniqueConstraint(const SQLUniqueConstraint&); + SQLUniqueConstraint& operator=(const SQLUniqueConstraint&); + SQLUniqueConstraint() : table_db(), table_name(), column_name(), key_seq(0), uk_name(), enable_cstr(0), validate_cstr(0), rely_cstr(0) { + } + + virtual ~SQLUniqueConstraint() throw(); + std::string table_db; + std::string table_name; + std::string column_name; + int32_t key_seq; + std::string uk_name; + bool enable_cstr; + bool validate_cstr; + bool rely_cstr; + + _SQLUniqueConstraint__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_key_seq(const int32_t val); + + void __set_uk_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 SQLUniqueConstraint & 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 (!(key_seq == rhs.key_seq)) + return false; + if (!(uk_name == rhs.uk_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 SQLUniqueConstraint &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLUniqueConstraint & ) 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(SQLUniqueConstraint &a, SQLUniqueConstraint &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLUniqueConstraint& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _SQLNotNullConstraint__isset { + _SQLNotNullConstraint__isset() : table_db(false), table_name(false), column_name(false), nn_name(false), enable_cstr(false), validate_cstr(false), rely_cstr(false) {} + bool table_db :1; + bool table_name :1; + bool column_name :1; + bool nn_name :1; + bool enable_cstr :1; + bool validate_cstr :1; + bool rely_cstr :1; +} _SQLNotNullConstraint__isset; + +class SQLNotNullConstraint { + public: + + SQLNotNullConstraint(const SQLNotNullConstraint&); + SQLNotNullConstraint& operator=(const SQLNotNullConstraint&); + SQLNotNullConstraint() : table_db(), table_name(), column_name(), nn_name(), enable_cstr(0), validate_cstr(0), rely_cstr(0) { + } + + virtual ~SQLNotNullConstraint() throw(); + std::string table_db; + std::string table_name; + std::string column_name; + std::string nn_name; + bool enable_cstr; + bool validate_cstr; + bool rely_cstr; + + _SQLNotNullConstraint__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_nn_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 SQLNotNullConstraint & 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 (!(nn_name == rhs.nn_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 SQLNotNullConstraint &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLNotNullConstraint & ) 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(SQLNotNullConstraint &a, SQLNotNullConstraint &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLNotNullConstraint& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} bool name :1; @@ -3846,6 +4032,176 @@ inline std::ostream& operator<<(std::ostream& out, const ForeignKeysResponse& ob } +class UniqueConstraintsRequest { + public: + + UniqueConstraintsRequest(const UniqueConstraintsRequest&); + UniqueConstraintsRequest& operator=(const UniqueConstraintsRequest&); + UniqueConstraintsRequest() : db_name(), tbl_name() { + } + + virtual ~UniqueConstraintsRequest() 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 UniqueConstraintsRequest & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + return true; + } + bool operator != (const UniqueConstraintsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const UniqueConstraintsRequest & ) 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(UniqueConstraintsRequest &a, UniqueConstraintsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const UniqueConstraintsRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class UniqueConstraintsResponse { + public: + + UniqueConstraintsResponse(const UniqueConstraintsResponse&); + UniqueConstraintsResponse& operator=(const UniqueConstraintsResponse&); + UniqueConstraintsResponse() { + } + + virtual ~UniqueConstraintsResponse() throw(); + std::vector uniqueConstraints; + + void __set_uniqueConstraints(const std::vector & val); + + bool operator == (const UniqueConstraintsResponse & rhs) const + { + if (!(uniqueConstraints == rhs.uniqueConstraints)) + return false; + return true; + } + bool operator != (const UniqueConstraintsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const UniqueConstraintsResponse & ) 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(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const UniqueConstraintsResponse& obj) +{ + obj.printTo(out); + return out; +} + + +class NotNullConstraintsRequest { + public: + + NotNullConstraintsRequest(const NotNullConstraintsRequest&); + NotNullConstraintsRequest& operator=(const NotNullConstraintsRequest&); + NotNullConstraintsRequest() : db_name(), tbl_name() { + } + + virtual ~NotNullConstraintsRequest() 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 NotNullConstraintsRequest & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + return true; + } + bool operator != (const NotNullConstraintsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const NotNullConstraintsRequest & ) 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(NotNullConstraintsRequest &a, NotNullConstraintsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const NotNullConstraintsRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class NotNullConstraintsResponse { + public: + + NotNullConstraintsResponse(const NotNullConstraintsResponse&); + NotNullConstraintsResponse& operator=(const NotNullConstraintsResponse&); + NotNullConstraintsResponse() { + } + + virtual ~NotNullConstraintsResponse() throw(); + std::vector notNullConstraints; + + void __set_notNullConstraints(const std::vector & val); + + bool operator == (const NotNullConstraintsResponse & rhs) const + { + if (!(notNullConstraints == rhs.notNullConstraints)) + return false; + return true; + } + bool operator != (const NotNullConstraintsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const NotNullConstraintsResponse & ) 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(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const NotNullConstraintsResponse& obj) +{ + obj.printTo(out); + return out; +} + + class DropConstraintRequest { public: @@ -3976,6 +4332,86 @@ inline std::ostream& operator<<(std::ostream& out, const AddForeignKeyRequest& o } +class AddUniqueConstraintRequest { + public: + + AddUniqueConstraintRequest(const AddUniqueConstraintRequest&); + AddUniqueConstraintRequest& operator=(const AddUniqueConstraintRequest&); + AddUniqueConstraintRequest() { + } + + virtual ~AddUniqueConstraintRequest() throw(); + std::vector uniqueConstraintCols; + + void __set_uniqueConstraintCols(const std::vector & val); + + bool operator == (const AddUniqueConstraintRequest & rhs) const + { + if (!(uniqueConstraintCols == rhs.uniqueConstraintCols)) + return false; + return true; + } + bool operator != (const AddUniqueConstraintRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddUniqueConstraintRequest & ) 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(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddUniqueConstraintRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class AddNotNullConstraintRequest { + public: + + AddNotNullConstraintRequest(const AddNotNullConstraintRequest&); + AddNotNullConstraintRequest& operator=(const AddNotNullConstraintRequest&); + AddNotNullConstraintRequest() { + } + + virtual ~AddNotNullConstraintRequest() throw(); + std::vector notNullConstraintCols; + + void __set_notNullConstraintCols(const std::vector & val); + + bool operator == (const AddNotNullConstraintRequest & rhs) const + { + if (!(notNullConstraintCols == rhs.notNullConstraintCols)) + return false; + return true; + } + bool operator != (const AddNotNullConstraintRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddNotNullConstraintRequest & ) 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(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddNotNullConstraintRequest& obj) +{ + obj.printTo(out); + return out; +} + + class PartitionsByExprResult { public: diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index d89eb97..eee1e64 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ 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 _list484 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list484.size); - long _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list516.size); + long _elem517; + for (int _i518 = 0; _i518 < _list516.size; ++_i518) { - _elem485 = iprot.readI64(); - struct.txn_ids.add(_elem485); + _elem517 = iprot.readI64(); + struct.txn_ids.add(_elem517); } 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 _iter487 : struct.txn_ids) + for (long _iter519 : struct.txn_ids) { - oprot.writeI64(_iter487); + oprot.writeI64(_iter519); } 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 _iter488 : struct.txn_ids) + for (long _iter520 : struct.txn_ids) { - oprot.writeI64(_iter488); + oprot.writeI64(_iter520); } } } @@ -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 _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list489.size); - long _elem490; - for (int _i491 = 0; _i491 < _list489.size; ++_i491) + org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list521.size); + long _elem522; + for (int _i523 = 0; _i523 < _list521.size; ++_i523) { - _elem490 = iprot.readI64(); - struct.txn_ids.add(_elem490); + _elem522 = iprot.readI64(); + struct.txn_ids.add(_elem522); } } struct.setTxn_idsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index ba06a56..054cf1b 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -727,13 +727,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 4: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list542.size); - String _elem543; - for (int _i544 = 0; _i544 < _list542.size; ++_i544) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list574.size); + String _elem575; + for (int _i576 = 0; _i576 < _list574.size; ++_i576) { - _elem543 = iprot.readString(); - struct.partitionnames.add(_elem543); + _elem575 = iprot.readString(); + struct.partitionnames.add(_elem575); } iprot.readListEnd(); } @@ -780,9 +780,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter545 : struct.partitionnames) + for (String _iter577 : struct.partitionnames) { - oprot.writeString(_iter545); + oprot.writeString(_iter577); } oprot.writeListEnd(); } @@ -817,9 +817,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter546 : struct.partitionnames) + for (String _iter578 : struct.partitionnames) { - oprot.writeString(_iter546); + oprot.writeString(_iter578); } } BitSet optionals = new BitSet(); @@ -842,13 +842,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list547.size); - String _elem548; - for (int _i549 = 0; _i549 < _list547.size; ++_i549) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list579.size); + String _elem580; + for (int _i581 = 0; _i581 < _list579.size; ++_i581) { - _elem548 = iprot.readString(); - struct.partitionnames.add(_elem548); + _elem580 = iprot.readString(); + struct.partitionnames.add(_elem580); } } struct.setPartitionnamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java index 43f7ca7..3123787 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java +++ 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 _list346 = iprot.readListBegin(); - struct.foreignKeyCols = new ArrayList(_list346.size); - SQLForeignKey _elem347; - for (int _i348 = 0; _i348 < _list346.size; ++_i348) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list362.size); + SQLForeignKey _elem363; + for (int _i364 = 0; _i364 < _list362.size; ++_i364) { - _elem347 = new SQLForeignKey(); - _elem347.read(iprot); - struct.foreignKeyCols.add(_elem347); + _elem363 = new SQLForeignKey(); + _elem363.read(iprot); + struct.foreignKeyCols.add(_elem363); } 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 _iter349 : struct.foreignKeyCols) + for (SQLForeignKey _iter365 : struct.foreignKeyCols) { - _iter349.write(oprot); + _iter365.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 _iter350 : struct.foreignKeyCols) + for (SQLForeignKey _iter366 : struct.foreignKeyCols) { - _iter350.write(oprot); + _iter366.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 _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeyCols = new ArrayList(_list351.size); - SQLForeignKey _elem352; - for (int _i353 = 0; _i353 < _list351.size; ++_i353) + org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list367.size); + SQLForeignKey _elem368; + for (int _i369 = 0; _i369 < _list367.size; ++_i369) { - _elem352 = new SQLForeignKey(); - _elem352.read(iprot); - struct.foreignKeyCols.add(_elem352); + _elem368 = new SQLForeignKey(); + _elem368.read(iprot); + struct.foreignKeyCols.add(_elem368); } } struct.setForeignKeyColsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java new file mode 100644 index 0000000..3b79e98 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.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)") +public class AddNotNullConstraintRequest 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("AddNotNullConstraintRequest"); + + private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraintCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddNotNullConstraintRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddNotNullConstraintRequestTupleSchemeFactory()); + } + + private List notNullConstraintCols; // 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 { + NOT_NULL_CONSTRAINT_COLS((short)1, "notNullConstraintCols"); + + 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: // NOT_NULL_CONSTRAINT_COLS + return NOT_NULL_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.NOT_NULL_CONSTRAINT_COLS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraintCols", 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, SQLNotNullConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddNotNullConstraintRequest.class, metaDataMap); + } + + public AddNotNullConstraintRequest() { + } + + public AddNotNullConstraintRequest( + List notNullConstraintCols) + { + this(); + this.notNullConstraintCols = notNullConstraintCols; + } + + /** + * Performs a deep copy on other. + */ + public AddNotNullConstraintRequest(AddNotNullConstraintRequest other) { + if (other.isSetNotNullConstraintCols()) { + List __this__notNullConstraintCols = new ArrayList(other.notNullConstraintCols.size()); + for (SQLNotNullConstraint other_element : other.notNullConstraintCols) { + __this__notNullConstraintCols.add(new SQLNotNullConstraint(other_element)); + } + this.notNullConstraintCols = __this__notNullConstraintCols; + } + } + + public AddNotNullConstraintRequest deepCopy() { + return new AddNotNullConstraintRequest(this); + } + + @Override + public void clear() { + this.notNullConstraintCols = null; + } + + public int getNotNullConstraintColsSize() { + return (this.notNullConstraintCols == null) ? 0 : this.notNullConstraintCols.size(); + } + + public java.util.Iterator getNotNullConstraintColsIterator() { + return (this.notNullConstraintCols == null) ? null : this.notNullConstraintCols.iterator(); + } + + public void addToNotNullConstraintCols(SQLNotNullConstraint elem) { + if (this.notNullConstraintCols == null) { + this.notNullConstraintCols = new ArrayList(); + } + this.notNullConstraintCols.add(elem); + } + + public List getNotNullConstraintCols() { + return this.notNullConstraintCols; + } + + public void setNotNullConstraintCols(List notNullConstraintCols) { + this.notNullConstraintCols = notNullConstraintCols; + } + + public void unsetNotNullConstraintCols() { + this.notNullConstraintCols = null; + } + + /** Returns true if field notNullConstraintCols is set (has been assigned a value) and false otherwise */ + public boolean isSetNotNullConstraintCols() { + return this.notNullConstraintCols != null; + } + + public void setNotNullConstraintColsIsSet(boolean value) { + if (!value) { + this.notNullConstraintCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NOT_NULL_CONSTRAINT_COLS: + if (value == null) { + unsetNotNullConstraintCols(); + } else { + setNotNullConstraintCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NOT_NULL_CONSTRAINT_COLS: + return getNotNullConstraintCols(); + + } + 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 NOT_NULL_CONSTRAINT_COLS: + return isSetNotNullConstraintCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddNotNullConstraintRequest) + return this.equals((AddNotNullConstraintRequest)that); + return false; + } + + public boolean equals(AddNotNullConstraintRequest that) { + if (that == null) + return false; + + boolean this_present_notNullConstraintCols = true && this.isSetNotNullConstraintCols(); + boolean that_present_notNullConstraintCols = true && that.isSetNotNullConstraintCols(); + if (this_present_notNullConstraintCols || that_present_notNullConstraintCols) { + if (!(this_present_notNullConstraintCols && that_present_notNullConstraintCols)) + return false; + if (!this.notNullConstraintCols.equals(that.notNullConstraintCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_notNullConstraintCols = true && (isSetNotNullConstraintCols()); + list.add(present_notNullConstraintCols); + if (present_notNullConstraintCols) + list.add(notNullConstraintCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddNotNullConstraintRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetNotNullConstraintCols()).compareTo(other.isSetNotNullConstraintCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotNullConstraintCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraintCols, other.notNullConstraintCols); + 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("AddNotNullConstraintRequest("); + boolean first = true; + + sb.append("notNullConstraintCols:"); + if (this.notNullConstraintCols == null) { + sb.append("null"); + } else { + sb.append(this.notNullConstraintCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetNotNullConstraintCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'notNullConstraintCols' 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 AddNotNullConstraintRequestStandardSchemeFactory implements SchemeFactory { + public AddNotNullConstraintRequestStandardScheme getScheme() { + return new AddNotNullConstraintRequestStandardScheme(); + } + } + + private static class AddNotNullConstraintRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddNotNullConstraintRequest 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: // NOT_NULL_CONSTRAINT_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); + struct.notNullConstraintCols = new ArrayList(_list378.size); + SQLNotNullConstraint _elem379; + for (int _i380 = 0; _i380 < _list378.size; ++_i380) + { + _elem379 = new SQLNotNullConstraint(); + _elem379.read(iprot); + struct.notNullConstraintCols.add(_elem379); + } + iprot.readListEnd(); + } + struct.setNotNullConstraintColsIsSet(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, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.notNullConstraintCols != null) { + oprot.writeFieldBegin(NOT_NULL_CONSTRAINT_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraintCols.size())); + for (SQLNotNullConstraint _iter381 : struct.notNullConstraintCols) + { + _iter381.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddNotNullConstraintRequestTupleSchemeFactory implements SchemeFactory { + public AddNotNullConstraintRequestTupleScheme getScheme() { + return new AddNotNullConstraintRequestTupleScheme(); + } + } + + private static class AddNotNullConstraintRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.notNullConstraintCols.size()); + for (SQLNotNullConstraint _iter382 : struct.notNullConstraintCols) + { + _iter382.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraintCols = new ArrayList(_list383.size); + SQLNotNullConstraint _elem384; + for (int _i385 = 0; _i385 < _list383.size; ++_i385) + { + _elem384 = new SQLNotNullConstraint(); + _elem384.read(iprot); + struct.notNullConstraintCols.add(_elem384); + } + } + struct.setNotNullConstraintColsIsSet(true); + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index da23f72..6e9ac48 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ 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 _list420 = iprot.readListBegin(); - struct.parts = new ArrayList(_list420.size); - Partition _elem421; - for (int _i422 = 0; _i422 < _list420.size; ++_i422) + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.parts = new ArrayList(_list452.size); + Partition _elem453; + for (int _i454 = 0; _i454 < _list452.size; ++_i454) { - _elem421 = new Partition(); - _elem421.read(iprot); - struct.parts.add(_elem421); + _elem453 = new Partition(); + _elem453.read(iprot); + struct.parts.add(_elem453); } 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 _iter423 : struct.parts) + for (Partition _iter455 : struct.parts) { - _iter423.write(oprot); + _iter455.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 _iter424 : struct.parts) + for (Partition _iter456 : struct.parts) { - _iter424.write(oprot); + _iter456.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 _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list425.size); - Partition _elem426; - for (int _i427 = 0; _i427 < _list425.size; ++_i427) + org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list457.size); + Partition _elem458; + for (int _i459 = 0; _i459 < _list457.size; ++_i459) { - _elem426 = new Partition(); - _elem426.read(iprot); - struct.parts.add(_elem426); + _elem458 = new Partition(); + _elem458.read(iprot); + struct.parts.add(_elem458); } } struct.setPartsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index bfd483e..0dfed78 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ 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 _list412 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list412.size); - Partition _elem413; - for (int _i414 = 0; _i414 < _list412.size; ++_i414) + org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list444.size); + Partition _elem445; + for (int _i446 = 0; _i446 < _list444.size; ++_i446) { - _elem413 = new Partition(); - _elem413.read(iprot); - struct.partitions.add(_elem413); + _elem445 = new Partition(); + _elem445.read(iprot); + struct.partitions.add(_elem445); } 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 _iter415 : struct.partitions) + for (Partition _iter447 : struct.partitions) { - _iter415.write(oprot); + _iter447.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 _iter416 : struct.partitions) + for (Partition _iter448 : struct.partitions) { - _iter416.write(oprot); + _iter448.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 _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list417.size); - Partition _elem418; - for (int _i419 = 0; _i419 < _list417.size; ++_i419) + org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list449.size); + Partition _elem450; + for (int _i451 = 0; _i451 < _list449.size; ++_i451) { - _elem418 = new Partition(); - _elem418.read(iprot); - struct.partitions.add(_elem418); + _elem450 = new Partition(); + _elem450.read(iprot); + struct.partitions.add(_elem450); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java index 987b031..55e606d 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java +++ 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 _list338 = iprot.readListBegin(); - struct.primaryKeyCols = new ArrayList(_list338.size); - SQLPrimaryKey _elem339; - for (int _i340 = 0; _i340 < _list338.size; ++_i340) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list354.size); + SQLPrimaryKey _elem355; + for (int _i356 = 0; _i356 < _list354.size; ++_i356) { - _elem339 = new SQLPrimaryKey(); - _elem339.read(iprot); - struct.primaryKeyCols.add(_elem339); + _elem355 = new SQLPrimaryKey(); + _elem355.read(iprot); + struct.primaryKeyCols.add(_elem355); } 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 _iter341 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter357 : struct.primaryKeyCols) { - _iter341.write(oprot); + _iter357.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 _iter342 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter358 : struct.primaryKeyCols) { - _iter342.write(oprot); + _iter358.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 _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeyCols = new ArrayList(_list343.size); - SQLPrimaryKey _elem344; - for (int _i345 = 0; _i345 < _list343.size; ++_i345) + org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list359.size); + SQLPrimaryKey _elem360; + for (int _i361 = 0; _i361 < _list359.size; ++_i361) { - _elem344 = new SQLPrimaryKey(); - _elem344.read(iprot); - struct.primaryKeyCols.add(_elem344); + _elem360 = new SQLPrimaryKey(); + _elem360.read(iprot); + struct.primaryKeyCols.add(_elem360); } } struct.setPrimaryKeyColsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java new file mode 100644 index 0000000..71d1451 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.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)") +public class AddUniqueConstraintRequest 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("AddUniqueConstraintRequest"); + + private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraintCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddUniqueConstraintRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddUniqueConstraintRequestTupleSchemeFactory()); + } + + private List uniqueConstraintCols; // 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 { + UNIQUE_CONSTRAINT_COLS((short)1, "uniqueConstraintCols"); + + 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: // UNIQUE_CONSTRAINT_COLS + return UNIQUE_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.UNIQUE_CONSTRAINT_COLS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraintCols", 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, SQLUniqueConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddUniqueConstraintRequest.class, metaDataMap); + } + + public AddUniqueConstraintRequest() { + } + + public AddUniqueConstraintRequest( + List uniqueConstraintCols) + { + this(); + this.uniqueConstraintCols = uniqueConstraintCols; + } + + /** + * Performs a deep copy on other. + */ + public AddUniqueConstraintRequest(AddUniqueConstraintRequest other) { + if (other.isSetUniqueConstraintCols()) { + List __this__uniqueConstraintCols = new ArrayList(other.uniqueConstraintCols.size()); + for (SQLUniqueConstraint other_element : other.uniqueConstraintCols) { + __this__uniqueConstraintCols.add(new SQLUniqueConstraint(other_element)); + } + this.uniqueConstraintCols = __this__uniqueConstraintCols; + } + } + + public AddUniqueConstraintRequest deepCopy() { + return new AddUniqueConstraintRequest(this); + } + + @Override + public void clear() { + this.uniqueConstraintCols = null; + } + + public int getUniqueConstraintColsSize() { + return (this.uniqueConstraintCols == null) ? 0 : this.uniqueConstraintCols.size(); + } + + public java.util.Iterator getUniqueConstraintColsIterator() { + return (this.uniqueConstraintCols == null) ? null : this.uniqueConstraintCols.iterator(); + } + + public void addToUniqueConstraintCols(SQLUniqueConstraint elem) { + if (this.uniqueConstraintCols == null) { + this.uniqueConstraintCols = new ArrayList(); + } + this.uniqueConstraintCols.add(elem); + } + + public List getUniqueConstraintCols() { + return this.uniqueConstraintCols; + } + + public void setUniqueConstraintCols(List uniqueConstraintCols) { + this.uniqueConstraintCols = uniqueConstraintCols; + } + + public void unsetUniqueConstraintCols() { + this.uniqueConstraintCols = null; + } + + /** Returns true if field uniqueConstraintCols is set (has been assigned a value) and false otherwise */ + public boolean isSetUniqueConstraintCols() { + return this.uniqueConstraintCols != null; + } + + public void setUniqueConstraintColsIsSet(boolean value) { + if (!value) { + this.uniqueConstraintCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case UNIQUE_CONSTRAINT_COLS: + if (value == null) { + unsetUniqueConstraintCols(); + } else { + setUniqueConstraintCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case UNIQUE_CONSTRAINT_COLS: + return getUniqueConstraintCols(); + + } + 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 UNIQUE_CONSTRAINT_COLS: + return isSetUniqueConstraintCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddUniqueConstraintRequest) + return this.equals((AddUniqueConstraintRequest)that); + return false; + } + + public boolean equals(AddUniqueConstraintRequest that) { + if (that == null) + return false; + + boolean this_present_uniqueConstraintCols = true && this.isSetUniqueConstraintCols(); + boolean that_present_uniqueConstraintCols = true && that.isSetUniqueConstraintCols(); + if (this_present_uniqueConstraintCols || that_present_uniqueConstraintCols) { + if (!(this_present_uniqueConstraintCols && that_present_uniqueConstraintCols)) + return false; + if (!this.uniqueConstraintCols.equals(that.uniqueConstraintCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_uniqueConstraintCols = true && (isSetUniqueConstraintCols()); + list.add(present_uniqueConstraintCols); + if (present_uniqueConstraintCols) + list.add(uniqueConstraintCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddUniqueConstraintRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUniqueConstraintCols()).compareTo(other.isSetUniqueConstraintCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniqueConstraintCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraintCols, other.uniqueConstraintCols); + 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("AddUniqueConstraintRequest("); + boolean first = true; + + sb.append("uniqueConstraintCols:"); + if (this.uniqueConstraintCols == null) { + sb.append("null"); + } else { + sb.append(this.uniqueConstraintCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetUniqueConstraintCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'uniqueConstraintCols' 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 AddUniqueConstraintRequestStandardSchemeFactory implements SchemeFactory { + public AddUniqueConstraintRequestStandardScheme getScheme() { + return new AddUniqueConstraintRequestStandardScheme(); + } + } + + private static class AddUniqueConstraintRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddUniqueConstraintRequest 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: // UNIQUE_CONSTRAINT_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + struct.uniqueConstraintCols = new ArrayList(_list370.size); + SQLUniqueConstraint _elem371; + for (int _i372 = 0; _i372 < _list370.size; ++_i372) + { + _elem371 = new SQLUniqueConstraint(); + _elem371.read(iprot); + struct.uniqueConstraintCols.add(_elem371); + } + iprot.readListEnd(); + } + struct.setUniqueConstraintColsIsSet(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, AddUniqueConstraintRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.uniqueConstraintCols != null) { + oprot.writeFieldBegin(UNIQUE_CONSTRAINT_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraintCols.size())); + for (SQLUniqueConstraint _iter373 : struct.uniqueConstraintCols) + { + _iter373.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddUniqueConstraintRequestTupleSchemeFactory implements SchemeFactory { + public AddUniqueConstraintRequestTupleScheme getScheme() { + return new AddUniqueConstraintRequestTupleScheme(); + } + } + + private static class AddUniqueConstraintRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.uniqueConstraintCols.size()); + for (SQLUniqueConstraint _iter374 : struct.uniqueConstraintCols) + { + _iter374.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraintCols = new ArrayList(_list375.size); + SQLUniqueConstraint _elem376; + for (int _i377 = 0; _i377 < _list375.size; ++_i377) + { + _elem376 = new SQLUniqueConstraint(); + _elem376.read(iprot); + struct.uniqueConstraintCols.add(_elem376); + } + } + struct.setUniqueConstraintColsIsSet(true); + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 0da09bf..0b6574d 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ 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 _list634 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list634.size); - long _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list666.size); + long _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem635 = iprot.readI64(); - struct.fileIds.add(_elem635); + _elem667 = iprot.readI64(); + struct.fileIds.add(_elem667); } 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 _iter637 : struct.fileIds) + for (long _iter669 : struct.fileIds) { - oprot.writeI64(_iter637); + oprot.writeI64(_iter669); } 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 _iter638 : struct.fileIds) + for (long _iter670 : struct.fileIds) { - oprot.writeI64(_iter638); + oprot.writeI64(_iter670); } } } @@ -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 _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list639.size); - long _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list671.size); + long _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem640 = iprot.readI64(); - struct.fileIds.add(_elem640); + _elem672 = iprot.readI64(); + struct.fileIds.add(_elem672); } } struct.setFileIdsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index 81534fe..19e671b 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.values = new ArrayList(_list650.size); - ClientCapability _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.values = new ArrayList(_list682.size); + ClientCapability _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem651 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem651); + _elem683 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem683); } 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 _iter653 : struct.values) + for (ClientCapability _iter685 : struct.values) { - oprot.writeI32(_iter653.getValue()); + oprot.writeI32(_iter685.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 _iter654 : struct.values) + for (ClientCapability _iter686 : struct.values) { - oprot.writeI32(_iter654.getValue()); + oprot.writeI32(_iter686.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 _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list655.size); - ClientCapability _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list687.size); + ClientCapability _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem656 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem656); + _elem688 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem688); } } struct.setValuesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index d3fc92a..3acb203 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ 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 _map524 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map524.size); - String _key525; - String _val526; - for (int _i527 = 0; _i527 < _map524.size; ++_i527) + org.apache.thrift.protocol.TMap _map556 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map556.size); + String _key557; + String _val558; + for (int _i559 = 0; _i559 < _map556.size; ++_i559) { - _key525 = iprot.readString(); - _val526 = iprot.readString(); - struct.properties.put(_key525, _val526); + _key557 = iprot.readString(); + _val558 = iprot.readString(); + struct.properties.put(_key557, _val558); } 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 _iter528 : struct.properties.entrySet()) + for (Map.Entry _iter560 : struct.properties.entrySet()) { - oprot.writeString(_iter528.getKey()); - oprot.writeString(_iter528.getValue()); + oprot.writeString(_iter560.getKey()); + oprot.writeString(_iter560.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 _iter529 : struct.properties.entrySet()) + for (Map.Entry _iter561 : struct.properties.entrySet()) { - oprot.writeString(_iter529.getKey()); - oprot.writeString(_iter529.getValue()); + oprot.writeString(_iter561.getKey()); + oprot.writeString(_iter561.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 _map530 = 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*_map530.size); - String _key531; - String _val532; - for (int _i533 = 0; _i533 < _map530.size; ++_i533) + org.apache.thrift.protocol.TMap _map562 = 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*_map562.size); + String _key563; + String _val564; + for (int _i565 = 0; _i565 < _map562.size; ++_i565) { - _key531 = iprot.readString(); - _val532 = iprot.readString(); - struct.properties.put(_key531, _val532); + _key563 = iprot.readString(); + _val564 = iprot.readString(); + struct.properties.put(_key563, _val564); } } struct.setPropertiesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index 96cfbd2..21290ee 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ 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 _list428 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list428.size); - Partition _elem429; - for (int _i430 = 0; _i430 < _list428.size; ++_i430) + org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list460.size); + Partition _elem461; + for (int _i462 = 0; _i462 < _list460.size; ++_i462) { - _elem429 = new Partition(); - _elem429.read(iprot); - struct.partitions.add(_elem429); + _elem461 = new Partition(); + _elem461.read(iprot); + struct.partitions.add(_elem461); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, 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 _iter431 : struct.partitions) + for (Partition _iter463 : struct.partitions) { - _iter431.write(oprot); + _iter463.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 _iter432 : struct.partitions) + for (Partition _iter464 : struct.partitions) { - _iter432.write(oprot); + _iter464.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 _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list433.size); - Partition _elem434; - for (int _i435 = 0; _i435 < _list433.size; ++_i435) + org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list465.size); + Partition _elem466; + for (int _i467 = 0; _i467 < _list465.size; ++_i467) { - _elem434 = new Partition(); - _elem434.read(iprot); - struct.partitions.add(_elem434); + _elem466 = new Partition(); + _elem466.read(iprot); + struct.partitions.add(_elem466); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 7bb10b3..cc336c5 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ 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 _list574 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list574.size); - String _elem575; - for (int _i576 = 0; _i576 < _list574.size; ++_i576) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list606.size); + String _elem607; + for (int _i608 = 0; _i608 < _list606.size; ++_i608) { - _elem575 = iprot.readString(); - struct.partitionVals.add(_elem575); + _elem607 = iprot.readString(); + struct.partitionVals.add(_elem607); } 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 _iter577 : struct.partitionVals) + for (String _iter609 : struct.partitionVals) { - oprot.writeString(_iter577); + oprot.writeString(_iter609); } 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 _iter578 : struct.partitionVals) + for (String _iter610 : struct.partitionVals) { - oprot.writeString(_iter578); + oprot.writeString(_iter610); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list579.size); - String _elem580; - for (int _i581 = 0; _i581 < _list579.size; ++_i581) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list611.size); + String _elem612; + for (int _i613 = 0; _i613 < _list611.size; ++_i613) { - _elem580 = iprot.readString(); - struct.partitionVals.add(_elem580); + _elem612 = iprot.readString(); + struct.partitionVals.add(_elem612); } } struct.setPartitionValsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 56a4d30..ad12ab1 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ 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 _list452 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list452.size); - ResourceUri _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list484.size); + ResourceUri _elem485; + for (int _i486 = 0; _i486 < _list484.size; ++_i486) { - _elem453 = new ResourceUri(); - _elem453.read(iprot); - struct.resourceUris.add(_elem453); + _elem485 = new ResourceUri(); + _elem485.read(iprot); + struct.resourceUris.add(_elem485); } 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 _iter455 : struct.resourceUris) + for (ResourceUri _iter487 : struct.resourceUris) { - _iter455.write(oprot); + _iter487.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 _iter456 : struct.resourceUris) + for (ResourceUri _iter488 : struct.resourceUris) { - _iter456.write(oprot); + _iter488.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 _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list457.size); - ResourceUri _elem458; - for (int _i459 = 0; _i459 < _list457.size; ++_i459) + org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list489.size); + ResourceUri _elem490; + for (int _i491 = 0; _i491 < _list489.size; ++_i491) { - _elem458 = new ResourceUri(); - _elem458.read(iprot); - struct.resourceUris.add(_elem458); + _elem490 = new ResourceUri(); + _elem490.read(iprot); + struct.resourceUris.add(_elem490); } } struct.setResourceUrisIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 49a1be2..bb11fe3 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); - struct.functions = new ArrayList(_list642.size); - Function _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.functions = new ArrayList(_list674.size); + Function _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem643 = new Function(); - _elem643.read(iprot); - struct.functions.add(_elem643); + _elem675 = new Function(); + _elem675.read(iprot); + struct.functions.add(_elem675); } 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 _iter645 : struct.functions) + for (Function _iter677 : struct.functions) { - _iter645.write(oprot); + _iter677.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 _iter646 : struct.functions) + for (Function _iter678 : struct.functions) { - _iter646.write(oprot); + _iter678.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 _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list647.size); - Function _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list679.size); + Function _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem648 = new Function(); - _elem648.read(iprot); - struct.functions.add(_elem648); + _elem680 = new Function(); + _elem680.read(iprot); + struct.functions.add(_elem680); } } struct.setFunctionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 20b82cf..ef758cd 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ 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 _list592 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list592.size); - long _elem593; - for (int _i594 = 0; _i594 < _list592.size; ++_i594) + org.apache.thrift.protocol.TList _list624 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list624.size); + long _elem625; + for (int _i626 = 0; _i626 < _list624.size; ++_i626) { - _elem593 = iprot.readI64(); - struct.fileIds.add(_elem593); + _elem625 = iprot.readI64(); + struct.fileIds.add(_elem625); } 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 _iter595 : struct.fileIds) + for (long _iter627 : struct.fileIds) { - oprot.writeI64(_iter595); + oprot.writeI64(_iter627); } 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 _iter596 : struct.fileIds) + for (long _iter628 : struct.fileIds) { - oprot.writeI64(_iter596); + oprot.writeI64(_iter628); } } 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 _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list597.size); - long _elem598; - for (int _i599 = 0; _i599 < _list597.size; ++_i599) + org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list629.size); + long _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) { - _elem598 = iprot.readI64(); - struct.fileIds.add(_elem598); + _elem630 = iprot.readI64(); + struct.fileIds.add(_elem630); } } struct.setFileIdsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index 9975dfc..ee94380 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ 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 _map582 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map582.size); - long _key583; - MetadataPpdResult _val584; - for (int _i585 = 0; _i585 < _map582.size; ++_i585) + org.apache.thrift.protocol.TMap _map614 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map614.size); + long _key615; + MetadataPpdResult _val616; + for (int _i617 = 0; _i617 < _map614.size; ++_i617) { - _key583 = iprot.readI64(); - _val584 = new MetadataPpdResult(); - _val584.read(iprot); - struct.metadata.put(_key583, _val584); + _key615 = iprot.readI64(); + _val616 = new MetadataPpdResult(); + _val616.read(iprot); + struct.metadata.put(_key615, _val616); } 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 _iter586 : struct.metadata.entrySet()) + for (Map.Entry _iter618 : struct.metadata.entrySet()) { - oprot.writeI64(_iter586.getKey()); - _iter586.getValue().write(oprot); + oprot.writeI64(_iter618.getKey()); + _iter618.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 _iter587 : struct.metadata.entrySet()) + for (Map.Entry _iter619 : struct.metadata.entrySet()) { - oprot.writeI64(_iter587.getKey()); - _iter587.getValue().write(oprot); + oprot.writeI64(_iter619.getKey()); + _iter619.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 _map588 = 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*_map588.size); - long _key589; - MetadataPpdResult _val590; - for (int _i591 = 0; _i591 < _map588.size; ++_i591) + org.apache.thrift.protocol.TMap _map620 = 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*_map620.size); + long _key621; + MetadataPpdResult _val622; + for (int _i623 = 0; _i623 < _map620.size; ++_i623) { - _key589 = iprot.readI64(); - _val590 = new MetadataPpdResult(); - _val590.read(iprot); - struct.metadata.put(_key589, _val590); + _key621 = iprot.readI64(); + _val622 = new MetadataPpdResult(); + _val622.read(iprot); + struct.metadata.put(_key621, _val622); } } struct.setMetadataIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 7aebede..f8c8258 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ 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 _list610 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list610.size); - long _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list642.size); + long _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem611 = iprot.readI64(); - struct.fileIds.add(_elem611); + _elem643 = iprot.readI64(); + struct.fileIds.add(_elem643); } 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 _iter613 : struct.fileIds) + for (long _iter645 : struct.fileIds) { - oprot.writeI64(_iter613); + oprot.writeI64(_iter645); } 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 _iter614 : struct.fileIds) + for (long _iter646 : struct.fileIds) { - oprot.writeI64(_iter614); + oprot.writeI64(_iter646); } } } @@ -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 _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list615.size); - long _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list647.size); + long _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem616 = iprot.readI64(); - struct.fileIds.add(_elem616); + _elem648 = iprot.readI64(); + struct.fileIds.add(_elem648); } } struct.setFileIdsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index fe83a6e..73888e9 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ 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 _map600 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map600.size); - long _key601; - ByteBuffer _val602; - for (int _i603 = 0; _i603 < _map600.size; ++_i603) + org.apache.thrift.protocol.TMap _map632 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map632.size); + long _key633; + ByteBuffer _val634; + for (int _i635 = 0; _i635 < _map632.size; ++_i635) { - _key601 = iprot.readI64(); - _val602 = iprot.readBinary(); - struct.metadata.put(_key601, _val602); + _key633 = iprot.readI64(); + _val634 = iprot.readBinary(); + struct.metadata.put(_key633, _val634); } 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 _iter604 : struct.metadata.entrySet()) + for (Map.Entry _iter636 : struct.metadata.entrySet()) { - oprot.writeI64(_iter604.getKey()); - oprot.writeBinary(_iter604.getValue()); + oprot.writeI64(_iter636.getKey()); + oprot.writeBinary(_iter636.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 _iter605 : struct.metadata.entrySet()) + for (Map.Entry _iter637 : struct.metadata.entrySet()) { - oprot.writeI64(_iter605.getKey()); - oprot.writeBinary(_iter605.getValue()); + oprot.writeI64(_iter637.getKey()); + oprot.writeBinary(_iter637.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 _map606 = 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*_map606.size); - long _key607; - ByteBuffer _val608; - for (int _i609 = 0; _i609 < _map606.size; ++_i609) + org.apache.thrift.protocol.TMap _map638 = 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*_map638.size); + long _key639; + ByteBuffer _val640; + for (int _i641 = 0; _i641 < _map638.size; ++_i641) { - _key607 = iprot.readI64(); - _val608 = iprot.readBinary(); - struct.metadata.put(_key607, _val608); + _key639 = iprot.readI64(); + _val640 = iprot.readBinary(); + struct.metadata.put(_key639, _val640); } } struct.setMetadataIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index e68793b..18a8e62 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ 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 _list460 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list460.size); - TxnInfo _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list492.size); + TxnInfo _elem493; + for (int _i494 = 0; _i494 < _list492.size; ++_i494) { - _elem461 = new TxnInfo(); - _elem461.read(iprot); - struct.open_txns.add(_elem461); + _elem493 = new TxnInfo(); + _elem493.read(iprot); + struct.open_txns.add(_elem493); } 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 _iter463 : struct.open_txns) + for (TxnInfo _iter495 : struct.open_txns) { - _iter463.write(oprot); + _iter495.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 _iter464 : struct.open_txns) + for (TxnInfo _iter496 : struct.open_txns) { - _iter464.write(oprot); + _iter496.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 _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list465.size); - TxnInfo _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list497.size); + TxnInfo _elem498; + for (int _i499 = 0; _i499 < _list497.size; ++_i499) { - _elem466 = new TxnInfo(); - _elem466.read(iprot); - struct.open_txns.add(_elem466); + _elem498 = new TxnInfo(); + _elem498.read(iprot); + struct.open_txns.add(_elem498); } } struct.setOpen_txnsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index 2852310..386c105 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ 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 _list468 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list468.size); - long _elem469; - for (int _i470 = 0; _i470 < _list468.size; ++_i470) + org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list500.size); + long _elem501; + for (int _i502 = 0; _i502 < _list500.size; ++_i502) { - _elem469 = iprot.readI64(); - struct.open_txns.add(_elem469); + _elem501 = iprot.readI64(); + struct.open_txns.add(_elem501); } 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 _iter471 : struct.open_txns) + for (long _iter503 : struct.open_txns) { - oprot.writeI64(_iter471); + oprot.writeI64(_iter503); } 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 _iter472 : struct.open_txns) + for (long _iter504 : struct.open_txns) { - oprot.writeI64(_iter472); + oprot.writeI64(_iter504); } } 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 _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new ArrayList(_list473.size); - long _elem474; - for (int _i475 = 0; _i475 < _list473.size; ++_i475) + org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list505.size); + long _elem506; + for (int _i507 = 0; _i507 < _list505.size; ++_i507) { - _elem474 = iprot.readI64(); - struct.open_txns.add(_elem474); + _elem506 = iprot.readI64(); + struct.open_txns.add(_elem506); } } struct.setOpen_txnsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index 225fda9..5195427 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list658.size); - String _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list690.size); + String _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem659 = iprot.readString(); - struct.tblNames.add(_elem659); + _elem691 = iprot.readString(); + struct.tblNames.add(_elem691); } 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 _iter661 : struct.tblNames) + for (String _iter693 : struct.tblNames) { - oprot.writeString(_iter661); + oprot.writeString(_iter693); } 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 _iter662 : struct.tblNames) + for (String _iter694 : struct.tblNames) { - oprot.writeString(_iter662); + oprot.writeString(_iter694); } } } @@ -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 _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list663.size); - String _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list695.size); + String _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem664 = iprot.readString(); - struct.tblNames.add(_elem664); + _elem696 = iprot.readString(); + struct.tblNames.add(_elem696); } } struct.setTblNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 91cb198..1ade2f5 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list666.size); - Table _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list698.size); + Table _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem667 = new Table(); - _elem667.read(iprot); - struct.tables.add(_elem667); + _elem699 = new Table(); + _elem699.read(iprot); + struct.tables.add(_elem699); } 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 _iter669 : struct.tables) + for (Table _iter701 : struct.tables) { - _iter669.write(oprot); + _iter701.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 _iter670 : struct.tables) + for (Table _iter702 : struct.tables) { - _iter670.write(oprot); + _iter702.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 _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list671.size); - Table _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list703.size); + Table _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem672 = new Table(); - _elem672.read(iprot); - struct.tables.add(_elem672); + _elem704 = new Table(); + _elem704.read(iprot); + struct.tables.add(_elem704); } } struct.setTablesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 164ff51..a33210d 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ 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 _set508 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set508.size); - long _elem509; - for (int _i510 = 0; _i510 < _set508.size; ++_i510) + org.apache.thrift.protocol.TSet _set540 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set540.size); + long _elem541; + for (int _i542 = 0; _i542 < _set540.size; ++_i542) { - _elem509 = iprot.readI64(); - struct.aborted.add(_elem509); + _elem541 = iprot.readI64(); + struct.aborted.add(_elem541); } 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 _set511 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set511.size); - long _elem512; - for (int _i513 = 0; _i513 < _set511.size; ++_i513) + org.apache.thrift.protocol.TSet _set543 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set543.size); + long _elem544; + for (int _i545 = 0; _i545 < _set543.size; ++_i545) { - _elem512 = iprot.readI64(); - struct.nosuch.add(_elem512); + _elem544 = iprot.readI64(); + struct.nosuch.add(_elem544); } 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 _iter514 : struct.aborted) + for (long _iter546 : struct.aborted) { - oprot.writeI64(_iter514); + oprot.writeI64(_iter546); } 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 _iter515 : struct.nosuch) + for (long _iter547 : struct.nosuch) { - oprot.writeI64(_iter515); + oprot.writeI64(_iter547); } 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 _iter516 : struct.aborted) + for (long _iter548 : struct.aborted) { - oprot.writeI64(_iter516); + oprot.writeI64(_iter548); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter517 : struct.nosuch) + for (long _iter549 : struct.nosuch) { - oprot.writeI64(_iter517); + oprot.writeI64(_iter549); } } } @@ -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 _set518 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set518.size); - long _elem519; - for (int _i520 = 0; _i520 < _set518.size; ++_i520) + org.apache.thrift.protocol.TSet _set550 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set550.size); + long _elem551; + for (int _i552 = 0; _i552 < _set550.size; ++_i552) { - _elem519 = iprot.readI64(); - struct.aborted.add(_elem519); + _elem551 = iprot.readI64(); + struct.aborted.add(_elem551); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set521 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set521.size); - long _elem522; - for (int _i523 = 0; _i523 < _set521.size; ++_i523) + org.apache.thrift.protocol.TSet _set553 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set553.size); + long _elem554; + for (int _i555 = 0; _i555 < _set553.size; ++_i555) { - _elem522 = iprot.readI64(); - struct.nosuch.add(_elem522); + _elem554 = iprot.readI64(); + struct.nosuch.add(_elem554); } } struct.setNosuchIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 354e634..84f1df1 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ 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 _list558 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list558.size); - String _elem559; - for (int _i560 = 0; _i560 < _list558.size; ++_i560) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list590.size); + String _elem591; + for (int _i592 = 0; _i592 < _list590.size; ++_i592) { - _elem559 = iprot.readString(); - struct.filesAdded.add(_elem559); + _elem591 = iprot.readString(); + struct.filesAdded.add(_elem591); } 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 _list561 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list561.size); - String _elem562; - for (int _i563 = 0; _i563 < _list561.size; ++_i563) + org.apache.thrift.protocol.TList _list593 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list593.size); + String _elem594; + for (int _i595 = 0; _i595 < _list593.size; ++_i595) { - _elem562 = iprot.readString(); - struct.filesAddedChecksum.add(_elem562); + _elem594 = iprot.readString(); + struct.filesAddedChecksum.add(_elem594); } 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 _iter564 : struct.filesAdded) + for (String _iter596 : struct.filesAdded) { - oprot.writeString(_iter564); + oprot.writeString(_iter596); } 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 _iter565 : struct.filesAddedChecksum) + for (String _iter597 : struct.filesAddedChecksum) { - oprot.writeString(_iter565); + oprot.writeString(_iter597); } 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 _iter566 : struct.filesAdded) + for (String _iter598 : struct.filesAdded) { - oprot.writeString(_iter566); + oprot.writeString(_iter598); } } 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 _iter567 : struct.filesAddedChecksum) + for (String _iter599 : struct.filesAddedChecksum) { - oprot.writeString(_iter567); + oprot.writeString(_iter599); } } } @@ -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 _list568 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list568.size); - String _elem569; - for (int _i570 = 0; _i570 < _list568.size; ++_i570) + org.apache.thrift.protocol.TList _list600 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list600.size); + String _elem601; + for (int _i602 = 0; _i602 < _list600.size; ++_i602) { - _elem569 = iprot.readString(); - struct.filesAdded.add(_elem569); + _elem601 = iprot.readString(); + struct.filesAdded.add(_elem601); } } 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 _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list571.size); - String _elem572; - for (int _i573 = 0; _i573 < _list571.size; ++_i573) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list603.size); + String _elem604; + for (int _i605 = 0; _i605 < _list603.size; ++_i605) { - _elem572 = iprot.readString(); - struct.filesAddedChecksum.add(_elem572); + _elem604 = iprot.readString(); + struct.filesAddedChecksum.add(_elem604); } } struct.setFilesAddedChecksumIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index a1a1cac..833adbb 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ 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 _list492 = iprot.readListBegin(); - struct.component = new ArrayList(_list492.size); - LockComponent _elem493; - for (int _i494 = 0; _i494 < _list492.size; ++_i494) + org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); + struct.component = new ArrayList(_list524.size); + LockComponent _elem525; + for (int _i526 = 0; _i526 < _list524.size; ++_i526) { - _elem493 = new LockComponent(); - _elem493.read(iprot); - struct.component.add(_elem493); + _elem525 = new LockComponent(); + _elem525.read(iprot); + struct.component.add(_elem525); } 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 _iter495 : struct.component) + for (LockComponent _iter527 : struct.component) { - _iter495.write(oprot); + _iter527.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 _iter496 : struct.component) + for (LockComponent _iter528 : struct.component) { - _iter496.write(oprot); + _iter528.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 _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list497.size); - LockComponent _elem498; - for (int _i499 = 0; _i499 < _list497.size; ++_i499) + org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list529.size); + LockComponent _elem530; + for (int _i531 = 0; _i531 < _list529.size; ++_i531) { - _elem498 = new LockComponent(); - _elem498.read(iprot); - struct.component.add(_elem498); + _elem530 = new LockComponent(); + _elem530.read(iprot); + struct.component.add(_elem530); } } struct.setComponentIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsRequest.java new file mode 100644 index 0000000..d12e270 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsRequest.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)") +public class NotNullConstraintsRequest 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("NotNullConstraintsRequest"); + + 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 NotNullConstraintsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new NotNullConstraintsRequestTupleSchemeFactory()); + } + + 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(NotNullConstraintsRequest.class, metaDataMap); + } + + public NotNullConstraintsRequest() { + } + + public NotNullConstraintsRequest( + String db_name, + String tbl_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + } + + /** + * Performs a deep copy on other. + */ + public NotNullConstraintsRequest(NotNullConstraintsRequest other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + } + + public NotNullConstraintsRequest deepCopy() { + return new NotNullConstraintsRequest(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 NotNullConstraintsRequest) + return this.equals((NotNullConstraintsRequest)that); + return false; + } + + public boolean equals(NotNullConstraintsRequest 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(NotNullConstraintsRequest 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("NotNullConstraintsRequest("); + 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 NotNullConstraintsRequestStandardSchemeFactory implements SchemeFactory { + public NotNullConstraintsRequestStandardScheme getScheme() { + return new NotNullConstraintsRequestStandardScheme(); + } + } + + private static class NotNullConstraintsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, NotNullConstraintsRequest 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, NotNullConstraintsRequest 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 NotNullConstraintsRequestTupleSchemeFactory implements SchemeFactory { + public NotNullConstraintsRequestTupleScheme getScheme() { + return new NotNullConstraintsRequestTupleScheme(); + } + } + + private static class NotNullConstraintsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsRequest 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, NotNullConstraintsRequest 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 metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java new file mode 100644 index 0000000..b49895b --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.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)") +public class NotNullConstraintsResponse 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("NotNullConstraintsResponse"); + + 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)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new NotNullConstraintsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new NotNullConstraintsResponseTupleSchemeFactory()); + } + + private List notNullConstraints; // 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 { + NOT_NULL_CONSTRAINTS((short)1, "notNullConstraints"); + + 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: // NOT_NULL_CONSTRAINTS + return NOT_NULL_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.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", 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, SQLNotNullConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NotNullConstraintsResponse.class, metaDataMap); + } + + public NotNullConstraintsResponse() { + } + + public NotNullConstraintsResponse( + List notNullConstraints) + { + this(); + this.notNullConstraints = notNullConstraints; + } + + /** + * Performs a deep copy on other. + */ + public NotNullConstraintsResponse(NotNullConstraintsResponse other) { + if (other.isSetNotNullConstraints()) { + List __this__notNullConstraints = new ArrayList(other.notNullConstraints.size()); + for (SQLNotNullConstraint other_element : other.notNullConstraints) { + __this__notNullConstraints.add(new SQLNotNullConstraint(other_element)); + } + this.notNullConstraints = __this__notNullConstraints; + } + } + + public NotNullConstraintsResponse deepCopy() { + return new NotNullConstraintsResponse(this); + } + + @Override + public void clear() { + this.notNullConstraints = null; + } + + public int getNotNullConstraintsSize() { + return (this.notNullConstraints == null) ? 0 : this.notNullConstraints.size(); + } + + public java.util.Iterator getNotNullConstraintsIterator() { + return (this.notNullConstraints == null) ? null : this.notNullConstraints.iterator(); + } + + public void addToNotNullConstraints(SQLNotNullConstraint elem) { + if (this.notNullConstraints == null) { + this.notNullConstraints = new ArrayList(); + } + this.notNullConstraints.add(elem); + } + + public List getNotNullConstraints() { + return this.notNullConstraints; + } + + public void setNotNullConstraints(List notNullConstraints) { + this.notNullConstraints = notNullConstraints; + } + + public void unsetNotNullConstraints() { + this.notNullConstraints = null; + } + + /** Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetNotNullConstraints() { + return this.notNullConstraints != null; + } + + public void setNotNullConstraintsIsSet(boolean value) { + if (!value) { + this.notNullConstraints = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NOT_NULL_CONSTRAINTS: + if (value == null) { + unsetNotNullConstraints(); + } else { + setNotNullConstraints((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NOT_NULL_CONSTRAINTS: + return getNotNullConstraints(); + + } + 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 NOT_NULL_CONSTRAINTS: + return isSetNotNullConstraints(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof NotNullConstraintsResponse) + return this.equals((NotNullConstraintsResponse)that); + return false; + } + + public boolean equals(NotNullConstraintsResponse that) { + if (that == null) + return false; + + boolean this_present_notNullConstraints = true && this.isSetNotNullConstraints(); + boolean that_present_notNullConstraints = true && that.isSetNotNullConstraints(); + if (this_present_notNullConstraints || that_present_notNullConstraints) { + if (!(this_present_notNullConstraints && that_present_notNullConstraints)) + return false; + if (!this.notNullConstraints.equals(that.notNullConstraints)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_notNullConstraints = true && (isSetNotNullConstraints()); + list.add(present_notNullConstraints); + if (present_notNullConstraints) + list.add(notNullConstraints); + + return list.hashCode(); + } + + @Override + public int compareTo(NotNullConstraintsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetNotNullConstraints()).compareTo(other.isSetNotNullConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotNullConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraints, other.notNullConstraints); + 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("NotNullConstraintsResponse("); + boolean first = true; + + sb.append("notNullConstraints:"); + if (this.notNullConstraints == null) { + sb.append("null"); + } else { + sb.append(this.notNullConstraints); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetNotNullConstraints()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'notNullConstraints' 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 NotNullConstraintsResponseStandardSchemeFactory implements SchemeFactory { + public NotNullConstraintsResponseStandardScheme getScheme() { + return new NotNullConstraintsResponseStandardScheme(); + } + } + + private static class NotNullConstraintsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, NotNullConstraintsResponse 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: // NOT_NULL_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list346.size); + SQLNotNullConstraint _elem347; + for (int _i348 = 0; _i348 < _list346.size; ++_i348) + { + _elem347 = new SQLNotNullConstraint(); + _elem347.read(iprot); + struct.notNullConstraints.add(_elem347); + } + iprot.readListEnd(); + } + struct.setNotNullConstraintsIsSet(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, NotNullConstraintsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.notNullConstraints != null) { + oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); + for (SQLNotNullConstraint _iter349 : struct.notNullConstraints) + { + _iter349.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class NotNullConstraintsResponseTupleSchemeFactory implements SchemeFactory { + public NotNullConstraintsResponseTupleScheme getScheme() { + return new NotNullConstraintsResponseTupleScheme(); + } + } + + private static class NotNullConstraintsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.notNullConstraints.size()); + for (SQLNotNullConstraint _iter350 : struct.notNullConstraints) + { + _iter350.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list351.size); + SQLNotNullConstraint _elem352; + for (int _i353 = 0; _i353 < _list351.size; ++_i353) + { + _elem352 = new SQLNotNullConstraint(); + _elem352.read(iprot); + struct.notNullConstraints.add(_elem352); + } + } + struct.setNotNullConstraintsIsSet(true); + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index edc548a..bcfc75b 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ 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 _list550 = iprot.readListBegin(); - struct.events = new ArrayList(_list550.size); - NotificationEvent _elem551; - for (int _i552 = 0; _i552 < _list550.size; ++_i552) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.events = new ArrayList(_list582.size); + NotificationEvent _elem583; + for (int _i584 = 0; _i584 < _list582.size; ++_i584) { - _elem551 = new NotificationEvent(); - _elem551.read(iprot); - struct.events.add(_elem551); + _elem583 = new NotificationEvent(); + _elem583.read(iprot); + struct.events.add(_elem583); } 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 _iter553 : struct.events) + for (NotificationEvent _iter585 : struct.events) { - _iter553.write(oprot); + _iter585.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 _iter554 : struct.events) + for (NotificationEvent _iter586 : struct.events) { - _iter554.write(oprot); + _iter586.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 _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list555.size); - NotificationEvent _elem556; - for (int _i557 = 0; _i557 < _list555.size; ++_i557) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list587.size); + NotificationEvent _elem588; + for (int _i589 = 0; _i589 < _list587.size; ++_i589) { - _elem556 = new NotificationEvent(); - _elem556.read(iprot); - struct.events.add(_elem556); + _elem588 = new NotificationEvent(); + _elem588.read(iprot); + struct.events.add(_elem588); } } struct.setEventsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index a8af71b..c23482a 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ 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 _list476 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list476.size); - long _elem477; - for (int _i478 = 0; _i478 < _list476.size; ++_i478) + org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list508.size); + long _elem509; + for (int _i510 = 0; _i510 < _list508.size; ++_i510) { - _elem477 = iprot.readI64(); - struct.txn_ids.add(_elem477); + _elem509 = iprot.readI64(); + struct.txn_ids.add(_elem509); } 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 _iter479 : struct.txn_ids) + for (long _iter511 : struct.txn_ids) { - oprot.writeI64(_iter479); + oprot.writeI64(_iter511); } 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 _iter480 : struct.txn_ids) + for (long _iter512 : struct.txn_ids) { - oprot.writeI64(_iter480); + oprot.writeI64(_iter512); } } } @@ -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 _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list481.size); - long _elem482; - for (int _i483 = 0; _i483 < _list481.size; ++_i483) + org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list513.size); + long _elem514; + for (int _i515 = 0; _i515 < _list513.size; ++_i515) { - _elem482 = iprot.readI64(); - struct.txn_ids.add(_elem482); + _elem514 = iprot.readI64(); + struct.txn_ids.add(_elem514); } } struct.setTxn_idsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 0533053..7df156f 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ 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 _list354 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list354.size); - Partition _elem355; - for (int _i356 = 0; _i356 < _list354.size; ++_i356) + org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list386.size); + Partition _elem387; + for (int _i388 = 0; _i388 < _list386.size; ++_i388) { - _elem355 = new Partition(); - _elem355.read(iprot); - struct.partitions.add(_elem355); + _elem387 = new Partition(); + _elem387.read(iprot); + struct.partitions.add(_elem387); } 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 _iter357 : struct.partitions) + for (Partition _iter389 : struct.partitions) { - _iter357.write(oprot); + _iter389.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 _iter358 : struct.partitions) + for (Partition _iter390 : struct.partitions) { - _iter358.write(oprot); + _iter390.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 _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list359.size); - Partition _elem360; - for (int _i361 = 0; _i361 < _list359.size; ++_i361) + org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list391.size); + Partition _elem392; + for (int _i393 = 0; _i393 < _list391.size; ++_i393) { - _elem360 = new Partition(); - _elem360.read(iprot); - struct.partitions.add(_elem360); + _elem392 = new Partition(); + _elem392.read(iprot); + struct.partitions.add(_elem392); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 65b8a54..b43f6c0 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ 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 _list396 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list396.size); - String _elem397; - for (int _i398 = 0; _i398 < _list396.size; ++_i398) + org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list428.size); + String _elem429; + for (int _i430 = 0; _i430 < _list428.size; ++_i430) { - _elem397 = iprot.readString(); - struct.colNames.add(_elem397); + _elem429 = iprot.readString(); + struct.colNames.add(_elem429); } 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 _list399 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list399.size); - String _elem400; - for (int _i401 = 0; _i401 < _list399.size; ++_i401) + org.apache.thrift.protocol.TList _list431 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list431.size); + String _elem432; + for (int _i433 = 0; _i433 < _list431.size; ++_i433) { - _elem400 = iprot.readString(); - struct.partNames.add(_elem400); + _elem432 = iprot.readString(); + struct.partNames.add(_elem432); } 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 _iter402 : struct.colNames) + for (String _iter434 : struct.colNames) { - oprot.writeString(_iter402); + oprot.writeString(_iter434); } 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 _iter403 : struct.partNames) + for (String _iter435 : struct.partNames) { - oprot.writeString(_iter403); + oprot.writeString(_iter435); } 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 _iter404 : struct.colNames) + for (String _iter436 : struct.colNames) { - oprot.writeString(_iter404); + oprot.writeString(_iter436); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter405 : struct.partNames) + for (String _iter437 : struct.partNames) { - oprot.writeString(_iter405); + oprot.writeString(_iter437); } } } @@ -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 _list406 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list406.size); - String _elem407; - for (int _i408 = 0; _i408 < _list406.size; ++_i408) + org.apache.thrift.protocol.TList _list438 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list438.size); + String _elem439; + for (int _i440 = 0; _i440 < _list438.size; ++_i440) { - _elem407 = iprot.readString(); - struct.colNames.add(_elem407); + _elem439 = iprot.readString(); + struct.colNames.add(_elem439); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list409.size); - String _elem410; - for (int _i411 = 0; _i411 < _list409.size; ++_i411) + org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list441.size); + String _elem442; + for (int _i443 = 0; _i443 < _list441.size; ++_i443) { - _elem410 = iprot.readString(); - struct.partNames.add(_elem410); + _elem442 = iprot.readString(); + struct.partNames.add(_elem442); } } struct.setPartNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 1d5e6ce..63ed662 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ 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 _map370 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map370.size); - String _key371; - List _val372; - for (int _i373 = 0; _i373 < _map370.size; ++_i373) + org.apache.thrift.protocol.TMap _map402 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map402.size); + String _key403; + List _val404; + for (int _i405 = 0; _i405 < _map402.size; ++_i405) { - _key371 = iprot.readString(); + _key403 = iprot.readString(); { - org.apache.thrift.protocol.TList _list374 = iprot.readListBegin(); - _val372 = new ArrayList(_list374.size); - ColumnStatisticsObj _elem375; - for (int _i376 = 0; _i376 < _list374.size; ++_i376) + org.apache.thrift.protocol.TList _list406 = iprot.readListBegin(); + _val404 = new ArrayList(_list406.size); + ColumnStatisticsObj _elem407; + for (int _i408 = 0; _i408 < _list406.size; ++_i408) { - _elem375 = new ColumnStatisticsObj(); - _elem375.read(iprot); - _val372.add(_elem375); + _elem407 = new ColumnStatisticsObj(); + _elem407.read(iprot); + _val404.add(_elem407); } iprot.readListEnd(); } - struct.partStats.put(_key371, _val372); + struct.partStats.put(_key403, _val404); } 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> _iter377 : struct.partStats.entrySet()) + for (Map.Entry> _iter409 : struct.partStats.entrySet()) { - oprot.writeString(_iter377.getKey()); + oprot.writeString(_iter409.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter377.getValue().size())); - for (ColumnStatisticsObj _iter378 : _iter377.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter409.getValue().size())); + for (ColumnStatisticsObj _iter410 : _iter409.getValue()) { - _iter378.write(oprot); + _iter410.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> _iter379 : struct.partStats.entrySet()) + for (Map.Entry> _iter411 : struct.partStats.entrySet()) { - oprot.writeString(_iter379.getKey()); + oprot.writeString(_iter411.getKey()); { - oprot.writeI32(_iter379.getValue().size()); - for (ColumnStatisticsObj _iter380 : _iter379.getValue()) + oprot.writeI32(_iter411.getValue().size()); + for (ColumnStatisticsObj _iter412 : _iter411.getValue()) { - _iter380.write(oprot); + _iter412.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 _map381 = 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*_map381.size); - String _key382; - List _val383; - for (int _i384 = 0; _i384 < _map381.size; ++_i384) + org.apache.thrift.protocol.TMap _map413 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); + struct.partStats = new HashMap>(2*_map413.size); + String _key414; + List _val415; + for (int _i416 = 0; _i416 < _map413.size; ++_i416) { - _key382 = iprot.readString(); + _key414 = iprot.readString(); { - org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val383 = new ArrayList(_list385.size); - ColumnStatisticsObj _elem386; - for (int _i387 = 0; _i387 < _list385.size; ++_i387) + org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val415 = new ArrayList(_list417.size); + ColumnStatisticsObj _elem418; + for (int _i419 = 0; _i419 < _list417.size; ++_i419) { - _elem386 = new ColumnStatisticsObj(); - _elem386.read(iprot); - _val383.add(_elem386); + _elem418 = new ColumnStatisticsObj(); + _elem418.read(iprot); + _val415.add(_elem418); } } - struct.partStats.put(_key382, _val383); + struct.partStats.put(_key414, _val415); } } struct.setPartStatsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 0a1302f..0c06ff3 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ 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 _list618 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list618.size); - long _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list650.size); + long _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem619 = iprot.readI64(); - struct.fileIds.add(_elem619); + _elem651 = iprot.readI64(); + struct.fileIds.add(_elem651); } 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 _list621 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list621.size); - ByteBuffer _elem622; - for (int _i623 = 0; _i623 < _list621.size; ++_i623) + org.apache.thrift.protocol.TList _list653 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list653.size); + ByteBuffer _elem654; + for (int _i655 = 0; _i655 < _list653.size; ++_i655) { - _elem622 = iprot.readBinary(); - struct.metadata.add(_elem622); + _elem654 = iprot.readBinary(); + struct.metadata.add(_elem654); } 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 _iter624 : struct.fileIds) + for (long _iter656 : struct.fileIds) { - oprot.writeI64(_iter624); + oprot.writeI64(_iter656); } 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 _iter625 : struct.metadata) + for (ByteBuffer _iter657 : struct.metadata) { - oprot.writeBinary(_iter625); + oprot.writeBinary(_iter657); } 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 _iter626 : struct.fileIds) + for (long _iter658 : struct.fileIds) { - oprot.writeI64(_iter626); + oprot.writeI64(_iter658); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter627 : struct.metadata) + for (ByteBuffer _iter659 : struct.metadata) { - oprot.writeBinary(_iter627); + oprot.writeBinary(_iter659); } } 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 _list628 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list628.size); - long _elem629; - for (int _i630 = 0; _i630 < _list628.size; ++_i630) + org.apache.thrift.protocol.TList _list660 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list660.size); + long _elem661; + for (int _i662 = 0; _i662 < _list660.size; ++_i662) { - _elem629 = iprot.readI64(); - struct.fileIds.add(_elem629); + _elem661 = iprot.readI64(); + struct.fileIds.add(_elem661); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list631.size); - ByteBuffer _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list663.size); + ByteBuffer _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem632 = iprot.readBinary(); - struct.metadata.add(_elem632); + _elem664 = iprot.readBinary(); + struct.metadata.add(_elem664); } } struct.setMetadataIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 7368e9a..77067c6 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ 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 _list436 = iprot.readListBegin(); - names = new ArrayList(_list436.size); - String _elem437; - for (int _i438 = 0; _i438 < _list436.size; ++_i438) + org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); + names = new ArrayList(_list468.size); + String _elem469; + for (int _i470 = 0; _i470 < _list468.size; ++_i470) { - _elem437 = iprot.readString(); - names.add(_elem437); + _elem469 = iprot.readString(); + names.add(_elem469); } 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 _list439 = iprot.readListBegin(); - exprs = new ArrayList(_list439.size); - DropPartitionsExpr _elem440; - for (int _i441 = 0; _i441 < _list439.size; ++_i441) + org.apache.thrift.protocol.TList _list471 = iprot.readListBegin(); + exprs = new ArrayList(_list471.size); + DropPartitionsExpr _elem472; + for (int _i473 = 0; _i473 < _list471.size; ++_i473) { - _elem440 = new DropPartitionsExpr(); - _elem440.read(iprot); - exprs.add(_elem440); + _elem472 = new DropPartitionsExpr(); + _elem472.read(iprot); + exprs.add(_elem472); } 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 _iter442 : names) + for (String _iter474 : names) { - oprot.writeString(_iter442); + oprot.writeString(_iter474); } 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 _iter443 : exprs) + for (DropPartitionsExpr _iter475 : exprs) { - _iter443.write(oprot); + _iter475.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 _list444 = iprot.readListBegin(); - names = new ArrayList(_list444.size); - String _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + names = new ArrayList(_list476.size); + String _elem477; + for (int _i478 = 0; _i478 < _list476.size; ++_i478) { - _elem445 = iprot.readString(); - names.add(_elem445); + _elem477 = iprot.readString(); + names.add(_elem477); } iprot.readListEnd(); } @@ -264,14 +264,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list447 = iprot.readListBegin(); - exprs = new ArrayList(_list447.size); - DropPartitionsExpr _elem448; - for (int _i449 = 0; _i449 < _list447.size; ++_i449) + org.apache.thrift.protocol.TList _list479 = iprot.readListBegin(); + exprs = new ArrayList(_list479.size); + DropPartitionsExpr _elem480; + for (int _i481 = 0; _i481 < _list479.size; ++_i481) { - _elem448 = new DropPartitionsExpr(); - _elem448.read(iprot); - exprs.add(_elem448); + _elem480 = new DropPartitionsExpr(); + _elem480.read(iprot); + exprs.add(_elem480); } 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 _iter450 : names) + for (String _iter482 : names) { - oprot.writeString(_iter450); + oprot.writeString(_iter482); } 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 _iter451 : exprs) + for (DropPartitionsExpr _iter483 : exprs) { - _iter451.write(oprot); + _iter483.write(oprot); } oprot.writeListEnd(); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLNotNullConstraint.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLNotNullConstraint.java new file mode 100644 index 0000000..01dbc68 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLNotNullConstraint.java @@ -0,0 +1,1005 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class SQLNotNullConstraint 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("SQLNotNullConstraint"); + + 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 NN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("nn_name", org.apache.thrift.protocol.TType.STRING, (short)4); + 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)5); + 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)6); + 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)7); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new SQLNotNullConstraintStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLNotNullConstraintTupleSchemeFactory()); + } + + private String table_db; // required + private String table_name; // required + private String column_name; // required + private String nn_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"), + NN_NAME((short)4, "nn_name"), + ENABLE_CSTR((short)5, "enable_cstr"), + VALIDATE_CSTR((short)6, "validate_cstr"), + RELY_CSTR((short)7, "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: // NN_NAME + return NN_NAME; + case 5: // ENABLE_CSTR + return ENABLE_CSTR; + case 6: // VALIDATE_CSTR + return VALIDATE_CSTR; + case 7: // 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.NN_NAME, new org.apache.thrift.meta_data.FieldMetaData("nn_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(SQLNotNullConstraint.class, metaDataMap); + } + + public SQLNotNullConstraint() { + } + + public SQLNotNullConstraint( + String table_db, + String table_name, + String column_name, + String nn_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.nn_name = nn_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 SQLNotNullConstraint(SQLNotNullConstraint 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.isSetNn_name()) { + this.nn_name = other.nn_name; + } + this.enable_cstr = other.enable_cstr; + this.validate_cstr = other.validate_cstr; + this.rely_cstr = other.rely_cstr; + } + + public SQLNotNullConstraint deepCopy() { + return new SQLNotNullConstraint(this); + } + + @Override + public void clear() { + this.table_db = null; + this.table_name = null; + this.column_name = null; + this.nn_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 getNn_name() { + return this.nn_name; + } + + public void setNn_name(String nn_name) { + this.nn_name = nn_name; + } + + public void unsetNn_name() { + this.nn_name = null; + } + + /** Returns true if field nn_name is set (has been assigned a value) and false otherwise */ + public boolean isSetNn_name() { + return this.nn_name != null; + } + + public void setNn_nameIsSet(boolean value) { + if (!value) { + this.nn_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 NN_NAME: + if (value == null) { + unsetNn_name(); + } else { + setNn_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 NN_NAME: + return getNn_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 NN_NAME: + return isSetNn_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 SQLNotNullConstraint) + return this.equals((SQLNotNullConstraint)that); + return false; + } + + public boolean equals(SQLNotNullConstraint 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_nn_name = true && this.isSetNn_name(); + boolean that_present_nn_name = true && that.isSetNn_name(); + if (this_present_nn_name || that_present_nn_name) { + if (!(this_present_nn_name && that_present_nn_name)) + return false; + if (!this.nn_name.equals(that.nn_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_nn_name = true && (isSetNn_name()); + list.add(present_nn_name); + if (present_nn_name) + list.add(nn_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(SQLNotNullConstraint 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(isSetNn_name()).compareTo(other.isSetNn_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNn_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nn_name, other.nn_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("SQLNotNullConstraint("); + 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("nn_name:"); + if (this.nn_name == null) { + sb.append("null"); + } else { + sb.append(this.nn_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 SQLNotNullConstraintStandardSchemeFactory implements SchemeFactory { + public SQLNotNullConstraintStandardScheme getScheme() { + return new SQLNotNullConstraintStandardScheme(); + } + } + + private static class SQLNotNullConstraintStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLNotNullConstraint 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: // NN_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.nn_name = iprot.readString(); + struct.setNn_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // 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 6: // 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 7: // 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, SQLNotNullConstraint 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.nn_name != null) { + oprot.writeFieldBegin(NN_NAME_FIELD_DESC); + oprot.writeString(struct.nn_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 SQLNotNullConstraintTupleSchemeFactory implements SchemeFactory { + public SQLNotNullConstraintTupleScheme getScheme() { + return new SQLNotNullConstraintTupleScheme(); + } + } + + private static class SQLNotNullConstraintTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLNotNullConstraint 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.isSetNn_name()) { + optionals.set(3); + } + if (struct.isSetEnable_cstr()) { + optionals.set(4); + } + if (struct.isSetValidate_cstr()) { + optionals.set(5); + } + if (struct.isSetRely_cstr()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + 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.isSetNn_name()) { + oprot.writeString(struct.nn_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, SQLNotNullConstraint struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(7); + 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.nn_name = iprot.readString(); + struct.setNn_nameIsSet(true); + } + if (incoming.get(4)) { + struct.enable_cstr = iprot.readBool(); + struct.setEnable_cstrIsSet(true); + } + if (incoming.get(5)) { + struct.validate_cstr = iprot.readBool(); + struct.setValidate_cstrIsSet(true); + } + if (incoming.get(6)) { + struct.rely_cstr = iprot.readBool(); + struct.setRely_cstrIsSet(true); + } + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLUniqueConstraint.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLUniqueConstraint.java new file mode 100644 index 0000000..5b78613 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLUniqueConstraint.java @@ -0,0 +1,1103 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class SQLUniqueConstraint 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("SQLUniqueConstraint"); + + 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 KEY_SEQ_FIELD_DESC = new org.apache.thrift.protocol.TField("key_seq", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField UK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("uk_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 SQLUniqueConstraintStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLUniqueConstraintTupleSchemeFactory()); + } + + private String table_db; // required + private String table_name; // required + private String column_name; // required + private int key_seq; // required + private String uk_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"), + KEY_SEQ((short)4, "key_seq"), + UK_NAME((short)5, "uk_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: // KEY_SEQ + return KEY_SEQ; + case 5: // UK_NAME + return UK_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 __KEY_SEQ_ISSET_ID = 0; + private static final int __ENABLE_CSTR_ISSET_ID = 1; + private static final int __VALIDATE_CSTR_ISSET_ID = 2; + private static final int __RELY_CSTR_ISSET_ID = 3; + 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.KEY_SEQ, new org.apache.thrift.meta_data.FieldMetaData("key_seq", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.UK_NAME, new org.apache.thrift.meta_data.FieldMetaData("uk_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(SQLUniqueConstraint.class, metaDataMap); + } + + public SQLUniqueConstraint() { + } + + public SQLUniqueConstraint( + String table_db, + String table_name, + String column_name, + int key_seq, + String uk_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.key_seq = key_seq; + setKey_seqIsSet(true); + this.uk_name = uk_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 SQLUniqueConstraint(SQLUniqueConstraint 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; + } + this.key_seq = other.key_seq; + if (other.isSetUk_name()) { + this.uk_name = other.uk_name; + } + this.enable_cstr = other.enable_cstr; + this.validate_cstr = other.validate_cstr; + this.rely_cstr = other.rely_cstr; + } + + public SQLUniqueConstraint deepCopy() { + return new SQLUniqueConstraint(this); + } + + @Override + public void clear() { + this.table_db = null; + this.table_name = null; + this.column_name = null; + setKey_seqIsSet(false); + this.key_seq = 0; + this.uk_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 int getKey_seq() { + return this.key_seq; + } + + public void setKey_seq(int key_seq) { + this.key_seq = key_seq; + setKey_seqIsSet(true); + } + + public void unsetKey_seq() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + /** Returns true if field key_seq is set (has been assigned a value) and false otherwise */ + public boolean isSetKey_seq() { + return EncodingUtils.testBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + public void setKey_seqIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEY_SEQ_ISSET_ID, value); + } + + public String getUk_name() { + return this.uk_name; + } + + public void setUk_name(String uk_name) { + this.uk_name = uk_name; + } + + public void unsetUk_name() { + this.uk_name = null; + } + + /** Returns true if field uk_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUk_name() { + return this.uk_name != null; + } + + public void setUk_nameIsSet(boolean value) { + if (!value) { + this.uk_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 KEY_SEQ: + if (value == null) { + unsetKey_seq(); + } else { + setKey_seq((Integer)value); + } + break; + + case UK_NAME: + if (value == null) { + unsetUk_name(); + } else { + setUk_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 KEY_SEQ: + return getKey_seq(); + + case UK_NAME: + return getUk_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 KEY_SEQ: + return isSetKey_seq(); + case UK_NAME: + return isSetUk_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 SQLUniqueConstraint) + return this.equals((SQLUniqueConstraint)that); + return false; + } + + public boolean equals(SQLUniqueConstraint 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_key_seq = true; + boolean that_present_key_seq = true; + if (this_present_key_seq || that_present_key_seq) { + if (!(this_present_key_seq && that_present_key_seq)) + return false; + if (this.key_seq != that.key_seq) + return false; + } + + boolean this_present_uk_name = true && this.isSetUk_name(); + boolean that_present_uk_name = true && that.isSetUk_name(); + if (this_present_uk_name || that_present_uk_name) { + if (!(this_present_uk_name && that_present_uk_name)) + return false; + if (!this.uk_name.equals(that.uk_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_key_seq = true; + list.add(present_key_seq); + if (present_key_seq) + list.add(key_seq); + + boolean present_uk_name = true && (isSetUk_name()); + list.add(present_uk_name); + if (present_uk_name) + list.add(uk_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(SQLUniqueConstraint 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(isSetKey_seq()).compareTo(other.isSetKey_seq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetKey_seq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_seq, other.key_seq); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUk_name()).compareTo(other.isSetUk_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUk_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uk_name, other.uk_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("SQLUniqueConstraint("); + 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("key_seq:"); + sb.append(this.key_seq); + first = false; + if (!first) sb.append(", "); + sb.append("uk_name:"); + if (this.uk_name == null) { + sb.append("null"); + } else { + sb.append(this.uk_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 SQLUniqueConstraintStandardSchemeFactory implements SchemeFactory { + public SQLUniqueConstraintStandardScheme getScheme() { + return new SQLUniqueConstraintStandardScheme(); + } + } + + private static class SQLUniqueConstraintStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLUniqueConstraint 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: // KEY_SEQ + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // UK_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.uk_name = iprot.readString(); + struct.setUk_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, SQLUniqueConstraint 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(); + } + oprot.writeFieldBegin(KEY_SEQ_FIELD_DESC); + oprot.writeI32(struct.key_seq); + oprot.writeFieldEnd(); + if (struct.uk_name != null) { + oprot.writeFieldBegin(UK_NAME_FIELD_DESC); + oprot.writeString(struct.uk_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 SQLUniqueConstraintTupleSchemeFactory implements SchemeFactory { + public SQLUniqueConstraintTupleScheme getScheme() { + return new SQLUniqueConstraintTupleScheme(); + } + } + + private static class SQLUniqueConstraintTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLUniqueConstraint 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.isSetKey_seq()) { + optionals.set(3); + } + if (struct.isSetUk_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.isSetKey_seq()) { + oprot.writeI32(struct.key_seq); + } + if (struct.isSetUk_name()) { + oprot.writeString(struct.uk_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, SQLUniqueConstraint 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.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } + if (incoming.get(4)) { + struct.uk_name = iprot.readString(); + struct.setUk_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 metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index ed86165..1dd13cc 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ 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 _list534 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list534.size); - ShowCompactResponseElement _elem535; - for (int _i536 = 0; _i536 < _list534.size; ++_i536) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list566.size); + ShowCompactResponseElement _elem567; + for (int _i568 = 0; _i568 < _list566.size; ++_i568) { - _elem535 = new ShowCompactResponseElement(); - _elem535.read(iprot); - struct.compacts.add(_elem535); + _elem567 = new ShowCompactResponseElement(); + _elem567.read(iprot); + struct.compacts.add(_elem567); } 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 _iter537 : struct.compacts) + for (ShowCompactResponseElement _iter569 : struct.compacts) { - _iter537.write(oprot); + _iter569.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 _iter538 : struct.compacts) + for (ShowCompactResponseElement _iter570 : struct.compacts) { - _iter538.write(oprot); + _iter570.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 _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list539.size); - ShowCompactResponseElement _elem540; - for (int _i541 = 0; _i541 < _list539.size; ++_i541) + org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list571.size); + ShowCompactResponseElement _elem572; + for (int _i573 = 0; _i573 < _list571.size; ++_i573) { - _elem540 = new ShowCompactResponseElement(); - _elem540.read(iprot); - struct.compacts.add(_elem540); + _elem572 = new ShowCompactResponseElement(); + _elem572.read(iprot); + struct.compacts.add(_elem572); } } struct.setCompactsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index da181e6..11ef050 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ 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 _list500 = iprot.readListBegin(); - struct.locks = new ArrayList(_list500.size); - ShowLocksResponseElement _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); + struct.locks = new ArrayList(_list532.size); + ShowLocksResponseElement _elem533; + for (int _i534 = 0; _i534 < _list532.size; ++_i534) { - _elem501 = new ShowLocksResponseElement(); - _elem501.read(iprot); - struct.locks.add(_elem501); + _elem533 = new ShowLocksResponseElement(); + _elem533.read(iprot); + struct.locks.add(_elem533); } 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 _iter503 : struct.locks) + for (ShowLocksResponseElement _iter535 : struct.locks) { - _iter503.write(oprot); + _iter535.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 _iter504 : struct.locks) + for (ShowLocksResponseElement _iter536 : struct.locks) { - _iter504.write(oprot); + _iter536.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 _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list505.size); - ShowLocksResponseElement _elem506; - for (int _i507 = 0; _i507 < _list505.size; ++_i507) + org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list537.size); + ShowLocksResponseElement _elem538; + for (int _i539 = 0; _i539 < _list537.size; ++_i539) { - _elem506 = new ShowLocksResponseElement(); - _elem506.read(iprot); - struct.locks.add(_elem506); + _elem538 = new ShowLocksResponseElement(); + _elem538.read(iprot); + struct.locks.add(_elem538); } } struct.setLocksIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index c8c762a..b4a0490 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ 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 _list388 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list388.size); - String _elem389; - for (int _i390 = 0; _i390 < _list388.size; ++_i390) + org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list420.size); + String _elem421; + for (int _i422 = 0; _i422 < _list420.size; ++_i422) { - _elem389 = iprot.readString(); - struct.colNames.add(_elem389); + _elem421 = iprot.readString(); + struct.colNames.add(_elem421); } 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 _iter391 : struct.colNames) + for (String _iter423 : struct.colNames) { - oprot.writeString(_iter391); + oprot.writeString(_iter423); } 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 _iter392 : struct.colNames) + for (String _iter424 : struct.colNames) { - oprot.writeString(_iter392); + oprot.writeString(_iter424); } } } @@ -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 _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list393.size); - String _elem394; - for (int _i395 = 0; _i395 < _list393.size; ++_i395) + org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list425.size); + String _elem426; + for (int _i427 = 0; _i427 < _list425.size; ++_i427) { - _elem394 = iprot.readString(); - struct.colNames.add(_elem394); + _elem426 = iprot.readString(); + struct.colNames.add(_elem426); } } struct.setColNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index 49da294..3a2c0fb 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ 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 _list362 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list362.size); - ColumnStatisticsObj _elem363; - for (int _i364 = 0; _i364 < _list362.size; ++_i364) + org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list394.size); + ColumnStatisticsObj _elem395; + for (int _i396 = 0; _i396 < _list394.size; ++_i396) { - _elem363 = new ColumnStatisticsObj(); - _elem363.read(iprot); - struct.tableStats.add(_elem363); + _elem395 = new ColumnStatisticsObj(); + _elem395.read(iprot); + struct.tableStats.add(_elem395); } 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 _iter365 : struct.tableStats) + for (ColumnStatisticsObj _iter397 : struct.tableStats) { - _iter365.write(oprot); + _iter397.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 _iter366 : struct.tableStats) + for (ColumnStatisticsObj _iter398 : struct.tableStats) { - _iter366.write(oprot); + _iter398.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 _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list367.size); - ColumnStatisticsObj _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + org.apache.thrift.protocol.TList _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list399.size); + ColumnStatisticsObj _elem400; + for (int _i401 = 0; _i401 < _list399.size; ++_i401) { - _elem368 = new ColumnStatisticsObj(); - _elem368.read(iprot); - struct.tableStats.add(_elem368); + _elem400 = new ColumnStatisticsObj(); + _elem400.read(iprot); + struct.tableStats.add(_elem400); } } struct.setTableStatsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 1915150..1ad76ea 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -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) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -86,6 +86,10 @@ public void add_foreign_key(AddForeignKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void add_unique_constraint(AddUniqueConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + + public void add_not_null_constraint(AddNotNullConstraintRequest 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; @@ -216,6 +220,10 @@ public ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + + public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest 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; @@ -390,7 +398,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, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void drop_constraint(DropConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -398,6 +406,10 @@ public void add_foreign_key(AddForeignKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_unique_constraint(AddUniqueConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void add_not_null_constraint(AddNotNullConstraintRequest 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; @@ -528,6 +540,10 @@ public void get_foreign_keys(ForeignKeysRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_unique_constraints(UniqueConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void get_not_null_constraints(NotNullConstraintsRequest 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; @@ -1216,18 +1232,20 @@ public void recv_create_table_with_environment_context() throws AlreadyExistsExc return; } - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); recv_create_table_with_constraints(); } - public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys) throws org.apache.thrift.TException + public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws org.apache.thrift.TException { create_table_with_constraints_args args = new create_table_with_constraints_args(); args.setTbl(tbl); args.setPrimaryKeys(primaryKeys); args.setForeignKeys(foreignKeys); + args.setUniqueConstraints(uniqueConstraints); + args.setNotNullConstraints(notNullConstraints); sendBase("create_table_with_constraints", args); } @@ -1328,6 +1346,58 @@ public void recv_add_foreign_key() throws NoSuchObjectException, MetaException, return; } + public void add_unique_constraint(AddUniqueConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_unique_constraint(req); + recv_add_unique_constraint(); + } + + public void send_add_unique_constraint(AddUniqueConstraintRequest req) throws org.apache.thrift.TException + { + add_unique_constraint_args args = new add_unique_constraint_args(); + args.setReq(req); + sendBase("add_unique_constraint", args); + } + + public void recv_add_unique_constraint() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_unique_constraint_result result = new add_unique_constraint_result(); + receiveBase(result, "add_unique_constraint"); + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + return; + } + + public void add_not_null_constraint(AddNotNullConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_not_null_constraint(req); + recv_add_not_null_constraint(); + } + + public void send_add_not_null_constraint(AddNotNullConstraintRequest req) throws org.apache.thrift.TException + { + add_not_null_constraint_args args = new add_not_null_constraint_args(); + args.setReq(req); + sendBase("add_not_null_constraint", args); + } + + public void recv_add_not_null_constraint() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_not_null_constraint_result result = new add_not_null_constraint_result(); + receiveBase(result, "add_not_null_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); @@ -3337,6 +3407,64 @@ public ForeignKeysResponse recv_get_foreign_keys() throws MetaException, NoSuchO throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result"); } + public UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_unique_constraints(request); + return recv_get_unique_constraints(); + } + + public void send_get_unique_constraints(UniqueConstraintsRequest request) throws org.apache.thrift.TException + { + get_unique_constraints_args args = new get_unique_constraints_args(); + args.setRequest(request); + sendBase("get_unique_constraints", args); + } + + public UniqueConstraintsResponse recv_get_unique_constraints() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_unique_constraints_result result = new get_unique_constraints_result(); + receiveBase(result, "get_unique_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_unique_constraints failed: unknown result"); + } + + public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_not_null_constraints(request); + return recv_get_not_null_constraints(); + } + + public void send_get_not_null_constraints(NotNullConstraintsRequest request) throws org.apache.thrift.TException + { + get_not_null_constraints_args args = new get_not_null_constraints_args(); + args.setRequest(request); + sendBase("get_not_null_constraints", args); + } + + public NotNullConstraintsResponse recv_get_not_null_constraints() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_not_null_constraints_result result = new get_not_null_constraints_result(); + receiveBase(result, "get_not_null_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_not_null_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); @@ -5735,9 +5863,9 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_table_with_constraints_call method_call = new create_table_with_constraints_call(tbl, primaryKeys, foreignKeys, resultHandler, this, ___protocolFactory, ___transport); + create_table_with_constraints_call method_call = new create_table_with_constraints_call(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -5746,11 +5874,15 @@ public void create_table_with_constraints(Table tbl, List primary private Table tbl; private List primaryKeys; private List foreignKeys; - public create_table_with_constraints_call(Table tbl, List primaryKeys, List foreignKeys, 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 uniqueConstraints; + private List notNullConstraints; + public create_table_with_constraints_call(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.tbl = tbl; this.primaryKeys = primaryKeys; this.foreignKeys = foreignKeys; + this.uniqueConstraints = uniqueConstraints; + this.notNullConstraints = notNullConstraints; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -5759,6 +5891,8 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa args.setTbl(tbl); args.setPrimaryKeys(primaryKeys); args.setForeignKeys(foreignKeys); + args.setUniqueConstraints(uniqueConstraints); + args.setNotNullConstraints(notNullConstraints); args.write(prot); prot.writeMessageEnd(); } @@ -5869,6 +6003,70 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } + public void add_unique_constraint(AddUniqueConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_unique_constraint_call method_call = new add_unique_constraint_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class add_unique_constraint_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddUniqueConstraintRequest req; + public add_unique_constraint_call(AddUniqueConstraintRequest 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_unique_constraint", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_unique_constraint_args args = new add_unique_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_unique_constraint(); + } + } + + public void add_not_null_constraint(AddNotNullConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_not_null_constraint_call method_call = new add_not_null_constraint_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class add_not_null_constraint_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddNotNullConstraintRequest req; + public add_not_null_constraint_call(AddNotNullConstraintRequest 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_not_null_constraint", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_not_null_constraint_args args = new add_not_null_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_not_null_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); @@ -8339,6 +8537,70 @@ public ForeignKeysResponse getResult() throws MetaException, NoSuchObjectExcepti } } + public void get_unique_constraints(UniqueConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_unique_constraints_call method_call = new get_unique_constraints_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_unique_constraints_call extends org.apache.thrift.async.TAsyncMethodCall { + private UniqueConstraintsRequest request; + public get_unique_constraints_call(UniqueConstraintsRequest 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_unique_constraints", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_unique_constraints_args args = new get_unique_constraints_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public UniqueConstraintsResponse 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_unique_constraints(); + } + } + + public void get_not_null_constraints(NotNullConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_not_null_constraints_call method_call = new get_not_null_constraints_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_not_null_constraints_call extends org.apache.thrift.async.TAsyncMethodCall { + private NotNullConstraintsRequest request; + public get_not_null_constraints_call(NotNullConstraintsRequest 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_not_null_constraints", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_not_null_constraints_args args = new get_not_null_constraints_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public NotNullConstraintsResponse 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_not_null_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); @@ -10587,6 +10849,8 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public add_unique_constraint() { + super("add_unique_constraint"); + } + + public add_unique_constraint_args getEmptyArgsInstance() { + return new add_unique_constraint_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_unique_constraint_result getResult(I iface, add_unique_constraint_args args) throws org.apache.thrift.TException { + add_unique_constraint_result result = new add_unique_constraint_result(); + try { + iface.add_unique_constraint(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + + public static class add_not_null_constraint extends org.apache.thrift.ProcessFunction { + public add_not_null_constraint() { + super("add_not_null_constraint"); + } + + public add_not_null_constraint_args getEmptyArgsInstance() { + return new add_not_null_constraint_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_not_null_constraint_result getResult(I iface, add_not_null_constraint_args args) throws org.apache.thrift.TException { + add_not_null_constraint_result result = new add_not_null_constraint_result(); + try { + iface.add_not_null_constraint(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + public static class drop_table extends org.apache.thrift.ProcessFunction { public drop_table() { super("drop_table"); @@ -13032,6 +13350,58 @@ public get_foreign_keys_result getResult(I iface, get_foreign_keys_args args) th } } + public static class get_unique_constraints extends org.apache.thrift.ProcessFunction { + public get_unique_constraints() { + super("get_unique_constraints"); + } + + public get_unique_constraints_args getEmptyArgsInstance() { + return new get_unique_constraints_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_unique_constraints_result getResult(I iface, get_unique_constraints_args args) throws org.apache.thrift.TException { + get_unique_constraints_result result = new get_unique_constraints_result(); + try { + result.success = iface.get_unique_constraints(args.request); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + + public static class get_not_null_constraints extends org.apache.thrift.ProcessFunction { + public get_not_null_constraints() { + super("get_not_null_constraints"); + } + + public get_not_null_constraints_args getEmptyArgsInstance() { + return new get_not_null_constraints_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_not_null_constraints_result getResult(I iface, get_not_null_constraints_args args) throws org.apache.thrift.TException { + get_not_null_constraints_result result = new get_not_null_constraints_result(); + try { + result.success = iface.get_not_null_constraints(args.request); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + public static class update_table_column_statistics extends org.apache.thrift.ProcessFunction { public update_table_column_statistics() { super("update_table_column_statistics"); @@ -14677,6 +15047,8 @@ protected AsyncProcessor(I iface, Map resultHandler) throws TException { - iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys,resultHandler); + iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints,resultHandler); } } @@ -16208,20 +16582,20 @@ public void start(I iface, add_foreign_key_args args, org.apache.thrift.async.As } } - public static class drop_table extends org.apache.thrift.AsyncProcessFunction { - public drop_table() { - super("drop_table"); + public static class add_unique_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_unique_constraint() { + super("add_unique_constraint"); } - public drop_table_args getEmptyArgsInstance() { - return new drop_table_args(); + public add_unique_constraint_args getEmptyArgsInstance() { + return new add_unique_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) { - drop_table_result result = new drop_table_result(); + add_unique_constraint_result result = new add_unique_constraint_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -16233,15 +16607,137 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - drop_table_result result = new drop_table_result(); + add_unique_constraint_result result = new add_unique_constraint_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); + 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_unique_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_unique_constraint(args.req,resultHandler); + } + } + + public static class add_not_null_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_not_null_constraint() { + super("add_not_null_constraint"); + } + + public add_not_null_constraint_args getEmptyArgsInstance() { + return new add_not_null_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_not_null_constraint_result result = new add_not_null_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_not_null_constraint_result result = new add_not_null_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_not_null_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_not_null_constraint(args.req,resultHandler); + } + } + + public static class drop_table extends org.apache.thrift.AsyncProcessFunction { + public drop_table() { + super("drop_table"); + } + + public drop_table_args getEmptyArgsInstance() { + return new drop_table_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) { + drop_table_result result = new drop_table_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; + drop_table_result result = new drop_table_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; + result.setO3IsSet(true); msg = result; } else @@ -20289,6 +20785,130 @@ public void start(I iface, get_foreign_keys_args args, org.apache.thrift.async.A } } + public static class get_unique_constraints extends org.apache.thrift.AsyncProcessFunction { + public get_unique_constraints() { + super("get_unique_constraints"); + } + + public get_unique_constraints_args getEmptyArgsInstance() { + return new get_unique_constraints_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(UniqueConstraintsResponse o) { + get_unique_constraints_result result = new get_unique_constraints_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_unique_constraints_result result = new get_unique_constraints_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) 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, get_unique_constraints_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_unique_constraints(args.request,resultHandler); + } + } + + public static class get_not_null_constraints extends org.apache.thrift.AsyncProcessFunction { + public get_not_null_constraints() { + super("get_not_null_constraints"); + } + + public get_not_null_constraints_args getEmptyArgsInstance() { + return new get_not_null_constraints_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(NotNullConstraintsResponse o) { + get_not_null_constraints_result result = new get_not_null_constraints_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_not_null_constraints_result result = new get_not_null_constraints_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) 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, get_not_null_constraints_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_not_null_constraints(args.request,resultHandler); + } + } + public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { public update_table_column_statistics() { super("update_table_column_statistics"); @@ -29563,13 +30183,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 _list674 = iprot.readListBegin(); - struct.success = new ArrayList(_list674.size); - String _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.success = new ArrayList(_list706.size); + String _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem675 = iprot.readString(); - struct.success.add(_elem675); + _elem707 = iprot.readString(); + struct.success.add(_elem707); } iprot.readListEnd(); } @@ -29604,9 +30224,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 _iter677 : struct.success) + for (String _iter709 : struct.success) { - oprot.writeString(_iter677); + oprot.writeString(_iter709); } oprot.writeListEnd(); } @@ -29645,9 +30265,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter678 : struct.success) + for (String _iter710 : struct.success) { - oprot.writeString(_iter678); + oprot.writeString(_iter710); } } } @@ -29662,13 +30282,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 _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list679.size); - String _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list711.size); + String _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem680 = iprot.readString(); - struct.success.add(_elem680); + _elem712 = iprot.readString(); + struct.success.add(_elem712); } } struct.setSuccessIsSet(true); @@ -30322,13 +30942,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 _list682 = iprot.readListBegin(); - struct.success = new ArrayList(_list682.size); - String _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.success = new ArrayList(_list714.size); + String _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem683 = iprot.readString(); - struct.success.add(_elem683); + _elem715 = iprot.readString(); + struct.success.add(_elem715); } iprot.readListEnd(); } @@ -30363,9 +30983,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 _iter685 : struct.success) + for (String _iter717 : struct.success) { - oprot.writeString(_iter685); + oprot.writeString(_iter717); } oprot.writeListEnd(); } @@ -30404,9 +31024,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter686 : struct.success) + for (String _iter718 : struct.success) { - oprot.writeString(_iter686); + oprot.writeString(_iter718); } } } @@ -30421,13 +31041,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 _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list687.size); - String _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list719.size); + String _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem688 = iprot.readString(); - struct.success.add(_elem688); + _elem720 = iprot.readString(); + struct.success.add(_elem720); } } struct.setSuccessIsSet(true); @@ -35034,16 +35654,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 _map690 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map690.size); - String _key691; - Type _val692; - for (int _i693 = 0; _i693 < _map690.size; ++_i693) + org.apache.thrift.protocol.TMap _map722 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map722.size); + String _key723; + Type _val724; + for (int _i725 = 0; _i725 < _map722.size; ++_i725) { - _key691 = iprot.readString(); - _val692 = new Type(); - _val692.read(iprot); - struct.success.put(_key691, _val692); + _key723 = iprot.readString(); + _val724 = new Type(); + _val724.read(iprot); + struct.success.put(_key723, _val724); } iprot.readMapEnd(); } @@ -35078,10 +35698,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 _iter694 : struct.success.entrySet()) + for (Map.Entry _iter726 : struct.success.entrySet()) { - oprot.writeString(_iter694.getKey()); - _iter694.getValue().write(oprot); + oprot.writeString(_iter726.getKey()); + _iter726.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -35120,10 +35740,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 _iter695 : struct.success.entrySet()) + for (Map.Entry _iter727 : struct.success.entrySet()) { - oprot.writeString(_iter695.getKey()); - _iter695.getValue().write(oprot); + oprot.writeString(_iter727.getKey()); + _iter727.getValue().write(oprot); } } } @@ -35138,16 +35758,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 _map696 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map696.size); - String _key697; - Type _val698; - for (int _i699 = 0; _i699 < _map696.size; ++_i699) + org.apache.thrift.protocol.TMap _map728 = 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*_map728.size); + String _key729; + Type _val730; + for (int _i731 = 0; _i731 < _map728.size; ++_i731) { - _key697 = iprot.readString(); - _val698 = new Type(); - _val698.read(iprot); - struct.success.put(_key697, _val698); + _key729 = iprot.readString(); + _val730 = new Type(); + _val730.read(iprot); + struct.success.put(_key729, _val730); } } struct.setSuccessIsSet(true); @@ -36182,14 +36802,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 _list700 = iprot.readListBegin(); - struct.success = new ArrayList(_list700.size); - FieldSchema _elem701; - for (int _i702 = 0; _i702 < _list700.size; ++_i702) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.success = new ArrayList(_list732.size); + FieldSchema _elem733; + for (int _i734 = 0; _i734 < _list732.size; ++_i734) { - _elem701 = new FieldSchema(); - _elem701.read(iprot); - struct.success.add(_elem701); + _elem733 = new FieldSchema(); + _elem733.read(iprot); + struct.success.add(_elem733); } iprot.readListEnd(); } @@ -36242,9 +36862,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 _iter703 : struct.success) + for (FieldSchema _iter735 : struct.success) { - _iter703.write(oprot); + _iter735.write(oprot); } oprot.writeListEnd(); } @@ -36299,9 +36919,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter704 : struct.success) + for (FieldSchema _iter736 : struct.success) { - _iter704.write(oprot); + _iter736.write(oprot); } } } @@ -36322,14 +36942,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 _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list705.size); - FieldSchema _elem706; - for (int _i707 = 0; _i707 < _list705.size; ++_i707) + org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list737.size); + FieldSchema _elem738; + for (int _i739 = 0; _i739 < _list737.size; ++_i739) { - _elem706 = new FieldSchema(); - _elem706.read(iprot); - struct.success.add(_elem706); + _elem738 = new FieldSchema(); + _elem738.read(iprot); + struct.success.add(_elem738); } } struct.setSuccessIsSet(true); @@ -37483,14 +38103,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 _list708 = iprot.readListBegin(); - struct.success = new ArrayList(_list708.size); - FieldSchema _elem709; - for (int _i710 = 0; _i710 < _list708.size; ++_i710) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.success = new ArrayList(_list740.size); + FieldSchema _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem709 = new FieldSchema(); - _elem709.read(iprot); - struct.success.add(_elem709); + _elem741 = new FieldSchema(); + _elem741.read(iprot); + struct.success.add(_elem741); } iprot.readListEnd(); } @@ -37543,9 +38163,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 _iter711 : struct.success) + for (FieldSchema _iter743 : struct.success) { - _iter711.write(oprot); + _iter743.write(oprot); } oprot.writeListEnd(); } @@ -37600,9 +38220,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter712 : struct.success) + for (FieldSchema _iter744 : struct.success) { - _iter712.write(oprot); + _iter744.write(oprot); } } } @@ -37623,14 +38243,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 _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list713.size); - FieldSchema _elem714; - for (int _i715 = 0; _i715 < _list713.size; ++_i715) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list745.size); + FieldSchema _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem714 = new FieldSchema(); - _elem714.read(iprot); - struct.success.add(_elem714); + _elem746 = new FieldSchema(); + _elem746.read(iprot); + struct.success.add(_elem746); } } struct.setSuccessIsSet(true); @@ -38675,14 +39295,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 _list716 = iprot.readListBegin(); - struct.success = new ArrayList(_list716.size); - FieldSchema _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.success = new ArrayList(_list748.size); + FieldSchema _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem717 = new FieldSchema(); - _elem717.read(iprot); - struct.success.add(_elem717); + _elem749 = new FieldSchema(); + _elem749.read(iprot); + struct.success.add(_elem749); } iprot.readListEnd(); } @@ -38735,9 +39355,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 _iter719 : struct.success) + for (FieldSchema _iter751 : struct.success) { - _iter719.write(oprot); + _iter751.write(oprot); } oprot.writeListEnd(); } @@ -38792,9 +39412,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter720 : struct.success) + for (FieldSchema _iter752 : struct.success) { - _iter720.write(oprot); + _iter752.write(oprot); } } } @@ -38815,14 +39435,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 _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list721.size); - FieldSchema _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list753.size); + FieldSchema _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem722 = new FieldSchema(); - _elem722.read(iprot); - struct.success.add(_elem722); + _elem754 = new FieldSchema(); + _elem754.read(iprot); + struct.success.add(_elem754); } } struct.setSuccessIsSet(true); @@ -39976,14 +40596,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 _list724 = iprot.readListBegin(); - struct.success = new ArrayList(_list724.size); - FieldSchema _elem725; - for (int _i726 = 0; _i726 < _list724.size; ++_i726) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.success = new ArrayList(_list756.size); + FieldSchema _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem725 = new FieldSchema(); - _elem725.read(iprot); - struct.success.add(_elem725); + _elem757 = new FieldSchema(); + _elem757.read(iprot); + struct.success.add(_elem757); } iprot.readListEnd(); } @@ -40036,9 +40656,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 _iter727 : struct.success) + for (FieldSchema _iter759 : struct.success) { - _iter727.write(oprot); + _iter759.write(oprot); } oprot.writeListEnd(); } @@ -40093,9 +40713,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter728 : struct.success) + for (FieldSchema _iter760 : struct.success) { - _iter728.write(oprot); + _iter760.write(oprot); } } } @@ -40116,14 +40736,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 _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list729.size); - FieldSchema _elem730; - for (int _i731 = 0; _i731 < _list729.size; ++_i731) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + FieldSchema _elem762; + for (int _i763 = 0; _i763 < _list761.size; ++_i763) { - _elem730 = new FieldSchema(); - _elem730.read(iprot); - struct.success.add(_elem730); + _elem762 = new FieldSchema(); + _elem762.read(iprot); + struct.success.add(_elem762); } } struct.setSuccessIsSet(true); @@ -42345,6 +42965,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField PRIMARY_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeys", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField FOREIGN_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeys", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraints", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraints", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -42355,12 +42977,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en private Table tbl; // required private List primaryKeys; // required private List foreignKeys; // required + private List uniqueConstraints; // required + private List notNullConstraints; // 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 { TBL((short)1, "tbl"), PRIMARY_KEYS((short)2, "primaryKeys"), - FOREIGN_KEYS((short)3, "foreignKeys"); + FOREIGN_KEYS((short)3, "foreignKeys"), + UNIQUE_CONSTRAINTS((short)4, "uniqueConstraints"), + NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"); private static final Map byName = new HashMap(); @@ -42381,6 +43007,10 @@ public static _Fields findByThriftId(int fieldId) { return PRIMARY_KEYS; case 3: // FOREIGN_KEYS return FOREIGN_KEYS; + case 4: // UNIQUE_CONSTRAINTS + return UNIQUE_CONSTRAINTS; + case 5: // NOT_NULL_CONSTRAINTS + return NOT_NULL_CONSTRAINTS; default: return null; } @@ -42432,6 +43062,12 @@ public String getFieldName() { tmpMap.put(_Fields.FOREIGN_KEYS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeys", 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, SQLForeignKey.class)))); + tmpMap.put(_Fields.UNIQUE_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraints", 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, SQLUniqueConstraint.class)))); + tmpMap.put(_Fields.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLNotNullConstraint.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_args.class, metaDataMap); } @@ -42442,12 +43078,16 @@ public create_table_with_constraints_args() { public create_table_with_constraints_args( Table tbl, List primaryKeys, - List foreignKeys) + List foreignKeys, + List uniqueConstraints, + List notNullConstraints) { this(); this.tbl = tbl; this.primaryKeys = primaryKeys; this.foreignKeys = foreignKeys; + this.uniqueConstraints = uniqueConstraints; + this.notNullConstraints = notNullConstraints; } /** @@ -42471,6 +43111,20 @@ public create_table_with_constraints_args(create_table_with_constraints_args oth } this.foreignKeys = __this__foreignKeys; } + if (other.isSetUniqueConstraints()) { + List __this__uniqueConstraints = new ArrayList(other.uniqueConstraints.size()); + for (SQLUniqueConstraint other_element : other.uniqueConstraints) { + __this__uniqueConstraints.add(new SQLUniqueConstraint(other_element)); + } + this.uniqueConstraints = __this__uniqueConstraints; + } + if (other.isSetNotNullConstraints()) { + List __this__notNullConstraints = new ArrayList(other.notNullConstraints.size()); + for (SQLNotNullConstraint other_element : other.notNullConstraints) { + __this__notNullConstraints.add(new SQLNotNullConstraint(other_element)); + } + this.notNullConstraints = __this__notNullConstraints; + } } public create_table_with_constraints_args deepCopy() { @@ -42482,6 +43136,8 @@ public void clear() { this.tbl = null; this.primaryKeys = null; this.foreignKeys = null; + this.uniqueConstraints = null; + this.notNullConstraints = null; } public Table getTbl() { @@ -42583,6 +43239,82 @@ public void setForeignKeysIsSet(boolean value) { } } + public int getUniqueConstraintsSize() { + return (this.uniqueConstraints == null) ? 0 : this.uniqueConstraints.size(); + } + + public java.util.Iterator getUniqueConstraintsIterator() { + return (this.uniqueConstraints == null) ? null : this.uniqueConstraints.iterator(); + } + + public void addToUniqueConstraints(SQLUniqueConstraint elem) { + if (this.uniqueConstraints == null) { + this.uniqueConstraints = new ArrayList(); + } + this.uniqueConstraints.add(elem); + } + + public List getUniqueConstraints() { + return this.uniqueConstraints; + } + + public void setUniqueConstraints(List uniqueConstraints) { + this.uniqueConstraints = uniqueConstraints; + } + + public void unsetUniqueConstraints() { + this.uniqueConstraints = null; + } + + /** Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetUniqueConstraints() { + return this.uniqueConstraints != null; + } + + public void setUniqueConstraintsIsSet(boolean value) { + if (!value) { + this.uniqueConstraints = null; + } + } + + public int getNotNullConstraintsSize() { + return (this.notNullConstraints == null) ? 0 : this.notNullConstraints.size(); + } + + public java.util.Iterator getNotNullConstraintsIterator() { + return (this.notNullConstraints == null) ? null : this.notNullConstraints.iterator(); + } + + public void addToNotNullConstraints(SQLNotNullConstraint elem) { + if (this.notNullConstraints == null) { + this.notNullConstraints = new ArrayList(); + } + this.notNullConstraints.add(elem); + } + + public List getNotNullConstraints() { + return this.notNullConstraints; + } + + public void setNotNullConstraints(List notNullConstraints) { + this.notNullConstraints = notNullConstraints; + } + + public void unsetNotNullConstraints() { + this.notNullConstraints = null; + } + + /** Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetNotNullConstraints() { + return this.notNullConstraints != null; + } + + public void setNotNullConstraintsIsSet(boolean value) { + if (!value) { + this.notNullConstraints = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TBL: @@ -42609,6 +43341,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case UNIQUE_CONSTRAINTS: + if (value == null) { + unsetUniqueConstraints(); + } else { + setUniqueConstraints((List)value); + } + break; + + case NOT_NULL_CONSTRAINTS: + if (value == null) { + unsetNotNullConstraints(); + } else { + setNotNullConstraints((List)value); + } + break; + } } @@ -42623,6 +43371,12 @@ public Object getFieldValue(_Fields field) { case FOREIGN_KEYS: return getForeignKeys(); + case UNIQUE_CONSTRAINTS: + return getUniqueConstraints(); + + case NOT_NULL_CONSTRAINTS: + return getNotNullConstraints(); + } throw new IllegalStateException(); } @@ -42640,6 +43394,10 @@ public boolean isSet(_Fields field) { return isSetPrimaryKeys(); case FOREIGN_KEYS: return isSetForeignKeys(); + case UNIQUE_CONSTRAINTS: + return isSetUniqueConstraints(); + case NOT_NULL_CONSTRAINTS: + return isSetNotNullConstraints(); } throw new IllegalStateException(); } @@ -42684,6 +43442,24 @@ public boolean equals(create_table_with_constraints_args that) { return false; } + boolean this_present_uniqueConstraints = true && this.isSetUniqueConstraints(); + boolean that_present_uniqueConstraints = true && that.isSetUniqueConstraints(); + if (this_present_uniqueConstraints || that_present_uniqueConstraints) { + if (!(this_present_uniqueConstraints && that_present_uniqueConstraints)) + return false; + if (!this.uniqueConstraints.equals(that.uniqueConstraints)) + return false; + } + + boolean this_present_notNullConstraints = true && this.isSetNotNullConstraints(); + boolean that_present_notNullConstraints = true && that.isSetNotNullConstraints(); + if (this_present_notNullConstraints || that_present_notNullConstraints) { + if (!(this_present_notNullConstraints && that_present_notNullConstraints)) + return false; + if (!this.notNullConstraints.equals(that.notNullConstraints)) + return false; + } + return true; } @@ -42706,6 +43482,16 @@ public int hashCode() { if (present_foreignKeys) list.add(foreignKeys); + boolean present_uniqueConstraints = true && (isSetUniqueConstraints()); + list.add(present_uniqueConstraints); + if (present_uniqueConstraints) + list.add(uniqueConstraints); + + boolean present_notNullConstraints = true && (isSetNotNullConstraints()); + list.add(present_notNullConstraints); + if (present_notNullConstraints) + list.add(notNullConstraints); + return list.hashCode(); } @@ -42747,6 +43533,26 @@ public int compareTo(create_table_with_constraints_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUniqueConstraints()).compareTo(other.isSetUniqueConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniqueConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraints, other.uniqueConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotNullConstraints()).compareTo(other.isSetNotNullConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotNullConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notNullConstraints, other.notNullConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -42790,6 +43596,22 @@ public String toString() { sb.append(this.foreignKeys); } first = false; + if (!first) sb.append(", "); + sb.append("uniqueConstraints:"); + if (this.uniqueConstraints == null) { + sb.append("null"); + } else { + sb.append(this.uniqueConstraints); + } + first = false; + if (!first) sb.append(", "); + sb.append("notNullConstraints:"); + if (this.notNullConstraints == null) { + sb.append("null"); + } else { + sb.append(this.notNullConstraints); + } + first = false; sb.append(")"); return sb.toString(); } @@ -42848,14 +43670,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 _list732 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list732.size); - SQLPrimaryKey _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list764.size); + SQLPrimaryKey _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem733 = new SQLPrimaryKey(); - _elem733.read(iprot); - struct.primaryKeys.add(_elem733); + _elem765 = new SQLPrimaryKey(); + _elem765.read(iprot); + struct.primaryKeys.add(_elem765); } iprot.readListEnd(); } @@ -42867,14 +43689,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 _list735 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list735.size); - SQLForeignKey _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list767 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list767.size); + SQLForeignKey _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem736 = new SQLForeignKey(); - _elem736.read(iprot); - struct.foreignKeys.add(_elem736); + _elem768 = new SQLForeignKey(); + _elem768.read(iprot); + struct.foreignKeys.add(_elem768); } iprot.readListEnd(); } @@ -42883,6 +43705,44 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // UNIQUE_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list770 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list770.size); + SQLUniqueConstraint _elem771; + for (int _i772 = 0; _i772 < _list770.size; ++_i772) + { + _elem771 = new SQLUniqueConstraint(); + _elem771.read(iprot); + struct.uniqueConstraints.add(_elem771); + } + iprot.readListEnd(); + } + struct.setUniqueConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // NOT_NULL_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list773 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list773.size); + SQLNotNullConstraint _elem774; + for (int _i775 = 0; _i775 < _list773.size; ++_i775) + { + _elem774 = new SQLNotNullConstraint(); + _elem774.read(iprot); + struct.notNullConstraints.add(_elem774); + } + iprot.readListEnd(); + } + struct.setNotNullConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42905,9 +43765,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 _iter738 : struct.primaryKeys) + for (SQLPrimaryKey _iter776 : struct.primaryKeys) { - _iter738.write(oprot); + _iter776.write(oprot); } oprot.writeListEnd(); } @@ -42917,9 +43777,33 @@ 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 _iter739 : struct.foreignKeys) + for (SQLForeignKey _iter777 : struct.foreignKeys) + { + _iter777.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.uniqueConstraints != null) { + 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 _iter778 : struct.uniqueConstraints) { - _iter739.write(oprot); + _iter778.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.notNullConstraints != null) { + 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 _iter779 : struct.notNullConstraints) + { + _iter779.write(oprot); } oprot.writeListEnd(); } @@ -42952,25 +43836,49 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetForeignKeys()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUniqueConstraints()) { + optionals.set(3); + } + if (struct.isSetNotNullConstraints()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetTbl()) { struct.tbl.write(oprot); } if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter740 : struct.primaryKeys) + for (SQLPrimaryKey _iter780 : struct.primaryKeys) { - _iter740.write(oprot); + _iter780.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter741 : struct.foreignKeys) + for (SQLForeignKey _iter781 : struct.foreignKeys) { - _iter741.write(oprot); + _iter781.write(oprot); + } + } + } + if (struct.isSetUniqueConstraints()) { + { + oprot.writeI32(struct.uniqueConstraints.size()); + for (SQLUniqueConstraint _iter782 : struct.uniqueConstraints) + { + _iter782.write(oprot); + } + } + } + if (struct.isSetNotNullConstraints()) { + { + oprot.writeI32(struct.notNullConstraints.size()); + for (SQLNotNullConstraint _iter783 : struct.notNullConstraints) + { + _iter783.write(oprot); } } } @@ -42979,7 +43887,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(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.tbl = new Table(); struct.tbl.read(iprot); @@ -42987,32 +43895,60 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list742 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list742.size); - SQLPrimaryKey _elem743; - for (int _i744 = 0; _i744 < _list742.size; ++_i744) + org.apache.thrift.protocol.TList _list784 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list784.size); + SQLPrimaryKey _elem785; + for (int _i786 = 0; _i786 < _list784.size; ++_i786) { - _elem743 = new SQLPrimaryKey(); - _elem743.read(iprot); - struct.primaryKeys.add(_elem743); + _elem785 = new SQLPrimaryKey(); + _elem785.read(iprot); + struct.primaryKeys.add(_elem785); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list745.size); - SQLForeignKey _elem746; - for (int _i747 = 0; _i747 < _list745.size; ++_i747) + org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list787.size); + SQLForeignKey _elem788; + for (int _i789 = 0; _i789 < _list787.size; ++_i789) { - _elem746 = new SQLForeignKey(); - _elem746.read(iprot); - struct.foreignKeys.add(_elem746); + _elem788 = new SQLForeignKey(); + _elem788.read(iprot); + struct.foreignKeys.add(_elem788); } } struct.setForeignKeysIsSet(true); } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list790 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list790.size); + SQLUniqueConstraint _elem791; + for (int _i792 = 0; _i792 < _list790.size; ++_i792) + { + _elem791 = new SQLUniqueConstraint(); + _elem791.read(iprot); + struct.uniqueConstraints.add(_elem791); + } + } + struct.setUniqueConstraintsIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list793.size); + SQLNotNullConstraint _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) + { + _elem794 = new SQLNotNullConstraint(); + _elem794.read(iprot); + struct.notNullConstraints.add(_elem794); + } + } + struct.setNotNullConstraintsIsSet(true); + } } } @@ -46183,28 +47119,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_resu } - 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"); + public static class add_unique_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_unique_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_unique_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_constraint_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required + private AddUniqueConstraintRequest 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(); @@ -46219,12 +47149,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_resu */ 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; } @@ -46265,153 +47191,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, AddUniqueConstraintRequest.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_unique_constraint_args.class, metaDataMap); } - public drop_table_args() { + public add_unique_constraint_args() { } - public drop_table_args( - String dbname, - String name, - boolean deleteData) + public add_unique_constraint_args( + AddUniqueConstraintRequest 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_unique_constraint_args(add_unique_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddUniqueConstraintRequest(other.req); } - this.deleteData = other.deleteData; } - public drop_table_args deepCopy() { - return new drop_table_args(this); + public add_unique_constraint_args deepCopy() { + return new add_unique_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 AddUniqueConstraintRequest getReq() { + return this.req; } - public void setName(String name) { - this.name = name; + public void setReq(AddUniqueConstraintRequest 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((AddUniqueConstraintRequest)value); } break; @@ -46420,14 +47266,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(); @@ -46440,12 +47280,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(); } @@ -46454,39 +47290,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_unique_constraint_args) + return this.equals((add_unique_constraint_args)that); return false; } - public boolean equals(drop_table_args that) { + public boolean equals(add_unique_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; } @@ -46497,58 +47315,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_unique_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; } @@ -46570,28 +47358,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_unique_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(); } @@ -46599,6 +47375,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 { @@ -46611,23 +47390,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_unique_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsStandardScheme getScheme() { + return new add_unique_constraint_argsStandardScheme(); } } - private static class drop_table_argsStandardScheme extends StandardScheme { + private static class add_unique_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_unique_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46637,26 +47414,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 AddUniqueConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -46670,102 +47432,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_unique_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_unique_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_argsTupleScheme getScheme() { + return new add_unique_constraint_argsTupleScheme(); } } - private static class drop_table_argsTupleScheme extends TupleScheme { + private static class add_unique_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_unique_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_unique_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 AddUniqueConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - 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"); + public static class add_unique_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_unique_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_unique_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_unique_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(); @@ -46782,8 +47517,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; } @@ -46829,44 +47564,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_unique_constraint_result.class, metaDataMap); } - public drop_table_result() { + public add_unique_constraint_result() { } - public drop_table_result( + public add_unique_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_unique_constraint_result(add_unique_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_unique_constraint_result deepCopy() { + return new add_unique_constraint_result(this); } @Override public void clear() { this.o1 = null; - this.o3 = null; + this.o2 = null; } public NoSuchObjectException getO1() { @@ -46892,26 +47627,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; } } @@ -46925,11 +47660,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; @@ -46941,8 +47676,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O3: - return getO3(); + case O2: + return getO2(); } throw new IllegalStateException(); @@ -46957,8 +47692,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O3: - return isSetO3(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -46967,12 +47702,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_unique_constraint_result) + return this.equals((add_unique_constraint_result)that); return false; } - public boolean equals(drop_table_result that) { + public boolean equals(add_unique_constraint_result that) { if (that == null) return false; @@ -46985,12 +47720,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; } @@ -47006,16 +47741,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_unique_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47032,12 +47767,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; } @@ -47059,7 +47794,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_unique_constraint_result("); boolean first = true; sb.append("o1:"); @@ -47070,11 +47805,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(")"); @@ -47102,15 +47837,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_unique_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultStandardScheme getScheme() { + return new add_unique_constraint_resultStandardScheme(); } } - private static class drop_table_resultStandardScheme extends StandardScheme { + private static class add_unique_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_unique_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47129,11 +47864,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); } @@ -47147,7 +47882,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_unique_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47156,9 +47891,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(); @@ -47167,35 +47902,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_unique_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_unique_constraint_resultTupleScheme getScheme() { + return new add_unique_constraint_resultTupleScheme(); } } - private static class drop_table_resultTupleScheme extends TupleScheme { + private static class add_unique_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_unique_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_unique_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -47204,40 +47939,31 @@ 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); } } } } - 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"); + public static class add_not_null_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_not_null_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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_not_null_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_constraint_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // required + private AddNotNullConstraintRequest 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"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -47252,14 +47978,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st */ 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 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // REQ + return REQ; default: return null; } @@ -47300,192 +48020,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.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))); + 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, AddNotNullConstraintRequest.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(add_not_null_constraint_args.class, metaDataMap); } - public drop_table_with_environment_context_args() { + public add_not_null_constraint_args() { } - public drop_table_with_environment_context_args( - String dbname, - String name, - boolean deleteData, - EnvironmentContext environment_context) + public add_not_null_constraint_args( + AddNotNullConstraintRequest req) { this(); - this.dbname = dbname; - this.name = name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; + this.req = req; } /** * Performs a deep copy on other. */ - 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.isSetName()) { - this.name = other.name; - } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public add_not_null_constraint_args(add_not_null_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddNotNullConstraintRequest(other.req); } } - public drop_table_with_environment_context_args deepCopy() { - return new drop_table_with_environment_context_args(this); + public add_not_null_constraint_args deepCopy() { + return new add_not_null_constraint_args(this); } @Override public void clear() { - this.dbname = null; - this.name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = null; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public void unsetName() { - this.name = 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 setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } - } - - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + this.req = null; } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public AddNotNullConstraintRequest getReq() { + return this.req; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setReq(AddNotNullConstraintRequest req) { + this.req = req; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetReq() { + this.req = 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; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.req = null; } } 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: - if (value == null) { - unsetDeleteData(); - } else { - setDeleteData((Boolean)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case REQ: if (value == null) { - unsetEnvironment_context(); + unsetReq(); } else { - setEnvironment_context((EnvironmentContext)value); + setReq((AddNotNullConstraintRequest)value); } break; @@ -47494,17 +48095,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 ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -47517,14 +48109,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case NAME: - return isSetName(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -47533,48 +48119,21 @@ 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 add_not_null_constraint_args) + return this.equals((add_not_null_constraint_args)that); return false; } - public boolean equals(drop_table_with_environment_context_args that) { + public boolean equals(add_not_null_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)) - return false; - 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)) + 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.environment_context.equals(that.environment_context)) + if (!this.req.equals(that.req)) return false; } @@ -47585,73 +48144,28 @@ public boolean equals(drop_table_with_environment_context_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_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(drop_table_with_environment_context_args other) { + public int compareTo(add_not_null_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()); - if (lastComparison != 0) { - return lastComparison; - } - 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()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -47673,34 +48187,14 @@ 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("add_not_null_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("null"); - } else { - sb.append(this.name); - } - first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.req); } first = false; sb.append(")"); @@ -47710,8 +48204,8 @@ 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(); + if (req != null) { + req.validate(); } } @@ -47725,23 +48219,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_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 add_not_null_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsStandardScheme getScheme() { + return new add_not_null_constraint_argsStandardScheme(); } } - private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class add_not_null_constraint_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, add_not_null_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47751,35 +48243,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env 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); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ENVIRONMENT_CONTEXT + case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new AddNotNullConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47793,26 +48261,13 @@ 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, add_not_null_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); - oprot.writeFieldEnd(); - } - 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); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -47821,90 +48276,60 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en } - 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 add_not_null_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_argsTupleScheme getScheme() { + return new add_not_null_constraint_argsTupleScheme(); } } - private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class add_not_null_constraint_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, add_not_null_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); - } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.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, add_not_null_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + 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); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new AddNotNullConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - 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"); + public static class add_not_null_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_not_null_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_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_not_null_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_not_null_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(); @@ -47921,8 +48346,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; } @@ -47968,44 +48393,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_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_not_null_constraint_result.class, metaDataMap); } - public drop_table_with_environment_context_result() { + public add_not_null_constraint_result() { } - public drop_table_with_environment_context_result( + public add_not_null_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_with_environment_context_result(drop_table_with_environment_context_result other) { + public add_not_null_constraint_result(add_not_null_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_with_environment_context_result deepCopy() { - return new drop_table_with_environment_context_result(this); + public add_not_null_constraint_result deepCopy() { + return new add_not_null_constraint_result(this); } @Override public void clear() { this.o1 = null; - this.o3 = null; + this.o2 = null; } public NoSuchObjectException getO1() { @@ -48031,26 +48456,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; } } @@ -48064,11 +48489,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; @@ -48080,8 +48505,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O3: - return getO3(); + case O2: + return getO2(); } throw new IllegalStateException(); @@ -48096,8 +48521,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O3: - return isSetO3(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -48106,12 +48531,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 add_not_null_constraint_result) + return this.equals((add_not_null_constraint_result)that); return false; } - public boolean equals(drop_table_with_environment_context_result that) { + public boolean equals(add_not_null_constraint_result that) { if (that == null) return false; @@ -48124,12 +48549,12 @@ public boolean equals(drop_table_with_environment_context_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; } @@ -48145,16 +48570,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_with_environment_context_result other) { + public int compareTo(add_not_null_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48171,12 +48596,12 @@ public int compareTo(drop_table_with_environment_context_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; } @@ -48198,7 +48623,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("add_not_null_constraint_result("); boolean first = true; sb.append("o1:"); @@ -48209,11 +48634,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(")"); @@ -48241,15 +48666,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 add_not_null_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultStandardScheme getScheme() { + return new add_not_null_constraint_resultStandardScheme(); } } - private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class add_not_null_constraint_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, add_not_null_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48268,11 +48693,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env 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); } @@ -48286,7 +48711,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, add_not_null_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48295,9 +48720,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en 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(); @@ -48306,35 +48731,35 @@ 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 add_not_null_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_not_null_constraint_resultTupleScheme getScheme() { + return new add_not_null_constraint_resultTupleScheme(); } } - private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class add_not_null_constraint_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, add_not_null_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_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -48343,37 +48768,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi 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); } } } } - 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"); + 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 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 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_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_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 /** 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"); private static final Map byName = new HashMap(); @@ -48388,12 +48813,12 @@ 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; default: return null; } @@ -48434,168 +48859,153 @@ 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))); 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_args.class, metaDataMap); } - public truncate_table_args() { + public drop_table_args() { } - public truncate_table_args( - String dbName, - String tableName, - List partNames) + public drop_table_args( + String dbname, + String name, + boolean deleteData) { this(); - this.dbName = dbName; - this.tableName = tableName; - this.partNames = partNames; + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public truncate_table_args(truncate_table_args other) { - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTableName()) { - this.tableName = other.tableName; + public drop_table_args(drop_table_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetPartNames()) { - List __this__partNames = new ArrayList(other.partNames); - this.partNames = __this__partNames; + if (other.isSetName()) { + this.name = other.name; } + this.deleteData = other.deleteData; } - public truncate_table_args deepCopy() { - return new truncate_table_args(this); + public drop_table_args deepCopy() { + return new drop_table_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; } - 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; - } - } - - 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.name = null; } - this.partNames.add(elem); } - public List getPartNames() { - return this.partNames; + public boolean isDeleteData() { + return this.deleteData; } - public void setPartNames(List partNames) { - this.partNames = partNames; + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); } - public void unsetPartNames() { - this.partNames = null; + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - /** Returns true if field partNames is set (has been assigned a value) and false otherwise */ - public boolean isSetPartNames() { - return this.partNames != null; + /** 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 setPartNamesIsSet(boolean value) { - if (!value) { - this.partNames = null; - } + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + 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; @@ -48604,14 +49014,14 @@ 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(); } throw new IllegalStateException(); @@ -48624,12 +49034,12 @@ 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(); } throw new IllegalStateException(); } @@ -48638,39 +49048,39 @@ 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_args) + return this.equals((drop_table_args)that); return false; } - public boolean equals(truncate_table_args that) { + public boolean equals(drop_table_args that) { if (that == null) return false; - boolean this_present_dbName = true && this.isSetDbName(); - boolean that_present_dbName = true && that.isSetDbName(); - if (this_present_dbName || that_present_dbName) { - if (!(this_present_dbName && that_present_dbName)) + 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; } @@ -48681,58 +49091,58 @@ 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); return list.hashCode(); } @Override - public int compareTo(truncate_table_args other) { + public int compareTo(drop_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + 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; } @@ -48754,31 +49164,27 @@ 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_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("null"); - } else { - sb.append(this.partNames); - } + sb.append("deleteData:"); + sb.append(this.deleteData); first = false; sb.append(")"); return sb.toString(); @@ -48799,21 +49205,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_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_argsStandardScheme getScheme() { + return new drop_table_argsStandardScheme(); } } - private static class truncate_table_argsStandardScheme extends StandardScheme { + private static class drop_table_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_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48823,36 +49231,26 @@ 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 _list748 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list748.size); - String _elem749; - for (int _i750 = 0; _i750 < _list748.size; ++_i750) - { - _elem749 = iprot.readString(); - struct.partNames.add(_elem749); - } - 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); } @@ -48866,123 +49264,102 @@ 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_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); - oprot.writeFieldEnd(); - } - if (struct.tableName != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.tableName); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); 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 _iter751 : struct.partNames) - { - oprot.writeString(_iter751); - } - oprot.writeListEnd(); - } + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class truncate_table_argsTupleSchemeFactory implements SchemeFactory { - public truncate_table_argsTupleScheme getScheme() { - return new truncate_table_argsTupleScheme(); + private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_argsTupleScheme getScheme() { + return new drop_table_argsTupleScheme(); } } - private static class truncate_table_argsTupleScheme extends TupleScheme { + private static class drop_table_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_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.isSetDbname()) { + oprot.writeString(struct.dbname); } - if (struct.isSetTableName()) { - oprot.writeString(struct.tableName); + if (struct.isSetName()) { + oprot.writeString(struct.name); } - if (struct.isSetPartNames()) { - { - oprot.writeI32(struct.partNames.size()); - for (String _iter752 : struct.partNames) - { - oprot.writeString(_iter752); - } - } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @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_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); 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 _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list753.size); - String _elem754; - for (int _i755 = 0; _i755 < _list753.size; ++_i755) - { - _elem754 = iprot.readString(); - struct.partNames.add(_elem754); - } - } - struct.setPartNamesIsSet(true); + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - 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"); + 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 truncate_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_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(); @@ -48999,6 +49376,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; + case 2: // O3 + return O3; default: return null; } @@ -49044,43 +49423,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_result.class, metaDataMap); } - public truncate_table_result() { + public drop_table_result() { } - public truncate_table_result( - MetaException o1) + public drop_table_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_result(drop_table_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_result deepCopy() { + return new drop_table_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; } @@ -49099,13 +49486,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; @@ -49117,6 +49535,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -49130,6 +49551,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -49138,12 +49561,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_result) + return this.equals((drop_table_result)that); return false; } - public boolean equals(truncate_table_result that) { + public boolean equals(drop_table_result that) { if (that == null) return false; @@ -49156,6 +49579,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; } @@ -49168,11 +49600,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_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -49189,6 +49626,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; } @@ -49206,7 +49653,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_result("); boolean first = true; sb.append("o1:"); @@ -49216,6 +49663,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(); } @@ -49241,15 +49696,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_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_resultStandardScheme getScheme() { + return new drop_table_resultStandardScheme(); } } - private static class truncate_table_resultStandardScheme extends StandardScheme { + private static class drop_table_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_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49261,13 +49716,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); } @@ -49277,7 +49741,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_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -49286,66 +49750,88 @@ 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_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_resultTupleScheme getScheme() { + return new drop_table_resultTupleScheme(); } } - private static class truncate_table_resultTupleScheme extends TupleScheme { + private static class drop_table_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_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_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); + } } } } - 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"); + 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("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 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 get_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_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 db_name; // required - private String pattern; // 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, "db_name"), - PATTERN((short)2, "pattern"); + 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(); @@ -49360,10 +49846,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // PATTERN - return PATTERN; + 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; } @@ -49404,112 +49894,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("db_name", 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.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", 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.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(get_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); } - public get_tables_args() { + public drop_table_with_environment_context_args() { } - public get_tables_args( - String db_name, - String pattern) + public drop_table_with_environment_context_args( + String dbname, + String name, + boolean deleteData, + EnvironmentContext environment_context) { this(); - this.db_name = db_name; - this.pattern = pattern; + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * 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 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.isSetPattern()) { - this.pattern = other.pattern; + if (other.isSetName()) { + this.name = other.name; + } + this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public get_tables_args deepCopy() { - return new get_tables_args(this); + public drop_table_with_environment_context_args deepCopy() { + return new drop_table_with_environment_context_args(this); } @Override public void clear() { - this.db_name = null; - this.pattern = null; + this.dbname = null; + this.name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + this.environment_context = 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 getName() { + return this.name; } - public void setPattern(String pattern) { - this.pattern = pattern; + public void setName(String name) { + this.name = name; } - public void unsetPattern() { - this.pattern = null; + public void unsetName() { + this.name = 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 name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setPatternIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.pattern = null; + this.name = null; + } + } + + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + + public 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 DB_NAME: + case DBNAME: if (value == null) { - unsetDb_name(); + unsetDbname(); } else { - setDb_name((String)value); + setDbname((String)value); } break; - case PATTERN: + case NAME: if (value == null) { - unsetPattern(); + unsetName(); } else { - setPattern((String)value); + setName((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -49518,11 +50088,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DBNAME: + return getDbname(); - case PATTERN: - return getPattern(); + case NAME: + return getName(); + + case DELETE_DATA: + return isDeleteData(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -49535,10 +50111,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case PATTERN: - return isSetPattern(); + case DBNAME: + return isSetDbname(); + case NAME: + return isSetName(); + case DELETE_DATA: + return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -49547,30 +50127,48 @@ 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 drop_table_with_environment_context_args) + return this.equals((drop_table_with_environment_context_args)that); return false; } - public boolean equals(get_tables_args that) { + public boolean equals(drop_table_with_environment_context_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_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.pattern.equals(that.pattern)) + 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)) + return false; + 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; } @@ -49581,43 +50179,73 @@ 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_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_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(get_tables_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(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(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; } @@ -49639,22 +50267,34 @@ 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("drop_table_with_environment_context_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("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.pattern); + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + 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(")"); @@ -49664,6 +50304,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 { @@ -49676,21 +50319,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_argsStandardScheme getScheme() { - return new get_tables_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 get_tables_argsStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_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, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49700,18 +50345,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DBNAME 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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + 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); + } 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); } @@ -49725,18 +50387,26 @@ 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, drop_table_with_environment_context_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.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + 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(); @@ -49745,69 +50415,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 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 get_tables_argsTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_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, drop_table_with_environment_context_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.isSetName()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetDeleteData()) { + optionals.set(2); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + 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, get_tables_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(2); + BitSet incoming = iprot.readBitSet(4); 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.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(2)) { + 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); } } } } - 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"); + 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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField 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 get_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); } - private List success; // required - 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 { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -49822,10 +50513,10 @@ 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; + case 2: // O3 + return O3; default: return null; } @@ -49869,126 +50560,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); } - public get_tables_result() { + public drop_table_with_environment_context_result() { } - public get_tables_result( - List success, - MetaException o1) + public drop_table_with_environment_context_result( + NoSuchObjectException o1, + MetaException o3) { this(); - this.success = success; this.o1 = o1; + this.o3 = o3; } /** * 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 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 get_tables_result deepCopy() { - return new get_tables_result(this); + public drop_table_with_environment_context_result deepCopy() { + return new drop_table_with_environment_context_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; + this.o3 = 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 NoSuchObjectException getO1() { + return this.o1; } - public void setSuccess(List success) { - this.success = success; + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; } - public void unsetSuccess() { - this.success = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setSuccessIsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.success = null; + this.o1 = null; } } - public MetaException getO1() { - return this.o1; + public MetaException getO3() { + return this.o3; } - public void setO1(MetaException o1) { - this.o1 = o1; + public void setO3(MetaException o3) { + this.o3 = o3; } - public void unsetO1() { - this.o1 = null; + public void unsetO3() { + this.o3 = null; } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != 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 setO1IsSet(boolean value) { + public void setO3IsSet(boolean value) { if (!value) { - this.o1 = null; + this.o3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((List)value); + setO1((NoSuchObjectException)value); } break; - case O1: + case O3: if (value == null) { - unsetO1(); + unsetO3(); } else { - setO1((MetaException)value); + setO3((MetaException)value); } break; @@ -49997,12 +50671,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -50014,10 +50688,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -50026,24 +50700,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 drop_table_with_environment_context_result) + return this.equals((drop_table_with_environment_context_result)that); return false; } - public boolean equals(get_tables_result that) { + public boolean equals(drop_table_with_environment_context_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) { @@ -50053,6 +50718,15 @@ public boolean equals(get_tables_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; } @@ -50060,43 +50734,43 @@ 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) 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(get_tables_result other) { + public int compareTo(drop_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); if (lastComparison != 0) { return lastComparison; } @@ -50118,22 +50792,22 @@ 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("drop_table_with_environment_context_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.o1); } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { + sb.append("o3:"); + if (this.o3 == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.o3); } first = false; sb.append(")"); @@ -50161,15 +50835,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 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 get_tables_resultStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_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, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50179,29 +50853,20 @@ 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 _list756 = iprot.readListBegin(); - struct.success = new ArrayList(_list756.size); - String _elem757; - for (int _i758 = 0; _i758 < _list756.size; ++_i758) - { - _elem757 = iprot.readString(); - struct.success.add(_elem757); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 + case 2: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -50215,115 +50880,94 @@ 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, drop_table_with_environment_context_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 _iter759 : struct.success) - { - oprot.writeString(_iter759); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); 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 get_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_resultTupleScheme getScheme() { - return new get_tables_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 get_tables_resultTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_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, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO3()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter760 : struct.success) - { - oprot.writeString(_iter760); - } - } - } if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO3()) { + struct.o3.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, drop_table_with_environment_context_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 _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) - { - _elem762 = iprot.readString(); - struct.success.add(_elem762); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - 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"); + 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 TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); + 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_by_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_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 tableType; // 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"), - TABLE_TYPE((short)3, "tableType"); + DB_NAME((short)1, "dbName"), + TABLE_NAME((short)2, "tableName"), + PART_NAMES((short)3, "partNames"); private static final Map byName = new HashMap(); @@ -50340,10 +50984,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; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // PART_NAMES + return PART_NAMES; default: return null; } @@ -50387,122 +51031,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, - 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.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.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", 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_by_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_args.class, metaDataMap); } - public get_tables_by_type_args() { + public truncate_table_args() { } - public get_tables_by_type_args( - String db_name, - String pattern, - String tableType) + public truncate_table_args( + String dbName, + String tableName, + List partNames) { this(); - this.db_name = db_name; - this.pattern = pattern; - this.tableType = tableType; + this.dbName = dbName; + this.tableName = tableName; + this.partNames = partNames; } /** * Performs a deep copy on other. */ - public get_tables_by_type_args(get_tables_by_type_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.isSetTableType()) { - this.tableType = other.tableType; + if (other.isSetPartNames()) { + List __this__partNames = new ArrayList(other.partNames); + this.partNames = __this__partNames; } } - public get_tables_by_type_args deepCopy() { - return new get_tables_by_type_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.tableType = 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 String getTableType() { - return this.tableType; + public int getPartNamesSize() { + return (this.partNames == null) ? 0 : this.partNames.size(); } - public void setTableType(String tableType) { - this.tableType = tableType; + public java.util.Iterator getPartNamesIterator() { + return (this.partNames == null) ? null : this.partNames.iterator(); } - public void unsetTableType() { - this.tableType = null; + public void addToPartNames(String elem) { + if (this.partNames == null) { + this.partNames = new ArrayList(); + } + this.partNames.add(elem); } - /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ - public boolean isSetTableType() { - return this.tableType != null; + public List getPartNames() { + return this.partNames; } - public void setTableTypeIsSet(boolean value) { + 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.tableType = null; + this.partNames = null; } } @@ -50510,25 +51171,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 TABLE_TYPE: + case PART_NAMES: if (value == null) { - unsetTableType(); + unsetPartNames(); } else { - setTableType((String)value); + setPartNames((List)value); } break; @@ -50538,13 +51199,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 TABLE_TYPE: - return getTableType(); + case PART_NAMES: + return getPartNames(); } throw new IllegalStateException(); @@ -50558,11 +51219,11 @@ public boolean isSet(_Fields field) { switch (field) { case DB_NAME: - return isSetDb_name(); - case PATTERN: - return isSetPattern(); - case TABLE_TYPE: - return isSetTableType(); + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + case PART_NAMES: + return isSetPartNames(); } throw new IllegalStateException(); } @@ -50571,39 +51232,39 @@ 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 truncate_table_args) + return this.equals((truncate_table_args)that); return false; } - public boolean equals(get_tables_by_type_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_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)) + 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.tableType.equals(that.tableType)) + if (!this.partNames.equals(that.partNames)) return false; } @@ -50614,58 +51275,58 @@ public boolean equals(get_tables_by_type_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_tableType = true && (isSetTableType()); - list.add(present_tableType); - if (present_tableType) - list.add(tableType); + boolean present_partNames = true && (isSetPartNames()); + list.add(present_partNames); + if (present_partNames) + list.add(partNames); return list.hashCode(); } @Override - public int compareTo(get_tables_by_type_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(isSetTableType()).compareTo(other.isSetTableType()); + lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); if (lastComparison != 0) { return lastComparison; } - if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + if (isSetPartNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); if (lastComparison != 0) { return lastComparison; } @@ -50687,30 +51348,30 @@ 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("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("tableType:"); - if (this.tableType == null) { + sb.append("partNames:"); + if (this.partNames == null) { sb.append("null"); } else { - sb.append(this.tableType); + sb.append(this.partNames); } first = false; sb.append(")"); @@ -50738,15 +51399,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 truncate_table_argsStandardSchemeFactory implements SchemeFactory { + public truncate_table_argsStandardScheme getScheme() { + return new truncate_table_argsStandardScheme(); } } - private static class get_tables_by_type_argsStandardScheme extends StandardScheme { + private static class truncate_table_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, truncate_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50758,24 +51419,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ 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: // TABLE_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); + case 3: // PART_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list796.size); + String _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) + { + _elem797 = iprot.readString(); + struct.partNames.add(_elem797); + } + iprot.readListEnd(); + } + struct.setPartNamesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -50789,23 +51460,30 @@ 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, 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.tableType != null) { - oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); - oprot.writeString(struct.tableType); + 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 _iter799 : struct.partNames) + { + oprot.writeString(_iter799); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -50814,78 +51492,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type } - 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 truncate_table_argsTupleSchemeFactory implements SchemeFactory { + public truncate_table_argsTupleScheme getScheme() { + return new truncate_table_argsTupleScheme(); } } - private static class get_tables_by_type_argsTupleScheme extends TupleScheme { + private static class truncate_table_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, 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); } - if (struct.isSetTableType()) { + if (struct.isSetPartNames()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetDbName()) { + oprot.writeString(struct.dbName); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); + if (struct.isSetTableName()) { + oprot.writeString(struct.tableName); } - if (struct.isSetTableType()) { - oprot.writeString(struct.tableType); + if (struct.isSetPartNames()) { + { + oprot.writeI32(struct.partNames.size()); + for (String _iter800 : struct.partNames) + { + oprot.writeString(_iter800); + } + } } } @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, truncate_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; 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)) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); + { + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list801.size); + String _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) + { + _elem802 = iprot.readString(); + struct.partNames.add(_elem802); + } + } + struct.setPartNamesIsSet(true); } } } } - 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"); + 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_by_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_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(); @@ -50901,8 +51591,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_a */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; default: @@ -50948,88 +51636,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_by_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_result.class, metaDataMap); } - public get_tables_by_type_result() { + public truncate_table_result() { } - public get_tables_by_type_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_by_type_result(get_tables_by_type_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_by_type_result deepCopy() { - return new get_tables_by_type_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; } @@ -51055,14 +51695,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(); @@ -51076,9 +51708,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -51093,8 +51722,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); } @@ -51105,24 +51732,15 @@ 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 truncate_table_result) + return this.equals((truncate_table_result)that); return false; } - public boolean equals(get_tables_by_type_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) { @@ -51139,11 +51757,6 @@ public boolean equals(get_tables_by_type_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) @@ -51153,23 +51766,13 @@ public int hashCode() { } @Override - public int compareTo(get_tables_by_type_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; @@ -51197,17 +51800,9 @@ 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("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"); @@ -51240,15 +51835,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 truncate_table_resultStandardSchemeFactory implements SchemeFactory { + public truncate_table_resultStandardScheme getScheme() { + return new truncate_table_resultStandardScheme(); } } - private static class get_tables_by_type_resultStandardScheme extends StandardScheme { + private static class truncate_table_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, truncate_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51258,24 +51853,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.success = new ArrayList(_list764.size); - String _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) - { - _elem765 = iprot.readString(); - struct.success.add(_elem765); - } - 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(); @@ -51294,22 +51871,10 @@ 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, 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 _iter767 : struct.success) - { - oprot.writeString(_iter767); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -51321,57 +51886,32 @@ 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 truncate_table_resultTupleSchemeFactory implements SchemeFactory { + public truncate_table_resultTupleScheme getScheme() { + return new truncate_table_resultTupleScheme(); } } - private static class get_tables_by_type_resultTupleScheme extends TupleScheme { + private static class truncate_table_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, 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 _iter768 : struct.success) - { - oprot.writeString(_iter768); - } - } + 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_by_type_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 _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) - { - _elem770 = iprot.readString(); - struct.success.add(_elem770); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -51381,28 +51921,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r } - 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"); + 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_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 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 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_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); } - private String db_patterns; // required - private String tbl_patterns; // required - private List tbl_types; // required + private String db_name; // required + private String pattern; // 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"), + PATTERN((short)2, "pattern"); private static final Map byName = new HashMap(); @@ -51417,12 +51954,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_PATTERNS - return DB_PATTERNS; - case 2: // TBL_PATTERNS - return TBL_PATTERNS; - case 3: // TBL_TYPES - return TBL_TYPES; + case 1: // DB_NAME + return DB_NAME; + case 2: // PATTERN + return PATTERN; default: return null; } @@ -51466,165 +52001,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_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_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.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_tables_args.class, metaDataMap); } - public get_table_meta_args() { + public get_tables_args() { } - public get_table_meta_args( - String db_patterns, - String tbl_patterns, - List tbl_types) + public get_tables_args( + String db_name, + String pattern) { this(); - this.db_patterns = db_patterns; - this.tbl_patterns = tbl_patterns; - this.tbl_types = tbl_types; + this.db_name = db_name; + this.pattern = pattern; } /** * 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; + public get_tables_args(get_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetTbl_types()) { - List __this__tbl_types = new ArrayList(other.tbl_types); - this.tbl_types = __this__tbl_types; + if (other.isSetPattern()) { + this.pattern = other.pattern; } } - public get_table_meta_args deepCopy() { - return new get_table_meta_args(this); + public get_tables_args deepCopy() { + return new get_tables_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; - } + this.db_name = null; + this.pattern = null; } - public String getTbl_patterns() { - return this.tbl_patterns; + public String getDb_name() { + return this.db_name; } - public void setTbl_patterns(String tbl_patterns) { - this.tbl_patterns = tbl_patterns; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetTbl_patterns() { - this.tbl_patterns = null; + public void unsetDb_name() { + this.db_name = 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; + /** 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_patternsIsSet(boolean value) { + public void setDb_nameIsSet(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.db_name = null; } - this.tbl_types.add(elem); } - public List getTbl_types() { - return this.tbl_types; + public String getPattern() { + return this.pattern; } - public void setTbl_types(List tbl_types) { - this.tbl_types = tbl_types; + public void setPattern(String pattern) { + this.pattern = pattern; } - public void unsetTbl_types() { - this.tbl_types = null; + public void unsetPattern() { + this.pattern = 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 pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; } - public void setTbl_typesIsSet(boolean value) { + public void setPatternIsSet(boolean value) { if (!value) { - this.tbl_types = null; + this.pattern = 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: + case DB_NAME: if (value == null) { - unsetTbl_patterns(); + unsetDb_name(); } else { - setTbl_patterns((String)value); + setDb_name((String)value); } break; - case TBL_TYPES: + case PATTERN: if (value == null) { - unsetTbl_types(); + unsetPattern(); } else { - setTbl_types((List)value); + setPattern((String)value); } break; @@ -51633,14 +52112,11 @@ 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 DB_NAME: + return getDb_name(); - case TBL_TYPES: - return getTbl_types(); + case PATTERN: + return getPattern(); } throw new IllegalStateException(); @@ -51653,12 +52129,10 @@ 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(); + case PATTERN: + return isSetPattern(); } throw new IllegalStateException(); } @@ -51667,39 +52141,30 @@ 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_tables_args) + return this.equals((get_tables_args)that); return false; } - public boolean equals(get_table_meta_args that) { + public boolean equals(get_tables_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)) + 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_patterns.equals(that.tbl_patterns)) + if (!this.db_name.equals(that.db_name)) 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_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.tbl_types.equals(that.tbl_types)) + if (!this.pattern.equals(that.pattern)) return false; } @@ -51710,58 +52175,43 @@ 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_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_tbl_types = true && (isSetTbl_types()); - list.add(present_tbl_types); - if (present_tbl_types) - list.add(tbl_types); + boolean present_pattern = true && (isSetPattern()); + list.add(present_pattern); + if (present_pattern) + list.add(pattern); return list.hashCode(); } @Override - public int compareTo(get_table_meta_args other) { + public int compareTo(get_tables_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()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_types()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); if (lastComparison != 0) { return lastComparison; } @@ -51783,30 +52233,22 @@ 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_tables_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("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.tbl_patterns); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("tbl_types:"); - if (this.tbl_types == null) { + sb.append("pattern:"); + if (this.pattern == null) { sb.append("null"); } else { - sb.append(this.tbl_types); + sb.append(this.pattern); } first = false; sb.append(")"); @@ -51834,15 +52276,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_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_argsStandardScheme getScheme() { + return new get_tables_argsStandardScheme(); } } - private static class get_table_meta_argsStandardScheme extends StandardScheme { + private static class get_tables_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_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51852,36 +52294,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args break; } switch (schemeField.id) { - case 1: // DB_PATTERNS + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_PATTERNS + case 2: // PATTERN 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 _list772 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list772.size); - String _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) - { - _elem773 = iprot.readString(); - struct.tbl_types.add(_elem773); - } - iprot.readListEnd(); - } - struct.setTbl_typesIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -51895,30 +52319,18 @@ 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_tables_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); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); 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 _iter775 : struct.tbl_types) - { - oprot.writeString(_iter775); - } - oprot.writeListEnd(); - } + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -51927,88 +52339,63 @@ 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_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_argsTupleScheme getScheme() { + return new get_tables_argsTupleScheme(); } } - private static class get_table_meta_argsTupleScheme extends TupleScheme { + private static class get_tables_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_tables_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()) { + if (struct.isSetPattern()) { 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); + oprot.writeBitSet(optionals, 2); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetTbl_types()) { - { - oprot.writeI32(struct.tbl_types.size()); - for (String _iter776 : struct.tbl_types) - { - oprot.writeString(_iter776); - } - } + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); } } @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_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_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.tbl_patterns = iprot.readString(); - struct.setTbl_patternsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list777.size); - String _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) - { - _elem778 = iprot.readString(); - struct.tbl_types.add(_elem778); - } - } - struct.setTbl_typesIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } } } } - 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"); + 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_table_meta_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_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. */ @@ -52078,18 +52465,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_tables_result.class, metaDataMap); } - public get_table_meta_result() { + public get_tables_result() { } - public get_table_meta_result( - List success, + public get_tables_result( + List success, MetaException o1) { this(); @@ -52100,12 +52487,9 @@ public get_table_meta_result( /** * Performs a deep copy on other. */ - public get_table_meta_result(get_table_meta_result other) { + public get_tables_result(get_tables_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()) { @@ -52113,8 +52497,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_tables_result deepCopy() { + return new get_tables_result(this); } @Override @@ -52127,22 +52511,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; } @@ -52190,7 +52574,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -52236,12 +52620,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_tables_result) + return this.equals((get_tables_result)that); return false; } - public boolean equals(get_table_meta_result that) { + public boolean equals(get_tables_result that) { if (that == null) return false; @@ -52284,7 +52668,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_meta_result other) { + public int compareTo(get_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -52328,7 +52712,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_tables_result("); boolean first = true; sb.append("success:"); @@ -52371,15 +52755,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_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_resultStandardScheme getScheme() { + return new get_tables_resultStandardScheme(); } } - private static class get_table_meta_resultStandardScheme extends StandardScheme { + private static class get_tables_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_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52392,14 +52776,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 _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - TableMeta _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + String _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem781 = new TableMeta(); - _elem781.read(iprot); - struct.success.add(_elem781); + _elem805 = iprot.readString(); + struct.success.add(_elem805); } iprot.readListEnd(); } @@ -52426,17 +52809,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_tables_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 _iter783 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter807 : struct.success) { - _iter783.write(oprot); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -52453,16 +52836,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_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_resultTupleScheme getScheme() { + return new get_tables_resultTupleScheme(); } } - private static class get_table_meta_resultTupleScheme extends TupleScheme { + private static class get_tables_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_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -52475,9 +52858,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter784 : struct.success) + for (String _iter808 : struct.success) { - _iter784.write(oprot); + oprot.writeString(_iter808); } } } @@ -52487,19 +52870,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_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 _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - TableMeta _elem786; - for (int _i787 = 0; _i787 < _list785.size; ++_i787) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + String _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem786 = new TableMeta(); - _elem786.read(iprot); - struct.success.add(_elem786); + _elem810 = iprot.readString(); + struct.success.add(_elem810); } } struct.setSuccessIsSet(true); @@ -52514,22 +52896,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul } - 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"); + 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_all_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_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(); @@ -52546,6 +52934,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; } @@ -52591,36 +52983,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_all_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_args.class, metaDataMap); } - public get_all_tables_args() { + public get_tables_by_type_args() { } - public get_all_tables_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_all_tables_args(get_all_tables_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_all_tables_args deepCopy() { - return new get_all_tables_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() { @@ -52646,6 +53054,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: @@ -52656,6 +53110,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; + } } @@ -52664,6 +53134,12 @@ public Object getFieldValue(_Fields field) { case DB_NAME: return getDb_name(); + case PATTERN: + return getPattern(); + + case TABLE_TYPE: + return getTableType(); + } throw new IllegalStateException(); } @@ -52677,6 +53153,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(); } @@ -52685,12 +53165,12 @@ 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_tables_by_type_args) + return this.equals((get_tables_by_type_args)that); return false; } - public boolean equals(get_all_tables_args that) { + public boolean equals(get_tables_by_type_args that) { if (that == null) return false; @@ -52703,6 +53183,24 @@ public boolean equals(get_all_tables_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; } @@ -52715,11 +53213,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_all_tables_args other) { + public int compareTo(get_tables_by_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -52736,6 +53244,26 @@ public int compareTo(get_all_tables_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; } @@ -52753,7 +53281,7 @@ 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_tables_by_type_args("); boolean first = true; sb.append("db_name:"); @@ -52763,6 +53291,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(); } @@ -52788,15 +53332,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_tables_by_type_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_argsStandardScheme getScheme() { + return new get_tables_by_type_argsStandardScheme(); } } - private static class get_all_tables_argsStandardScheme extends StandardScheme { + private static class get_tables_by_type_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_tables_by_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52814,6 +53358,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args 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); } @@ -52823,7 +53383,7 @@ 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_tables_by_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -52832,56 +53392,86 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_arg 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_all_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_all_tables_argsTupleScheme getScheme() { - return new get_all_tables_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_all_tables_argsTupleScheme extends TupleScheme { + private static class get_tables_by_type_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_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_all_tables_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); + } } } } - 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"); + 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_all_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_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 @@ -52958,13 +53548,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_all_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_result.class, metaDataMap); } - public get_all_tables_result() { + public get_tables_by_type_result() { } - public get_all_tables_result( + public get_tables_by_type_result( List success, MetaException o1) { @@ -52976,7 +53566,7 @@ public get_all_tables_result( /** * Performs a deep copy on other. */ - public get_all_tables_result(get_all_tables_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; @@ -52986,8 +53576,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_tables_by_type_result deepCopy() { + return new get_tables_by_type_result(this); } @Override @@ -53109,12 +53699,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_tables_by_type_result) + return this.equals((get_tables_by_type_result)that); return false; } - public boolean equals(get_all_tables_result that) { + public boolean equals(get_tables_by_type_result that) { if (that == null) return false; @@ -53157,7 +53747,7 @@ public int hashCode() { } @Override - public int compareTo(get_all_tables_result other) { + public int compareTo(get_tables_by_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -53201,7 +53791,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_result("); + StringBuilder sb = new StringBuilder("get_tables_by_type_result("); boolean first = true; sb.append("success:"); @@ -53244,15 +53834,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_all_tables_resultStandardScheme getScheme() { - return new get_all_tables_resultStandardScheme(); + private static class get_tables_by_type_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultStandardScheme getScheme() { + return new get_tables_by_type_resultStandardScheme(); } } - private static class get_all_tables_resultStandardScheme extends StandardScheme { + private static class get_tables_by_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53265,13 +53855,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 _list788 = iprot.readListBegin(); - struct.success = new ArrayList(_list788.size); - String _elem789; - for (int _i790 = 0; _i790 < _list788.size; ++_i790) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + String _elem813; + for (int _i814 = 0; _i814 < _list812.size; ++_i814) { - _elem789 = iprot.readString(); - struct.success.add(_elem789); + _elem813 = iprot.readString(); + struct.success.add(_elem813); } iprot.readListEnd(); } @@ -53298,7 +53888,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -53306,9 +53896,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 _iter791 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter791); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -53325,16 +53915,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res } - private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_all_tables_resultTupleScheme getScheme() { - return new get_all_tables_resultTupleScheme(); + private static class get_tables_by_type_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultTupleScheme getScheme() { + return new get_tables_by_type_resultTupleScheme(); } } - private static class get_all_tables_resultTupleScheme extends TupleScheme { + private static class get_tables_by_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -53347,9 +53937,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter792 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter792); + oprot.writeString(_iter816); } } } @@ -53359,18 +53949,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_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 _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list793.size); - String _elem794; - for (int _i795 = 0; _i795 < _list793.size; ++_i795) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + String _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem794 = iprot.readString(); - struct.success.add(_elem794); + _elem818 = iprot.readString(); + struct.success.add(_elem818); } } struct.setSuccessIsSet(true); @@ -53385,25 +53975,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul } - public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); + 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 DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_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_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_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(); @@ -53418,10 +54011,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; + case 1: // DB_PATTERNS + return DB_PATTERNS; + case 2: // TBL_PATTERNS + return TBL_PATTERNS; + case 3: // TBL_TYPES + return TBL_TYPES; default: return null; } @@ -53465,109 +54060,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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", 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_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); } - public get_table_args() { + public get_table_meta_args() { } - public get_table_args( - String dbname, - String tbl_name) + public get_table_meta_args( + String db_patterns, + String tbl_patterns, + List tbl_types) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; + this.db_patterns = db_patterns; + this.tbl_patterns = tbl_patterns; + this.tbl_types = tbl_types; } /** * Performs a deep copy on other. */ - public get_table_args(get_table_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; + public get_table_meta_args(get_table_meta_args other) { + if (other.isSetDb_patterns()) { + this.db_patterns = other.db_patterns; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + 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_table_args deepCopy() { - return new get_table_args(this); + public get_table_meta_args deepCopy() { + return new get_table_meta_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; + this.db_patterns = null; + this.tbl_patterns = null; + this.tbl_types = null; } - public String getDbname() { - return this.dbname; + public String getDb_patterns() { + return this.db_patterns; } - public void setDbname(String dbname) { - this.dbname = dbname; + public void setDb_patterns(String db_patterns) { + this.db_patterns = db_patterns; } - public void unsetDbname() { - this.dbname = null; + public void unsetDb_patterns() { + this.db_patterns = 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 db_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_patterns() { + return this.db_patterns != null; } - public void setDbnameIsSet(boolean value) { + public void setDb_patternsIsSet(boolean value) { if (!value) { - this.dbname = null; + this.db_patterns = null; } } - public String getTbl_name() { - return this.tbl_name; + public String getTbl_patterns() { + return this.tbl_patterns; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setTbl_patterns(String tbl_patterns) { + this.tbl_patterns = tbl_patterns; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetTbl_patterns() { + this.tbl_patterns = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_patterns() { + return this.tbl_patterns != null; } - public void setTbl_nameIsSet(boolean value) { + public void setTbl_patternsIsSet(boolean value) { if (!value) { - this.tbl_name = null; + 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 DBNAME: + case DB_PATTERNS: if (value == null) { - unsetDbname(); + unsetDb_patterns(); } else { - setDbname((String)value); + setDb_patterns((String)value); } break; - case TBL_NAME: + case TBL_PATTERNS: if (value == null) { - unsetTbl_name(); + unsetTbl_patterns(); } else { - setTbl_name((String)value); + setTbl_patterns((String)value); + } + break; + + case TBL_TYPES: + if (value == null) { + unsetTbl_types(); + } else { + setTbl_types((List)value); } break; @@ -53576,11 +54227,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); + case DB_PATTERNS: + return getDb_patterns(); - case TBL_NAME: - return getTbl_name(); + case TBL_PATTERNS: + return getTbl_patterns(); + + case TBL_TYPES: + return getTbl_types(); } throw new IllegalStateException(); @@ -53593,10 +54247,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); + case DB_PATTERNS: + return isSetDb_patterns(); + case TBL_PATTERNS: + return isSetTbl_patterns(); + case TBL_TYPES: + return isSetTbl_types(); } throw new IllegalStateException(); } @@ -53605,30 +54261,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_args) - return this.equals((get_table_args)that); + if (that instanceof get_table_meta_args) + return this.equals((get_table_meta_args)that); return false; } - public boolean equals(get_table_args that) { + public boolean equals(get_table_meta_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_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.dbname.equals(that.dbname)) + if (!this.db_patterns.equals(that.db_patterns)) return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_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_name.equals(that.tbl_name)) + 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; } @@ -53639,43 +54304,58 @@ public boolean equals(get_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); + boolean present_db_patterns = true && (isSetDb_patterns()); + list.add(present_db_patterns); + if (present_db_patterns) + list.add(db_patterns); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + 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_table_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(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (isSetDb_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + 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; } @@ -53697,22 +54377,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_args("); + StringBuilder sb = new StringBuilder("get_table_meta_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { + sb.append("db_patterns:"); + if (this.db_patterns == null) { sb.append("null"); } else { - sb.append(this.dbname); + sb.append(this.db_patterns); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("tbl_patterns:"); + if (this.tbl_patterns == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + 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(")"); @@ -53740,15 +54428,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_argsStandardSchemeFactory implements SchemeFactory { - public get_table_argsStandardScheme getScheme() { - return new get_table_argsStandardScheme(); + private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { + public get_table_meta_argsStandardScheme getScheme() { + return new get_table_meta_argsStandardScheme(); } } - private static class get_table_argsStandardScheme extends StandardScheme { + private static class get_table_meta_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53758,18 +54446,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 2: // TBL_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + 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 _list820 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list820.size); + String _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) + { + _elem821 = iprot.readString(); + struct.tbl_types.add(_elem821); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -53783,18 +54489,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_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); + if (struct.db_patterns != null) { + oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); + oprot.writeString(struct.db_patterns); oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + 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 _iter823 : struct.tbl_types) + { + oprot.writeString(_iter823); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -53803,72 +54521,94 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args str } - private static class get_table_argsTupleSchemeFactory implements SchemeFactory { - public get_table_argsTupleScheme getScheme() { - return new get_table_argsTupleScheme(); + private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { + public get_table_meta_argsTupleScheme getScheme() { + return new get_table_meta_argsTupleScheme(); } } - private static class get_table_argsTupleScheme extends TupleScheme { + private static class get_table_meta_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_patterns()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetTbl_patterns()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); + if (struct.isSetTbl_types()) { + optionals.set(2); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + 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 _iter824 : struct.tbl_types) + { + oprot.writeString(_iter824); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_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.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list825.size); + String _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) + { + _elem826 = iprot.readString(); + struct.tbl_types.add(_elem826); + } + } + struct.setTbl_typesIsSet(true); } } } } - public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); + 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.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); } - private Table success; // required + private List success; // required private MetaException o1; // required - private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -53887,8 +54627,6 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -53933,60 +54671,72 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.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))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); } - public get_table_result() { + public get_table_meta_result() { } - public get_table_result( - Table success, - MetaException o1, - NoSuchObjectException o2) + public get_table_meta_result( + List success, + MetaException o1) { this(); this.success = success; this.o1 = o1; - this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_table_result(get_table_result other) { + public get_table_meta_result(get_table_meta_result other) { if (other.isSetSuccess()) { - this.success = new Table(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()) { this.o1 = new MetaException(other.o1); } - if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); - } } - public get_table_result deepCopy() { - return new get_table_result(this); + public get_table_meta_result deepCopy() { + return new get_table_meta_result(this); } @Override public void clear() { this.success = null; this.o1 = null; - this.o2 = null; } - public Table getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(TableMeta elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Table success) { + public void setSuccess(List success) { this.success = success; } @@ -54028,36 +54778,13 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { - return this.o2; - } - - public void setO2(NoSuchObjectException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Table)value); + setSuccess((List)value); } break; @@ -54069,14 +54796,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((NoSuchObjectException)value); - } - break; - } } @@ -54088,9 +54807,6 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -54106,8 +54822,6 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -54116,12 +54830,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_result) - return this.equals((get_table_result)that); + if (that instanceof get_table_meta_result) + return this.equals((get_table_meta_result)that); return false; } - public boolean equals(get_table_result that) { + public boolean equals(get_table_meta_result that) { if (that == null) return false; @@ -54143,15 +54857,6 @@ public boolean equals(get_table_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - return true; } @@ -54169,16 +54874,11 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - return list.hashCode(); } @Override - public int compareTo(get_table_result other) { + public int compareTo(get_table_meta_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -54205,16 +54905,6 @@ public int compareTo(get_table_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -54232,7 +54922,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_result("); + StringBuilder sb = new StringBuilder("get_table_meta_result("); boolean first = true; sb.append("success:"); @@ -54250,14 +54940,6 @@ public String toString() { sb.append(this.o1); } first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; sb.append(")"); return sb.toString(); } @@ -54265,9 +54947,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -54286,15 +54965,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_resultStandardSchemeFactory implements SchemeFactory { - public get_table_resultStandardScheme getScheme() { - return new get_table_resultStandardScheme(); + private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { + public get_table_meta_resultStandardScheme getScheme() { + return new get_table_meta_resultStandardScheme(); } } - private static class get_table_resultStandardScheme extends StandardScheme { + private static class get_table_meta_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54305,9 +54984,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Table(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList(_list828.size); + TableMeta _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) + { + _elem829 = new TableMeta(); + _elem829.read(iprot); + struct.success.add(_elem829); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -54322,15 +55011,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -54340,13 +55020,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TableMeta _iter831 : struct.success) + { + _iter831.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -54354,27 +55041,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result s struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_resultTupleSchemeFactory implements SchemeFactory { - public get_table_resultTupleScheme getScheme() { - return new get_table_resultTupleScheme(); + private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { + public get_table_meta_resultTupleScheme getScheme() { + return new get_table_meta_resultTupleScheme(); } } - private static class get_table_resultTupleScheme extends TupleScheme { + private static class get_table_meta_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -54383,28 +55065,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetO2()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (TableMeta _iter832 : struct.success) + { + _iter832.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + 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(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Table(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list833.size); + TableMeta _elem834; + for (int _i835 = 0; _i835 < _list833.size; ++_i835) + { + _elem834 = new TableMeta(); + _elem834.read(iprot); + struct.success.add(_elem834); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -54412,35 +55103,27 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } } } } - public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); + public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_args"); - private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField 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_objects_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); } - private String dbname; // required - private List tbl_names; // required + private String db_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DBNAME((short)1, "dbname"), - TBL_NAMES((short)2, "tbl_names"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -54455,10 +55138,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAMES - return TBL_NAMES; + case 1: // DB_NAME + return DB_NAME; default: return null; } @@ -54502,126 +55183,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); } - public get_table_objects_by_name_args() { + public get_all_tables_args() { } - public get_table_objects_by_name_args( - String dbname, - List tbl_names) + public get_all_tables_args( + String db_name) { this(); - this.dbname = dbname; - this.tbl_names = tbl_names; + this.db_name = db_name; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_args(get_table_objects_by_name_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_names()) { - List __this__tbl_names = new ArrayList(other.tbl_names); - this.tbl_names = __this__tbl_names; + public get_all_tables_args(get_all_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } } - public get_table_objects_by_name_args deepCopy() { - return new get_table_objects_by_name_args(this); + public get_all_tables_args deepCopy() { + return new get_all_tables_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_names = null; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } - } - - public int getTbl_namesSize() { - return (this.tbl_names == null) ? 0 : this.tbl_names.size(); - } - - public java.util.Iterator getTbl_namesIterator() { - return (this.tbl_names == null) ? null : this.tbl_names.iterator(); - } - - public void addToTbl_names(String elem) { - if (this.tbl_names == null) { - this.tbl_names = new ArrayList(); - } - this.tbl_names.add(elem); + this.db_name = null; } - public List getTbl_names() { - return this.tbl_names; + public String getDb_name() { + return this.db_name; } - public void setTbl_names(List tbl_names) { - this.tbl_names = tbl_names; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetTbl_names() { - this.tbl_names = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_names() { - return this.tbl_names != null; + /** 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_namesIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.tbl_names = null; + this.db_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAMES: + case DB_NAME: if (value == null) { - unsetTbl_names(); + unsetDb_name(); } else { - setTbl_names((List)value); + setDb_name((String)value); } break; @@ -54630,11 +55255,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAMES: - return getTbl_names(); + case DB_NAME: + return getDb_name(); } throw new IllegalStateException(); @@ -54647,10 +55269,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAMES: - return isSetTbl_names(); + case DB_NAME: + return isSetDb_name(); } throw new IllegalStateException(); } @@ -54659,30 +55279,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_args) - return this.equals((get_table_objects_by_name_args)that); + if (that instanceof get_all_tables_args) + return this.equals((get_all_tables_args)that); return false; } - public boolean equals(get_table_objects_by_name_args that) { + public boolean equals(get_all_tables_args that) { if (that == null) return false; - boolean this_present_dbname = true && this.isSetDbname(); - boolean that_present_dbname = true && that.isSetDbname(); - if (this_present_dbname || that_present_dbname) { - if (!(this_present_dbname && that_present_dbname)) - return false; - if (!this.dbname.equals(that.dbname)) - return false; - } - - boolean this_present_tbl_names = true && this.isSetTbl_names(); - boolean that_present_tbl_names = true && that.isSetTbl_names(); - if (this_present_tbl_names || that_present_tbl_names) { - if (!(this_present_tbl_names && that_present_tbl_names)) + 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_names.equals(that.tbl_names)) + if (!this.db_name.equals(that.db_name)) return false; } @@ -54693,43 +55304,28 @@ public boolean equals(get_table_objects_by_name_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_names = true && (isSetTbl_names()); - list.add(present_tbl_names); - if (present_tbl_names) - list.add(tbl_names); + 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_objects_by_name_args other) { + public int compareTo(get_all_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } @@ -54751,22 +55347,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); + StringBuilder sb = new StringBuilder("get_all_tables_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_names:"); - if (this.tbl_names == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.tbl_names); + sb.append(this.db_name); } first = false; sb.append(")"); @@ -54794,15 +55382,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsStandardScheme getScheme() { - return new get_table_objects_by_name_argsStandardScheme(); + private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_all_tables_argsStandardScheme getScheme() { + return new get_all_tables_argsStandardScheme(); } } - private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { + private static class get_all_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54812,28 +55400,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list796.size); - String _elem797; - for (int _i798 = 0; _i798 < _list796.size; ++_i798) - { - _elem797 = iprot.readString(); - struct.tbl_names.add(_elem797); - } - iprot.readListEnd(); - } - struct.setTbl_namesIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -54847,25 +55417,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_names != null) { - oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter799 : struct.tbl_names) - { - oprot.writeString(_iter799); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -54874,81 +55432,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsTupleScheme getScheme() { - return new get_table_objects_by_name_argsTupleScheme(); + private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_all_tables_argsTupleScheme getScheme() { + return new get_all_tables_argsTupleScheme(); } } - private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { + private static class get_all_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetTbl_names()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_names()) { - { - oprot.writeI32(struct.tbl_names.size()); - for (String _iter800 : struct.tbl_names) - { - oprot.writeString(_iter800); - } - } + 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_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list801.size); - String _elem802; - for (int _i803 = 0; _i803 < _list801.size; ++_i803) - { - _elem802 = iprot.readString(); - struct.tbl_names.add(_elem802); - } - } - struct.setTbl_namesIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } } } } - public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_result"); + 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_table_objects_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_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. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -54965,6 +55501,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // O1 + return O1; default: return null; } @@ -55010,63 +55548,68 @@ 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, Table.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_objects_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); } - public get_table_objects_by_name_result() { + public get_all_tables_result() { } - public get_table_objects_by_name_result( - List
success) + public get_all_tables_result( + List success, + MetaException o1) { this(); this.success = success; + this.o1 = o1; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_result(get_table_objects_by_name_result other) { + public get_all_tables_result(get_all_tables_result other) { if (other.isSetSuccess()) { - List
__this__success = new ArrayList
(other.success.size()); - for (Table other_element : other.success) { - __this__success.add(new Table(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } } - public get_table_objects_by_name_result deepCopy() { - return new get_table_objects_by_name_result(this); + public get_all_tables_result deepCopy() { + return new get_all_tables_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; } 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(Table 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; } @@ -55085,13 +55628,44 @@ public void setSuccessIsSet(boolean value) { } } + 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); + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -55103,6 +55677,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + } throw new IllegalStateException(); } @@ -55116,6 +55693,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -55124,12 +55703,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_result) - return this.equals((get_table_objects_by_name_result)that); + if (that instanceof get_all_tables_result) + return this.equals((get_all_tables_result)that); return false; } - public boolean equals(get_table_objects_by_name_result that) { + public boolean equals(get_all_tables_result that) { if (that == null) return false; @@ -55142,6 +55721,15 @@ public boolean equals(get_table_objects_by_name_result that) { return false; } + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + return true; } @@ -55154,11 +55742,16 @@ public int hashCode() { 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_table_objects_by_name_result other) { + public int compareTo(get_all_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -55175,6 +55768,16 @@ public int compareTo(get_table_objects_by_name_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -55192,7 +55795,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); + StringBuilder sb = new StringBuilder("get_all_tables_result("); boolean first = true; sb.append("success:"); @@ -55202,6 +55805,14 @@ public String toString() { 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(); } @@ -55227,15 +55838,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultStandardScheme getScheme() { - return new get_table_objects_by_name_resultStandardScheme(); + private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_all_tables_resultStandardScheme getScheme() { + return new get_all_tables_resultStandardScheme(); } } - private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { + private static class get_all_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55248,14 +55859,13 @@ 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 _list804 = iprot.readListBegin(); - struct.success = new ArrayList
(_list804.size); - Table _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.success = new ArrayList(_list836.size); + String _elem837; + for (int _i838 = 0; _i838 < _list836.size; ++_i838) { - _elem805 = new Table(); - _elem805.read(iprot); - struct.success.add(_elem805); + _elem837 = iprot.readString(); + struct.success.add(_elem837); } iprot.readListEnd(); } @@ -55264,6 +55874,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b 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); } @@ -55273,94 +55892,112 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter807 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter839 : struct.success) { - _iter807.write(oprot); + oprot.writeString(_iter839); } 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_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultTupleScheme getScheme() { - return new get_table_objects_by_name_resultTupleScheme(); + private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_all_tables_resultTupleScheme getScheme() { + return new get_all_tables_resultTupleScheme(); } } - private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { + private static class get_all_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter808 : struct.success) + for (String _iter840 : struct.success) { - _iter808.write(oprot); + oprot.writeString(_iter840); } } } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list809.size); - Table _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list841.size); + String _elem842; + for (int _i843 = 0; _i843 < _list841.size; ++_i843) { - _elem810 = new Table(); - _elem810.read(iprot); - struct.success.add(_elem810); + _elem842 = iprot.readString(); + struct.success.add(_elem842); } } struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } } } } - public static class get_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_args"); + public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); } - private GetTableRequest req; // required + private String dbname; // 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 { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"); private static final Map byName = new HashMap(); @@ -55375,8 +56012,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; default: return null; } @@ -55420,70 +56059,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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, GetTableRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); } - public get_table_req_args() { + public get_table_args() { } - public get_table_req_args( - GetTableRequest req) + public get_table_args( + String dbname, + String tbl_name) { this(); - this.req = req; + this.dbname = dbname; + this.tbl_name = tbl_name; } /** * Performs a deep copy on other. */ - public get_table_req_args(get_table_req_args other) { - if (other.isSetReq()) { - this.req = new GetTableRequest(other.req); + public get_table_args(get_table_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } } - public get_table_req_args deepCopy() { - return new get_table_req_args(this); + public get_table_args deepCopy() { + return new get_table_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.tbl_name = null; } - public GetTableRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(GetTableRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; } - public void setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public 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 REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((GetTableRequest)value); + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); } break; @@ -55492,8 +56170,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); } throw new IllegalStateException(); @@ -55506,8 +56187,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); } throw new IllegalStateException(); } @@ -55516,53 +56199,77 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_args) - return this.equals((get_table_req_args)that); + if (that instanceof get_table_args) + return this.equals((get_table_args)that); return false; } - public boolean equals(get_table_req_args that) { + public boolean equals(get_table_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_dbname = true && this.isSetDbname(); + boolean that_present_dbname = true && that.isSetDbname(); + if (this_present_dbname || that_present_dbname) { + if (!(this_present_dbname && that_present_dbname)) return false; - if (!this.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) return false; } - return true; + 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_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); return list.hashCode(); } @Override - public int compareTo(get_table_req_args other) { + public int compareTo(get_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_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; } @@ -55584,14 +56291,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_args("); + StringBuilder sb = new StringBuilder("get_table_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); } first = false; sb.append(")"); @@ -55601,9 +56316,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -55622,15 +56334,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_req_argsStandardScheme getScheme() { - return new get_table_req_argsStandardScheme(); + private static class get_table_argsStandardSchemeFactory implements SchemeFactory { + public get_table_argsStandardScheme getScheme() { + return new get_table_argsStandardScheme(); } } - private static class get_table_req_argsStandardScheme extends StandardScheme { + private static class get_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55640,11 +56352,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -55658,13 +56377,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -55673,43 +56397,52 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args } - private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_req_argsTupleScheme getScheme() { - return new get_table_req_argsTupleScheme(); + private static class get_table_argsTupleSchemeFactory implements SchemeFactory { + public get_table_argsTupleScheme getScheme() { + return new get_table_argsTupleScheme(); } } - private static class get_table_req_argsTupleScheme extends TupleScheme { + private static class get_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.req = new GetTableRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } } } } - public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); + public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -55717,11 +56450,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args s private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); } - private GetTableResult success; // required + private Table success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -55794,20 +56527,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, GetTableResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); } - public get_table_req_result() { + public get_table_result() { } - public get_table_req_result( - GetTableResult success, + public get_table_result( + Table success, MetaException o1, NoSuchObjectException o2) { @@ -55820,9 +56553,9 @@ public get_table_req_result( /** * Performs a deep copy on other. */ - public get_table_req_result(get_table_req_result other) { + public get_table_result(get_table_result other) { if (other.isSetSuccess()) { - this.success = new GetTableResult(other.success); + this.success = new Table(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -55832,8 +56565,8 @@ public get_table_req_result(get_table_req_result other) { } } - public get_table_req_result deepCopy() { - return new get_table_req_result(this); + public get_table_result deepCopy() { + return new get_table_result(this); } @Override @@ -55843,11 +56576,11 @@ public void clear() { this.o2 = null; } - public GetTableResult getSuccess() { + public Table getSuccess() { return this.success; } - public void setSuccess(GetTableResult success) { + public void setSuccess(Table success) { this.success = success; } @@ -55918,7 +56651,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetTableResult)value); + setSuccess((Table)value); } break; @@ -55977,12 +56710,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_result) - return this.equals((get_table_req_result)that); + if (that instanceof get_table_result) + return this.equals((get_table_result)that); return false; } - public boolean equals(get_table_req_result that) { + public boolean equals(get_table_result that) { if (that == null) return false; @@ -56039,7 +56772,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_req_result other) { + public int compareTo(get_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -56093,7 +56826,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_result("); + StringBuilder sb = new StringBuilder("get_table_result("); boolean first = true; sb.append("success:"); @@ -56147,15 +56880,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_req_resultStandardScheme getScheme() { - return new get_table_req_resultStandardScheme(); + private static class get_table_resultStandardSchemeFactory implements SchemeFactory { + public get_table_resultStandardScheme getScheme() { + return new get_table_resultStandardScheme(); } } - private static class get_table_req_resultStandardScheme extends StandardScheme { + private static class get_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56167,7 +56900,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTableResult(); + struct.success = new Table(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -56201,7 +56934,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56226,16 +56959,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_resu } - private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_req_resultTupleScheme getScheme() { - return new get_table_req_resultTupleScheme(); + private static class get_table_resultTupleSchemeFactory implements SchemeFactory { + public get_table_resultTupleScheme getScheme() { + return new get_table_resultTupleScheme(); } } - private static class get_table_req_resultTupleScheme extends TupleScheme { + private static class get_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -56260,11 +56993,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new GetTableResult(); + struct.success = new Table(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -56283,22 +57016,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result } - public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); + public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); } - private GetTablesRequest req; // required + private String dbname; // required + private List tbl_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); + DBNAME((short)1, "dbname"), + TBL_NAMES((short)2, "tbl_names"); private static final Map byName = new HashMap(); @@ -56313,8 +57049,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAMES + return TBL_NAMES; default: return null; } @@ -56358,70 +57096,126 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); } - public get_table_objects_by_name_req_args() { + public get_table_objects_by_name_args() { } - public get_table_objects_by_name_req_args( - GetTablesRequest req) + public get_table_objects_by_name_args( + String dbname, + List tbl_names) { this(); - this.req = req; + this.dbname = dbname; + this.tbl_names = tbl_names; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { - if (other.isSetReq()) { - this.req = new GetTablesRequest(other.req); + public get_table_objects_by_name_args(get_table_objects_by_name_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_names()) { + List __this__tbl_names = new ArrayList(other.tbl_names); + this.tbl_names = __this__tbl_names; } } - public get_table_objects_by_name_req_args deepCopy() { - return new get_table_objects_by_name_req_args(this); + public get_table_objects_by_name_args deepCopy() { + return new get_table_objects_by_name_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.tbl_names = null; } - public GetTablesRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(GetTablesRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; } - public void setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public int getTbl_namesSize() { + return (this.tbl_names == null) ? 0 : this.tbl_names.size(); + } + + public java.util.Iterator getTbl_namesIterator() { + return (this.tbl_names == null) ? null : this.tbl_names.iterator(); + } + + public void addToTbl_names(String elem) { + if (this.tbl_names == null) { + this.tbl_names = new ArrayList(); + } + this.tbl_names.add(elem); + } + + public List getTbl_names() { + return this.tbl_names; + } + + public void setTbl_names(List tbl_names) { + this.tbl_names = tbl_names; + } + + public void unsetTbl_names() { + this.tbl_names = null; + } + + /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_names() { + return this.tbl_names != null; + } + + public void setTbl_namesIsSet(boolean value) { + if (!value) { + this.tbl_names = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((GetTablesRequest)value); + setDbname((String)value); + } + break; + + case TBL_NAMES: + if (value == null) { + unsetTbl_names(); + } else { + setTbl_names((List)value); } break; @@ -56430,8 +57224,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case TBL_NAMES: + return getTbl_names(); } throw new IllegalStateException(); @@ -56444,8 +57241,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case TBL_NAMES: + return isSetTbl_names(); } throw new IllegalStateException(); } @@ -56454,21 +57253,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_args) - return this.equals((get_table_objects_by_name_req_args)that); + if (that instanceof get_table_objects_by_name_args) + return this.equals((get_table_objects_by_name_args)that); return false; } - public boolean equals(get_table_objects_by_name_req_args that) { + public boolean equals(get_table_objects_by_name_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_dbname = true && this.isSetDbname(); + boolean that_present_dbname = true && that.isSetDbname(); + if (this_present_dbname || that_present_dbname) { + if (!(this_present_dbname && that_present_dbname)) return false; - if (!this.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tbl_names = true && this.isSetTbl_names(); + boolean that_present_tbl_names = true && that.isSetTbl_names(); + if (this_present_tbl_names || that_present_tbl_names) { + if (!(this_present_tbl_names && that_present_tbl_names)) + return false; + if (!this.tbl_names.equals(that.tbl_names)) return false; } @@ -56479,28 +57287,43 @@ public boolean equals(get_table_objects_by_name_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_names = true && (isSetTbl_names()); + list.add(present_tbl_names); + if (present_tbl_names) + list.add(tbl_names); return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_req_args other) { + public int compareTo(get_table_objects_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -56522,14 +57345,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_names:"); + if (this.tbl_names == null) { + sb.append("null"); + } else { + sb.append(this.tbl_names); } first = false; sb.append(")"); @@ -56539,9 +57370,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -56560,15 +57388,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsStandardScheme getScheme() { - return new get_table_objects_by_name_req_argsStandardScheme(); + private static class get_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsStandardScheme getScheme() { + return new get_table_objects_by_name_argsStandardScheme(); } } - private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56578,11 +57406,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list844.size); + String _elem845; + for (int _i846 = 0; _i846 < _list844.size; ++_i846) + { + _elem845 = iprot.readString(); + struct.tbl_names.add(_elem845); + } + iprot.readListEnd(); + } + struct.setTbl_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -56596,13 +57441,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_names != null) { + oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); + for (String _iter847 : struct.tbl_names) + { + oprot.writeString(_iter847); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -56611,66 +57468,81 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsTupleScheme getScheme() { - return new get_table_objects_by_name_req_argsTupleScheme(); + private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsTupleScheme getScheme() { + return new get_table_objects_by_name_argsTupleScheme(); } } - private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_names()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_names()) { + { + oprot.writeI32(struct.tbl_names.size()); + for (String _iter848 : struct.tbl_names) + { + oprot.writeString(_iter848); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list849.size); + String _elem850; + for (int _i851 = 0; _i851 < _list849.size; ++_i851) + { + _elem850 = iprot.readString(); + struct.tbl_names.add(_elem850); + } + } + struct.setTbl_namesIsSet(true); } } } } - public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); + public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); } - private GetTablesResult success; // required - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private List
success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -56687,12 +57559,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 - return O2; - case 3: // O3 - return O3; default: return null; } @@ -56737,68 +57603,64 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.class))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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, Table.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); } - public get_table_objects_by_name_req_result() { + public get_table_objects_by_name_result() { } - public get_table_objects_by_name_req_result( - GetTablesResult success, - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public get_table_objects_by_name_result( + List
success) { this(); this.success = success; - this.o1 = o1; - this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { + public get_table_objects_by_name_result(get_table_objects_by_name_result other) { if (other.isSetSuccess()) { - this.success = new GetTablesResult(other.success); - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + List
__this__success = new ArrayList
(other.success.size()); + for (Table other_element : other.success) { + __this__success.add(new Table(other_element)); + } + this.success = __this__success; } } - public get_table_objects_by_name_req_result deepCopy() { - return new get_table_objects_by_name_req_result(this); + public get_table_objects_by_name_result deepCopy() { + return new get_table_objects_by_name_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; - this.o2 = null; - this.o3 = null; } - public GetTablesResult getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator
getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Table elem) { + if (this.success == null) { + this.success = new ArrayList
(); + } + this.success.add(elem); + } + + public List
getSuccess() { return this.success; } - public void setSuccess(GetTablesResult success) { + public void setSuccess(List
success) { this.success = success; } @@ -56817,106 +57679,13 @@ public void setSuccessIsSet(boolean value) { } } - 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 InvalidOperationException getO2() { - return this.o2; - } - - public void setO2(InvalidOperationException 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 UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((GetTablesResult)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setSuccess((List
)value); } break; @@ -56928,15 +57697,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - - case O2: - return getO2(); - - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -56950,12 +57710,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); - case O2: - return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -56964,12 +57718,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_result) - return this.equals((get_table_objects_by_name_req_result)that); + if (that instanceof get_table_objects_by_name_result) + return this.equals((get_table_objects_by_name_result)that); return false; } - public boolean equals(get_table_objects_by_name_req_result that) { + public boolean equals(get_table_objects_by_name_result that) { if (that == null) return false; @@ -56982,33 +57736,6 @@ public boolean equals(get_table_objects_by_name_req_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - 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; } @@ -57021,26 +57748,11 @@ public int hashCode() { if (present_success) list.add(success); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_req_result other) { + public int compareTo(get_table_objects_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -57057,36 +57769,6 @@ public int compareTo(get_table_objects_by_name_req_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - 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; } @@ -57104,7 +57786,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); boolean first = true; sb.append("success:"); @@ -57114,30 +57796,6 @@ public String toString() { 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; sb.append(")"); return sb.toString(); } @@ -57145,9 +57803,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -57166,15 +57821,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultStandardScheme getScheme() { - return new get_table_objects_by_name_req_resultStandardScheme(); + private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultStandardScheme getScheme() { + return new get_table_objects_by_name_resultStandardScheme(); } } - private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57185,41 +57840,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); + struct.success = new ArrayList
(_list852.size); + Table _elem853; + for (int _i854 = 0; _i854 < _list852.size; ++_i854) + { + _elem853 = new Table(); + _elem853.read(iprot); + struct.success.add(_elem853); + } + 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; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57229,28 +57867,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Table _iter855 : struct.success) + { + _iter855.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -57259,96 +57889,72 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultTupleScheme getScheme() { - return new get_table_objects_by_name_req_resultTupleScheme(); + private static class get_table_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultTupleScheme getScheme() { + return new get_table_objects_by_name_resultTupleScheme(); } } - private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_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); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } - if (struct.isSetO3()) { - struct.o3.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Table _iter856 : struct.success) + { + _iter856.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list857.size); + Table _elem858; + for (int _i859 = 0; _i859 < _list857.size; ++_i859) + { + _elem858 = new Table(); + _elem858.read(iprot); + struct.success.add(_elem858); + } + } 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 InvalidOperationException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class get_table_names_by_filter_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_names_by_filter_args"); + public static class get_table_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_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 FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (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 get_table_names_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); } - private String dbname; // required - private String filter; // required - private short max_tables; // required + private GetTableRequest 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"), - FILTER((short)2, "filter"), - MAX_TABLES((short)3, "max_tables"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -57363,12 +57969,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // FILTER - return FILTER; - case 3: // MAX_TABLES - return MAX_TABLES; + case 1: // REQ + return REQ; default: return null; } @@ -57409,155 +58011,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_TABLES_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.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + 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, GetTableRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_args.class, metaDataMap); } - public get_table_names_by_filter_args() { - this.max_tables = (short)-1; - + public get_table_req_args() { } - public get_table_names_by_filter_args( - String dbname, - String filter, - short max_tables) + public get_table_req_args( + GetTableRequest req) { this(); - this.dbname = dbname; - this.filter = filter; - this.max_tables = max_tables; - setMax_tablesIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_args(get_table_names_by_filter_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetFilter()) { - this.filter = other.filter; + public get_table_req_args(get_table_req_args other) { + if (other.isSetReq()) { + this.req = new GetTableRequest(other.req); } - this.max_tables = other.max_tables; } - public get_table_names_by_filter_args deepCopy() { - return new get_table_names_by_filter_args(this); + public get_table_req_args deepCopy() { + return new get_table_req_args(this); } @Override public void clear() { - this.dbname = null; - this.filter = null; - this.max_tables = (short)-1; - - } - - 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 getFilter() { - return this.filter; + public GetTableRequest getReq() { + return this.req; } - public void setFilter(String filter) { - this.filter = filter; + public void setReq(GetTableRequest req) { + this.req = req; } - public void unsetFilter() { - this.filter = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != 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 setFilterIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.filter = null; + this.req = null; } } - public short getMax_tables() { - return this.max_tables; - } - - public void setMax_tables(short max_tables) { - this.max_tables = max_tables; - setMax_tablesIsSet(true); - } - - public void unsetMax_tables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); - } - - /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_tables() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); - } - - public void setMax_tablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case FILTER: - if (value == null) { - unsetFilter(); - } else { - setFilter((String)value); - } - break; - - case MAX_TABLES: + case REQ: if (value == null) { - unsetMax_tables(); + unsetReq(); } else { - setMax_tables((Short)value); + setReq((GetTableRequest)value); } break; @@ -57566,14 +58086,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case FILTER: - return getFilter(); - - case MAX_TABLES: - return getMax_tables(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -57586,12 +58100,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case FILTER: - return isSetFilter(); - case MAX_TABLES: - return isSetMax_tables(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -57600,39 +58110,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_names_by_filter_args) - return this.equals((get_table_names_by_filter_args)that); + if (that instanceof get_table_req_args) + return this.equals((get_table_req_args)that); return false; } - public boolean equals(get_table_names_by_filter_args that) { + public boolean equals(get_table_req_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_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) - return false; - if (!this.filter.equals(that.filter)) - return false; - } - - boolean this_present_max_tables = true; - boolean that_present_max_tables = true; - if (this_present_max_tables || that_present_max_tables) { - if (!(this_present_max_tables && that_present_max_tables)) + 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.max_tables != that.max_tables) + if (!this.req.equals(that.req)) return false; } @@ -57643,58 +58135,28 @@ public boolean equals(get_table_names_by_filter_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_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); - - boolean present_max_tables = true; - list.add(present_max_tables); - if (present_max_tables) - list.add(max_tables); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_table_names_by_filter_args other) { + public int compareTo(get_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(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(isSetFilter()).compareTo(other.isSetFilter()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_tables()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -57716,28 +58178,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); + StringBuilder sb = new StringBuilder("get_table_req_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("filter:"); - if (this.filter == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("max_tables:"); - sb.append(this.max_tables); - first = false; sb.append(")"); return sb.toString(); } @@ -57745,6 +58195,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 { @@ -57757,23 +58210,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsStandardScheme getScheme() { - return new get_table_names_by_filter_argsStandardScheme(); + private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_req_argsStandardScheme getScheme() { + return new get_table_req_argsStandardScheme(); } } - private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { + private static class get_table_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57783,26 +58234,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ 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: // FILTER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_TABLES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57816,108 +58252,78 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); - oprot.writeI16(struct.max_tables); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsTupleScheme getScheme() { - return new get_table_names_by_filter_argsTupleScheme(); + private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_req_argsTupleScheme getScheme() { + return new get_table_req_argsTupleScheme(); } } - private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { + private static class get_table_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetFilter()) { - optionals.set(1); - } - if (struct.isSetMax_tables()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); - } - if (struct.isSetMax_tables()) { - oprot.writeI16(struct.max_tables); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); - } - if (incoming.get(2)) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + struct.req = new GetTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class get_table_names_by_filter_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_names_by_filter_result"); + public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); } - private List success; // required + private GetTableResult success; // required private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // 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"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -57938,8 +58344,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -57984,55 +58388,46 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_result.class, metaDataMap); } - public get_table_names_by_filter_result() { + public get_table_req_result() { } - public get_table_names_by_filter_result( - List success, + public get_table_req_result( + GetTableResult success, MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_result(get_table_names_by_filter_result other) { + public get_table_req_result(get_table_req_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new GetTableResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_table_names_by_filter_result deepCopy() { - return new get_table_names_by_filter_result(this); + public get_table_req_result deepCopy() { + return new get_table_req_result(this); } @Override @@ -58040,29 +58435,13 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); } - public List getSuccess() { + public GetTableResult getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetTableResult success) { this.success = success; } @@ -58104,11 +58483,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(InvalidOperationException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -58127,36 +58506,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetTableResult)value); } break; @@ -58172,15 +58528,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((NoSuchObjectException)value); } break; @@ -58198,9 +58546,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -58218,8 +58563,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -58228,12 +58571,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_names_by_filter_result) - return this.equals((get_table_names_by_filter_result)that); + if (that instanceof get_table_req_result) + return this.equals((get_table_req_result)that); return false; } - public boolean equals(get_table_names_by_filter_result that) { + public boolean equals(get_table_req_result that) { if (that == null) return false; @@ -58264,15 +58607,6 @@ public boolean equals(get_table_names_by_filter_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; } @@ -58295,16 +58629,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(get_table_names_by_filter_result other) { + public int compareTo(get_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -58341,16 +58670,6 @@ public int compareTo(get_table_names_by_filter_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; } @@ -58368,7 +58687,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_result("); + StringBuilder sb = new StringBuilder("get_table_req_result("); boolean first = true; sb.append("success:"); @@ -58394,14 +58713,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; sb.append(")"); return sb.toString(); } @@ -58409,6 +58720,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 { @@ -58427,15 +58741,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultStandardScheme getScheme() { - return new get_table_names_by_filter_resultStandardScheme(); + private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_req_resultStandardScheme getScheme() { + return new get_table_req_resultStandardScheme(); } } - private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { + private static class get_table_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58446,18 +58760,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.success = new ArrayList(_list812.size); - String _elem813; - for (int _i814 = 0; _i814 < _list812.size; ++_i814) - { - _elem813 = iprot.readString(); - struct.success.add(_elem813); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetTableResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -58474,22 +58779,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -58499,20 +58795,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter815 : struct.success) - { - oprot.writeString(_iter815); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -58525,27 +58814,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultTupleScheme getScheme() { - return new get_table_names_by_filter_resultTupleScheme(); + private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_req_resultTupleScheme getScheme() { + return new get_table_req_resultTupleScheme(); } } - private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { + private static class get_table_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -58557,18 +58841,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter816 : struct.success) - { - oprot.writeString(_iter816); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -58576,26 +58851,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list817.size); - String _elem818; - for (int _i819 = 0; _i819 < _list817.size; ++_i819) - { - _elem818 = iprot.readString(); - struct.success.add(_elem818); - } - } + struct.success = new GetTableResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -58604,42 +58868,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new InvalidOperationException(); + 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); - } } } } - public static class alter_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("alter_table_args"); + public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); - private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (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 alter_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required + private GetTablesRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -58654,12 +58907,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; + case 1: // REQ + return REQ; default: return null; } @@ -58703,148 +58952,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); } - public alter_table_args() { + public get_table_objects_by_name_req_args() { } - public alter_table_args( - String dbname, - String tbl_name, - Table new_tbl) + public get_table_objects_by_name_req_args( + GetTablesRequest req) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; + this.req = req; } /** * Performs a deep copy on other. */ - public alter_table_args(alter_table_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); + public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { + if (other.isSetReq()) { + this.req = new GetTablesRequest(other.req); } } - public alter_table_args deepCopy() { - return new alter_table_args(this); + public get_table_objects_by_name_req_args deepCopy() { + return new get_table_objects_by_name_req_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; - this.new_tbl = null; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } - } - - public String getTbl_name() { - return this.tbl_name; - } - - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; - } - - public void unsetTbl_name() { - this.tbl_name = null; - } - - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; - } - - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } + this.req = null; } - public Table getNew_tbl() { - return this.new_tbl; + public GetTablesRequest getReq() { + return this.req; } - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + public void setReq(GetTablesRequest req) { + this.req = req; } - public void unsetNew_tbl() { - this.new_tbl = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != 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 setNew_tblIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.new_tbl = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: + case REQ: if (value == null) { - unsetNew_tbl(); + unsetReq(); } else { - setNew_tbl((Table)value); + setReq((GetTablesRequest)value); } break; @@ -58853,14 +59024,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -58873,12 +59038,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -58887,39 +59048,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_args) - return this.equals((alter_table_args)that); + if (that instanceof get_table_objects_by_name_req_args) + return this.equals((get_table_objects_by_name_req_args)that); return false; } - public boolean equals(alter_table_args that) { + public boolean equals(get_table_objects_by_name_req_args that) { if (that == null) return false; - boolean this_present_dbname = true && this.isSetDbname(); - boolean that_present_dbname = true && that.isSetDbname(); - if (this_present_dbname || that_present_dbname) { - if (!(this_present_dbname && that_present_dbname)) - return false; - if (!this.dbname.equals(that.dbname)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) + 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.new_tbl.equals(that.new_tbl)) + if (!this.req.equals(that.req)) return false; } @@ -58930,58 +59073,28 @@ public boolean equals(alter_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(alter_table_args other) { + public int compareTo(get_table_objects_by_name_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -59003,30 +59116,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("new_tbl:"); - if (this.new_tbl == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.new_tbl); + sb.append(this.req); } first = false; sb.append(")"); @@ -59036,8 +59133,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); + if (req != null) { + req.validate(); } } @@ -59057,15 +59154,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_argsStandardScheme getScheme() { - return new alter_table_argsStandardScheme(); + private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsStandardScheme getScheme() { + return new get_table_objects_by_name_req_argsStandardScheme(); } } - private static class alter_table_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59075,27 +59172,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_TBL + case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59109,23 +59190,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -59134,80 +59205,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args s } - private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_argsTupleScheme getScheme() { - return new alter_table_argsTupleScheme(); + private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsTupleScheme getScheme() { + return new get_table_objects_by_name_req_argsTupleScheme(); } } - private static class alter_table_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNew_tbl()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class alter_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("alter_table_result"); + public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private GetTablesResult success; // required + private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -59222,10 +59279,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -59269,53 +59330,92 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); } - public alter_table_result() { + public get_table_objects_by_name_req_result() { } - public alter_table_result( - InvalidOperationException o1, - MetaException o2) + public get_table_objects_by_name_req_result( + GetTablesResult success, + MetaException o1, + InvalidOperationException o2, + UnknownDBException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_result(alter_table_result other) { + public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { + if (other.isSetSuccess()) { + this.success = new GetTablesResult(other.success); + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public alter_table_result deepCopy() { - return new alter_table_result(this); + public get_table_objects_by_name_req_result deepCopy() { + return new get_table_objects_by_name_req_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + public GetTablesResult getSuccess() { + return this.success; + } + + public void setSuccess(GetTablesResult 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(InvalidOperationException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -59334,11 +59434,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -59357,13 +59457,44 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((GetTablesResult)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((MetaException)value); } break; @@ -59371,7 +59502,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -59380,12 +59519,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -59397,10 +59542,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -59409,15 +59558,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_result) - return this.equals((alter_table_result)that); + if (that instanceof get_table_objects_by_name_req_result) + return this.equals((get_table_objects_by_name_req_result)that); return false; } - public boolean equals(alter_table_result that) { + public boolean equals(get_table_objects_by_name_req_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -59436,6 +59594,15 @@ public boolean equals(alter_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; } @@ -59443,6 +59610,11 @@ public boolean equals(alter_table_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) @@ -59453,17 +59625,32 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_result other) { + public int compareTo(get_table_objects_by_name_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } 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; @@ -59484,6 +59671,16 @@ public int compareTo(alter_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; } @@ -59501,9 +59698,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -59519,6 +59724,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -59526,6 +59739,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 { @@ -59544,15 +59760,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_resultStandardScheme getScheme() { - return new alter_table_resultStandardScheme(); + private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultStandardScheme getScheme() { + return new get_table_objects_by_name_req_resultStandardScheme(); } } - private static class alter_table_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59562,9 +59778,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetTablesResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -59573,13 +59798,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59589,10 +59823,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -59603,83 +59842,107 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_resultTupleScheme getScheme() { - return new alter_table_resultTupleScheme(); + private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultTupleScheme getScheme() { + return new get_table_objects_by_name_req_resultTupleScheme(); } } - private static class alter_table_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new GetTablesResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class alter_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("alter_table_with_environment_context_args"); + public static class get_table_names_by_filter_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_names_by_filter_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (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 org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); } private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required - private EnvironmentContext environment_context; // required + private String filter; // required + private short max_tables; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + FILTER((short)2, "filter"), + MAX_TABLES((short)3, "max_tables"); private static final Map byName = new HashMap(); @@ -59696,12 +59959,10 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DBNAME return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 2: // FILTER + return FILTER; + case 3: // MAX_TABLES + return MAX_TABLES; default: return null; } @@ -59742,65 +60003,62 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_TABLES_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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - 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))); + tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); } - public alter_table_with_environment_context_args() { + public get_table_names_by_filter_args() { + this.max_tables = (short)-1; + } - public alter_table_with_environment_context_args( + public get_table_names_by_filter_args( String dbname, - String tbl_name, - Table new_tbl, - EnvironmentContext environment_context) + String filter, + short max_tables) { this(); this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; - this.environment_context = environment_context; + this.filter = filter; + this.max_tables = max_tables; + setMax_tablesIsSet(true); } /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { + public get_table_names_by_filter_args(get_table_names_by_filter_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetFilter()) { + this.filter = other.filter; } + this.max_tables = other.max_tables; } - public alter_table_with_environment_context_args deepCopy() { - return new alter_table_with_environment_context_args(this); + public get_table_names_by_filter_args deepCopy() { + return new get_table_names_by_filter_args(this); } @Override public void clear() { this.dbname = null; - this.tbl_name = null; - this.new_tbl = null; - this.environment_context = null; + this.filter = null; + this.max_tables = (short)-1; + } public String getDbname() { @@ -59826,73 +60084,49 @@ public void setDbnameIsSet(boolean value) { } } - 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 Table getNew_tbl() { - return this.new_tbl; + public String getFilter() { + return this.filter; } - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + public void setFilter(String filter) { + this.filter = filter; } - public void unsetNew_tbl() { - this.new_tbl = null; + public void unsetFilter() { + this.filter = null; } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != null; + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; } - public void setNew_tblIsSet(boolean value) { + public void setFilterIsSet(boolean value) { if (!value) { - this.new_tbl = null; + this.filter = null; } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public short getMax_tables() { + return this.max_tables; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setMax_tables(short max_tables) { + this.max_tables = max_tables; + setMax_tablesIsSet(true); } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetMax_tables() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); } - /** 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; + /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_tables() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); } - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } + public void setMax_tablesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -59905,27 +60139,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: + case FILTER: if (value == null) { - unsetNew_tbl(); + unsetFilter(); } else { - setNew_tbl((Table)value); + setFilter((String)value); } break; - case ENVIRONMENT_CONTEXT: + case MAX_TABLES: if (value == null) { - unsetEnvironment_context(); + unsetMax_tables(); } else { - setEnvironment_context((EnvironmentContext)value); + setMax_tables((Short)value); } break; @@ -59937,14 +60163,11 @@ public Object getFieldValue(_Fields field) { case DBNAME: return getDbname(); - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); + case FILTER: + return getFilter(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case MAX_TABLES: + return getMax_tables(); } throw new IllegalStateException(); @@ -59959,12 +60182,10 @@ public boolean isSet(_Fields field) { switch (field) { case DBNAME: return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case FILTER: + return isSetFilter(); + case MAX_TABLES: + return isSetMax_tables(); } throw new IllegalStateException(); } @@ -59973,12 +60194,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_args) - return this.equals((alter_table_with_environment_context_args)that); + if (that instanceof get_table_names_by_filter_args) + return this.equals((get_table_names_by_filter_args)that); return false; } - public boolean equals(alter_table_with_environment_context_args that) { + public boolean equals(get_table_names_by_filter_args that) { if (that == null) return false; @@ -59991,30 +60212,21 @@ public boolean equals(alter_table_with_environment_context_args that) { return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) return false; - if (!this.new_tbl.equals(that.new_tbl)) + if (!this.filter.equals(that.filter)) 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)) + boolean this_present_max_tables = true; + boolean that_present_max_tables = true; + if (this_present_max_tables || that_present_max_tables) { + if (!(this_present_max_tables && that_present_max_tables)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (this.max_tables != that.max_tables) return false; } @@ -60030,26 +60242,21 @@ public int hashCode() { if (present_dbname) list.add(dbname); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); + boolean present_filter = true && (isSetFilter()); + list.add(present_filter); + if (present_filter) + list.add(filter); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_max_tables = true; + list.add(present_max_tables); + if (present_max_tables) + list.add(max_tables); return list.hashCode(); } @Override - public int compareTo(alter_table_with_environment_context_args other) { + public int compareTo(get_table_names_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -60066,32 +60273,22 @@ public int compareTo(alter_table_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetMax_tables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); if (lastComparison != 0) { return lastComparison; } @@ -60113,7 +60310,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); boolean first = true; sb.append("dbname:"); @@ -60124,28 +60321,16 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("filter:"); + if (this.filter == null) { sb.append("null"); } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("new_tbl:"); - if (this.new_tbl == null) { - sb.append("null"); - } else { - sb.append(this.new_tbl); + sb.append(this.filter); } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } + sb.append("max_tables:"); + sb.append(this.max_tables); first = false; sb.append(")"); return sb.toString(); @@ -60154,12 +60339,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); - } - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -60172,21 +60351,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsStandardScheme getScheme() { - return new alter_table_with_environment_context_argsStandardScheme(); + private static class get_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsStandardScheme getScheme() { + return new get_table_names_by_filter_argsStandardScheme(); } } - private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60204,28 +60385,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 2: // FILTER if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_TBL - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(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); + case 3: // MAX_TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60239,7 +60410,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60248,112 +60419,99 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); + oprot.writeI16(struct.max_tables); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsTupleScheme getScheme() { - return new alter_table_with_environment_context_argsTupleScheme(); + private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsTupleScheme getScheme() { + return new get_table_names_by_filter_argsTupleScheme(); } } - private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetFilter()) { optionals.set(1); } - if (struct.isSetNew_tbl()) { + if (struct.isSetMax_tables()) { 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); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetMax_tables()) { + oprot.writeI16(struct.max_tables); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_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); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } } } } - public static class alter_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("alter_table_with_environment_context_result"); + public static class get_table_names_by_filter_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_names_by_filter_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -60368,10 +60526,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -60415,53 +60577,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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(alter_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); } - public alter_table_with_environment_context_result() { + public get_table_names_by_filter_result() { } - public alter_table_with_environment_context_result( - InvalidOperationException o1, - MetaException o2) + public get_table_names_by_filter_result( + List success, + MetaException o1, + InvalidOperationException o2, + UnknownDBException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { + public get_table_names_by_filter_result(get_table_names_by_filter_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public alter_table_with_environment_context_result deepCopy() { - return new alter_table_with_environment_context_result(this); + public get_table_names_by_filter_result deepCopy() { + return new get_table_names_by_filter_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + 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(InvalidOperationException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -60480,11 +60698,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -60503,13 +60721,44 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((MetaException)value); } break; @@ -60517,7 +60766,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -60526,12 +60783,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -60543,10 +60806,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -60555,15 +60822,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_result) - return this.equals((alter_table_with_environment_context_result)that); + if (that instanceof get_table_names_by_filter_result) + return this.equals((get_table_names_by_filter_result)that); return false; } - public boolean equals(alter_table_with_environment_context_result that) { + public boolean equals(get_table_names_by_filter_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) { @@ -60582,6 +60858,15 @@ public boolean equals(alter_table_with_environment_context_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; } @@ -60589,6 +60874,11 @@ public boolean equals(alter_table_with_environment_context_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) @@ -60599,17 +60889,32 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(alter_table_with_environment_context_result other) { + public int compareTo(get_table_names_by_filter_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; @@ -60630,6 +60935,16 @@ public int compareTo(alter_table_with_environment_context_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; } @@ -60647,9 +60962,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_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"); @@ -60665,6 +60988,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -60690,15 +61021,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultStandardScheme getScheme() { - return new alter_table_with_environment_context_resultStandardScheme(); + private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultStandardScheme getScheme() { + return new get_table_names_by_filter_resultStandardScheme(); } } - private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60708,9 +61039,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); + struct.success = new ArrayList(_list860.size); + String _elem861; + for (int _i862 = 0; _i862 < _list860.size; ++_i862) + { + _elem861 = iprot.readString(); + struct.success.add(_elem861); + } + 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 InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -60719,13 +61068,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60735,10 +61093,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_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 _iter863 : struct.success) + { + oprot.writeString(_iter863); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -60749,83 +61119,121 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultTupleScheme getScheme() { - return new alter_table_with_environment_context_resultTupleScheme(); + private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultTupleScheme getScheme() { + return new get_table_names_by_filter_resultTupleScheme(); } } - private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter864 : struct.success) + { + oprot.writeString(_iter864); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + { + org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list865.size); + String _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) + { + _elem866 = iprot.readString(); + struct.success.add(_elem866); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class alter_table_with_cascade_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("alter_table_with_cascade_args"); + public static class alter_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("alter_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); } private String dbname; // required private String tbl_name; // required private Table new_tbl; // required - private boolean cascade; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DBNAME((short)1, "dbname"), TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"), - CASCADE((short)4, "cascade"); + NEW_TBL((short)3, "new_tbl"); private static final Map byName = new HashMap(); @@ -60846,8 +61254,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // NEW_TBL return NEW_TBL; - case 4: // CASCADE - return CASCADE; default: return null; } @@ -60888,8 +61294,6 @@ public String getFieldName() { } // isset id assignments - private static final int __CASCADE_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); @@ -60899,34 +61303,28 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", 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(alter_table_with_cascade_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); } - public alter_table_with_cascade_args() { + public alter_table_args() { } - public alter_table_with_cascade_args( + public alter_table_args( String dbname, String tbl_name, - Table new_tbl, - boolean cascade) + Table new_tbl) { this(); this.dbname = dbname; this.tbl_name = tbl_name; this.new_tbl = new_tbl; - this.cascade = cascade; - setCascadeIsSet(true); } /** * Performs a deep copy on other. */ - public alter_table_with_cascade_args(alter_table_with_cascade_args other) { - __isset_bitfield = other.__isset_bitfield; + public alter_table_args(alter_table_args other) { if (other.isSetDbname()) { this.dbname = other.dbname; } @@ -60936,11 +61334,10 @@ public alter_table_with_cascade_args(alter_table_with_cascade_args other) { if (other.isSetNew_tbl()) { this.new_tbl = new Table(other.new_tbl); } - this.cascade = other.cascade; } - public alter_table_with_cascade_args deepCopy() { - return new alter_table_with_cascade_args(this); + public alter_table_args deepCopy() { + return new alter_table_args(this); } @Override @@ -60948,8 +61345,6 @@ public void clear() { this.dbname = null; this.tbl_name = null; this.new_tbl = null; - setCascadeIsSet(false); - this.cascade = false; } public String getDbname() { @@ -61021,28 +61416,6 @@ public void setNew_tblIsSet(boolean value) { } } - public boolean isCascade() { - return this.cascade; - } - - public void setCascade(boolean cascade) { - this.cascade = cascade; - setCascadeIsSet(true); - } - - public void unsetCascade() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); - } - - /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ - public boolean isSetCascade() { - return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); - } - - public void setCascadeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DBNAME: @@ -61069,14 +61442,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case CASCADE: - if (value == null) { - unsetCascade(); - } else { - setCascade((Boolean)value); - } - break; - } } @@ -61091,9 +61456,6 @@ public Object getFieldValue(_Fields field) { case NEW_TBL: return getNew_tbl(); - case CASCADE: - return isCascade(); - } throw new IllegalStateException(); } @@ -61111,8 +61473,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case NEW_TBL: return isSetNew_tbl(); - case CASCADE: - return isSetCascade(); } throw new IllegalStateException(); } @@ -61121,12 +61481,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_args) - return this.equals((alter_table_with_cascade_args)that); + if (that instanceof alter_table_args) + return this.equals((alter_table_args)that); return false; } - public boolean equals(alter_table_with_cascade_args that) { + public boolean equals(alter_table_args that) { if (that == null) return false; @@ -61157,15 +61517,6 @@ public boolean equals(alter_table_with_cascade_args that) { return false; } - boolean this_present_cascade = true; - boolean that_present_cascade = true; - if (this_present_cascade || that_present_cascade) { - if (!(this_present_cascade && that_present_cascade)) - return false; - if (this.cascade != that.cascade) - return false; - } - return true; } @@ -61188,16 +61539,11 @@ public int hashCode() { if (present_new_tbl) list.add(new_tbl); - boolean present_cascade = true; - list.add(present_cascade); - if (present_cascade) - list.add(cascade); - return list.hashCode(); } @Override - public int compareTo(alter_table_with_cascade_args other) { + public int compareTo(alter_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61234,16 +61580,6 @@ public int compareTo(alter_table_with_cascade_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -61261,7 +61597,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); + StringBuilder sb = new StringBuilder("alter_table_args("); boolean first = true; sb.append("dbname:"); @@ -61287,10 +61623,6 @@ public String toString() { sb.append(this.new_tbl); } first = false; - if (!first) sb.append(", "); - sb.append("cascade:"); - sb.append(this.cascade); - first = false; sb.append(")"); return sb.toString(); } @@ -61313,23 +61645,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 alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsStandardScheme getScheme() { - return new alter_table_with_cascade_argsStandardScheme(); + private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_argsStandardScheme getScheme() { + return new alter_table_argsStandardScheme(); } } - private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { + private static class alter_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61364,14 +61694,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // CASCADE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -61381,7 +61703,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61400,25 +61722,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_c struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(CASCADE_FIELD_DESC); - oprot.writeBool(struct.cascade); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsTupleScheme getScheme() { - return new alter_table_with_cascade_argsTupleScheme(); + private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_argsTupleScheme getScheme() { + return new alter_table_argsTupleScheme(); } } - private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { + private static class alter_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { @@ -61430,10 +61749,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_ca if (struct.isSetNew_tbl()) { optionals.set(2); } - if (struct.isSetCascade()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } @@ -61443,15 +61759,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_ca if (struct.isSetNew_tbl()) { struct.new_tbl.write(oprot); } - if (struct.isSetCascade()) { - oprot.writeBool(struct.cascade); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_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); @@ -61465,25 +61778,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas struct.new_tbl.read(iprot); struct.setNew_tblIsSet(true); } - if (incoming.get(3)) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); - } } } } - public static class alter_table_with_cascade_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("alter_table_with_cascade_result"); + public static class alter_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("alter_table_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -61559,13 +61868,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); } - public alter_table_with_cascade_result() { + public alter_table_result() { } - public alter_table_with_cascade_result( + public alter_table_result( InvalidOperationException o1, MetaException o2) { @@ -61577,7 +61886,7 @@ public alter_table_with_cascade_result( /** * Performs a deep copy on other. */ - public alter_table_with_cascade_result(alter_table_with_cascade_result other) { + public alter_table_result(alter_table_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -61586,8 +61895,8 @@ public alter_table_with_cascade_result(alter_table_with_cascade_result other) { } } - public alter_table_with_cascade_result deepCopy() { - return new alter_table_with_cascade_result(this); + public alter_table_result deepCopy() { + return new alter_table_result(this); } @Override @@ -61694,12 +62003,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_result) - return this.equals((alter_table_with_cascade_result)that); + if (that instanceof alter_table_result) + return this.equals((alter_table_result)that); return false; } - public boolean equals(alter_table_with_cascade_result that) { + public boolean equals(alter_table_result that) { if (that == null) return false; @@ -61742,7 +62051,7 @@ public int hashCode() { } @Override - public int compareTo(alter_table_with_cascade_result other) { + public int compareTo(alter_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61786,7 +62095,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_result("); + StringBuilder sb = new StringBuilder("alter_table_result("); boolean first = true; sb.append("o1:"); @@ -61829,15 +62138,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultStandardScheme getScheme() { - return new alter_table_with_cascade_resultStandardScheme(); + private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_resultStandardScheme getScheme() { + return new alter_table_resultStandardScheme(); } } - private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { + private static class alter_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61874,7 +62183,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61894,16 +62203,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_c } - private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultTupleScheme getScheme() { - return new alter_table_with_cascade_resultTupleScheme(); + private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_resultTupleScheme getScheme() { + return new alter_table_resultTupleScheme(); } } - private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { + private static class alter_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -61922,7 +62231,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_ca } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -61940,22 +62249,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas } - public static class add_partition_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_partition_args"); + public static class alter_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("alter_table_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (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 add_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); } - private Partition new_part; // required + private String dbname; // required + private String tbl_name; // required + private Table new_tbl; // 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 { - NEW_PART((short)1, "new_part"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -61970,8 +62288,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PART - return NEW_PART; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_TBL + return NEW_TBL; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -62015,70 +62339,187 @@ 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + 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(add_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_args.class, metaDataMap); } - public add_partition_args() { + public alter_table_with_environment_context_args() { } - public add_partition_args( - Partition new_part) + public alter_table_with_environment_context_args( + String dbname, + String tbl_name, + Table new_tbl, + EnvironmentContext environment_context) { this(); - this.new_part = new_part; + this.dbname = dbname; + this.tbl_name = tbl_name; + this.new_tbl = new_tbl; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public add_partition_args(add_partition_args other) { - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); + public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public add_partition_args deepCopy() { - return new add_partition_args(this); + public alter_table_with_environment_context_args deepCopy() { + return new alter_table_with_environment_context_args(this); } @Override public void clear() { - this.new_part = null; + this.dbname = null; + this.tbl_name = null; + this.new_tbl = null; + this.environment_context = null; } - public Partition getNew_part() { - return this.new_part; + public String getDbname() { + return this.dbname; } - public void setNew_part(Partition new_part) { - this.new_part = new_part; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetNew_part() { - this.new_part = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != 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 setNew_partIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.new_part = null; + this.dbname = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public Table getNew_tbl() { + return this.new_tbl; + } + + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; + } + + public void unsetNew_tbl() { + this.new_tbl = null; + } + + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; + } + + public void setNew_tblIsSet(boolean value) { + if (!value) { + this.new_tbl = null; + } + } + + 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 NEW_PART: + case DBNAME: if (value == null) { - unsetNew_part(); + unsetDbname(); } else { - setNew_part((Partition)value); + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case NEW_TBL: + if (value == null) { + unsetNew_tbl(); + } else { + setNew_tbl((Table)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -62087,8 +62528,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PART: - return getNew_part(); + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); + + case NEW_TBL: + return getNew_tbl(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -62101,8 +62551,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PART: - return isSetNew_part(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_TBL: + return isSetNew_tbl(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -62111,21 +62567,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_args) - return this.equals((add_partition_args)that); + if (that instanceof alter_table_with_environment_context_args) + return this.equals((alter_table_with_environment_context_args)that); return false; } - public boolean equals(add_partition_args that) { + public boolean equals(alter_table_with_environment_context_args that) { if (that == null) return false; - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) + 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.new_part.equals(that.new_part)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) + return false; + if (!this.new_tbl.equals(that.new_tbl)) + 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; } @@ -62136,28 +62619,73 @@ public boolean equals(add_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_new_tbl = true && (isSetNew_tbl()); + list.add(present_new_tbl); + if (present_new_tbl) + list.add(new_tbl); + + 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(add_partition_args other) { + public int compareTo(alter_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + 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; } @@ -62179,14 +62707,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_args("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); boolean first = true; - sb.append("new_part:"); - if (this.new_part == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.new_part); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_tbl:"); + if (this.new_tbl == null) { + sb.append("null"); + } else { + sb.append(this.new_tbl); + } + 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(")"); @@ -62196,8 +62748,11 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); + if (new_tbl != null) { + new_tbl.validate(); + } + if (environment_context != null) { + environment_context.validate(); } } @@ -62217,15 +62772,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_argsStandardScheme getScheme() { - return new add_partition_argsStandardScheme(); + private static class alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsStandardScheme getScheme() { + return new alter_table_with_environment_context_argsStandardScheme(); } } - private static class add_partition_argsStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62235,11 +62790,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args break; } switch (schemeField.id) { - case 1: // NEW_PART + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NEW_TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(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); } @@ -62253,13 +62833,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -62268,66 +62863,91 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args } - private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_argsTupleScheme getScheme() { - return new add_partition_argsTupleScheme(); + private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsTupleScheme getScheme() { + return new alter_table_with_environment_context_argsTupleScheme(); } } - private static class add_partition_argsTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_part()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetNew_tbl()) { + optionals.set(2); + } + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class add_partition_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_partition_result"); + public static class alter_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("alter_table_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -62342,14 +62962,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -62393,92 +63009,53 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_result.class, metaDataMap); } - public add_partition_result() { + public alter_table_with_environment_context_result() { } - public add_partition_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public alter_table_with_environment_context_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_partition_result(add_partition_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public add_partition_result deepCopy() { - return new add_partition_result(this); + public alter_table_with_environment_context_result deepCopy() { + return new alter_table_with_environment_context_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public Partition getSuccess() { - return this.success; - } - - public void setSuccess(Partition 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 InvalidObjectException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -62497,11 +63074,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -62520,44 +63097,13 @@ public void setO2IsSet(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 SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Partition)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((InvalidOperationException)value); } break; @@ -62565,15 +63111,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -62582,18 +63120,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -62605,14 +63137,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -62621,24 +63149,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_result) - return this.equals((add_partition_result)that); + if (that instanceof alter_table_with_environment_context_result) + return this.equals((alter_table_with_environment_context_result)that); return false; } - public boolean equals(add_partition_result that) { + public boolean equals(alter_table_with_environment_context_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) { @@ -62657,15 +63176,6 @@ public boolean equals(add_partition_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; } @@ -62673,11 +63183,6 @@ public boolean equals(add_partition_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) @@ -62688,32 +63193,17 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(add_partition_result other) { + public int compareTo(alter_table_with_environment_context_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; @@ -62734,16 +63224,6 @@ public int compareTo(add_partition_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; } @@ -62761,17 +63241,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_result("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_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"); @@ -62787,14 +63259,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; sb.append(")"); return sb.toString(); } @@ -62802,9 +63266,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -62823,15 +63284,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_resultStandardScheme getScheme() { - return new add_partition_resultStandardScheme(); + private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultStandardScheme getScheme() { + return new alter_table_with_environment_context_resultStandardScheme(); } } - private static class add_partition_resultStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62841,18 +63302,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_resul break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -62861,22 +63313,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_resul break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); 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 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); } @@ -62886,15 +63329,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -62905,104 +63343,83 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_resu struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_resultTupleScheme getScheme() { - return new add_partition_resultTupleScheme(); + private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultTupleScheme getScheme() { + return new alter_table_with_environment_context_resultTupleScheme(); } } - private static class add_partition_resultTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_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); + optionals.set(0); } if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class add_partition_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("add_partition_with_environment_context_args"); + public static class alter_table_with_cascade_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("alter_table_with_cascade_args"); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); - 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)2); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); } - private Partition new_part; // required - private EnvironmentContext environment_context; // required + private String dbname; // required + private String tbl_name; // required + private Table new_tbl; // required + private boolean cascade; // 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 { - NEW_PART((short)1, "new_part"), - ENVIRONMENT_CONTEXT((short)2, "environment_context"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"), + CASCADE((short)4, "cascade"); private static final Map byName = new HashMap(); @@ -63017,10 +63434,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PART - return NEW_PART; - case 2: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_TBL + return NEW_TBL; + case 4: // CASCADE + return CASCADE; default: return null; } @@ -63061,112 +63482,192 @@ public String getFieldName() { } // isset id assignments + private static final int __CASCADE_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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); - 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))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", 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(add_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_args.class, metaDataMap); } - public add_partition_with_environment_context_args() { + public alter_table_with_cascade_args() { } - public add_partition_with_environment_context_args( - Partition new_part, - EnvironmentContext environment_context) + public alter_table_with_cascade_args( + String dbname, + String tbl_name, + Table new_tbl, + boolean cascade) { this(); - this.new_part = new_part; - this.environment_context = environment_context; + this.dbname = dbname; + this.tbl_name = tbl_name; + this.new_tbl = new_tbl; + this.cascade = cascade; + setCascadeIsSet(true); } /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); + public alter_table_with_cascade_args(alter_table_with_cascade_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); } + this.cascade = other.cascade; } - public add_partition_with_environment_context_args deepCopy() { - return new add_partition_with_environment_context_args(this); + public alter_table_with_cascade_args deepCopy() { + return new alter_table_with_cascade_args(this); } @Override public void clear() { - this.new_part = null; - this.environment_context = null; + this.dbname = null; + this.tbl_name = null; + this.new_tbl = null; + setCascadeIsSet(false); + this.cascade = false; } - public Partition getNew_part() { - return this.new_part; + public String getDbname() { + return this.dbname; } - public void setNew_part(Partition new_part) { - this.new_part = new_part; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetNew_part() { - this.new_part = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != 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 setNew_partIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.new_part = null; + this.dbname = null; } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getTbl_name() { + return this.tbl_name; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetTbl_name() { + this.tbl_name = 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; + /** 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 setEnvironment_contextIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.tbl_name = null; + } + } + + public Table getNew_tbl() { + return this.new_tbl; + } + + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; + } + + public void unsetNew_tbl() { + this.new_tbl = null; + } + + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; + } + + public void setNew_tblIsSet(boolean value) { + if (!value) { + this.new_tbl = null; } } + public boolean isCascade() { + return this.cascade; + } + + public void setCascade(boolean cascade) { + this.cascade = cascade; + setCascadeIsSet(true); + } + + public void unsetCascade() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); + } + + /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ + public boolean isSetCascade() { + return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); + } + + public void setCascadeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PART: + case DBNAME: if (value == null) { - unsetNew_part(); + unsetDbname(); } else { - setNew_part((Partition)value); + setDbname((String)value); } break; - case ENVIRONMENT_CONTEXT: + case TBL_NAME: if (value == null) { - unsetEnvironment_context(); + unsetTbl_name(); } else { - setEnvironment_context((EnvironmentContext)value); + setTbl_name((String)value); + } + break; + + case NEW_TBL: + if (value == null) { + unsetNew_tbl(); + } else { + setNew_tbl((Table)value); + } + break; + + case CASCADE: + if (value == null) { + unsetCascade(); + } else { + setCascade((Boolean)value); } break; @@ -63175,11 +63676,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PART: - return getNew_part(); + case DBNAME: + return getDbname(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case TBL_NAME: + return getTbl_name(); + + case NEW_TBL: + return getNew_tbl(); + + case CASCADE: + return isCascade(); } throw new IllegalStateException(); @@ -63192,10 +63699,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PART: - return isSetNew_part(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_TBL: + return isSetNew_tbl(); + case CASCADE: + return isSetCascade(); } throw new IllegalStateException(); } @@ -63204,30 +63715,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_args) - return this.equals((add_partition_with_environment_context_args)that); + if (that instanceof alter_table_with_cascade_args) + return this.equals((alter_table_with_cascade_args)that); return false; } - public boolean equals(add_partition_with_environment_context_args that) { + public boolean equals(alter_table_with_cascade_args that) { if (that == null) return false; - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) + 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.new_part.equals(that.new_part)) + if (!this.dbname.equals(that.dbname)) 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)) + 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.environment_context.equals(that.environment_context)) + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) + return false; + if (!this.new_tbl.equals(that.new_tbl)) + return false; + } + + boolean this_present_cascade = true; + boolean that_present_cascade = true; + if (this_present_cascade || that_present_cascade) { + if (!(this_present_cascade && that_present_cascade)) + return false; + if (this.cascade != that.cascade) return false; } @@ -63238,43 +63767,73 @@ public boolean equals(add_partition_with_environment_context_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_new_tbl = true && (isSetNew_tbl()); + list.add(present_new_tbl); + if (present_new_tbl) + list.add(new_tbl); + + boolean present_cascade = true; + list.add(present_cascade); + if (present_cascade) + list.add(cascade); return list.hashCode(); } @Override - public int compareTo(add_partition_with_environment_context_args other) { + public int compareTo(alter_table_with_cascade_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCascade()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); if (lastComparison != 0) { return lastComparison; } @@ -63296,24 +63855,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); boolean first = true; - sb.append("new_part:"); - if (this.new_part == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.new_part); + sb.append(this.dbname); } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_tbl:"); + if (this.new_tbl == null) { + sb.append("null"); + } else { + sb.append(this.new_tbl); } first = false; + if (!first) sb.append(", "); + sb.append("cascade:"); + sb.append(this.cascade); + first = false; sb.append(")"); return sb.toString(); } @@ -63321,11 +63892,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } - if (environment_context != null) { - environment_context.validate(); + if (new_tbl != null) { + new_tbl.validate(); } } @@ -63339,21 +63907,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 add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsStandardScheme getScheme() { - return new add_partition_with_environment_context_argsStandardScheme(); + private static class alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsStandardScheme getScheme() { + return new alter_table_with_cascade_argsStandardScheme(); } } - private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63363,20 +63933,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ break; } switch (schemeField.id) { - case 1: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ENVIRONMENT_CONTEXT + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NEW_TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // CASCADE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -63390,97 +63975,118 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(CASCADE_FIELD_DESC); + oprot.writeBool(struct.cascade); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsTupleScheme getScheme() { - return new add_partition_with_environment_context_argsTupleScheme(); + private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsTupleScheme getScheme() { + return new alter_table_with_cascade_argsTupleScheme(); } } - private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_part()) { + if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); + if (struct.isSetNew_tbl()) { + optionals.set(2); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetCascade()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); + } + if (struct.isSetCascade()) { + oprot.writeBool(struct.cascade); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); + } + if (incoming.get(3)) { + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } } } } - public static class add_partition_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("add_partition_with_environment_context_result"); + public static class alter_table_with_cascade_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("alter_table_with_cascade_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -63495,14 +64101,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -63546,92 +64148,53 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); } - public add_partition_with_environment_context_result() { + public alter_table_with_cascade_result() { } - public add_partition_with_environment_context_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public alter_table_with_cascade_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public alter_table_with_cascade_result(alter_table_with_cascade_result other) { if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public add_partition_with_environment_context_result deepCopy() { - return new add_partition_with_environment_context_result(this); + public alter_table_with_cascade_result deepCopy() { + return new alter_table_with_cascade_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public Partition getSuccess() { - return this.success; - } - - public void setSuccess(Partition 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 InvalidObjectException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -63650,11 +64213,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -63673,44 +64236,13 @@ public void setO2IsSet(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 SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Partition)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((InvalidOperationException)value); } break; @@ -63718,15 +64250,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -63735,18 +64259,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -63758,14 +64276,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -63774,24 +64288,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_result) - return this.equals((add_partition_with_environment_context_result)that); + if (that instanceof alter_table_with_cascade_result) + return this.equals((alter_table_with_cascade_result)that); return false; } - public boolean equals(add_partition_with_environment_context_result that) { + public boolean equals(alter_table_with_cascade_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) { @@ -63810,15 +64315,6 @@ public boolean equals(add_partition_with_environment_context_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; } @@ -63826,11 +64322,6 @@ public boolean equals(add_partition_with_environment_context_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) @@ -63841,32 +64332,17 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(add_partition_with_environment_context_result other) { + public int compareTo(alter_table_with_cascade_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; @@ -63887,16 +64363,6 @@ public int compareTo(add_partition_with_environment_context_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; } @@ -63914,17 +64380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_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"); @@ -63940,14 +64398,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; sb.append(")"); return sb.toString(); } @@ -63955,9 +64405,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -63976,15 +64423,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultStandardScheme getScheme() { - return new add_partition_with_environment_context_resultStandardScheme(); + private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultStandardScheme getScheme() { + return new alter_table_with_cascade_resultStandardScheme(); } } - private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63994,18 +64441,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -64014,22 +64452,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); 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 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); } @@ -64039,15 +64468,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -64058,101 +64482,74 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultTupleScheme getScheme() { - return new add_partition_with_environment_context_resultTupleScheme(); + private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultTupleScheme getScheme() { + return new alter_table_with_cascade_resultTupleScheme(); } } - private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_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); + optionals.set(0); } if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); + public static class add_partition_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_partition_args"); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); } - private List new_parts; // required + private Partition new_part; // 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 { - NEW_PARTS((short)1, "new_parts"); + NEW_PART((short)1, "new_part"); private static final Map byName = new HashMap(); @@ -64167,8 +64564,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PARTS - return NEW_PARTS; + case 1: // NEW_PART + return NEW_PART; default: return null; } @@ -64212,90 +64609,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.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); } - public add_partitions_args() { + public add_partition_args() { } - public add_partitions_args( - List new_parts) + public add_partition_args( + Partition new_part) { this(); - this.new_parts = new_parts; + this.new_part = new_part; } /** * Performs a deep copy on other. */ - public add_partitions_args(add_partitions_args other) { - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (Partition other_element : other.new_parts) { - __this__new_parts.add(new Partition(other_element)); - } - this.new_parts = __this__new_parts; + public add_partition_args(add_partition_args other) { + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } } - public add_partitions_args deepCopy() { - return new add_partitions_args(this); + public add_partition_args deepCopy() { + return new add_partition_args(this); } @Override public void clear() { - this.new_parts = null; - } - - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); - } - - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); - } - - public void addToNew_parts(Partition elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); - } - this.new_parts.add(elem); + this.new_part = null; } - public List getNew_parts() { - return this.new_parts; + public Partition getNew_part() { + return this.new_part; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetNew_part() { + this.new_part = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != null; + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setNew_partsIsSet(boolean value) { + public void setNew_partIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.new_part = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PARTS: + case NEW_PART: if (value == null) { - unsetNew_parts(); + unsetNew_part(); } else { - setNew_parts((List)value); + setNew_part((Partition)value); } break; @@ -64304,8 +64681,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PARTS: - return getNew_parts(); + case NEW_PART: + return getNew_part(); } throw new IllegalStateException(); @@ -64318,8 +64695,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PARTS: - return isSetNew_parts(); + case NEW_PART: + return isSetNew_part(); } throw new IllegalStateException(); } @@ -64328,21 +64705,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_args) - return this.equals((add_partitions_args)that); + if (that instanceof add_partition_args) + return this.equals((add_partition_args)that); return false; } - public boolean equals(add_partitions_args that) { + public boolean equals(add_partition_args that) { if (that == null) return false; - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (!this.new_parts.equals(that.new_parts)) + if (!this.new_part.equals(that.new_part)) return false; } @@ -64353,28 +64730,28 @@ public boolean equals(add_partitions_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); return list.hashCode(); } @Override - public int compareTo(add_partitions_args other) { + public int compareTo(add_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); if (lastComparison != 0) { return lastComparison; } @@ -64396,14 +64773,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_args("); + StringBuilder sb = new StringBuilder("add_partition_args("); boolean first = true; - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.new_parts); + sb.append(this.new_part); } first = false; sb.append(")"); @@ -64413,6 +64790,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_part != null) { + new_part.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -64431,15 +64811,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_argsStandardScheme getScheme() { - return new add_partitions_argsStandardScheme(); + private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_argsStandardScheme getScheme() { + return new add_partition_argsStandardScheme(); } } - private static class add_partitions_argsStandardScheme extends StandardScheme { + private static class add_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64449,21 +64829,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args break; } switch (schemeField.id) { - case 1: // NEW_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list820.size); - Partition _elem821; - for (int _i822 = 0; _i822 < _list820.size; ++_i822) - { - _elem821 = new Partition(); - _elem821.read(iprot); - struct.new_parts.add(_elem821); - } - iprot.readListEnd(); - } - struct.setNew_partsIsSet(true); + case 1: // NEW_PART + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -64477,20 +64847,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_parts != null) { - 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 _iter823 : struct.new_parts) - { - _iter823.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -64499,71 +64862,56 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg } - private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_argsTupleScheme getScheme() { - return new add_partitions_argsTupleScheme(); + private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_argsTupleScheme getScheme() { + return new add_partition_argsTupleScheme(); } } - private static class add_partitions_argsTupleScheme extends TupleScheme { + private static class add_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_parts()) { + if (struct.isSetNew_part()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_parts()) { - { - oprot.writeI32(struct.new_parts.size()); - for (Partition _iter824 : struct.new_parts) - { - _iter824.write(oprot); - } - } + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list825.size); - Partition _elem826; - for (int _i827 = 0; _i827 < _list825.size; ++_i827) - { - _elem826 = new Partition(); - _elem826.read(iprot); - struct.new_parts.add(_elem826); - } - } - struct.setNew_partsIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } } } } - public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); + public static class add_partition_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_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); } - private int success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -64636,13 +64984,11 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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, @@ -64650,21 +64996,20 @@ 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(add_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); } - public add_partitions_result() { + public add_partition_result() { } - public add_partitions_result( - int success, + public add_partition_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -64673,9 +65018,10 @@ public add_partitions_result( /** * Performs a deep copy on other. */ - public add_partitions_result(add_partitions_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public add_partition_result(add_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -64687,39 +65033,39 @@ public add_partitions_result(add_partitions_result other) { } } - public add_partitions_result deepCopy() { - return new add_partitions_result(this); + public add_partition_result deepCopy() { + return new add_partition_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } - public int getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public InvalidObjectException getO1() { @@ -64797,7 +65143,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((Partition)value); } break; @@ -64869,21 +65215,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_result) - return this.equals((add_partitions_result)that); + if (that instanceof add_partition_result) + return this.equals((add_partition_result)that); return false; } - public boolean equals(add_partitions_result that) { + public boolean equals(add_partition_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -64921,7 +65267,7 @@ public boolean equals(add_partitions_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -64945,7 +65291,7 @@ public int hashCode() { } @Override - public int compareTo(add_partitions_result other) { + public int compareTo(add_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -65009,11 +65355,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_result("); + StringBuilder sb = new StringBuilder("add_partition_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:"); @@ -65046,6 +65396,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 { @@ -65058,23 +65411,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 add_partitions_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_resultStandardScheme getScheme() { - return new add_partitions_resultStandardScheme(); + private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_resultStandardScheme getScheme() { + return new add_partition_resultStandardScheme(); } } - private static class add_partitions_resultStandardScheme extends StandardScheme { + private static class add_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65085,8 +65436,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -65128,13 +65480,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_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.writeI32(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -65158,16 +65510,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_res } - private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_resultTupleScheme getScheme() { - return new add_partitions_resultTupleScheme(); + private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_resultTupleScheme getScheme() { + return new add_partition_resultTupleScheme(); } } - private static class add_partitions_resultTupleScheme extends TupleScheme { + private static class add_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -65184,7 +65536,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_resu } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -65198,11 +65550,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readI32(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -65225,22 +65578,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul } - public static class add_partitions_pspec_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_partitions_pspec_args"); + public static class add_partition_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("add_partition_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); } - private List new_parts; // required + private Partition new_part; // 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 { - NEW_PARTS((short)1, "new_parts"); + NEW_PART((short)1, "new_part"), + ENVIRONMENT_CONTEXT((short)2, "environment_context"); private static final Map byName = new HashMap(); @@ -65255,8 +65611,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PARTS - return NEW_PARTS; + case 1: // NEW_PART + return NEW_PART; + case 2: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -65300,90 +65658,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, PartitionSpec.class)))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + 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(add_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_args.class, metaDataMap); } - public add_partitions_pspec_args() { + public add_partition_with_environment_context_args() { } - public add_partitions_pspec_args( - List new_parts) + public add_partition_with_environment_context_args( + Partition new_part, + EnvironmentContext environment_context) { this(); - this.new_parts = new_parts; + this.new_part = new_part; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public add_partitions_pspec_args(add_partitions_pspec_args other) { - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (PartitionSpec other_element : other.new_parts) { - __this__new_parts.add(new PartitionSpec(other_element)); - } - this.new_parts = __this__new_parts; + public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public add_partitions_pspec_args deepCopy() { - return new add_partitions_pspec_args(this); + public add_partition_with_environment_context_args deepCopy() { + return new add_partition_with_environment_context_args(this); } @Override public void clear() { - this.new_parts = null; + this.new_part = null; + this.environment_context = null; } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); + public Partition getNew_part() { + return this.new_part; } - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void addToNew_parts(PartitionSpec elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); + public void unsetNew_part() { + this.new_part = null; + } + + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; + } + + public void setNew_partIsSet(boolean value) { + if (!value) { + this.new_part = null; } - this.new_parts.add(elem); } - public List getNew_parts() { - return this.new_parts; + public EnvironmentContext getEnvironment_context() { + return this.environment_context; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetEnvironment_context() { + this.environment_context = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != 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 setNew_partsIsSet(boolean value) { + public void setEnvironment_contextIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PARTS: + case NEW_PART: if (value == null) { - unsetNew_parts(); + unsetNew_part(); } else { - setNew_parts((List)value); + setNew_part((Partition)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -65392,8 +65769,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PARTS: - return getNew_parts(); + case NEW_PART: + return getNew_part(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -65406,8 +65786,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PARTS: - return isSetNew_parts(); + case NEW_PART: + return isSetNew_part(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -65416,21 +65798,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_args) - return this.equals((add_partitions_pspec_args)that); + if (that instanceof add_partition_with_environment_context_args) + return this.equals((add_partition_with_environment_context_args)that); return false; } - public boolean equals(add_partitions_pspec_args that) { + public boolean equals(add_partition_with_environment_context_args that) { if (that == null) return false; - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (!this.new_parts.equals(that.new_parts)) + if (!this.new_part.equals(that.new_part)) + 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; } @@ -65441,28 +65832,43 @@ public boolean equals(add_partitions_pspec_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); + + 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(add_partitions_pspec_args other) { + public int compareTo(add_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + 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; } @@ -65484,14 +65890,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); boolean first = true; - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.new_parts); + sb.append(this.new_part); + } + 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(")"); @@ -65501,6 +65915,12 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_part != null) { + new_part.validate(); + } + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -65519,15 +65939,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsStandardScheme getScheme() { - return new add_partitions_pspec_argsStandardScheme(); + private static class add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsStandardScheme getScheme() { + return new add_partition_with_environment_context_argsStandardScheme(); } } - private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65537,21 +65957,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe break; } switch (schemeField.id) { - case 1: // NEW_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list828.size); - PartitionSpec _elem829; - for (int _i830 = 0; _i830 < _list828.size; ++_i830) - { - _elem829 = new PartitionSpec(); - _elem829.read(iprot); - struct.new_parts.add(_elem829); - } - iprot.readListEnd(); - } - struct.setNew_partsIsSet(true); + case 1: // NEW_PART + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // 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); } @@ -65565,20 +65984,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_parts != null) { - 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 _iter831 : struct.new_parts) - { - _iter831.write(oprot); - } - oprot.writeListEnd(); - } + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -65587,71 +66004,67 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsTupleScheme getScheme() { - return new add_partitions_pspec_argsTupleScheme(); + private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsTupleScheme getScheme() { + return new add_partition_with_environment_context_argsTupleScheme(); } } - private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_parts()) { + if (struct.isSetNew_part()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_parts()) { - { - oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter832 : struct.new_parts) - { - _iter832.write(oprot); - } - } + if (struct.isSetEnvironment_context()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list833.size); - PartitionSpec _elem834; - for (int _i835 = 0; _i835 < _list833.size; ++_i835) - { - _elem834 = new PartitionSpec(); - _elem834.read(iprot); - struct.new_parts.add(_elem834); - } - } - struct.setNew_partsIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); + } + if (incoming.get(1)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class add_partitions_pspec_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_partitions_pspec_result"); + public static class add_partition_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("add_partition_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); } - private int success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -65724,13 +66137,11 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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, @@ -65738,21 +66149,20 @@ 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(add_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); } - public add_partitions_pspec_result() { + public add_partition_with_environment_context_result() { } - public add_partitions_pspec_result( - int success, + public add_partition_with_environment_context_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -65761,9 +66171,10 @@ public add_partitions_pspec_result( /** * Performs a deep copy on other. */ - public add_partitions_pspec_result(add_partitions_pspec_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -65775,39 +66186,39 @@ public add_partitions_pspec_result(add_partitions_pspec_result other) { } } - public add_partitions_pspec_result deepCopy() { - return new add_partitions_pspec_result(this); + public add_partition_with_environment_context_result deepCopy() { + return new add_partition_with_environment_context_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } - public int getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public InvalidObjectException getO1() { @@ -65885,7 +66296,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((Partition)value); } break; @@ -65957,21 +66368,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_result) - return this.equals((add_partitions_pspec_result)that); + if (that instanceof add_partition_with_environment_context_result) + return this.equals((add_partition_with_environment_context_result)that); return false; } - public boolean equals(add_partitions_pspec_result that) { + public boolean equals(add_partition_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -66009,7 +66420,7 @@ public boolean equals(add_partitions_pspec_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -66033,7 +66444,7 @@ public int hashCode() { } @Override - public int compareTo(add_partitions_pspec_result other) { + public int compareTo(add_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -66097,11 +66508,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_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:"); @@ -66134,6 +66549,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 { @@ -66146,23 +66564,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 add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultStandardScheme getScheme() { - return new add_partitions_pspec_resultStandardScheme(); + private static class add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultStandardScheme getScheme() { + return new add_partition_with_environment_context_resultStandardScheme(); } } - private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66173,8 +66589,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -66216,13 +66633,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_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.writeI32(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -66246,16 +66663,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultTupleScheme getScheme() { - return new add_partitions_pspec_resultTupleScheme(); + private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultTupleScheme getScheme() { + return new add_partition_with_environment_context_resultTupleScheme(); } } - private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -66272,7 +66689,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -66286,11 +66703,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readI32(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -66313,28 +66731,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec } - public static class append_partition_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("append_partition_args"); + public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required + private List new_parts; // 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"), - PART_VALS((short)3, "part_vals"); + NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -66349,12 +66761,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 1: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -66398,165 +66806,90 @@ 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, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); } - public append_partition_args() { + public add_partitions_args() { } - public append_partition_args( - String db_name, - String tbl_name, - List part_vals) + public add_partitions_args( + List new_parts) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public append_partition_args(append_partition_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public add_partitions_args(add_partitions_args other) { + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (Partition other_element : other.new_parts) { + __this__new_parts.add(new Partition(other_element)); + } + this.new_parts = __this__new_parts; } } - public append_partition_args deepCopy() { - return new append_partition_args(this); + public add_partitions_args deepCopy() { + return new add_partitions_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = 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; - } + this.new_parts = null; } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void addToNew_parts(Partition elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); } - this.part_vals.add(elem); + this.new_parts.add(elem); } - public List getPart_vals() { - return this.part_vals; + public List getNew_parts() { + return this.new_parts; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetNew_parts() { + this.new_parts = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; } - public void setPart_valsIsSet(boolean value) { + public void setNew_partsIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.new_parts = 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; - - case PART_VALS: + case NEW_PARTS: if (value == null) { - unsetPart_vals(); + unsetNew_parts(); } else { - setPart_vals((List)value); + setNew_parts((List)value); } break; @@ -66565,14 +66898,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -66585,12 +66912,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -66599,39 +66922,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_args) - return this.equals((append_partition_args)that); + if (that instanceof add_partitions_args) + return this.equals((add_partitions_args)that); return false; } - public boolean equals(append_partition_args that) { + public boolean equals(add_partitions_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -66642,58 +66947,28 @@ public boolean equals(append_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); return list.hashCode(); } @Override - public int compareTo(append_partition_args other) { + public int compareTo(add_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -66715,30 +66990,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_args("); + StringBuilder sb = new StringBuilder("add_partitions_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.new_parts); } first = false; sb.append(")"); @@ -66766,15 +67025,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_argsStandardScheme getScheme() { - return new append_partition_argsStandardScheme(); + private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_argsStandardScheme getScheme() { + return new add_partitions_argsStandardScheme(); } } - private static class append_partition_argsStandardScheme extends StandardScheme { + private static class add_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66784,36 +67043,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS + case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list836.size); - String _elem837; - for (int _i838 = 0; _i838 < _list836.size; ++_i838) + org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list868.size); + Partition _elem869; + for (int _i870 = 0; _i870 < _list868.size; ++_i870) { - _elem837 = iprot.readString(); - struct.part_vals.add(_elem837); + _elem869 = new Partition(); + _elem869.read(iprot); + struct.new_parts.add(_elem869); } iprot.readListEnd(); } - struct.setPart_valsIsSet(true); + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66827,27 +67071,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + if (struct.new_parts != null) { + oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter839 : struct.part_vals) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); + for (Partition _iter871 : struct.new_parts) { - oprot.writeString(_iter839); + _iter871.write(oprot); } oprot.writeListEnd(); } @@ -66859,90 +67093,71 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a } - private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_argsTupleScheme getScheme() { - return new append_partition_argsTupleScheme(); + private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_argsTupleScheme getScheme() { + return new add_partitions_argsTupleScheme(); } } - private static class append_partition_argsTupleScheme extends TupleScheme { + private static class add_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetNew_parts()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { + oprot.writeBitSet(optionals, 1); + if (struct.isSetNew_parts()) { { - oprot.writeI32(struct.part_vals.size()); - for (String _iter840 : struct.part_vals) + oprot.writeI32(struct.new_parts.size()); + for (Partition _iter872 : struct.new_parts) { - oprot.writeString(_iter840); + _iter872.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list841.size); - String _elem842; - for (int _i843 = 0; _i843 < _list841.size; ++_i843) + org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list873.size); + Partition _elem874; + for (int _i875 = 0; _i875 < _list873.size; ++_i875) { - _elem842 = iprot.readString(); - struct.part_vals.add(_elem842); + _elem874 = new Partition(); + _elem874.read(iprot); + struct.new_parts.add(_elem874); } } - struct.setPart_valsIsSet(true); + struct.setNew_partsIsSet(true); } } } } - public static class append_partition_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("append_partition_result"); + public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); } - private Partition success; // required + private int success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -67015,11 +67230,13 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 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, @@ -67027,20 +67244,21 @@ 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(append_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); } - public append_partition_result() { + public add_partitions_result() { } - public append_partition_result( - Partition success, + public add_partitions_result( + int success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -67049,10 +67267,9 @@ public append_partition_result( /** * Performs a deep copy on other. */ - public append_partition_result(append_partition_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public add_partitions_result(add_partitions_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -67064,39 +67281,39 @@ public append_partition_result(append_partition_result other) { } } - public append_partition_result deepCopy() { - return new append_partition_result(this); + public add_partitions_result deepCopy() { + return new add_partitions_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; this.o3 = null; } - public Partition getSuccess() { + public int getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(int success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public InvalidObjectException getO1() { @@ -67174,7 +67391,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Integer)value); } break; @@ -67246,21 +67463,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_result) - return this.equals((append_partition_result)that); + if (that instanceof add_partitions_result) + return this.equals((add_partitions_result)that); return false; } - public boolean equals(append_partition_result that) { + public boolean equals(add_partitions_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -67298,7 +67515,7 @@ public boolean equals(append_partition_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -67322,7 +67539,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_result other) { + public int compareTo(add_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -67386,15 +67603,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_result("); + StringBuilder sb = new StringBuilder("add_partitions_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -67427,9 +67640,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -67442,21 +67652,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 append_partition_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_resultStandardScheme getScheme() { - return new append_partition_resultStandardScheme(); + private static class add_partitions_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_resultStandardScheme getScheme() { + return new add_partitions_resultStandardScheme(); } } - private static class append_partition_resultStandardScheme extends StandardScheme { + private static class add_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67467,9 +67679,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_re } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -67511,13 +67722,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -67541,16 +67752,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_r } - private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_resultTupleScheme getScheme() { - return new append_partition_resultTupleScheme(); + private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_resultTupleScheme getScheme() { + return new add_partitions_resultTupleScheme(); } } - private static class append_partition_resultTupleScheme extends TupleScheme { + private static class add_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -67567,7 +67778,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_re } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -67581,12 +67792,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -67609,22 +67819,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res } - public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); + public static class add_partitions_pspec_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_partitions_pspec_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 org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); } - private AddPartitionsRequest request; // required + private List new_parts; // 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"); + NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -67639,8 +67849,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -67684,70 +67894,90 @@ 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.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, AddPartitionsRequest.class))); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, PartitionSpec.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_args.class, metaDataMap); } - public add_partitions_req_args() { + public add_partitions_pspec_args() { } - public add_partitions_req_args( - AddPartitionsRequest request) + public add_partitions_pspec_args( + List new_parts) { this(); - this.request = request; + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public add_partitions_req_args(add_partitions_req_args other) { - if (other.isSetRequest()) { - this.request = new AddPartitionsRequest(other.request); + public add_partitions_pspec_args(add_partitions_pspec_args other) { + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (PartitionSpec other_element : other.new_parts) { + __this__new_parts.add(new PartitionSpec(other_element)); + } + this.new_parts = __this__new_parts; } } - public add_partitions_req_args deepCopy() { - return new add_partitions_req_args(this); + public add_partitions_pspec_args deepCopy() { + return new add_partitions_pspec_args(this); } @Override public void clear() { - this.request = null; + this.new_parts = null; } - public AddPartitionsRequest getRequest() { - return this.request; + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - public void setRequest(AddPartitionsRequest request) { - this.request = request; + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void unsetRequest() { - this.request = null; + public void addToNew_parts(PartitionSpec elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); + } + this.new_parts.add(elem); } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != null; + public List getNew_parts() { + return this.new_parts; } - public void setRequestIsSet(boolean value) { + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; + } + + public void unsetNew_parts() { + this.new_parts = null; + } + + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; + } + + public void setNew_partsIsSet(boolean value) { if (!value) { - this.request = null; + this.new_parts = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case NEW_PARTS: if (value == null) { - unsetRequest(); + unsetNew_parts(); } else { - setRequest((AddPartitionsRequest)value); + setNew_parts((List)value); } break; @@ -67756,8 +67986,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -67770,8 +68000,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -67780,21 +68010,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_args) - return this.equals((add_partitions_req_args)that); + if (that instanceof add_partitions_pspec_args) + return this.equals((add_partitions_pspec_args)that); return false; } - public boolean equals(add_partitions_req_args that) { + public boolean equals(add_partitions_pspec_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)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.request.equals(that.request)) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -67805,28 +68035,28 @@ public boolean equals(add_partitions_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); return list.hashCode(); } @Override - public int compareTo(add_partitions_req_args other) { + public int compareTo(add_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -67848,14 +68078,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_args("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.request); + sb.append(this.new_parts); } first = false; sb.append(")"); @@ -67865,9 +68095,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -67886,15 +68113,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_argsStandardScheme getScheme() { - return new add_partitions_req_argsStandardScheme(); + private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsStandardScheme getScheme() { + return new add_partitions_pspec_argsStandardScheme(); } } - private static class add_partitions_req_argsStandardScheme extends StandardScheme { + private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67904,11 +68131,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ break; } switch (schemeField.id) { - case 1: // REQUEST - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + case 1: // NEW_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list876 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list876.size); + PartitionSpec _elem877; + for (int _i878 = 0; _i878 < _list876.size; ++_i878) + { + _elem877 = new PartitionSpec(); + _elem877.read(iprot); + struct.new_parts.add(_elem877); + } + iprot.readListEnd(); + } + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -67922,13 +68159,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_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); + if (struct.new_parts != null) { + 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 _iter879 : struct.new_parts) + { + _iter879.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -67937,56 +68181,71 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req } - private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_argsTupleScheme getScheme() { - return new add_partitions_req_argsTupleScheme(); + private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsTupleScheme getScheme() { + return new add_partitions_pspec_argsTupleScheme(); } } - private static class add_partitions_req_argsTupleScheme extends TupleScheme { + private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetNew_parts()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetNew_parts()) { + { + oprot.writeI32(struct.new_parts.size()); + for (PartitionSpec _iter880 : struct.new_parts) + { + _iter880.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + { + org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list881.size); + PartitionSpec _elem882; + for (int _i883 = 0; _i883 < _list881.size; ++_i883) + { + _elem882 = new PartitionSpec(); + _elem882.read(iprot); + struct.new_parts.add(_elem882); + } + } + struct.setNew_partsIsSet(true); } } } } - public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); + public static class add_partitions_pspec_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_partitions_pspec_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); } - private AddPartitionsResult success; // required + private int success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -68059,11 +68318,13 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsResult.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 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, @@ -68071,20 +68332,21 @@ 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(add_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_result.class, metaDataMap); } - public add_partitions_req_result() { + public add_partitions_pspec_result() { } - public add_partitions_req_result( - AddPartitionsResult success, + public add_partitions_pspec_result( + int success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -68093,10 +68355,9 @@ public add_partitions_req_result( /** * Performs a deep copy on other. */ - public add_partitions_req_result(add_partitions_req_result other) { - if (other.isSetSuccess()) { - this.success = new AddPartitionsResult(other.success); - } + public add_partitions_pspec_result(add_partitions_pspec_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -68108,39 +68369,39 @@ public add_partitions_req_result(add_partitions_req_result other) { } } - public add_partitions_req_result deepCopy() { - return new add_partitions_req_result(this); + public add_partitions_pspec_result deepCopy() { + return new add_partitions_pspec_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; this.o3 = null; } - public AddPartitionsResult getSuccess() { + public int getSuccess() { return this.success; } - public void setSuccess(AddPartitionsResult success) { + public void setSuccess(int success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public InvalidObjectException getO1() { @@ -68218,7 +68479,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((AddPartitionsResult)value); + setSuccess((Integer)value); } break; @@ -68290,21 +68551,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_result) - return this.equals((add_partitions_req_result)that); + if (that instanceof add_partitions_pspec_result) + return this.equals((add_partitions_pspec_result)that); return false; } - public boolean equals(add_partitions_req_result that) { + public boolean equals(add_partitions_pspec_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -68342,7 +68603,7 @@ public boolean equals(add_partitions_req_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -68366,7 +68627,7 @@ public int hashCode() { } @Override - public int compareTo(add_partitions_req_result other) { + public int compareTo(add_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -68430,15 +68691,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_result("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -68471,9 +68728,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -68486,21 +68740,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 add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_resultStandardScheme getScheme() { - return new add_partitions_req_resultStandardScheme(); + private static class add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultStandardScheme getScheme() { + return new add_partitions_pspec_resultStandardScheme(); } } - private static class add_partitions_req_resultStandardScheme extends StandardScheme { + private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -68511,9 +68767,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new AddPartitionsResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -68555,13 +68810,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -68585,16 +68840,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req } - private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_resultTupleScheme getScheme() { - return new add_partitions_req_resultTupleScheme(); + private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultTupleScheme getScheme() { + return new add_partitions_pspec_resultTupleScheme(); } } - private static class add_partitions_req_resultTupleScheme extends TupleScheme { + private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -68611,7 +68866,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_ } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -68625,12 +68880,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new AddPartitionsResult(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -68653,31 +68907,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_r } - public static class append_partition_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("append_partition_with_environment_context_args"); + public static class append_partition_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("append_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (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 append_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // 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, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -68698,8 +68949,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_VALS return PART_VALS; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -68750,32 +68999,28 @@ public String getFieldName() { tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.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(append_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); } - public append_partition_with_environment_context_args() { + public append_partition_args() { } - public append_partition_with_environment_context_args( + public append_partition_args( String db_name, String tbl_name, - List part_vals, - EnvironmentContext environment_context) + List part_vals) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_vals = part_vals; - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { + public append_partition_args(append_partition_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -68786,13 +69031,10 @@ public append_partition_with_environment_context_args(append_partition_with_envi List __this__part_vals = new ArrayList(other.part_vals); this.part_vals = __this__part_vals; } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public append_partition_with_environment_context_args deepCopy() { - return new append_partition_with_environment_context_args(this); + public append_partition_args deepCopy() { + return new append_partition_args(this); } @Override @@ -68800,7 +69042,6 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_vals = null; - this.environment_context = null; } public String getDb_name() { @@ -68887,29 +69128,6 @@ public void setPart_valsIsSet(boolean 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 DB_NAME: @@ -68936,14 +69154,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -68958,9 +69168,6 @@ public Object getFieldValue(_Fields field) { case PART_VALS: return getPart_vals(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -68978,8 +69185,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_VALS: return isSetPart_vals(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -68988,12 +69193,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_args) - return this.equals((append_partition_with_environment_context_args)that); + if (that instanceof append_partition_args) + return this.equals((append_partition_args)that); return false; } - public boolean equals(append_partition_with_environment_context_args that) { + public boolean equals(append_partition_args that) { if (that == null) return false; @@ -69024,15 +69229,6 @@ public boolean equals(append_partition_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; } @@ -69055,16 +69251,11 @@ public int hashCode() { if (present_part_vals) list.add(part_vals); - 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(append_partition_with_environment_context_args other) { + public int compareTo(append_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -69101,16 +69292,6 @@ public int compareTo(append_partition_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; } @@ -69128,7 +69309,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("append_partition_args("); boolean first = true; sb.append("db_name:"); @@ -69154,14 +69335,6 @@ public String toString() { sb.append(this.part_vals); } 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(); } @@ -69169,9 +69342,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 { @@ -69190,15 +69360,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_with_environment_context_argsStandardScheme(); + private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_argsStandardScheme getScheme() { + return new append_partition_argsStandardScheme(); } } - private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class append_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69227,13 +69397,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 _list844 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list844.size); - String _elem845; - for (int _i846 = 0; _i846 < _list844.size; ++_i846) + org.apache.thrift.protocol.TList _list884 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list884.size); + String _elem885; + for (int _i886 = 0; _i886 < _list884.size; ++_i886) { - _elem845 = iprot.readString(); - struct.part_vals.add(_elem845); + _elem885 = iprot.readString(); + struct.part_vals.add(_elem885); } iprot.readListEnd(); } @@ -69242,15 +69412,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi 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); } @@ -69260,7 +69421,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -69278,35 +69439,30 @@ 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 _iter847 : struct.part_vals) + for (String _iter887 : struct.part_vals) { - oprot.writeString(_iter847); + oprot.writeString(_iter887); } oprot.writeListEnd(); } 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 append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_with_environment_context_argsTupleScheme(); + private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_argsTupleScheme getScheme() { + return new append_partition_argsTupleScheme(); } } - private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class append_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -69318,10 +69474,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -69331,21 +69484,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter848 : struct.part_vals) + for (String _iter888 : struct.part_vals) { - oprot.writeString(_iter848); + oprot.writeString(_iter888); } } } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -69356,29 +69506,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list849.size); - String _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list889.size); + String _elem890; + for (int _i891 = 0; _i891 < _list889.size; ++_i891) { - _elem850 = iprot.readString(); - struct.part_vals.add(_elem850); + _elem890 = iprot.readString(); + struct.part_vals.add(_elem890); } } struct.setPart_valsIsSet(true); } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - public static class append_partition_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("append_partition_with_environment_context_result"); + public static class append_partition_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("append_partition_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); @@ -69387,8 +69532,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); } private Partition success; // required @@ -69476,13 +69621,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(append_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); } - public append_partition_with_environment_context_result() { + public append_partition_result() { } - public append_partition_with_environment_context_result( + public append_partition_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -69498,7 +69643,7 @@ public append_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { + public append_partition_result(append_partition_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -69513,8 +69658,8 @@ public append_partition_with_environment_context_result(append_partition_with_en } } - public append_partition_with_environment_context_result deepCopy() { - return new append_partition_with_environment_context_result(this); + public append_partition_result deepCopy() { + return new append_partition_result(this); } @Override @@ -69695,12 +69840,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_result) - return this.equals((append_partition_with_environment_context_result)that); + if (that instanceof append_partition_result) + return this.equals((append_partition_result)that); return false; } - public boolean equals(append_partition_with_environment_context_result that) { + public boolean equals(append_partition_result that) { if (that == null) return false; @@ -69771,7 +69916,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_with_environment_context_result other) { + public int compareTo(append_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -69835,7 +69980,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("append_partition_result("); boolean first = true; sb.append("success:"); @@ -69897,15 +70042,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_with_environment_context_resultStandardScheme(); + private static class append_partition_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_resultStandardScheme getScheme() { + return new append_partition_resultStandardScheme(); } } - private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class append_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69960,7 +70105,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -69990,16 +70135,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w } - private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_with_environment_context_resultTupleScheme(); + private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_resultTupleScheme getScheme() { + return new append_partition_resultTupleScheme(); } } - private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class append_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -70030,7 +70175,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -70058,28 +70203,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } - public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); + public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String part_name; // required + private AddPartitionsRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -70094,12 +70233,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -70143,148 +70278,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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, AddPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); } - public append_partition_by_name_args() { + public add_partitions_req_args() { } - public append_partition_by_name_args( - String db_name, - String tbl_name, - String part_name) + public add_partitions_req_args( + AddPartitionsRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_name = part_name; + this.request = request; } /** * Performs a deep copy on other. */ - public append_partition_by_name_args(append_partition_by_name_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + public add_partitions_req_args(add_partitions_req_args other) { + if (other.isSetRequest()) { + this.request = new AddPartitionsRequest(other.request); } } - public append_partition_by_name_args deepCopy() { - return new append_partition_by_name_args(this); + public add_partitions_req_args deepCopy() { + return new add_partitions_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_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; - } + this.request = null; } - public String getPart_name() { - return this.part_name; + public AddPartitionsRequest getRequest() { + return this.request; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setRequest(AddPartitionsRequest request) { + this.request = request; } - public void unsetPart_name() { - this.part_name = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setPart_nameIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.part_name = null; + this.request = 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; - - case PART_NAME: + case REQUEST: if (value == null) { - unsetPart_name(); + unsetRequest(); } else { - setPart_name((String)value); + setRequest((AddPartitionsRequest)value); } break; @@ -70293,14 +70350,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_NAME: - return getPart_name(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -70313,12 +70364,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -70327,39 +70374,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_args) - return this.equals((append_partition_by_name_args)that); + if (that instanceof add_partitions_req_args) + return this.equals((add_partitions_req_args)that); return false; } - public boolean equals(append_partition_by_name_args that) { + public boolean equals(add_partitions_req_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + 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.part_name.equals(that.part_name)) + if (!this.request.equals(that.request)) return false; } @@ -70370,58 +70399,28 @@ public boolean equals(append_partition_by_name_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(append_partition_by_name_args other) { + public int compareTo(add_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -70443,30 +70442,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_args("); + StringBuilder sb = new StringBuilder("add_partitions_req_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.request); } first = false; sb.append(")"); @@ -70476,6 +70459,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -70494,15 +70480,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsStandardScheme getScheme() { - return new append_partition_by_name_argsStandardScheme(); + private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_argsStandardScheme getScheme() { + return new add_partitions_req_argsStandardScheme(); } } - private static class append_partition_by_name_argsStandardScheme extends StandardScheme { + private static class add_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -70512,26 +70498,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -70545,23 +70516,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -70570,62 +70531,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsTupleScheme getScheme() { - return new append_partition_by_name_argsTupleScheme(); + private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_argsTupleScheme getScheme() { + return new add_partitions_req_argsTupleScheme(); } } - private static class append_partition_by_name_argsTupleScheme extends TupleScheme { + private static class add_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_name()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); + public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -70634,11 +70576,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); } - private Partition success; // required + private AddPartitionsResult success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -70715,7 +70657,7 @@ 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, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsResult.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, @@ -70723,14 +70665,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_result.class, metaDataMap); } - public append_partition_by_name_result() { + public add_partitions_req_result() { } - public append_partition_by_name_result( - Partition success, + public add_partitions_req_result( + AddPartitionsResult success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) @@ -70745,9 +70687,9 @@ public append_partition_by_name_result( /** * Performs a deep copy on other. */ - public append_partition_by_name_result(append_partition_by_name_result other) { + public add_partitions_req_result(add_partitions_req_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + this.success = new AddPartitionsResult(other.success); } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); @@ -70760,8 +70702,8 @@ public append_partition_by_name_result(append_partition_by_name_result other) { } } - public append_partition_by_name_result deepCopy() { - return new append_partition_by_name_result(this); + public add_partitions_req_result deepCopy() { + return new add_partitions_req_result(this); } @Override @@ -70772,11 +70714,11 @@ public void clear() { this.o3 = null; } - public Partition getSuccess() { + public AddPartitionsResult getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(AddPartitionsResult success) { this.success = success; } @@ -70870,7 +70812,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((AddPartitionsResult)value); } break; @@ -70942,12 +70884,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_result) - return this.equals((append_partition_by_name_result)that); + if (that instanceof add_partitions_req_result) + return this.equals((add_partitions_req_result)that); return false; } - public boolean equals(append_partition_by_name_result that) { + public boolean equals(add_partitions_req_result that) { if (that == null) return false; @@ -71018,7 +70960,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_by_name_result other) { + public int compareTo(add_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -71082,7 +71024,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_result("); + StringBuilder sb = new StringBuilder("add_partitions_req_result("); boolean first = true; sb.append("success:"); @@ -71144,15 +71086,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultStandardScheme getScheme() { - return new append_partition_by_name_resultStandardScheme(); + private static class add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_resultStandardScheme getScheme() { + return new add_partitions_req_resultStandardScheme(); } } - private static class append_partition_by_name_resultStandardScheme extends StandardScheme { + private static class add_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71164,7 +71106,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -71207,7 +71149,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -71237,16 +71179,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultTupleScheme getScheme() { - return new append_partition_by_name_resultTupleScheme(); + private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_resultTupleScheme getScheme() { + return new add_partitions_req_resultTupleScheme(); } } - private static class append_partition_by_name_resultTupleScheme extends TupleScheme { + private static class add_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -71277,11 +71219,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -71305,30 +71247,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_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("append_partition_by_name_with_environment_context_args"); + public static class append_partition_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("append_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (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 append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private List part_vals; // 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, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), + PART_VALS((short)3, "part_vals"), ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -71348,8 +71290,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // PART_VALS + return PART_VALS; case 4: // ENVIRONMENT_CONTEXT return ENVIRONMENT_CONTEXT; default: @@ -71399,57 +71341,59 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.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(append_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_args.class, metaDataMap); } - public append_partition_by_name_with_environment_context_args() { + public append_partition_with_environment_context_args() { } - public append_partition_by_name_with_environment_context_args( + public append_partition_with_environment_context_args( String db_name, String tbl_name, - String part_name, + List part_vals, EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.part_vals = part_vals; this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { + public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } if (other.isSetEnvironment_context()) { this.environment_context = new EnvironmentContext(other.environment_context); } } - public append_partition_by_name_with_environment_context_args deepCopy() { - return new append_partition_by_name_with_environment_context_args(this); + public append_partition_with_environment_context_args deepCopy() { + return new append_partition_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.part_vals = null; this.environment_context = null; } @@ -71499,26 +71443,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setPart_name(String part_name) { - this.part_name = part_name; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetPart_name() { - this.part_name = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + public List getPart_vals() { + return this.part_vals; } - public void setPart_nameIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.part_name = null; + this.part_vals = null; } } @@ -71563,11 +71522,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case PART_VALS: if (value == null) { - unsetPart_name(); + unsetPart_vals(); } else { - setPart_name((String)value); + setPart_vals((List)value); } break; @@ -71590,8 +71549,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case PART_VALS: + return getPart_vals(); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -71611,8 +71570,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case PART_VALS: + return isSetPart_vals(); case ENVIRONMENT_CONTEXT: return isSetEnvironment_context(); } @@ -71623,12 +71582,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_args) - return this.equals((append_partition_by_name_with_environment_context_args)that); + if (that instanceof append_partition_with_environment_context_args) + return this.equals((append_partition_with_environment_context_args)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_args that) { + public boolean equals(append_partition_with_environment_context_args that) { if (that == null) return false; @@ -71650,12 +71609,12 @@ public boolean equals(append_partition_by_name_with_environment_context_args tha return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -71685,10 +71644,10 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); boolean present_environment_context = true && (isSetEnvironment_context()); list.add(present_environment_context); @@ -71699,7 +71658,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_by_name_with_environment_context_args other) { + public int compareTo(append_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -71726,12 +71685,12 @@ public int compareTo(append_partition_by_name_with_environment_context_args othe return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -71763,7 +71722,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -71782,11 +71741,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); @@ -71825,15 +71784,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsStandardScheme(); + private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_with_environment_context_argsStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71859,10 +71818,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list892 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list892.size); + String _elem893; + for (int _i894 = 0; _i894 < _list892.size; ++_i894) + { + _elem893 = iprot.readString(); + struct.part_vals.add(_elem893); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -71885,7 +71854,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -71899,9 +71868,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.part_vals != null) { + 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 _iter895 : struct.part_vals) + { + oprot.writeString(_iter895); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.environment_context != null) { @@ -71915,16 +71891,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsTupleScheme(); + private static class append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_with_environment_context_argsTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -71933,7 +71909,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } if (struct.isSetEnvironment_context()) { @@ -71946,8 +71922,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter896 : struct.part_vals) + { + oprot.writeString(_iter896); + } + } } if (struct.isSetEnvironment_context()) { struct.environment_context.write(oprot); @@ -71955,7 +71937,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -71967,8 +71949,17 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list897.size); + String _elem898; + for (int _i899 = 0; _i899 < _list897.size; ++_i899) + { + _elem898 = iprot.readString(); + struct.part_vals.add(_elem898); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { struct.environment_context = new EnvironmentContext(); @@ -71980,8 +71971,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_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("append_partition_by_name_with_environment_context_result"); + public static class append_partition_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("append_partition_with_environment_context_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); @@ -71990,8 +71981,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); } private Partition success; // required @@ -72079,13 +72070,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(append_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_result.class, metaDataMap); } - public append_partition_by_name_with_environment_context_result() { + public append_partition_with_environment_context_result() { } - public append_partition_by_name_with_environment_context_result( + public append_partition_with_environment_context_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -72101,7 +72092,7 @@ public append_partition_by_name_with_environment_context_result( /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { + public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -72116,8 +72107,8 @@ public append_partition_by_name_with_environment_context_result(append_partition } } - public append_partition_by_name_with_environment_context_result deepCopy() { - return new append_partition_by_name_with_environment_context_result(this); + public append_partition_with_environment_context_result deepCopy() { + return new append_partition_with_environment_context_result(this); } @Override @@ -72298,12 +72289,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_result) - return this.equals((append_partition_by_name_with_environment_context_result)that); + if (that instanceof append_partition_with_environment_context_result) + return this.equals((append_partition_with_environment_context_result)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_result that) { + public boolean equals(append_partition_with_environment_context_result that) { if (that == null) return false; @@ -72374,7 +72365,7 @@ public int hashCode() { } @Override - public int compareTo(append_partition_by_name_with_environment_context_result other) { + public int compareTo(append_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -72438,7 +72429,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -72500,15 +72491,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultStandardScheme(); + private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_with_environment_context_resultStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -72563,7 +72554,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -72593,16 +72584,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultTupleScheme(); + private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_with_environment_context_resultTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -72633,7 +72624,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -72661,31 +72652,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class drop_partition_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_partition_args"); + public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private boolean deleteData; // required + private String part_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"), - PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"); + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -72704,10 +72692,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // DELETE_DATA - return DELETE_DATA; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -72748,8 +72734,6 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -72757,61 +72741,50 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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(drop_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); } - public drop_partition_args() { + public append_partition_by_name_args() { } - public drop_partition_args( + public append_partition_by_name_args( String db_name, String tbl_name, - List part_vals, - boolean deleteData) + String part_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public drop_partition_args(drop_partition_args other) { - __isset_bitfield = other.__isset_bitfield; + public append_partition_by_name_args(append_partition_by_name_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } - this.deleteData = other.deleteData; } - public drop_partition_args deepCopy() { - return new drop_partition_args(this); + public append_partition_by_name_args deepCopy() { + return new append_partition_by_name_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - setDeleteDataIsSet(false); - this.deleteData = false; + this.part_name = null; } public String getDb_name() { @@ -72860,66 +72833,29 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; + public String getPart_name() { + return this.part_name; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setPart_valsIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.part_name = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -72938,19 +72874,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case DELETE_DATA: + case PART_NAME: if (value == null) { - unsetDeleteData(); + unsetPart_name(); } else { - setDeleteData((Boolean)value); + setPart_name((String)value); } break; @@ -72965,11 +72893,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - - case DELETE_DATA: - return isDeleteData(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -72986,10 +72911,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case DELETE_DATA: - return isSetDeleteData(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -72998,12 +72921,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_args) - return this.equals((drop_partition_args)that); + if (that instanceof append_partition_by_name_args) + return this.equals((append_partition_by_name_args)that); return false; } - public boolean equals(drop_partition_args that) { + public boolean equals(append_partition_by_name_args that) { if (that == null) return false; @@ -73025,21 +72948,12 @@ public boolean equals(drop_partition_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - 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_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (this.deleteData != that.deleteData) + if (!this.part_name.equals(that.part_name)) return false; } @@ -73060,21 +72974,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); return list.hashCode(); } @Override - public int compareTo(drop_partition_args other) { + public int compareTo(append_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -73101,22 +73010,12 @@ public int compareTo(drop_partition_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -73138,7 +73037,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -73157,17 +73056,13 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.part_name); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -73187,23 +73082,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_partition_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_argsStandardScheme getScheme() { - return new drop_partition_argsStandardScheme(); + private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsStandardScheme getScheme() { + return new append_partition_by_name_argsStandardScheme(); } } - private static class drop_partition_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73229,28 +73122,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list852.size); - String _elem853; - for (int _i854 = 0; _i854 < _list852.size; ++_i854) - { - _elem853 = iprot.readString(); - struct.part_vals.add(_elem853); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -73264,7 +73139,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -73278,37 +73153,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter855 : struct.part_vals) - { - oprot.writeString(_iter855); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_argsTupleScheme getScheme() { - return new drop_partition_argsTupleScheme(); + private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsTupleScheme getScheme() { + return new append_partition_by_name_argsTupleScheme(); } } - private static class drop_partition_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -73317,37 +73182,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter856 : struct.part_vals) - { - oprot.writeString(_iter856); - } - } - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -73357,49 +73210,39 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list857.size); - String _elem858; - for (int _i859 = 0; _i859 < _list857.size; ++_i859) - { - _elem858 = iprot.readString(); - struct.part_vals.add(_elem858); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - public static class drop_partition_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_partition_result"); + public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -73420,6 +73263,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -73460,89 +73305,95 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); } - public drop_partition_result() { + public append_partition_by_name_result() { } - public drop_partition_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public append_partition_by_name_result( + Partition success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public drop_partition_result(drop_partition_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public append_partition_by_name_result(append_partition_by_name_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public drop_partition_result deepCopy() { - return new drop_partition_result(this); + public append_partition_by_name_result deepCopy() { + return new append_partition_by_name_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public boolean isSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public InvalidObjectException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -73561,11 +73412,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -73584,13 +73435,36 @@ public void setO2IsSet(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 SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Partition)value); } break; @@ -73598,7 +73472,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((InvalidObjectException)value); } break; @@ -73606,7 +73480,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -73616,7 +73498,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -73624,6 +73506,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -73641,6 +73526,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -73649,21 +73536,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_result) - return this.equals((drop_partition_result)that); + if (that instanceof append_partition_by_name_result) + return this.equals((append_partition_by_name_result)that); return false; } - public boolean equals(drop_partition_result that) { + public boolean equals(append_partition_by_name_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -73685,6 +73572,15 @@ public boolean equals(drop_partition_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; } @@ -73692,7 +73588,7 @@ public boolean equals(drop_partition_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -73707,11 +73603,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(drop_partition_result other) { + public int compareTo(append_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -73748,6 +73649,16 @@ public int compareTo(drop_partition_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; } @@ -73765,11 +73676,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -73787,6 +73702,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -73794,6 +73717,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 { @@ -73806,23 +73732,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_partition_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_resultStandardScheme getScheme() { - return new drop_partition_resultStandardScheme(); + private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultStandardScheme getScheme() { + return new append_partition_by_name_resultStandardScheme(); } } - private static class drop_partition_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73833,8 +73757,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu } 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 Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -73842,7 +73767,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -73851,13 +73776,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); 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 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); } @@ -73867,13 +73801,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -73886,22 +73820,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_res struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_resultTupleScheme getScheme() { - return new drop_partition_resultTupleScheme(); + private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultTupleScheme getScheme() { + return new append_partition_by_name_resultTupleScheme(); } } - private static class drop_partition_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -73913,9 +73852,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -73923,59 +73865,65 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class drop_partition_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_partition_with_environment_context_args"); + public static class append_partition_by_name_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("append_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (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_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private boolean deleteData; // required + private String part_name; // 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, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"), - ENVIRONMENT_CONTEXT((short)5, "environment_context"); + PART_NAME((short)3, "part_name"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -73994,11 +73942,9 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // DELETE_DATA - return DELETE_DATA; - case 5: // ENVIRONMENT_CONTEXT + case 3: // PART_NAME + return PART_NAME; + case 4: // ENVIRONMENT_CONTEXT return ENVIRONMENT_CONTEXT; default: return null; @@ -74040,8 +73986,6 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -74049,68 +73993,57 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_args.class, metaDataMap); } - public drop_partition_with_environment_context_args() { + public append_partition_by_name_with_environment_context_args() { } - public drop_partition_with_environment_context_args( + public append_partition_by_name_with_environment_context_args( String db_name, String tbl_name, - List part_vals, - boolean deleteData, + String part_name, EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.part_name = part_name; this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { - __isset_bitfield = other.__isset_bitfield; + public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } - this.deleteData = other.deleteData; if (other.isSetEnvironment_context()) { this.environment_context = new EnvironmentContext(other.environment_context); } } - public drop_partition_with_environment_context_args deepCopy() { - return new drop_partition_with_environment_context_args(this); + public append_partition_by_name_with_environment_context_args deepCopy() { + return new append_partition_by_name_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - setDeleteDataIsSet(false); - this.deleteData = false; + this.part_name = null; this.environment_context = null; } @@ -74160,66 +74093,29 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; + public String getPart_name() { + return this.part_name; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setPart_valsIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.part_name = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public EnvironmentContext getEnvironment_context() { return this.environment_context; } @@ -74261,19 +74157,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case DELETE_DATA: + case PART_NAME: if (value == null) { - unsetDeleteData(); + unsetPart_name(); } else { - setDeleteData((Boolean)value); + setPart_name((String)value); } break; @@ -74296,11 +74184,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - - case DELETE_DATA: - return isDeleteData(); + case PART_NAME: + return getPart_name(); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -74320,10 +74205,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case DELETE_DATA: - return isSetDeleteData(); + case PART_NAME: + return isSetPart_name(); case ENVIRONMENT_CONTEXT: return isSetEnvironment_context(); } @@ -74334,12 +74217,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_args) - return this.equals((drop_partition_with_environment_context_args)that); + if (that instanceof append_partition_by_name_with_environment_context_args) + return this.equals((append_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(drop_partition_with_environment_context_args that) { + public boolean equals(append_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -74361,21 +74244,12 @@ public boolean equals(drop_partition_with_environment_context_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - 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_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (this.deleteData != that.deleteData) + if (!this.part_name.equals(that.part_name)) return false; } @@ -74405,15 +74279,10 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); boolean present_environment_context = true && (isSetEnvironment_context()); list.add(present_environment_context); @@ -74424,7 +74293,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_with_environment_context_args other) { + public int compareTo(append_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -74451,22 +74320,12 @@ public int compareTo(drop_partition_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -74498,7 +74357,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -74517,18 +74376,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.part_name); } first = false; if (!first) sb.append(", "); - 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"); @@ -74558,23 +74413,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_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_with_environment_context_argsStandardScheme(); + private static class append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74600,33 +74453,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list860.size); - String _elem861; - for (int _i862 = 0; _i862 < _list860.size; ++_i862) - { - _elem861 = iprot.readString(); - struct.part_vals.add(_elem861); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // ENVIRONMENT_CONTEXT + case 4: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); @@ -74644,7 +74479,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74658,21 +74493,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter863 : struct.part_vals) - { - oprot.writeString(_iter863); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } - 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); @@ -74684,16 +74509,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit } - private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_with_environment_context_argsTupleScheme(); + private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -74702,33 +74527,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } if (struct.isSetEnvironment_context()) { - optionals.set(4); + optionals.set(3); } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter864 : struct.part_vals) - { - oprot.writeString(_iter864); - } - } - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } if (struct.isSetEnvironment_context()) { struct.environment_context.write(oprot); @@ -74736,9 +74549,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -74748,23 +74561,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list865.size); - String _elem866; - for (int _i867 = 0; _i867 < _list865.size; ++_i867) - { - _elem866 = iprot.readString(); - struct.part_vals.add(_elem866); - } - } - struct.setPart_valsIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } - if (incoming.get(4)) { struct.environment_context = new EnvironmentContext(); struct.environment_context.read(iprot); struct.setEnvironment_contextIsSet(true); @@ -74774,28 +74574,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - public static class drop_partition_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_partition_with_environment_context_result"); + public static class append_partition_by_name_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("append_partition_by_name_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // 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 { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -74816,6 +74619,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -74856,89 +74661,95 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_result.class, metaDataMap); } - public drop_partition_with_environment_context_result() { + public append_partition_by_name_with_environment_context_result() { } - public drop_partition_with_environment_context_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public append_partition_by_name_with_environment_context_result( + Partition success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public drop_partition_with_environment_context_result deepCopy() { - return new drop_partition_with_environment_context_result(this); + public append_partition_by_name_with_environment_context_result deepCopy() { + return new append_partition_by_name_with_environment_context_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public boolean isSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Partition success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public InvalidObjectException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -74957,11 +74768,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -74980,13 +74791,36 @@ public void setO2IsSet(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 SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Partition)value); } break; @@ -74994,7 +74828,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((InvalidObjectException)value); } break; @@ -75002,7 +74836,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -75012,7 +74854,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -75020,6 +74862,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -75037,6 +74882,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -75045,21 +74892,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_result) - return this.equals((drop_partition_with_environment_context_result)that); + if (that instanceof append_partition_by_name_with_environment_context_result) + return this.equals((append_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(drop_partition_with_environment_context_result that) { + public boolean equals(append_partition_by_name_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -75081,6 +74928,15 @@ public boolean equals(drop_partition_with_environment_context_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; } @@ -75088,7 +74944,7 @@ public boolean equals(drop_partition_with_environment_context_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -75103,11 +74959,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(drop_partition_with_environment_context_result other) { + public int compareTo(append_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -75144,6 +75005,16 @@ public int compareTo(drop_partition_with_environment_context_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; } @@ -75161,11 +75032,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_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:"); @@ -75183,6 +75058,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -75190,6 +75073,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 { @@ -75202,23 +75088,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_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_with_environment_context_resultStandardScheme(); + private static class append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75229,8 +75113,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with } 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 Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -75238,7 +75123,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -75247,13 +75132,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); 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 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); } @@ -75263,13 +75157,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_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) { @@ -75282,22 +75176,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_with_environment_context_resultTupleScheme(); + private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -75309,9 +75208,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -75319,55 +75221,64 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); + public static class drop_partition_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_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private List part_vals; // required private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), + PART_VALS((short)3, "part_vals"), DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -75387,8 +75298,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // PART_VALS + return PART_VALS; case 4: // DELETE_DATA return DELETE_DATA; default: @@ -75440,27 +75351,28 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); } - public drop_partition_by_name_args() { + public drop_partition_args() { } - public drop_partition_by_name_args( + public drop_partition_args( String db_name, String tbl_name, - String part_name, + List part_vals, boolean deleteData) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.part_vals = part_vals; this.deleteData = deleteData; setDeleteDataIsSet(true); } @@ -75468,7 +75380,7 @@ public drop_partition_by_name_args( /** * Performs a deep copy on other. */ - public drop_partition_by_name_args(drop_partition_by_name_args other) { + public drop_partition_args(drop_partition_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -75476,21 +75388,22 @@ public drop_partition_by_name_args(drop_partition_by_name_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } this.deleteData = other.deleteData; } - public drop_partition_by_name_args deepCopy() { - return new drop_partition_by_name_args(this); + public drop_partition_args deepCopy() { + return new drop_partition_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.part_vals = null; setDeleteDataIsSet(false); this.deleteData = false; } @@ -75541,26 +75454,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setPart_name(String part_name) { - this.part_name = part_name; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetPart_name() { - this.part_name = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + public List getPart_vals() { + return this.part_vals; } - public void setPart_nameIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.part_name = null; + this.part_vals = null; } } @@ -75604,11 +75532,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case PART_VALS: if (value == null) { - unsetPart_name(); + unsetPart_vals(); } else { - setPart_name((String)value); + setPart_vals((List)value); } break; @@ -75631,8 +75559,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case PART_VALS: + return getPart_vals(); case DELETE_DATA: return isDeleteData(); @@ -75652,8 +75580,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case PART_VALS: + return isSetPart_vals(); case DELETE_DATA: return isSetDeleteData(); } @@ -75664,12 +75592,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_args) - return this.equals((drop_partition_by_name_args)that); + if (that instanceof drop_partition_args) + return this.equals((drop_partition_args)that); return false; } - public boolean equals(drop_partition_by_name_args that) { + public boolean equals(drop_partition_args that) { if (that == null) return false; @@ -75691,12 +75619,12 @@ public boolean equals(drop_partition_by_name_args that) { return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -75726,10 +75654,10 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); boolean present_deleteData = true; list.add(present_deleteData); @@ -75740,7 +75668,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_by_name_args other) { + public int compareTo(drop_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -75767,12 +75695,12 @@ public int compareTo(drop_partition_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -75804,7 +75732,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); + StringBuilder sb = new StringBuilder("drop_partition_args("); boolean first = true; sb.append("db_name:"); @@ -75823,11 +75751,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); @@ -75861,15 +75789,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsStandardScheme getScheme() { - return new drop_partition_by_name_argsStandardScheme(); + private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_argsStandardScheme getScheme() { + return new drop_partition_argsStandardScheme(); } } - private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { + private static class drop_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75895,10 +75823,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list900 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list900.size); + String _elem901; + for (int _i902 = 0; _i902 < _list900.size; ++_i902) + { + _elem901 = iprot.readString(); + struct.part_vals.add(_elem901); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -75920,7 +75858,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -75934,9 +75872,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.part_vals != null) { + 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 _iter903 : struct.part_vals) + { + oprot.writeString(_iter903); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); @@ -75948,16 +75893,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsTupleScheme getScheme() { - return new drop_partition_by_name_argsTupleScheme(); + private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_argsTupleScheme getScheme() { + return new drop_partition_argsTupleScheme(); } } - private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { + private static class drop_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -75966,7 +75911,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } if (struct.isSetDeleteData()) { @@ -75979,8 +75924,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter904 : struct.part_vals) + { + oprot.writeString(_iter904); + } + } } if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); @@ -75988,7 +75939,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -76000,8 +75951,17 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list905 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list905.size); + String _elem906; + for (int _i907 = 0; _i907 < _list905.size; ++_i907) + { + _elem906 = iprot.readString(); + struct.part_vals.add(_elem906); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { struct.deleteData = iprot.readBool(); @@ -76012,8 +75972,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_result"); + public static class drop_partition_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_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -76021,8 +75981,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); } private boolean success; // required @@ -76106,13 +76066,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); } - public drop_partition_by_name_result() { + public drop_partition_result() { } - public drop_partition_by_name_result( + public drop_partition_result( boolean success, NoSuchObjectException o1, MetaException o2) @@ -76127,7 +76087,7 @@ public drop_partition_by_name_result( /** * Performs a deep copy on other. */ - public drop_partition_by_name_result(drop_partition_by_name_result other) { + public drop_partition_result(drop_partition_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -76138,8 +76098,8 @@ public drop_partition_by_name_result(drop_partition_by_name_result other) { } } - public drop_partition_by_name_result deepCopy() { - return new drop_partition_by_name_result(this); + public drop_partition_result deepCopy() { + return new drop_partition_result(this); } @Override @@ -76283,12 +76243,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_result) - return this.equals((drop_partition_by_name_result)that); + if (that instanceof drop_partition_result) + return this.equals((drop_partition_result)that); return false; } - public boolean equals(drop_partition_by_name_result that) { + public boolean equals(drop_partition_result that) { if (that == null) return false; @@ -76345,7 +76305,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_by_name_result other) { + public int compareTo(drop_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -76399,7 +76359,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); + StringBuilder sb = new StringBuilder("drop_partition_result("); boolean first = true; sb.append("success:"); @@ -76448,15 +76408,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultStandardScheme getScheme() { - return new drop_partition_by_name_resultStandardScheme(); + private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_resultStandardScheme getScheme() { + return new drop_partition_resultStandardScheme(); } } - private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { + private static class drop_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76501,7 +76461,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -76526,16 +76486,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultTupleScheme getScheme() { - return new drop_partition_by_name_resultTupleScheme(); + private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_resultTupleScheme getScheme() { + return new drop_partition_resultTupleScheme(); } } - private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { + private static class drop_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -76560,7 +76520,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -76582,24 +76542,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_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_partition_by_name_with_environment_context_args"); + public static class drop_partition_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_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private List part_vals; // required private boolean deleteData; // required private EnvironmentContext environment_context; // required @@ -76607,7 +76567,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), + PART_VALS((short)3, "part_vals"), DELETE_DATA((short)4, "deleteData"), ENVIRONMENT_CONTEXT((short)5, "environment_context"); @@ -76628,8 +76588,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // PART_VALS + return PART_VALS; case 4: // DELETE_DATA return DELETE_DATA; case 5: // ENVIRONMENT_CONTEXT @@ -76683,30 +76643,31 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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(drop_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_args() { + public drop_partition_with_environment_context_args() { } - public drop_partition_by_name_with_environment_context_args( + public drop_partition_with_environment_context_args( String db_name, String tbl_name, - String part_name, + List part_vals, boolean deleteData, EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.part_vals = part_vals; this.deleteData = deleteData; setDeleteDataIsSet(true); this.environment_context = environment_context; @@ -76715,7 +76676,7 @@ public drop_partition_by_name_with_environment_context_args( /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_args other) { + public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -76723,8 +76684,9 @@ public drop_partition_by_name_with_environment_context_args(drop_partition_by_na if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } this.deleteData = other.deleteData; if (other.isSetEnvironment_context()) { @@ -76732,15 +76694,15 @@ public drop_partition_by_name_with_environment_context_args(drop_partition_by_na } } - public drop_partition_by_name_with_environment_context_args deepCopy() { - return new drop_partition_by_name_with_environment_context_args(this); + public drop_partition_with_environment_context_args deepCopy() { + return new drop_partition_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.part_vals = null; setDeleteDataIsSet(false); this.deleteData = false; this.environment_context = null; @@ -76792,26 +76754,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setPart_name(String part_name) { - this.part_name = part_name; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetPart_name() { - this.part_name = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + public List getPart_vals() { + return this.part_vals; } - public void setPart_nameIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.part_name = null; + this.part_vals = null; } } @@ -76878,11 +76855,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case PART_VALS: if (value == null) { - unsetPart_name(); + unsetPart_vals(); } else { - setPart_name((String)value); + setPart_vals((List)value); } break; @@ -76913,8 +76890,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case PART_VALS: + return getPart_vals(); case DELETE_DATA: return isDeleteData(); @@ -76937,8 +76914,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case PART_VALS: + return isSetPart_vals(); case DELETE_DATA: return isSetDeleteData(); case ENVIRONMENT_CONTEXT: @@ -76951,12 +76928,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_args) - return this.equals((drop_partition_by_name_with_environment_context_args)that); + if (that instanceof drop_partition_with_environment_context_args) + return this.equals((drop_partition_with_environment_context_args)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_args that) { + public boolean equals(drop_partition_with_environment_context_args that) { if (that == null) return false; @@ -76978,12 +76955,12 @@ public boolean equals(drop_partition_by_name_with_environment_context_args that) return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -77022,10 +76999,10 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); boolean present_deleteData = true; list.add(present_deleteData); @@ -77041,7 +77018,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_by_name_with_environment_context_args other) { + public int compareTo(drop_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -77068,12 +77045,12 @@ public int compareTo(drop_partition_by_name_with_environment_context_args other) return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -77115,7 +77092,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -77134,11 +77111,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); @@ -77183,15 +77160,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsStandardScheme(); + private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_with_environment_context_argsStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77217,10 +77194,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list908 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list908.size); + String _elem909; + for (int _i910 = 0; _i910 < _list908.size; ++_i910) + { + _elem909 = iprot.readString(); + struct.part_vals.add(_elem909); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -77251,7 +77238,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77265,9 +77252,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.part_vals != null) { + 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 _iter911 : struct.part_vals) + { + oprot.writeString(_iter911); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); @@ -77284,16 +77278,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsTupleScheme(); + private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_with_environment_context_argsTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -77302,7 +77296,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } if (struct.isSetDeleteData()) { @@ -77318,8 +77312,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter912 : struct.part_vals) + { + oprot.writeString(_iter912); + } + } } if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); @@ -77330,7 +77330,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { @@ -77342,8 +77342,17 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list913 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list913.size); + String _elem914; + for (int _i915 = 0; _i915 < _list913.size; ++_i915) + { + _elem914 = iprot.readString(); + struct.part_vals.add(_elem914); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { struct.deleteData = iprot.readBool(); @@ -77359,8 +77368,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_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_partition_by_name_with_environment_context_result"); + public static class drop_partition_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_partition_with_environment_context_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -77368,8 +77377,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); } private boolean success; // required @@ -77453,13 +77462,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_result() { + public drop_partition_with_environment_context_result() { } - public drop_partition_by_name_with_environment_context_result( + public drop_partition_with_environment_context_result( boolean success, NoSuchObjectException o1, MetaException o2) @@ -77474,7 +77483,7 @@ public drop_partition_by_name_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { + public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -77485,8 +77494,8 @@ public drop_partition_by_name_with_environment_context_result(drop_partition_by_ } } - public drop_partition_by_name_with_environment_context_result deepCopy() { - return new drop_partition_by_name_with_environment_context_result(this); + public drop_partition_with_environment_context_result deepCopy() { + return new drop_partition_with_environment_context_result(this); } @Override @@ -77630,12 +77639,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_result) - return this.equals((drop_partition_by_name_with_environment_context_result)that); + if (that instanceof drop_partition_with_environment_context_result) + return this.equals((drop_partition_with_environment_context_result)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_result that) { + public boolean equals(drop_partition_with_environment_context_result that) { if (that == null) return false; @@ -77692,7 +77701,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partition_by_name_with_environment_context_result other) { + public int compareTo(drop_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -77746,7 +77755,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -77795,15 +77804,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultStandardScheme(); + private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_with_environment_context_resultStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77848,7 +77857,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77873,16 +77882,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultTupleScheme(); + private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_with_environment_context_resultTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -77907,7 +77916,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -77929,22 +77938,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_args"); + public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); } - private DropPartitionsRequest req; // required + private String db_name; // required + private String tbl_name; // required + private String part_name; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_NAME((short)3, "part_name"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -77959,8 +77977,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_NAME + return PART_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -78001,73 +78025,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.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, DropPartitionsRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); } - public drop_partitions_req_args() { + public drop_partition_by_name_args() { } - public drop_partitions_req_args( - DropPartitionsRequest req) + public drop_partition_by_name_args( + String db_name, + String tbl_name, + String part_name, + boolean deleteData) { this(); - this.req = req; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_name = part_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public drop_partitions_req_args(drop_partitions_req_args other) { - if (other.isSetReq()) { - this.req = new DropPartitionsRequest(other.req); + public drop_partition_by_name_args(drop_partition_by_name_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } + if (other.isSetPart_name()) { + this.part_name = other.part_name; + } + this.deleteData = other.deleteData; } - public drop_partitions_req_args deepCopy() { - return new drop_partitions_req_args(this); + public drop_partition_by_name_args deepCopy() { + return new drop_partition_by_name_args(this); } @Override public void clear() { - this.req = null; + this.db_name = null; + this.tbl_name = null; + this.part_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; } - public DropPartitionsRequest getReq() { - return this.req; + public String getDb_name() { + return this.db_name; } - public void setReq(DropPartitionsRequest req) { - this.req = req; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetReq() { - this.req = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setReqIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.req = null; + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; } } + public String getPart_name() { + return this.part_name; + } + + public void setPart_name(String part_name) { + this.part_name = part_name; + } + + public void unsetPart_name() { + this.part_name = null; + } + + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; + } + + public void setPart_nameIsSet(boolean value) { + if (!value) { + this.part_name = null; + } + } + + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDb_name(); } else { - setReq((DropPartitionsRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_NAME: + if (value == null) { + unsetPart_name(); + } else { + setPart_name((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); } break; @@ -78076,8 +78219,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_NAME: + return getPart_name(); + + case DELETE_DATA: + return isDeleteData(); } throw new IllegalStateException(); @@ -78090,8 +78242,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_NAME: + return isSetPart_name(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -78100,21 +78258,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_args) - return this.equals((drop_partitions_req_args)that); + if (that instanceof drop_partition_by_name_args) + return this.equals((drop_partition_by_name_args)that); return false; } - public boolean equals(drop_partitions_req_args that) { + public boolean equals(drop_partition_by_name_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_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.req.equals(that.req)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) + return false; + if (!this.part_name.equals(that.part_name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) return false; } @@ -78125,28 +78310,73 @@ public boolean equals(drop_partitions_req_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); return list.hashCode(); } @Override - public int compareTo(drop_partitions_req_args other) { + public int compareTo(drop_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -78168,16 +78398,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.db_name); } first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_name:"); + if (this.part_name == null) { + sb.append("null"); + } else { + sb.append(this.part_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -78185,9 +78435,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -78200,21 +78447,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 drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsStandardScheme getScheme() { - return new drop_partitions_req_argsStandardScheme(); + private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsStandardScheme getScheme() { + return new drop_partition_by_name_argsStandardScheme(); } } - private static class drop_partitions_req_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78224,11 +78473,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78242,70 +78514,112 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsTupleScheme getScheme() { - return new drop_partitions_req_argsTupleScheme(); + private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsTupleScheme getScheme() { + return new drop_partition_by_name_argsTupleScheme(); } } - private static class drop_partitions_req_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_name()) { + optionals.set(2); + } + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); + public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); } - private DropPartitionsResult success; // required + private boolean success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -78374,29 +78688,32 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsResult.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); } - public drop_partitions_req_result() { + public drop_partition_by_name_result() { } - public drop_partitions_req_result( - DropPartitionsResult success, + public drop_partition_by_name_result( + boolean success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -78404,10 +78721,9 @@ public drop_partitions_req_result( /** * Performs a deep copy on other. */ - public drop_partitions_req_result(drop_partitions_req_result other) { - if (other.isSetSuccess()) { - this.success = new DropPartitionsResult(other.success); - } + public drop_partition_by_name_result(drop_partition_by_name_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -78416,38 +78732,38 @@ public drop_partitions_req_result(drop_partitions_req_result other) { } } - public drop_partitions_req_result deepCopy() { - return new drop_partitions_req_result(this); + public drop_partition_by_name_result deepCopy() { + return new drop_partition_by_name_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; } - public DropPartitionsResult getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(DropPartitionsResult success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public NoSuchObjectException getO1() { @@ -78502,7 +78818,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((DropPartitionsResult)value); + setSuccess((Boolean)value); } break; @@ -78528,7 +78844,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -78561,21 +78877,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_result) - return this.equals((drop_partitions_req_result)that); + if (that instanceof drop_partition_by_name_result) + return this.equals((drop_partition_by_name_result)that); return false; } - public boolean equals(drop_partitions_req_result that) { + public boolean equals(drop_partition_by_name_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -78604,7 +78920,7 @@ public boolean equals(drop_partitions_req_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -78623,7 +78939,7 @@ public int hashCode() { } @Override - public int compareTo(drop_partitions_req_result other) { + public int compareTo(drop_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -78677,15 +78993,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -78710,9 +79022,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -78725,21 +79034,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 drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultStandardScheme getScheme() { - return new drop_partitions_req_resultStandardScheme(); + private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultStandardScheme getScheme() { + return new drop_partition_by_name_resultStandardScheme(); } } - private static class drop_partitions_req_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78750,9 +79061,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new DropPartitionsResult(); - struct.success.read(iprot); + 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); @@ -78785,13 +79095,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -78810,16 +79120,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_re } - private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultTupleScheme getScheme() { - return new drop_partitions_req_resultTupleScheme(); + private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultTupleScheme getScheme() { + return new drop_partition_by_name_resultTupleScheme(); } } - private static class drop_partitions_req_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -78833,7 +79143,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -78844,12 +79154,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new DropPartitionsResult(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -78867,28 +79176,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ } - public static class get_partition_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_partition_args"); + public static class drop_partition_by_name_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_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required + private String part_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, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"); + PART_NAME((short)3, "part_name"), + DELETE_DATA((short)4, "deleteData"), + ENVIRONMENT_CONTEXT((short)5, "environment_context"); private static final Map byName = new HashMap(); @@ -78907,8 +79222,12 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 3: // PART_NAME + return PART_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; + case 5: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -78949,6 +79268,8 @@ 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); @@ -78956,52 +79277,67 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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.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(get_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_args.class, metaDataMap); } - public get_partition_args() { + public drop_partition_by_name_with_environment_context_args() { } - public get_partition_args( + public drop_partition_by_name_with_environment_context_args( String db_name, String tbl_name, - List part_vals) + String part_name, + boolean deleteData, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.part_name = part_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_partition_args(get_partition_args other) { + public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetPart_name()) { + this.part_name = other.part_name; + } + this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public get_partition_args deepCopy() { - return new get_partition_args(this); + public drop_partition_by_name_with_environment_context_args deepCopy() { + return new drop_partition_by_name_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; + this.part_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + this.environment_context = null; } public String getDb_name() { @@ -79050,41 +79386,71 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public String getPart_name() { + return this.part_name; } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void unsetPart_name() { + this.part_name = null; + } + + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; + } + + public void setPart_nameIsSet(boolean value) { + if (!value) { + this.part_name = null; } - this.part_vals.add(elem); } - public List getPart_vals() { - return this.part_vals; + public boolean isDeleteData() { + return this.deleteData; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** 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 setPart_valsIsSet(boolean value) { + 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.part_vals = null; + this.environment_context = null; } } @@ -79106,11 +79472,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: + case PART_NAME: if (value == null) { - unsetPart_vals(); + unsetPart_name(); } else { - setPart_vals((List)value); + setPart_name((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -79125,8 +79507,14 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); + case PART_NAME: + return getPart_name(); + + case DELETE_DATA: + return isDeleteData(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -79143,8 +79531,12 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case PART_NAME: + return isSetPart_name(); + case DELETE_DATA: + return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -79153,12 +79545,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_args) - return this.equals((get_partition_args)that); + if (that instanceof drop_partition_by_name_with_environment_context_args) + return this.equals((drop_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(get_partition_args that) { + public boolean equals(drop_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -79180,12 +79572,30 @@ public boolean equals(get_partition_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.part_name.equals(that.part_name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + + 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; } @@ -79206,16 +79616,26 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); + + 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(get_partition_args other) { + public int compareTo(drop_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -79242,12 +79662,32 @@ public int compareTo(get_partition_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; } @@ -79269,7 +79709,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -79288,11 +79728,23 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.part_name); + } + first = false; + if (!first) sb.append(", "); + 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(")"); @@ -79302,6 +79754,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 { @@ -79314,21 +79769,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_argsStandardScheme getScheme() { - return new get_partition_argsStandardScheme(); + private static class drop_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class get_partition_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79354,20 +79811,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list868.size); - String _elem869; - for (int _i870 = 0; _i870 < _list868.size; ++_i870) - { - _elem869 = iprot.readString(); - struct.part_vals.add(_elem869); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // 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); } @@ -79381,7 +79845,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -79395,16 +79859,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter871 : struct.part_vals) - { - oprot.writeString(_iter871); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); + oprot.writeFieldEnd(); + } + 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(); @@ -79413,16 +79878,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args } - private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_argsTupleScheme getScheme() { - return new get_partition_argsTupleScheme(); + private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class get_partition_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -79431,31 +79896,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetDeleteData()) { + optionals.set(3); + } + if (struct.isSetEnvironment_context()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter872 : struct.part_vals) - { - oprot.writeString(_iter872); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_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, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -79465,39 +79936,39 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list873.size); - String _elem874; - for (int _i875 = 0; _i875 < _list873.size; ++_i875) - { - _elem874 = iprot.readString(); - struct.part_vals.add(_elem874); - } - } - struct.setPart_valsIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + if (incoming.get(4)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class get_partition_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_partition_result"); + public static class drop_partition_by_name_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_partition_by_name_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -79564,29 +80035,32 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_result.class, metaDataMap); } - public get_partition_result() { + public drop_partition_by_name_with_environment_context_result() { } - public get_partition_result( - Partition success, - MetaException o1, - NoSuchObjectException o2) + public drop_partition_by_name_with_environment_context_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -79594,57 +80068,56 @@ public get_partition_result( /** * Performs a deep copy on other. */ - public get_partition_result(get_partition_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_result deepCopy() { - return new get_partition_result(this); + public drop_partition_by_name_with_environment_context_result deepCopy() { + return new drop_partition_by_name_with_environment_context_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; } - public Partition getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -79663,11 +80136,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -79692,7 +80165,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Boolean)value); } break; @@ -79700,7 +80173,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -79708,7 +80181,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -79718,7 +80191,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -79751,21 +80224,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_result) - return this.equals((get_partition_result)that); + if (that instanceof drop_partition_by_name_with_environment_context_result) + return this.equals((drop_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(get_partition_result that) { + public boolean equals(drop_partition_by_name_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -79794,7 +80267,7 @@ public boolean equals(get_partition_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -79813,7 +80286,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_result other) { + public int compareTo(drop_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -79867,15 +80340,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -79900,9 +80369,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -79915,21 +80381,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_resultStandardScheme getScheme() { - return new get_partition_resultStandardScheme(); + private static class drop_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class get_partition_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79940,9 +80408,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + 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); @@ -79950,7 +80417,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -79959,7 +80426,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -79975,13 +80442,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -80000,16 +80467,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_resu } - private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_resultTupleScheme getScheme() { - return new get_partition_resultTupleScheme(); + private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class get_partition_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -80023,7 +80490,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -80034,21 +80501,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -80057,34 +80523,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result } - public static class exchange_partition_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("exchange_partition_args"); + public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_args"); - private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); - private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + 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 exchange_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); } - private Map partitionSpecs; // required - private String source_db; // required - private String source_table_name; // required - private String dest_db; // required - private String dest_table_name; // required + private DropPartitionsRequest 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 { - PARTITION_SPECS((short)1, "partitionSpecs"), - SOURCE_DB((short)2, "source_db"), - SOURCE_TABLE_NAME((short)3, "source_table_name"), - DEST_DB((short)4, "dest_db"), - DEST_TABLE_NAME((short)5, "dest_table_name"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -80099,16 +80553,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PARTITION_SPECS - return PARTITION_SPECS; - case 2: // SOURCE_DB - return SOURCE_DB; - case 3: // SOURCE_TABLE_NAME - return SOURCE_TABLE_NAME; - case 4: // DEST_DB - return DEST_DB; - case 5: // DEST_TABLE_NAME - return DEST_TABLE_NAME; + case 1: // REQ + return REQ; default: return null; } @@ -80152,240 +80598,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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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, DropPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); } - public exchange_partition_args() { + public drop_partitions_req_args() { } - public exchange_partition_args( - Map partitionSpecs, - String source_db, - String source_table_name, - String dest_db, - String dest_table_name) + public drop_partitions_req_args( + DropPartitionsRequest req) { this(); - this.partitionSpecs = partitionSpecs; - this.source_db = source_db; - this.source_table_name = source_table_name; - this.dest_db = dest_db; - this.dest_table_name = dest_table_name; + this.req = req; } /** * Performs a deep copy on other. */ - public exchange_partition_args(exchange_partition_args other) { - if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); - this.partitionSpecs = __this__partitionSpecs; - } - if (other.isSetSource_db()) { - this.source_db = other.source_db; - } - if (other.isSetSource_table_name()) { - this.source_table_name = other.source_table_name; - } - if (other.isSetDest_db()) { - this.dest_db = other.dest_db; - } - if (other.isSetDest_table_name()) { - this.dest_table_name = other.dest_table_name; + public drop_partitions_req_args(drop_partitions_req_args other) { + if (other.isSetReq()) { + this.req = new DropPartitionsRequest(other.req); } } - public exchange_partition_args deepCopy() { - return new exchange_partition_args(this); + public drop_partitions_req_args deepCopy() { + return new drop_partitions_req_args(this); } @Override public void clear() { - this.partitionSpecs = null; - this.source_db = null; - this.source_table_name = null; - this.dest_db = null; - this.dest_table_name = null; - } - - public int getPartitionSpecsSize() { - return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); - } - - public void putToPartitionSpecs(String key, String val) { - if (this.partitionSpecs == null) { - this.partitionSpecs = new HashMap(); - } - this.partitionSpecs.put(key, val); - } - - public Map getPartitionSpecs() { - return this.partitionSpecs; - } - - public void setPartitionSpecs(Map partitionSpecs) { - this.partitionSpecs = partitionSpecs; - } - - public void unsetPartitionSpecs() { - this.partitionSpecs = null; - } - - /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ - public boolean isSetPartitionSpecs() { - return this.partitionSpecs != null; - } - - public void setPartitionSpecsIsSet(boolean value) { - if (!value) { - this.partitionSpecs = null; - } - } - - public String getSource_db() { - return this.source_db; - } - - public void setSource_db(String source_db) { - this.source_db = source_db; - } - - public void unsetSource_db() { - this.source_db = null; - } - - /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_db() { - return this.source_db != null; - } - - public void setSource_dbIsSet(boolean value) { - if (!value) { - this.source_db = null; - } - } - - public String getSource_table_name() { - return this.source_table_name; - } - - public void setSource_table_name(String source_table_name) { - this.source_table_name = source_table_name; - } - - public void unsetSource_table_name() { - this.source_table_name = null; - } - - /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_table_name() { - return this.source_table_name != null; - } - - public void setSource_table_nameIsSet(boolean value) { - if (!value) { - this.source_table_name = null; - } - } - - public String getDest_db() { - return this.dest_db; - } - - public void setDest_db(String dest_db) { - this.dest_db = dest_db; - } - - public void unsetDest_db() { - this.dest_db = null; - } - - /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_db() { - return this.dest_db != null; - } - - public void setDest_dbIsSet(boolean value) { - if (!value) { - this.dest_db = null; - } + this.req = null; } - public String getDest_table_name() { - return this.dest_table_name; + public DropPartitionsRequest getReq() { + return this.req; } - public void setDest_table_name(String dest_table_name) { - this.dest_table_name = dest_table_name; + public void setReq(DropPartitionsRequest req) { + this.req = req; } - public void unsetDest_table_name() { - this.dest_table_name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_table_name() { - return this.dest_table_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 setDest_table_nameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.dest_table_name = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PARTITION_SPECS: - if (value == null) { - unsetPartitionSpecs(); - } else { - setPartitionSpecs((Map)value); - } - break; - - case SOURCE_DB: - if (value == null) { - unsetSource_db(); - } else { - setSource_db((String)value); - } - break; - - case SOURCE_TABLE_NAME: - if (value == null) { - unsetSource_table_name(); - } else { - setSource_table_name((String)value); - } - break; - - case DEST_DB: - if (value == null) { - unsetDest_db(); - } else { - setDest_db((String)value); - } - break; - - case DEST_TABLE_NAME: + case REQ: if (value == null) { - unsetDest_table_name(); + unsetReq(); } else { - setDest_table_name((String)value); + setReq((DropPartitionsRequest)value); } break; @@ -80394,20 +80670,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PARTITION_SPECS: - return getPartitionSpecs(); - - case SOURCE_DB: - return getSource_db(); - - case SOURCE_TABLE_NAME: - return getSource_table_name(); - - case DEST_DB: - return getDest_db(); - - case DEST_TABLE_NAME: - return getDest_table_name(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -80420,16 +80684,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case PARTITION_SPECS: - return isSetPartitionSpecs(); - case SOURCE_DB: - return isSetSource_db(); - case SOURCE_TABLE_NAME: - return isSetSource_table_name(); - case DEST_DB: - return isSetDest_db(); - case DEST_TABLE_NAME: - return isSetDest_table_name(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -80438,57 +80694,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_args) - return this.equals((exchange_partition_args)that); + if (that instanceof drop_partitions_req_args) + return this.equals((drop_partitions_req_args)that); return false; } - public boolean equals(exchange_partition_args that) { + public boolean equals(drop_partitions_req_args that) { if (that == null) return false; - boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); - boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); - if (this_present_partitionSpecs || that_present_partitionSpecs) { - if (!(this_present_partitionSpecs && that_present_partitionSpecs)) - return false; - if (!this.partitionSpecs.equals(that.partitionSpecs)) - return false; - } - - boolean this_present_source_db = true && this.isSetSource_db(); - boolean that_present_source_db = true && that.isSetSource_db(); - if (this_present_source_db || that_present_source_db) { - if (!(this_present_source_db && that_present_source_db)) - return false; - if (!this.source_db.equals(that.source_db)) - return false; - } - - boolean this_present_source_table_name = true && this.isSetSource_table_name(); - boolean that_present_source_table_name = true && that.isSetSource_table_name(); - if (this_present_source_table_name || that_present_source_table_name) { - if (!(this_present_source_table_name && that_present_source_table_name)) - return false; - if (!this.source_table_name.equals(that.source_table_name)) - return false; - } - - boolean this_present_dest_db = true && this.isSetDest_db(); - boolean that_present_dest_db = true && that.isSetDest_db(); - if (this_present_dest_db || that_present_dest_db) { - if (!(this_present_dest_db && that_present_dest_db)) - return false; - if (!this.dest_db.equals(that.dest_db)) - return false; - } - - boolean this_present_dest_table_name = true && this.isSetDest_table_name(); - boolean that_present_dest_table_name = true && that.isSetDest_table_name(); - if (this_present_dest_table_name || that_present_dest_table_name) { - if (!(this_present_dest_table_name && that_present_dest_table_name)) + 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.dest_table_name.equals(that.dest_table_name)) + if (!this.req.equals(that.req)) return false; } @@ -80499,88 +80719,28 @@ public boolean equals(exchange_partition_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); - if (present_partitionSpecs) - list.add(partitionSpecs); - - boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); - if (present_source_db) - list.add(source_db); - - boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); - if (present_source_table_name) - list.add(source_table_name); - - boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); - if (present_dest_db) - list.add(dest_db); - - boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); - if (present_dest_table_name) - list.add(dest_table_name); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(exchange_partition_args other) { + public int compareTo(drop_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -80602,46 +80762,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_args("); + StringBuilder sb = new StringBuilder("drop_partitions_req_args("); boolean first = true; - sb.append("partitionSpecs:"); - if (this.partitionSpecs == null) { - sb.append("null"); - } else { - sb.append(this.partitionSpecs); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_db:"); - if (this.source_db == null) { - sb.append("null"); - } else { - sb.append(this.source_db); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_table_name:"); - if (this.source_table_name == null) { - sb.append("null"); - } else { - sb.append(this.source_table_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("dest_db:"); - if (this.dest_db == null) { - sb.append("null"); - } else { - sb.append(this.dest_db); - } - first = false; - if (!first) sb.append(", "); - sb.append("dest_table_name:"); - if (this.dest_table_name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.dest_table_name); + sb.append(this.req); } first = false; sb.append(")"); @@ -80651,6 +80779,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 { @@ -80669,15 +80800,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partition_argsStandardScheme getScheme() { - return new exchange_partition_argsStandardScheme(); + private static class drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsStandardScheme getScheme() { + return new drop_partitions_req_argsStandardScheme(); } } - private static class exchange_partition_argsStandardScheme extends StandardScheme { + private static class drop_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80687,54 +80818,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ break; } switch (schemeField.id) { - case 1: // PARTITION_SPECS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map876 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map876.size); - String _key877; - String _val878; - for (int _i879 = 0; _i879 < _map876.size; ++_i879) - { - _key877 = iprot.readString(); - _val878 = iprot.readString(); - struct.partitionSpecs.put(_key877, _val878); - } - iprot.readMapEnd(); - } - struct.setPartitionSpecsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SOURCE_DB - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SOURCE_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DEST_DB - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // DEST_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -80748,41 +80836,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.partitionSpecs != null) { - 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 _iter880 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter880.getKey()); - oprot.writeString(_iter880.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.source_db != null) { - oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); - oprot.writeString(struct.source_db); - oprot.writeFieldEnd(); - } - if (struct.source_table_name != null) { - oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.source_table_name); - oprot.writeFieldEnd(); - } - if (struct.dest_db != null) { - oprot.writeFieldBegin(DEST_DB_FIELD_DESC); - oprot.writeString(struct.dest_db); - oprot.writeFieldEnd(); - } - if (struct.dest_table_name != null) { - oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.dest_table_name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -80791,126 +80851,63 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partition_argsTupleScheme getScheme() { - return new exchange_partition_argsTupleScheme(); + private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsTupleScheme getScheme() { + return new drop_partitions_req_argsTupleScheme(); } } - private static class exchange_partition_argsTupleScheme extends TupleScheme { + private static class drop_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetSource_db()) { - optionals.set(1); - } - if (struct.isSetSource_table_name()) { - optionals.set(2); - } - if (struct.isSetDest_db()) { - optionals.set(3); - } - if (struct.isSetDest_table_name()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetPartitionSpecs()) { - { - oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter881 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter881.getKey()); - oprot.writeString(_iter881.getValue()); - } - } - } - if (struct.isSetSource_db()) { - oprot.writeString(struct.source_db); - } - if (struct.isSetSource_table_name()) { - oprot.writeString(struct.source_table_name); - } - if (struct.isSetDest_db()) { - oprot.writeString(struct.dest_db); - } - if (struct.isSetDest_table_name()) { - oprot.writeString(struct.dest_table_name); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map882 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map882.size); - String _key883; - String _val884; - for (int _i885 = 0; _i885 < _map882.size; ++_i885) - { - _key883 = iprot.readString(); - _val884 = iprot.readString(); - struct.partitionSpecs.put(_key883, _val884); - } - } - struct.setPartitionSpecsIsSet(true); - } - if (incoming.get(1)) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); - } - if (incoming.get(2)) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); - } - if (incoming.get(3)) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); - } - if (incoming.get(4)) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class exchange_partition_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("exchange_partition_result"); + public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required - private InvalidObjectException o3; // required - private InvalidInputException o4; // required + private DropPartitionsResult success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -80931,10 +80928,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; default: return null; } @@ -80979,60 +80972,46 @@ 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, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(exchange_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_result.class, metaDataMap); } - public exchange_partition_result() { + public drop_partitions_req_result() { } - public exchange_partition_result( - Partition success, - MetaException o1, - NoSuchObjectException o2, - InvalidObjectException o3, - InvalidInputException o4) + public drop_partitions_req_result( + DropPartitionsResult success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public exchange_partition_result(exchange_partition_result other) { + public drop_partitions_req_result(drop_partitions_req_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + this.success = new DropPartitionsResult(other.success); } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new InvalidObjectException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new InvalidInputException(other.o4); + this.o2 = new MetaException(other.o2); } } - public exchange_partition_result deepCopy() { - return new exchange_partition_result(this); + public drop_partitions_req_result deepCopy() { + return new drop_partitions_req_result(this); } @Override @@ -81040,15 +81019,13 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = null; } - public Partition getSuccess() { + public DropPartitionsResult getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(DropPartitionsResult success) { this.success = success; } @@ -81067,11 +81044,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -81090,11 +81067,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -81113,59 +81090,13 @@ public void setO2IsSet(boolean value) { } } - public InvalidObjectException getO3() { - return this.o3; - } - - public void setO3(InvalidObjectException 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 InvalidInputException getO4() { - return this.o4; - } - - public void setO4(InvalidInputException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((DropPartitionsResult)value); } break; @@ -81173,7 +81104,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -81181,23 +81112,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidObjectException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidInputException)value); + setO2((MetaException)value); } break; @@ -81215,12 +81130,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -81238,10 +81147,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -81250,12 +81155,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_result) - return this.equals((exchange_partition_result)that); + if (that instanceof drop_partitions_req_result) + return this.equals((drop_partitions_req_result)that); return false; } - public boolean equals(exchange_partition_result that) { + public boolean equals(drop_partitions_req_result that) { if (that == null) return false; @@ -81286,24 +81191,6 @@ public boolean equals(exchange_partition_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; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -81326,21 +81213,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(exchange_partition_result other) { + public int compareTo(drop_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -81377,26 +81254,6 @@ public int compareTo(exchange_partition_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; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -81414,7 +81271,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_result("); + StringBuilder sb = new StringBuilder("drop_partitions_req_result("); boolean first = true; sb.append("success:"); @@ -81440,22 +81297,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; sb.append(")"); return sb.toString(); } @@ -81484,15 +81325,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partition_resultStandardScheme getScheme() { - return new exchange_partition_resultStandardScheme(); + private static class drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultStandardScheme getScheme() { + return new drop_partitions_req_resultStandardScheme(); } } - private static class exchange_partition_resultStandardScheme extends StandardScheme { + private static class drop_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -81504,7 +81345,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); + struct.success = new DropPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -81513,7 +81354,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -81522,31 +81363,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { 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 InvalidObjectException(); - 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 InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -81556,7 +81379,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -81575,32 +81398,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition 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(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partition_resultTupleScheme getScheme() { - return new exchange_partition_resultTupleScheme(); + private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultTupleScheme getScheme() { + return new drop_partitions_req_resultTupleScheme(); } } - private static class exchange_partition_resultTupleScheme extends TupleScheme { + private static class drop_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -81612,13 +81425,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -81628,76 +81435,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); + struct.success = new DropPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); + public static class get_partition_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_partition_args"); - private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); - private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); } - private Map partitionSpecs; // required - private String source_db; // required - private String source_table_name; // required - private String dest_db; // required - private String dest_table_name; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // 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 { - PARTITION_SPECS((short)1, "partitionSpecs"), - SOURCE_DB((short)2, "source_db"), - SOURCE_TABLE_NAME((short)3, "source_table_name"), - DEST_DB((short)4, "dest_db"), - DEST_TABLE_NAME((short)5, "dest_table_name"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -81712,16 +81497,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PARTITION_SPECS - return PARTITION_SPECS; - case 2: // SOURCE_DB - return SOURCE_DB; - case 3: // SOURCE_TABLE_NAME - return SOURCE_TABLE_NAME; - case 4: // DEST_DB - return DEST_DB; - case 5: // DEST_TABLE_NAME - return DEST_TABLE_NAME; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; default: return null; } @@ -81765,240 +81546,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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", 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.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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(exchange_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); } - public exchange_partitions_args() { + public get_partition_args() { } - public exchange_partitions_args( - Map partitionSpecs, - String source_db, - String source_table_name, - String dest_db, - String dest_table_name) + public get_partition_args( + String db_name, + String tbl_name, + List part_vals) { this(); - this.partitionSpecs = partitionSpecs; - this.source_db = source_db; - this.source_table_name = source_table_name; - this.dest_db = dest_db; - this.dest_table_name = dest_table_name; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; } /** * Performs a deep copy on other. */ - public exchange_partitions_args(exchange_partitions_args other) { - if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); - this.partitionSpecs = __this__partitionSpecs; - } - if (other.isSetSource_db()) { - this.source_db = other.source_db; - } - if (other.isSetSource_table_name()) { - this.source_table_name = other.source_table_name; + public get_partition_args(get_partition_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetDest_db()) { - this.dest_db = other.dest_db; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } - if (other.isSetDest_table_name()) { - this.dest_table_name = other.dest_table_name; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } } - public exchange_partitions_args deepCopy() { - return new exchange_partitions_args(this); + public get_partition_args deepCopy() { + return new get_partition_args(this); } @Override public void clear() { - this.partitionSpecs = null; - this.source_db = null; - this.source_table_name = null; - this.dest_db = null; - this.dest_table_name = null; - } - - public int getPartitionSpecsSize() { - return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); - } - - public void putToPartitionSpecs(String key, String val) { - if (this.partitionSpecs == null) { - this.partitionSpecs = new HashMap(); - } - this.partitionSpecs.put(key, val); - } - - public Map getPartitionSpecs() { - return this.partitionSpecs; - } - - public void setPartitionSpecs(Map partitionSpecs) { - this.partitionSpecs = partitionSpecs; - } - - public void unsetPartitionSpecs() { - this.partitionSpecs = null; - } - - /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ - public boolean isSetPartitionSpecs() { - return this.partitionSpecs != null; - } - - public void setPartitionSpecsIsSet(boolean value) { - if (!value) { - this.partitionSpecs = null; - } + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; } - public String getSource_db() { - return this.source_db; + public String getDb_name() { + return this.db_name; } - public void setSource_db(String source_db) { - this.source_db = source_db; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetSource_db() { - this.source_db = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_db() { - return this.source_db != 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 setSource_dbIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.source_db = null; + this.db_name = null; } } - public String getSource_table_name() { - return this.source_table_name; + public String getTbl_name() { + return this.tbl_name; } - public void setSource_table_name(String source_table_name) { - this.source_table_name = source_table_name; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetSource_table_name() { - this.source_table_name = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_table_name() { - return this.source_table_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 setSource_table_nameIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.source_table_name = null; + this.tbl_name = null; } } - public String getDest_db() { - return this.dest_db; - } - - public void setDest_db(String dest_db) { - this.dest_db = dest_db; - } - - public void unsetDest_db() { - this.dest_db = null; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_db() { - return this.dest_db != null; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void setDest_dbIsSet(boolean value) { - if (!value) { - this.dest_db = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); } + this.part_vals.add(elem); } - public String getDest_table_name() { - return this.dest_table_name; + public List getPart_vals() { + return this.part_vals; } - public void setDest_table_name(String dest_table_name) { - this.dest_table_name = dest_table_name; + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; } - public void unsetDest_table_name() { - this.dest_table_name = null; + public void unsetPart_vals() { + this.part_vals = null; } - /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_table_name() { - return this.dest_table_name != null; + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; } - public void setDest_table_nameIsSet(boolean value) { + public void setPart_valsIsSet(boolean value) { if (!value) { - this.dest_table_name = null; + this.part_vals = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PARTITION_SPECS: - if (value == null) { - unsetPartitionSpecs(); - } else { - setPartitionSpecs((Map)value); - } - break; - - case SOURCE_DB: - if (value == null) { - unsetSource_db(); - } else { - setSource_db((String)value); - } - break; - - case SOURCE_TABLE_NAME: + case DB_NAME: if (value == null) { - unsetSource_table_name(); + unsetDb_name(); } else { - setSource_table_name((String)value); + setDb_name((String)value); } break; - case DEST_DB: + case TBL_NAME: if (value == null) { - unsetDest_db(); + unsetTbl_name(); } else { - setDest_db((String)value); + setTbl_name((String)value); } break; - case DEST_TABLE_NAME: + case PART_VALS: if (value == null) { - unsetDest_table_name(); + unsetPart_vals(); } else { - setDest_table_name((String)value); + setPart_vals((List)value); } break; @@ -82007,20 +81713,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PARTITION_SPECS: - return getPartitionSpecs(); - - case SOURCE_DB: - return getSource_db(); - - case SOURCE_TABLE_NAME: - return getSource_table_name(); + case DB_NAME: + return getDb_name(); - case DEST_DB: - return getDest_db(); + case TBL_NAME: + return getTbl_name(); - case DEST_TABLE_NAME: - return getDest_table_name(); + case PART_VALS: + return getPart_vals(); } throw new IllegalStateException(); @@ -82033,16 +81733,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case PARTITION_SPECS: - return isSetPartitionSpecs(); - case SOURCE_DB: - return isSetSource_db(); - case SOURCE_TABLE_NAME: - return isSetSource_table_name(); - case DEST_DB: - return isSetDest_db(); - case DEST_TABLE_NAME: - return isSetDest_table_name(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); } throw new IllegalStateException(); } @@ -82051,57 +81747,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_args) - return this.equals((exchange_partitions_args)that); + if (that instanceof get_partition_args) + return this.equals((get_partition_args)that); return false; } - public boolean equals(exchange_partitions_args that) { + public boolean equals(get_partition_args that) { if (that == null) return false; - boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); - boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); - if (this_present_partitionSpecs || that_present_partitionSpecs) { - if (!(this_present_partitionSpecs && that_present_partitionSpecs)) - return false; - if (!this.partitionSpecs.equals(that.partitionSpecs)) - return false; - } - - boolean this_present_source_db = true && this.isSetSource_db(); - boolean that_present_source_db = true && that.isSetSource_db(); - if (this_present_source_db || that_present_source_db) { - if (!(this_present_source_db && that_present_source_db)) - return false; - if (!this.source_db.equals(that.source_db)) - return false; - } - - boolean this_present_source_table_name = true && this.isSetSource_table_name(); - boolean that_present_source_table_name = true && that.isSetSource_table_name(); - if (this_present_source_table_name || that_present_source_table_name) { - if (!(this_present_source_table_name && that_present_source_table_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.source_table_name.equals(that.source_table_name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_dest_db = true && this.isSetDest_db(); - boolean that_present_dest_db = true && that.isSetDest_db(); - if (this_present_dest_db || that_present_dest_db) { - if (!(this_present_dest_db && that_present_dest_db)) + 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.dest_db.equals(that.dest_db)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_dest_table_name = true && this.isSetDest_table_name(); - boolean that_present_dest_table_name = true && that.isSetDest_table_name(); - if (this_present_dest_table_name || that_present_dest_table_name) { - if (!(this_present_dest_table_name && that_present_dest_table_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.dest_table_name.equals(that.dest_table_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -82112,88 +81790,58 @@ public boolean equals(exchange_partitions_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); - if (present_partitionSpecs) - list.add(partitionSpecs); - - boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); - if (present_source_db) - list.add(source_db); - - boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); - if (present_source_table_name) - list.add(source_table_name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); - if (present_dest_db) - list.add(dest_db); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); - boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); - if (present_dest_table_name) - list.add(dest_table_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); return list.hashCode(); } @Override - public int compareTo(exchange_partitions_args other) { + public int compareTo(get_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -82215,46 +81863,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_args("); + StringBuilder sb = new StringBuilder("get_partition_args("); boolean first = true; - sb.append("partitionSpecs:"); - if (this.partitionSpecs == null) { - sb.append("null"); - } else { - sb.append(this.partitionSpecs); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_db:"); - if (this.source_db == null) { - sb.append("null"); - } else { - sb.append(this.source_db); - } - first = false; - if (!first) sb.append(", "); - sb.append("source_table_name:"); - if (this.source_table_name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.source_table_name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_db:"); - if (this.dest_db == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.dest_db); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_table_name:"); - if (this.dest_table_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.dest_table_name); + sb.append(this.part_vals); } first = false; sb.append(")"); @@ -82282,15 +81914,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_argsStandardScheme getScheme() { - return new exchange_partitions_argsStandardScheme(); + private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_argsStandardScheme getScheme() { + return new get_partition_argsStandardScheme(); } } - private static class exchange_partitions_argsStandardScheme extends StandardScheme { + private static class get_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82300,54 +81932,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions break; } switch (schemeField.id) { - case 1: // PARTITION_SPECS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map886 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map886.size); - String _key887; - String _val888; - for (int _i889 = 0; _i889 < _map886.size; ++_i889) - { - _key887 = iprot.readString(); - _val888 = iprot.readString(); - struct.partitionSpecs.put(_key887, _val888); - } - iprot.readMapEnd(); - } - struct.setPartitionSpecsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SOURCE_DB - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SOURCE_TABLE_NAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DEST_DB + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // DEST_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list916 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list916.size); + String _elem917; + for (int _i918 = 0; _i918 < _list916.size; ++_i918) + { + _elem917 = iprot.readString(); + struct.part_vals.add(_elem917); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -82361,41 +81975,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.partitionSpecs != null) { - 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 _iter890 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter890.getKey()); - oprot.writeString(_iter890.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.source_db != null) { - oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); - oprot.writeString(struct.source_db); - oprot.writeFieldEnd(); - } - if (struct.source_table_name != null) { - oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.source_table_name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.dest_db != null) { - oprot.writeFieldBegin(DEST_DB_FIELD_DESC); - oprot.writeString(struct.dest_db); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.dest_table_name != null) { - oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.dest_table_name); + if (struct.part_vals != null) { + 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 _iter919 : struct.part_vals) + { + oprot.writeString(_iter919); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -82404,126 +82007,97 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_argsTupleScheme getScheme() { - return new exchange_partitions_argsTupleScheme(); + private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_argsTupleScheme getScheme() { + return new get_partition_argsTupleScheme(); } } - private static class exchange_partitions_argsTupleScheme extends TupleScheme { + private static class get_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetSource_db()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetSource_table_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetDest_db()) { - optionals.set(3); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetDest_table_name()) { - optionals.set(4); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - oprot.writeBitSet(optionals, 5); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetPart_vals()) { { - oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter891 : struct.partitionSpecs.entrySet()) + oprot.writeI32(struct.part_vals.size()); + for (String _iter920 : struct.part_vals) { - oprot.writeString(_iter891.getKey()); - oprot.writeString(_iter891.getValue()); + oprot.writeString(_iter920); } } } - if (struct.isSetSource_db()) { - oprot.writeString(struct.source_db); - } - if (struct.isSetSource_table_name()) { - oprot.writeString(struct.source_table_name); - } - if (struct.isSetDest_db()) { - oprot.writeString(struct.dest_db); - } - if (struct.isSetDest_table_name()) { - oprot.writeString(struct.dest_table_name); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map892 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map892.size); - String _key893; - String _val894; - for (int _i895 = 0; _i895 < _map892.size; ++_i895) - { - _key893 = iprot.readString(); - _val894 = iprot.readString(); - struct.partitionSpecs.put(_key893, _val894); - } - } - struct.setPartitionSpecsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); - } - if (incoming.get(3)) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); - } - if (incoming.get(4)) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list921 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list921.size); + String _elem922; + for (int _i923 = 0; _i923 < _list921.size; ++_i923) + { + _elem922 = iprot.readString(); + struct.part_vals.add(_elem922); + } + } + struct.setPart_valsIsSet(true); } } } } - public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); + public static class get_partition_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_partition_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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); } - private List success; // required + private Partition success; // required private MetaException o1; // required private NoSuchObjectException o2; // required - private InvalidObjectException o3; // required - private InvalidInputException o4; // 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"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -82544,10 +82118,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; default: return null; } @@ -82592,48 +82162,35 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(exchange_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); } - public exchange_partitions_result() { + public get_partition_result() { } - public exchange_partitions_result( - List success, + public get_partition_result( + Partition success, MetaException o1, - NoSuchObjectException o2, - InvalidObjectException o3, - InvalidInputException o4) + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public exchange_partitions_result(exchange_partitions_result other) { + public get_partition_result(get_partition_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } - this.success = __this__success; + this.success = new Partition(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -82641,16 +82198,10 @@ public exchange_partitions_result(exchange_partitions_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } - if (other.isSetO3()) { - this.o3 = new InvalidObjectException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new InvalidInputException(other.o4); - } } - public exchange_partitions_result deepCopy() { - return new exchange_partitions_result(this); + public get_partition_result deepCopy() { + return new get_partition_result(this); } @Override @@ -82658,30 +82209,13 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = 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(Partition elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); } - public List getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(Partition success) { this.success = success; } @@ -82746,59 +82280,13 @@ public void setO2IsSet(boolean value) { } } - public InvalidObjectException getO3() { - return this.o3; - } - - public void setO3(InvalidObjectException 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 InvalidInputException getO4() { - return this.o4; - } - - public void setO4(InvalidInputException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Partition)value); } break; @@ -82818,22 +82306,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidObjectException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidInputException)value); - } - break; - } } @@ -82848,12 +82320,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -82871,10 +82337,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -82883,12 +82345,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_result) - return this.equals((exchange_partitions_result)that); + if (that instanceof get_partition_result) + return this.equals((get_partition_result)that); return false; } - public boolean equals(exchange_partitions_result that) { + public boolean equals(get_partition_result that) { if (that == null) return false; @@ -82919,24 +82381,6 @@ public boolean equals(exchange_partitions_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; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -82959,21 +82403,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - return list.hashCode(); } @Override - public int compareTo(exchange_partitions_result other) { + public int compareTo(get_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -83010,26 +82444,6 @@ public int compareTo(exchange_partitions_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; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -83047,7 +82461,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_result("); + StringBuilder sb = new StringBuilder("get_partition_result("); boolean first = true; sb.append("success:"); @@ -83073,22 +82487,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; sb.append(")"); return sb.toString(); } @@ -83096,6 +82494,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 { @@ -83114,15 +82515,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_resultStandardScheme getScheme() { - return new exchange_partitions_resultStandardScheme(); + private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_resultStandardScheme getScheme() { + return new get_partition_resultStandardScheme(); } } - private static class exchange_partitions_resultStandardScheme extends StandardScheme { + private static class get_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83133,19 +82534,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); - struct.success = new ArrayList(_list896.size); - Partition _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) - { - _elem897 = new Partition(); - _elem897.read(iprot); - struct.success.add(_elem897); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -83169,24 +82560,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions 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 InvalidObjectException(); - 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 InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -83196,20 +82569,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_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 (Partition _iter899 : struct.success) - { - _iter899.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -83222,32 +82588,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition 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(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_resultTupleScheme getScheme() { - return new exchange_partitions_resultTupleScheme(); + private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_resultTupleScheme getScheme() { + return new get_partition_resultTupleScheme(); } } - private static class exchange_partitions_resultTupleScheme extends TupleScheme { + private static class get_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -83259,21 +82615,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Partition _iter900 : struct.success) - { - _iter900.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -83281,30 +82625,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list901.size); - Partition _elem902; - for (int _i903 = 0; _i903 < _list901.size; ++_i903) - { - _elem902 = new Partition(); - _elem902.read(iprot); - struct.success.add(_elem902); - } - } + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -83317,49 +82646,39 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - public static class get_partition_with_auth_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_partition_with_auth_args"); + public static class exchange_partition_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("exchange_partition_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required - private String user_name; // required - private List group_names; // required + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_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"), - PART_VALS((short)3, "part_vals"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); private static final Map byName = new HashMap(); @@ -83374,16 +82693,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; + case 1: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_TABLE_NAME; default: return null; } @@ -83427,260 +82746,240 @@ 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, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + tmpMap.put(_Fields.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); } - public get_partition_with_auth_args() { + public exchange_partition_args() { } - public get_partition_with_auth_args( - String db_name, - String tbl_name, - List part_vals, - String user_name, - List group_names) + public exchange_partition_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.user_name = user_name; - this.group_names = group_names; + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; } /** * Performs a deep copy on other. */ - public get_partition_with_auth_args(get_partition_with_auth_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public exchange_partition_args(exchange_partition_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + this.partitionSpecs = __this__partitionSpecs; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetSource_db()) { + this.source_db = other.source_db; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; } - if (other.isSetUser_name()) { - this.user_name = other.user_name; + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; } } - public get_partition_with_auth_args deepCopy() { - return new get_partition_with_auth_args(this); + public exchange_partition_args deepCopy() { + return new exchange_partition_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.user_name = null; - this.group_names = null; - } - - public String getDb_name() { - return this.db_name; + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); } - public void unsetDb_name() { - this.db_name = null; + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); } - /** 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 Map getPartitionSpecs() { + return this.partitionSpecs; } - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + public void setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; } - public String getTbl_name() { - return this.tbl_name; + public void unsetPartitionSpecs() { + this.partitionSpecs = null; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; } - public void unsetTbl_name() { - this.tbl_name = null; + public void setPartitionSpecsIsSet(boolean value) { + if (!value) { + this.partitionSpecs = 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 String getSource_db() { + return this.source_db; } - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } + public void setSource_db(String source_db) { + this.source_db = source_db; } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public void unsetSource_db() { + this.source_db = null; } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void setSource_dbIsSet(boolean value) { + if (!value) { + this.source_db = null; } - this.part_vals.add(elem); } - public List getPart_vals() { - return this.part_vals; + public String getSource_table_name() { + return this.source_table_name; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetSource_table_name() { + this.source_table_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; } - public void setPart_valsIsSet(boolean value) { + public void setSource_table_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.source_table_name = null; } } - public String getUser_name() { - return this.user_name; + public String getDest_db() { + return this.dest_db; } - public void setUser_name(String user_name) { - this.user_name = user_name; + public void setDest_db(String dest_db) { + this.dest_db = dest_db; } - public void unsetUser_name() { - this.user_name = null; + public void unsetDest_db() { + this.dest_db = null; } - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; } - public void setUser_nameIsSet(boolean value) { + public void setDest_dbIsSet(boolean value) { if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); + this.dest_db = null; } - this.group_names.add(elem); } - public List getGroup_names() { - return this.group_names; + public String getDest_table_name() { + return this.dest_table_name; } - public void setGroup_names(List group_names) { - this.group_names = group_names; + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; } - public void unsetGroup_names() { - this.group_names = null; + public void unsetDest_table_name() { + this.dest_table_name = null; } - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; } - public void setGroup_namesIsSet(boolean value) { + public void setDest_table_nameIsSet(boolean value) { if (!value) { - this.group_names = null; + this.dest_table_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case PARTITION_SPECS: if (value == null) { - unsetDb_name(); + unsetPartitionSpecs(); } else { - setDb_name((String)value); + setPartitionSpecs((Map)value); } break; - case TBL_NAME: + case SOURCE_DB: if (value == null) { - unsetTbl_name(); + unsetSource_db(); } else { - setTbl_name((String)value); + setSource_db((String)value); } break; - case PART_VALS: + case SOURCE_TABLE_NAME: if (value == null) { - unsetPart_vals(); + unsetSource_table_name(); } else { - setPart_vals((List)value); + setSource_table_name((String)value); } break; - case USER_NAME: + case DEST_DB: if (value == null) { - unsetUser_name(); + unsetDest_db(); } else { - setUser_name((String)value); + setDest_db((String)value); } break; - case GROUP_NAMES: + case DEST_TABLE_NAME: if (value == null) { - unsetGroup_names(); + unsetDest_table_name(); } else { - setGroup_names((List)value); + setDest_table_name((String)value); } break; @@ -83689,20 +82988,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case PARTITION_SPECS: + return getPartitionSpecs(); - case TBL_NAME: - return getTbl_name(); + case SOURCE_DB: + return getSource_db(); - case PART_VALS: - return getPart_vals(); + case SOURCE_TABLE_NAME: + return getSource_table_name(); - case USER_NAME: - return getUser_name(); + case DEST_DB: + return getDest_db(); - case GROUP_NAMES: - return getGroup_names(); + case DEST_TABLE_NAME: + return getDest_table_name(); } throw new IllegalStateException(); @@ -83715,16 +83014,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); + case PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); } throw new IllegalStateException(); } @@ -83733,57 +83032,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_args) - return this.equals((get_partition_with_auth_args)that); + if (that instanceof exchange_partition_args) + return this.equals((exchange_partition_args)that); return false; } - public boolean equals(get_partition_with_auth_args that) { + public boolean equals(exchange_partition_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_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.partitionSpecs.equals(that.partitionSpecs)) return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.source_db.equals(that.source_db)) return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.source_table_name.equals(that.source_table_name)) return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) return false; - if (!this.user_name.equals(that.user_name)) + if (!this.dest_db.equals(that.dest_db)) return false; } - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) return false; - if (!this.group_names.equals(that.group_names)) + if (!this.dest_table_name.equals(that.dest_table_name)) return false; } @@ -83794,88 +83093,88 @@ public boolean equals(get_partition_with_auth_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_partitionSpecs = true && (isSetPartitionSpecs()); + list.add(present_partitionSpecs); + if (present_partitionSpecs) + list.add(partitionSpecs); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_source_db = true && (isSetSource_db()); + list.add(present_source_db); + if (present_source_db) + list.add(source_db); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_source_table_name = true && (isSetSource_table_name()); + list.add(present_source_table_name); + if (present_source_table_name) + list.add(source_table_name); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); + boolean present_dest_db = true && (isSetDest_db()); + list.add(present_dest_db); + if (present_dest_db) + list.add(dest_db); - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + boolean present_dest_table_name = true && (isSetDest_table_name()); + list.add(present_dest_table_name); + if (present_dest_table_name) + list.add(dest_table_name); return list.hashCode(); } @Override - public int compareTo(get_partition_with_auth_args other) { + public int compareTo(exchange_partition_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(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -83897,46 +83196,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); + StringBuilder sb = new StringBuilder("exchange_partition_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.partitionSpecs); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("source_db:"); + if (this.source_db == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.source_db); } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("source_table_name:"); + if (this.source_table_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.source_table_name); } first = false; if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { + sb.append("dest_db:"); + if (this.dest_db == null) { sb.append("null"); } else { - sb.append(this.user_name); + sb.append(this.dest_db); } first = false; if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { sb.append("null"); } else { - sb.append(this.group_names); + sb.append(this.dest_table_name); } first = false; sb.append(")"); @@ -83964,15 +83263,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsStandardScheme getScheme() { - return new get_partition_with_auth_argsStandardScheme(); + private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partition_argsStandardScheme getScheme() { + return new exchange_partition_argsStandardScheme(); } } - private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { + private static class exchange_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83982,62 +83281,54 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ 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); + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map924 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map924.size); + String _key925; + String _val926; + for (int _i927 = 0; _i927 < _map924.size; ++_i927) + { + _key925 = iprot.readString(); + _val926 = iprot.readString(); + struct.partitionSpecs.put(_key925, _val926); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 2: // SOURCE_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list904.size); - String _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) - { - _elem905 = iprot.readString(); - struct.part_vals.add(_elem905); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // SOURCE_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // USER_NAME + case 4: // DEST_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list907.size); - String _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) - { - _elem908 = iprot.readString(); - struct.group_names.add(_elem908); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -84051,47 +83342,41 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + if (struct.partitionSpecs != null) { + oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter910 : struct.part_vals) + 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 _iter928 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter910); + oprot.writeString(_iter928.getKey()); + oprot.writeString(_iter928.getValue()); } - oprot.writeListEnd(); + oprot.writeMapEnd(); } oprot.writeFieldEnd(); } - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); oprot.writeFieldEnd(); } - if (struct.group_names != null) { - 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 _iter911 : struct.group_names) - { - oprot.writeString(_iter911); - } - oprot.writeListEnd(); - } + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); + oprot.writeFieldEnd(); + } + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -84100,132 +83385,126 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsTupleScheme getScheme() { - return new get_partition_with_auth_argsTupleScheme(); + private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partition_argsTupleScheme getScheme() { + return new exchange_partition_argsTupleScheme(); } } - private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { + private static class exchange_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetPartitionSpecs()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetSource_db()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetSource_table_name()) { optionals.set(2); } - if (struct.isSetUser_name()) { + if (struct.isSetDest_db()) { optionals.set(3); } - if (struct.isSetGroup_names()) { + if (struct.isSetDest_table_name()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { + if (struct.isSetPartitionSpecs()) { { - oprot.writeI32(struct.part_vals.size()); - for (String _iter912 : struct.part_vals) + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter929 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter912); + oprot.writeString(_iter929.getKey()); + oprot.writeString(_iter929.getValue()); } } } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter913 : struct.group_names) - { - oprot.writeString(_iter913); - } - } + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); + } + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); + } + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list914.size); - String _elem915; - for (int _i916 = 0; _i916 < _list914.size; ++_i916) + org.apache.thrift.protocol.TMap _map930 = 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*_map930.size); + String _key931; + String _val932; + for (int _i933 = 0; _i933 < _map930.size; ++_i933) { - _elem915 = iprot.readString(); - struct.part_vals.add(_elem915); + _key931 = iprot.readString(); + _val932 = iprot.readString(); + struct.partitionSpecs.put(_key931, _val932); } } - struct.setPart_valsIsSet(true); + struct.setPartitionSpecsIsSet(true); + } + if (incoming.get(1)) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } + if (incoming.get(2)) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); } if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list917.size); - String _elem918; - for (int _i919 = 0; _i919 < _list917.size; ++_i919) - { - _elem918 = iprot.readString(); - struct.group_names.add(_elem918); - } - } - struct.setGroup_namesIsSet(true); + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } } } } - public static class get_partition_with_auth_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_partition_with_auth_result"); + public static class exchange_partition_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("exchange_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); } private Partition success; // required private MetaException o1; // required private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -84246,6 +83525,10 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; default: return null; } @@ -84295,28 +83578,36 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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_partition_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); } - public get_partition_with_auth_result() { + public exchange_partition_result() { } - public get_partition_with_auth_result( + public exchange_partition_result( Partition success, MetaException o1, - NoSuchObjectException o2) + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public get_partition_with_auth_result(get_partition_with_auth_result other) { + public exchange_partition_result(exchange_partition_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -84326,10 +83617,16 @@ public get_partition_with_auth_result(get_partition_with_auth_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); + } } - public get_partition_with_auth_result deepCopy() { - return new get_partition_with_auth_result(this); + public exchange_partition_result deepCopy() { + return new exchange_partition_result(this); } @Override @@ -84337,6 +83634,8 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; + this.o4 = null; } public Partition getSuccess() { @@ -84408,6 +83707,52 @@ public void setO2IsSet(boolean value) { } } + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException 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 InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -84434,6 +83779,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); + } + break; + } } @@ -84448,6 +83809,12 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -84465,6 +83832,10 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -84473,12 +83844,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_result) - return this.equals((get_partition_with_auth_result)that); + if (that instanceof exchange_partition_result) + return this.equals((exchange_partition_result)that); return false; } - public boolean equals(get_partition_with_auth_result that) { + public boolean equals(exchange_partition_result that) { if (that == null) return false; @@ -84509,6 +83880,24 @@ public boolean equals(get_partition_with_auth_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; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -84531,11 +83920,21 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(get_partition_with_auth_result other) { + public int compareTo(exchange_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -84572,6 +83971,26 @@ public int compareTo(get_partition_with_auth_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; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -84589,7 +84008,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); + StringBuilder sb = new StringBuilder("exchange_partition_result("); boolean first = true; sb.append("success:"); @@ -84615,6 +84034,22 @@ 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; sb.append(")"); return sb.toString(); } @@ -84643,15 +84078,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultStandardScheme getScheme() { - return new get_partition_with_auth_resultStandardScheme(); + private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partition_resultStandardScheme getScheme() { + return new exchange_partition_resultStandardScheme(); } } - private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { + private static class exchange_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -84688,6 +84123,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ 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 InvalidObjectException(); + 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 InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -84697,7 +84150,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -84716,22 +84169,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with 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(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultTupleScheme getScheme() { - return new get_partition_with_auth_resultTupleScheme(); + private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partition_resultTupleScheme getScheme() { + return new exchange_partition_resultTupleScheme(); } } - private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { + private static class exchange_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -84743,7 +84206,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -84753,12 +84222,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = new Partition(); struct.success.read(iprot); @@ -84774,33 +84249,49 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); + public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String part_name; // required + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_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"), - PART_NAME((short)3, "part_name"); + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); private static final Map byName = new HashMap(); @@ -84815,12 +84306,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 1: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_TABLE_NAME; default: return null; } @@ -84864,148 +84359,240 @@ 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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_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_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_args.class, metaDataMap); } - public get_partition_by_name_args() { + public exchange_partitions_args() { } - public get_partition_by_name_args( - String db_name, - String tbl_name, - String part_name) + public exchange_partitions_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_name = part_name; + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; } /** * Performs a deep copy on other. */ - public get_partition_by_name_args(get_partition_by_name_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public exchange_partitions_args(exchange_partitions_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + this.partitionSpecs = __this__partitionSpecs; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetSource_db()) { + this.source_db = other.source_db; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; + } + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; + } + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; } } - public get_partition_by_name_args deepCopy() { - return new get_partition_by_name_args(this); + public exchange_partitions_args deepCopy() { + return new exchange_partitions_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_name = null; + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; } - public String getDb_name() { - return this.db_name; + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); } - public void unsetDb_name() { - this.db_name = null; + public Map getPartitionSpecs() { + return this.partitionSpecs; } - /** 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 setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; } - public void setDb_nameIsSet(boolean value) { + public void unsetPartitionSpecs() { + this.partitionSpecs = null; + } + + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; + } + + public void setPartitionSpecsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.partitionSpecs = null; } } - public String getTbl_name() { - return this.tbl_name; + public String getSource_db() { + return this.source_db; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setSource_db(String source_db) { + this.source_db = source_db; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetSource_db() { + this.source_db = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; } - public void setTbl_nameIsSet(boolean value) { + public void setSource_dbIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.source_db = null; } } - public String getPart_name() { - return this.part_name; + public String getSource_table_name() { + return this.source_table_name; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; } - public void unsetPart_name() { - this.part_name = null; + public void unsetSource_table_name() { + this.source_table_name = null; } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; } - public void setPart_nameIsSet(boolean value) { + public void setSource_table_nameIsSet(boolean value) { if (!value) { - this.part_name = null; + this.source_table_name = null; + } + } + + public String getDest_db() { + return this.dest_db; + } + + public void setDest_db(String dest_db) { + this.dest_db = dest_db; + } + + public void unsetDest_db() { + this.dest_db = null; + } + + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; + } + + public void setDest_dbIsSet(boolean value) { + if (!value) { + this.dest_db = null; + } + } + + public String getDest_table_name() { + return this.dest_table_name; + } + + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; + } + + public void unsetDest_table_name() { + this.dest_table_name = null; + } + + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; + } + + public void setDest_table_nameIsSet(boolean value) { + if (!value) { + this.dest_table_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case PARTITION_SPECS: if (value == null) { - unsetDb_name(); + unsetPartitionSpecs(); } else { - setDb_name((String)value); + setPartitionSpecs((Map)value); } break; - case TBL_NAME: + case SOURCE_DB: if (value == null) { - unsetTbl_name(); + unsetSource_db(); } else { - setTbl_name((String)value); + setSource_db((String)value); } break; - case PART_NAME: + case SOURCE_TABLE_NAME: if (value == null) { - unsetPart_name(); + unsetSource_table_name(); } else { - setPart_name((String)value); + setSource_table_name((String)value); + } + break; + + case DEST_DB: + if (value == null) { + unsetDest_db(); + } else { + setDest_db((String)value); + } + break; + + case DEST_TABLE_NAME: + if (value == null) { + unsetDest_table_name(); + } else { + setDest_table_name((String)value); } break; @@ -85014,14 +84601,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case PARTITION_SPECS: + return getPartitionSpecs(); - case TBL_NAME: - return getTbl_name(); + case SOURCE_DB: + return getSource_db(); - case PART_NAME: - return getPart_name(); + case SOURCE_TABLE_NAME: + return getSource_table_name(); + + case DEST_DB: + return getDest_db(); + + case DEST_TABLE_NAME: + return getDest_table_name(); } throw new IllegalStateException(); @@ -85034,12 +84627,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); } throw new IllegalStateException(); } @@ -85048,39 +84645,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_args) - return this.equals((get_partition_by_name_args)that); + if (that instanceof exchange_partitions_args) + return this.equals((exchange_partitions_args)that); return false; } - public boolean equals(get_partition_by_name_args that) { + public boolean equals(exchange_partitions_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_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.partitionSpecs.equals(that.partitionSpecs)) return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.source_db.equals(that.source_db)) return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.source_table_name.equals(that.source_table_name)) + return false; + } + + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) + return false; + if (!this.dest_db.equals(that.dest_db)) + return false; + } + + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) + return false; + if (!this.dest_table_name.equals(that.dest_table_name)) return false; } @@ -85091,58 +84706,88 @@ public boolean equals(get_partition_by_name_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_partitionSpecs = true && (isSetPartitionSpecs()); + list.add(present_partitionSpecs); + if (present_partitionSpecs) + list.add(partitionSpecs); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_source_db = true && (isSetSource_db()); + list.add(present_source_db); + if (present_source_db) + list.add(source_db); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_source_table_name = true && (isSetSource_table_name()); + list.add(present_source_table_name); + if (present_source_table_name) + list.add(source_table_name); + + boolean present_dest_db = true && (isSetDest_db()); + list.add(present_dest_db); + if (present_dest_db) + list.add(dest_db); + + boolean present_dest_table_name = true && (isSetDest_table_name()); + list.add(present_dest_table_name); + if (present_dest_table_name) + list.add(dest_table_name); return list.hashCode(); } @Override - public int compareTo(get_partition_by_name_args other) { + public int compareTo(exchange_partitions_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(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -85164,30 +84809,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_args("); + StringBuilder sb = new StringBuilder("exchange_partitions_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.partitionSpecs); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("source_db:"); + if (this.source_db == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.source_db); } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("source_table_name:"); + if (this.source_table_name == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.source_table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_db:"); + if (this.dest_db == null) { + sb.append("null"); + } else { + sb.append(this.dest_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { + sb.append("null"); + } else { + sb.append(this.dest_table_name); } first = false; sb.append(")"); @@ -85215,15 +84876,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsStandardScheme getScheme() { - return new get_partition_by_name_argsStandardScheme(); + private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_argsStandardScheme getScheme() { + return new exchange_partitions_argsStandardScheme(); } } - private static class get_partition_by_name_argsStandardScheme extends StandardScheme { + private static class exchange_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -85233,26 +84894,54 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map934 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map934.size); + String _key935; + String _val936; + for (int _i937 = 0; _i937 < _map934.size; ++_i937) + { + _key935 = iprot.readString(); + _val936 = iprot.readString(); + struct.partitionSpecs.put(_key935, _val936); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SOURCE_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 3: // SOURCE_TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME + case 4: // DEST_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -85266,23 +84955,41 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_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.partitionSpecs != null) { + 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 _iter938 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter938.getKey()); + oprot.writeString(_iter938.getValue()); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); + oprot.writeFieldEnd(); + } + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -85291,82 +84998,126 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n } - private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsTupleScheme getScheme() { - return new get_partition_by_name_argsTupleScheme(); + private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_argsTupleScheme getScheme() { + return new exchange_partitions_argsTupleScheme(); } } - private static class get_partition_by_name_argsTupleScheme extends TupleScheme { + private static class exchange_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetPartitionSpecs()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetSource_db()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetSource_table_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetDest_db()) { + optionals.set(3); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + if (struct.isSetDest_table_name()) { + optionals.set(4); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + oprot.writeBitSet(optionals, 5); + if (struct.isSetPartitionSpecs()) { + { + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter939 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter939.getKey()); + oprot.writeString(_iter939.getValue()); + } + } + } + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); + } + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); + } + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); + } + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + { + org.apache.thrift.protocol.TMap _map940 = 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*_map940.size); + String _key941; + String _val942; + for (int _i943 = 0; _i943 < _map940.size; ++_i943) + { + _key941 = iprot.readString(); + _val942 = iprot.readString(); + struct.partitionSpecs.put(_key941, _val942); + } + } + struct.setPartitionSpecsIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } + if (incoming.get(3)) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } + if (incoming.get(4)) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } } } } - public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); + public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); } - private Partition success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -85387,6 +85138,10 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; default: return null; } @@ -85431,35 +85186,48 @@ 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, Partition.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_result.class, metaDataMap); } - public get_partition_by_name_result() { + public exchange_partitions_result() { } - public get_partition_by_name_result( - Partition success, + public exchange_partitions_result( + List success, MetaException o1, - NoSuchObjectException o2) + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public get_partition_by_name_result(get_partition_by_name_result other) { + public exchange_partitions_result(exchange_partitions_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -85467,10 +85235,16 @@ public get_partition_by_name_result(get_partition_by_name_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); + } } - public get_partition_by_name_result deepCopy() { - return new get_partition_by_name_result(this); + public exchange_partitions_result deepCopy() { + return new exchange_partitions_result(this); } @Override @@ -85478,13 +85252,30 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; + this.o4 = null; } - public Partition getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(List success) { this.success = success; } @@ -85549,13 +85340,59 @@ public void setO2IsSet(boolean value) { } } + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException 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 InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((List)value); } break; @@ -85575,6 +85412,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); + } + break; + } } @@ -85589,6 +85442,12 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -85606,6 +85465,10 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -85614,12 +85477,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_result) - return this.equals((get_partition_by_name_result)that); + if (that instanceof exchange_partitions_result) + return this.equals((exchange_partitions_result)that); return false; } - public boolean equals(get_partition_by_name_result that) { + public boolean equals(exchange_partitions_result that) { if (that == null) return false; @@ -85650,6 +85513,24 @@ public boolean equals(get_partition_by_name_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; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -85672,11 +85553,21 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(get_partition_by_name_result other) { + public int compareTo(exchange_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -85713,6 +85604,26 @@ public int compareTo(get_partition_by_name_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; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -85730,7 +85641,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_result("); + StringBuilder sb = new StringBuilder("exchange_partitions_result("); boolean first = true; sb.append("success:"); @@ -85756,6 +85667,22 @@ 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; sb.append(")"); return sb.toString(); } @@ -85763,9 +85690,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -85784,15 +85708,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultStandardScheme getScheme() { - return new get_partition_by_name_resultStandardScheme(); + private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_resultStandardScheme getScheme() { + return new exchange_partitions_resultStandardScheme(); } } - private static class get_partition_by_name_resultStandardScheme extends StandardScheme { + private static class exchange_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -85803,9 +85727,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.success = new ArrayList(_list944.size); + Partition _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) + { + _elem945 = new Partition(); + _elem945.read(iprot); + struct.success.add(_elem945); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -85829,6 +85763,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na 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 InvalidObjectException(); + 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 InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -85838,13 +85790,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter947 : struct.success) + { + _iter947.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -85857,22 +85816,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n 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(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultTupleScheme getScheme() { - return new get_partition_by_name_resultTupleScheme(); + private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_resultTupleScheme getScheme() { + return new exchange_partitions_resultTupleScheme(); } } - private static class get_partition_by_name_resultTupleScheme extends TupleScheme { + private static class exchange_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -85884,9 +85853,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter948 : struct.success) + { + _iter948.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -85894,15 +85875,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list949.size); + Partition _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) + { + _elem950 = new Partition(); + _elem950.read(iprot); + struct.success.add(_elem950); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -85915,33 +85911,49 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); + public static class get_partition_with_auth_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_partition_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_parts; // required + private List part_vals; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + PART_VALS((short)3, "part_vals"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -85960,8 +85972,12 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // MAX_PARTS - return MAX_PARTS; + case 3: // PART_VALS + return PART_VALS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -86002,8 +86018,6 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_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); @@ -86011,53 +86025,70 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); } - public get_partitions_args() { - this.max_parts = (short)-1; - + public get_partition_with_auth_args() { } - public get_partitions_args( + public get_partition_with_auth_args( String db_name, String tbl_name, - short max_parts) + List part_vals, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.part_vals = part_vals; + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_args(get_partitions_args other) { - __isset_bitfield = other.__isset_bitfield; + public get_partition_with_auth_args(get_partition_with_auth_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - this.max_parts = other.max_parts; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; + } + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; + } } - public get_partitions_args deepCopy() { - return new get_partitions_args(this); + public get_partition_with_auth_args deepCopy() { + return new get_partition_with_auth_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = (short)-1; - + this.part_vals = null; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -86106,67 +86137,166 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_parts() { - return this.max_parts; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setMax_parts(short max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + public List getPart_vals() { + return this.part_vals; } - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; } - 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 void unsetPart_vals() { + this.part_vals = null; + } - case MAX_PARTS: - if (value == null) { - unsetMax_parts(); - } else { - setMax_parts((Short)value); - } - break; + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; } } - public Object getFieldValue(_Fields field) { - switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); + public String getUser_name() { + return this.user_name; + } - case MAX_PARTS: - return getMax_parts(); + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = 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; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); } throw new IllegalStateException(); @@ -86183,8 +86313,12 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case MAX_PARTS: - return isSetMax_parts(); + case PART_VALS: + return isSetPart_vals(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -86193,12 +86327,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_args) - return this.equals((get_partitions_args)that); + if (that instanceof get_partition_with_auth_args) + return this.equals((get_partition_with_auth_args)that); return false; } - public boolean equals(get_partitions_args that) { + public boolean equals(get_partition_with_auth_args that) { if (that == null) return false; @@ -86220,12 +86354,30 @@ public boolean equals(get_partitions_args that) { return false; } - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (this.max_parts != that.max_parts) + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) return false; } @@ -86246,16 +86398,26 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); return list.hashCode(); } @Override - public int compareTo(get_partitions_args other) { + public int compareTo(get_partition_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -86282,12 +86444,32 @@ public int compareTo(get_partitions_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); if (lastComparison != 0) { return lastComparison; } @@ -86309,7 +86491,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_args("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -86328,8 +86510,28 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } first = false; sb.append(")"); return sb.toString(); @@ -86350,23 +86552,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_argsStandardScheme getScheme() { - return new get_partitions_argsStandardScheme(); + private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsStandardScheme getScheme() { + return new get_partition_with_auth_argsStandardScheme(); } } - private static class get_partitions_argsStandardScheme extends StandardScheme { + private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -86392,10 +86592,46 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list952.size); + String _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) + { + _elem953 = iprot.readString(); + struct.part_vals.add(_elem953); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list955 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list955.size); + String _elem956; + for (int _i957 = 0; _i957 < _list955.size; ++_i957) + { + _elem956 = iprot.readString(); + struct.group_names.add(_elem956); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -86409,7 +86645,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -86423,25 +86659,51 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_arg oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); - oprot.writeFieldEnd(); + if (struct.part_vals != null) { + 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 _iter958 : struct.part_vals) + { + oprot.writeString(_iter958); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + 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 _iter959 : struct.group_names) + { + oprot.writeString(_iter959); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_argsTupleScheme getScheme() { - return new get_partitions_argsTupleScheme(); + private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsTupleScheme getScheme() { + return new get_partition_with_auth_argsTupleScheme(); } } - private static class get_partitions_argsTupleScheme extends TupleScheme { + private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -86450,25 +86712,49 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_parts()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter960 : struct.part_vals) + { + oprot.writeString(_iter960); + } + } + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter961 : struct.group_names) + { + oprot.writeString(_iter961); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -86478,30 +86764,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + { + org.apache.thrift.protocol.TList _list962 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list962.size); + String _elem963; + for (int _i964 = 0; _i964 < _list962.size; ++_i964) + { + _elem963 = iprot.readString(); + struct.part_vals.add(_elem963); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list965.size); + String _elem966; + for (int _i967 = 0; _i967 < _list965.size; ++_i967) + { + _elem966 = iprot.readString(); + struct.group_names.add(_elem966); + } + } + struct.setGroup_namesIsSet(true); } } } } - public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); + public static class get_partition_with_auth_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_partition_with_auth_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 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_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition 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 { @@ -86572,23 +86884,22 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); } - public get_partitions_result() { + public get_partition_with_auth_result() { } - public get_partitions_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_with_auth_result( + Partition success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -86599,24 +86910,20 @@ public get_partitions_result( /** * Performs a deep copy on other. */ - public get_partitions_result(get_partitions_result other) { + public get_partition_with_auth_result(get_partition_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } - this.success = __this__success; + this.success = new Partition(other.success); } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partitions_result deepCopy() { - return new get_partitions_result(this); + public get_partition_with_auth_result deepCopy() { + return new get_partition_with_auth_result(this); } @Override @@ -86626,26 +86933,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Partition elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(Partition success) { this.success = success; } @@ -86664,11 +86956,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -86687,11 +86979,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -86716,7 +87008,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Partition)value); } break; @@ -86724,7 +87016,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -86732,7 +87024,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -86775,12 +87067,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_result) - return this.equals((get_partitions_result)that); + if (that instanceof get_partition_with_auth_result) + return this.equals((get_partition_with_auth_result)that); return false; } - public boolean equals(get_partitions_result that) { + public boolean equals(get_partition_with_auth_result that) { if (that == null) return false; @@ -86837,7 +87129,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_result other) { + public int compareTo(get_partition_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -86891,7 +87183,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_result("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); boolean first = true; sb.append("success:"); @@ -86924,6 +87216,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 { @@ -86942,15 +87237,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_resultStandardScheme getScheme() { - return new get_partitions_resultStandardScheme(); + private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultStandardScheme getScheme() { + return new get_partition_with_auth_resultStandardScheme(); } } - private static class get_partitions_resultStandardScheme extends StandardScheme { + private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -86961,19 +87256,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); - struct.success = new ArrayList(_list920.size); - Partition _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) - { - _elem921 = new Partition(); - _elem921.read(iprot); - struct.success.add(_elem921); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -86981,7 +87266,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -86990,7 +87275,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -87006,20 +87291,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_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 (Partition _iter923 : struct.success) - { - _iter923.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -87038,16 +87316,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res } - private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_resultTupleScheme getScheme() { - return new get_partitions_resultTupleScheme(); + private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultTupleScheme getScheme() { + return new get_partition_with_auth_resultTupleScheme(); } } - private static class get_partitions_resultTupleScheme extends TupleScheme { + private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -87061,13 +87339,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Partition _iter924 : struct.success) - { - _iter924.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -87078,30 +87350,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list925.size); - Partition _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) - { - _elem926 = new Partition(); - _elem926.read(iprot); - struct.success.add(_elem926); - } - } + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -87110,34 +87373,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul } - public static class get_partitions_with_auth_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_partitions_with_auth_args"); + public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_parts; // required - private String user_name; // required - private List group_names; // required + private String part_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"), - MAX_PARTS((short)3, "max_parts"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -87156,12 +87413,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // MAX_PARTS - return MAX_PARTS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -87202,8 +87455,6 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_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); @@ -87211,71 +87462,50 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); } - public get_partitions_with_auth_args() { - this.max_parts = (short)-1; - + public get_partition_by_name_args() { } - public get_partitions_with_auth_args( + public get_partition_by_name_args( String db_name, String tbl_name, - short max_parts, - String user_name, - List group_names) + String part_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.max_parts = max_parts; - setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public get_partitions_with_auth_args(get_partitions_with_auth_args other) { - __isset_bitfield = other.__isset_bitfield; + public get_partition_by_name_args(get_partition_by_name_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public get_partitions_with_auth_args deepCopy() { - return new get_partitions_with_auth_args(this); + public get_partition_by_name_args deepCopy() { + return new get_partition_by_name_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = (short)-1; - - this.user_name = null; - this.group_names = null; + this.part_name = null; } public String getDb_name() { @@ -87324,86 +87554,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(short max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); - } - - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; + public String getPart_name() { + return this.part_name; } - public void setGroup_names(List group_names) { - this.group_names = group_names; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetGroup_names() { - this.group_names = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setGroup_namesIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.group_names = null; + this.part_name = null; } } @@ -87425,27 +87595,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case MAX_PARTS: - if (value == null) { - unsetMax_parts(); - } else { - setMax_parts((Short)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: + case PART_NAME: if (value == null) { - unsetGroup_names(); + unsetPart_name(); } else { - setGroup_names((List)value); + setPart_name((String)value); } break; @@ -87460,14 +87614,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case MAX_PARTS: - return getMax_parts(); - - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -87484,12 +87632,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case MAX_PARTS: - return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -87498,12 +87642,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_args) - return this.equals((get_partitions_with_auth_args)that); + if (that instanceof get_partition_by_name_args) + return this.equals((get_partition_by_name_args)that); return false; } - public boolean equals(get_partitions_with_auth_args that) { + public boolean equals(get_partition_by_name_args that) { if (that == null) return false; @@ -87525,30 +87669,12 @@ public boolean equals(get_partitions_with_auth_args that) { return false; } - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) - return false; - if (this.max_parts != that.max_parts) - return false; - } - - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.group_names.equals(that.group_names)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -87569,26 +87695,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); - - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); return list.hashCode(); } @Override - public int compareTo(get_partitions_with_auth_args other) { + public int compareTo(get_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -87615,32 +87731,12 @@ public int compareTo(get_partitions_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -87662,7 +87758,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -87681,23 +87777,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.group_names); + sb.append(this.part_name); } first = false; sb.append(")"); @@ -87719,23 +87803,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsStandardScheme getScheme() { - return new get_partitions_with_auth_argsStandardScheme(); + private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsStandardScheme getScheme() { + return new get_partition_by_name_argsStandardScheme(); } } - private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -87761,36 +87843,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // USER_NAME + case 3: // PART_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list928.size); - String _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) - { - _elem929 = iprot.readString(); - struct.group_names.add(_elem929); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -87804,7 +87860,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -87818,24 +87874,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); - oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - 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 _iter931 : struct.group_names) - { - oprot.writeString(_iter931); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -87844,16 +87885,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit } - private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsTupleScheme getScheme() { - return new get_partitions_with_auth_argsTupleScheme(); + private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsTupleScheme getScheme() { + return new get_partition_by_name_argsTupleScheme(); } } - private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -87862,43 +87903,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_parts()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter932 : struct.group_names) - { - oprot.writeString(_iter932); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -87908,47 +87931,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); - } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list933.size); - String _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) - { - _elem934 = iprot.readString(); - struct.group_names.add(_elem934); - } - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - public static class get_partitions_with_auth_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_partitions_with_auth_result"); + public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition 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 { @@ -88019,23 +88025,22 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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_partitions_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); } - public get_partitions_with_auth_result() { + public get_partition_by_name_result() { } - public get_partitions_with_auth_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_by_name_result( + Partition success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -88046,24 +88051,20 @@ public get_partitions_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_with_auth_result(get_partitions_with_auth_result other) { + public get_partition_by_name_result(get_partition_by_name_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } - this.success = __this__success; + this.success = new Partition(other.success); } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partitions_with_auth_result deepCopy() { - return new get_partitions_with_auth_result(this); + public get_partition_by_name_result deepCopy() { + return new get_partition_by_name_result(this); } @Override @@ -88073,26 +88074,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Partition elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(Partition success) { this.success = success; } @@ -88111,11 +88097,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -88134,11 +88120,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -88163,7 +88149,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Partition)value); } break; @@ -88171,7 +88157,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -88179,7 +88165,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -88222,12 +88208,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_result) - return this.equals((get_partitions_with_auth_result)that); + if (that instanceof get_partition_by_name_result) + return this.equals((get_partition_by_name_result)that); return false; } - public boolean equals(get_partitions_with_auth_result that) { + public boolean equals(get_partition_by_name_result that) { if (that == null) return false; @@ -88284,7 +88270,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_with_auth_result other) { + public int compareTo(get_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -88338,7 +88324,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -88371,6 +88357,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 { @@ -88389,15 +88378,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultStandardScheme getScheme() { - return new get_partitions_with_auth_resultStandardScheme(); + private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultStandardScheme getScheme() { + return new get_partition_by_name_resultStandardScheme(); } } - private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -88408,19 +88397,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.success = new ArrayList(_list936.size); - Partition _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) - { - _elem937 = new Partition(); - _elem937.read(iprot); - struct.success.add(_elem937); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -88428,7 +88407,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -88437,7 +88416,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -88453,20 +88432,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_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 (Partition _iter939 : struct.success) - { - _iter939.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -88485,16 +88457,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit } - private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultTupleScheme getScheme() { - return new get_partitions_with_auth_resultTupleScheme(); + private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultTupleScheme getScheme() { + return new get_partition_by_name_resultTupleScheme(); } } - private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -88508,13 +88480,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Partition _iter940 : struct.success) - { - _iter940.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -88525,30 +88491,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list941.size); - Partition _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) - { - _elem942 = new Partition(); - _elem942.read(iprot); - struct.success.add(_elem942); - } - } + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -88557,22 +88514,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - public static class get_partitions_pspec_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_partitions_pspec_args"); + public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private int max_parts; // required + private short max_parts; // 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 { @@ -88649,20 +88606,20 @@ public String getFieldName() { tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); } - public get_partitions_pspec_args() { - this.max_parts = -1; + public get_partitions_args() { + this.max_parts = (short)-1; } - public get_partitions_pspec_args( + public get_partitions_args( String db_name, String tbl_name, - int max_parts) + short max_parts) { this(); this.db_name = db_name; @@ -88674,7 +88631,7 @@ public get_partitions_pspec_args( /** * Performs a deep copy on other. */ - public get_partitions_pspec_args(get_partitions_pspec_args other) { + public get_partitions_args(get_partitions_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -88685,15 +88642,15 @@ public get_partitions_pspec_args(get_partitions_pspec_args other) { this.max_parts = other.max_parts; } - public get_partitions_pspec_args deepCopy() { - return new get_partitions_pspec_args(this); + public get_partitions_args deepCopy() { + return new get_partitions_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = -1; + this.max_parts = (short)-1; } @@ -88743,11 +88700,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getMax_parts() { + public short getMax_parts() { return this.max_parts; } - public void setMax_parts(int max_parts) { + public void setMax_parts(short max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -88787,7 +88744,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Integer)value); + setMax_parts((Short)value); } break; @@ -88830,12 +88787,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_args) - return this.equals((get_partitions_pspec_args)that); + if (that instanceof get_partitions_args) + return this.equals((get_partitions_args)that); return false; } - public boolean equals(get_partitions_pspec_args that) { + public boolean equals(get_partitions_args that) { if (that == null) return false; @@ -88892,7 +88849,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_pspec_args other) { + public int compareTo(get_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -88946,7 +88903,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("get_partitions_args("); boolean first = true; sb.append("db_name:"); @@ -88995,15 +88952,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsStandardScheme getScheme() { - return new get_partitions_pspec_argsStandardScheme(); + private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_argsStandardScheme getScheme() { + return new get_partitions_argsStandardScheme(); } } - private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class get_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -89030,8 +88987,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -89046,7 +89003,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -89061,7 +89018,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -89069,16 +89026,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsTupleScheme getScheme() { - return new get_partitions_pspec_argsTupleScheme(); + private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_argsTupleScheme getScheme() { + return new get_partitions_argsTupleScheme(); } } - private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class get_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -89098,12 +89055,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -89115,7 +89072,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI32(); + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } } @@ -89123,8 +89080,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partitions_pspec_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_partitions_pspec_result"); + public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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); @@ -89132,11 +89089,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -89210,20 +89167,20 @@ 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, PartitionSpec.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); } - public get_partitions_pspec_result() { + public get_partitions_result() { } - public get_partitions_pspec_result( - List success, + public get_partitions_result( + List success, NoSuchObjectException o1, MetaException o2) { @@ -89236,11 +89193,11 @@ public get_partitions_pspec_result( /** * Performs a deep copy on other. */ - public get_partitions_pspec_result(get_partitions_pspec_result other) { + public get_partitions_result(get_partitions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); } this.success = __this__success; } @@ -89252,8 +89209,8 @@ public get_partitions_pspec_result(get_partitions_pspec_result other) { } } - public get_partitions_pspec_result deepCopy() { - return new get_partitions_pspec_result(this); + public get_partitions_result deepCopy() { + return new get_partitions_result(this); } @Override @@ -89267,22 +89224,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(PartitionSpec elem) { + public void addToSuccess(Partition 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; } @@ -89353,7 +89310,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -89412,12 +89369,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_result) - return this.equals((get_partitions_pspec_result)that); + if (that instanceof get_partitions_result) + return this.equals((get_partitions_result)that); return false; } - public boolean equals(get_partitions_pspec_result that) { + public boolean equals(get_partitions_result that) { if (that == null) return false; @@ -89474,7 +89431,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_pspec_result other) { + public int compareTo(get_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -89528,7 +89485,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("get_partitions_result("); boolean first = true; sb.append("success:"); @@ -89579,15 +89536,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultStandardScheme getScheme() { - return new get_partitions_pspec_resultStandardScheme(); + private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_resultStandardScheme getScheme() { + return new get_partitions_resultStandardScheme(); } } - private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class get_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -89600,14 +89557,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 _list944 = iprot.readListBegin(); - struct.success = new ArrayList(_list944.size); - PartitionSpec _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); + struct.success = new ArrayList(_list968.size); + Partition _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem945 = new PartitionSpec(); - _elem945.read(iprot); - struct.success.add(_elem945); + _elem969 = new Partition(); + _elem969.read(iprot); + struct.success.add(_elem969); } iprot.readListEnd(); } @@ -89643,7 +89600,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -89651,9 +89608,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 _iter947 : struct.success) + for (Partition _iter971 : struct.success) { - _iter947.write(oprot); + _iter971.write(oprot); } oprot.writeListEnd(); } @@ -89675,16 +89632,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultTupleScheme getScheme() { - return new get_partitions_pspec_resultTupleScheme(); + private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_resultTupleScheme getScheme() { + return new get_partitions_resultTupleScheme(); } } - private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class get_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -89700,9 +89657,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter948 : struct.success) + for (Partition _iter972 : struct.success) { - _iter948.write(oprot); + _iter972.write(oprot); } } } @@ -89715,19 +89672,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list949.size); - PartitionSpec _elem950; - for (int _i951 = 0; _i951 < _list949.size; ++_i951) + org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list973.size); + Partition _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) { - _elem950 = new PartitionSpec(); - _elem950.read(iprot); - struct.success.add(_elem950); + _elem974 = new Partition(); + _elem974.read(iprot); + struct.success.add(_elem974); } } struct.setSuccessIsSet(true); @@ -89747,28 +89704,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); + public static class get_partitions_with_auth_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_partitions_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private short max_parts; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + MAX_PARTS((short)3, "max_parts"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -89789,6 +89752,10 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -89840,31 +89807,40 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); } - public get_partition_names_args() { + public get_partitions_with_auth_args() { this.max_parts = (short)-1; } - public get_partition_names_args( + public get_partitions_with_auth_args( String db_name, String tbl_name, - short max_parts) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partition_names_args(get_partition_names_args other) { + public get_partitions_with_auth_args(get_partitions_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -89873,10 +89849,17 @@ public get_partition_names_args(get_partition_names_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; + } } - public get_partition_names_args deepCopy() { - return new get_partition_names_args(this); + public get_partitions_with_auth_args deepCopy() { + return new get_partitions_with_auth_args(this); } @Override @@ -89885,6 +89868,8 @@ public void clear() { this.tbl_name = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -89955,6 +89940,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -89981,6 +90027,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -89995,6 +90057,12 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return getMax_parts(); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -90012,6 +90080,10 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -90020,12 +90092,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_args) - return this.equals((get_partition_names_args)that); + if (that instanceof get_partitions_with_auth_args) + return this.equals((get_partitions_with_auth_args)that); return false; } - public boolean equals(get_partition_names_args that) { + public boolean equals(get_partitions_with_auth_args that) { if (that == null) return false; @@ -90056,6 +90128,24 @@ public boolean equals(get_partition_names_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @@ -90078,11 +90168,21 @@ public int hashCode() { if (present_max_parts) list.add(max_parts); + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); + return list.hashCode(); } @Override - public int compareTo(get_partition_names_args other) { + public int compareTo(get_partitions_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -90119,6 +90219,26 @@ public int compareTo(get_partition_names_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -90136,7 +90256,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_args("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -90158,6 +90278,22 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -90185,15 +90321,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_argsStandardScheme getScheme() { - return new get_partition_names_argsStandardScheme(); + private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsStandardScheme getScheme() { + return new get_partitions_with_auth_argsStandardScheme(); } } - private static class get_partition_names_argsStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90227,6 +90363,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list976.size); + String _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) + { + _elem977 = iprot.readString(); + struct.group_names.add(_elem977); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -90236,7 +90398,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -90253,22 +90415,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + 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 _iter979 : struct.group_names) + { + oprot.writeString(_iter979); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_argsTupleScheme getScheme() { - return new get_partition_names_argsTupleScheme(); + private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsTupleScheme getScheme() { + return new get_partitions_with_auth_argsTupleScheme(); } } - private static class get_partition_names_argsTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -90280,7 +90459,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetMax_parts()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -90290,12 +90475,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter980 : struct.group_names) + { + oprot.writeString(_iter980); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -90308,30 +90505,50 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list981.size); + String _elem982; + for (int _i983 = 0; _i983 < _list981.size; ++_i983) + { + _elem982 = iprot.readString(); + struct.group_names.add(_elem982); + } + } + struct.setGroup_namesIsSet(true); + } } } } - public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); + public static class get_partitions_with_auth_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_partitions_with_auth_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField 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_partition_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required + private NoSuchObjectException o1; // required private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -90348,7 +90565,9 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O2 + case 1: // O1 + return O1; + case 2: // O2 return O2; default: return null; @@ -90395,45 +90614,56 @@ 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, Partition.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_partition_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); } - public get_partition_names_result() { + public get_partitions_with_auth_result() { } - public get_partition_names_result( - List success, + public get_partitions_with_auth_result( + List success, + NoSuchObjectException o1, MetaException o2) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partition_names_result(get_partition_names_result other) { + public get_partitions_with_auth_result(get_partitions_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } this.success = __this__success; } + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public get_partition_names_result deepCopy() { - return new get_partition_names_result(this); + public get_partitions_with_auth_result deepCopy() { + return new get_partitions_with_auth_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } @@ -90441,22 +90671,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(Partition 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; } @@ -90475,6 +90705,29 @@ public void setSuccessIsSet(boolean value) { } } + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + public MetaException getO2() { return this.o2; } @@ -90504,7 +90757,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); } break; @@ -90524,6 +90785,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -90540,6 +90804,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -90550,12 +90816,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_result) - return this.equals((get_partition_names_result)that); + if (that instanceof get_partitions_with_auth_result) + return this.equals((get_partitions_with_auth_result)that); return false; } - public boolean equals(get_partition_names_result that) { + public boolean equals(get_partitions_with_auth_result that) { if (that == null) return false; @@ -90568,6 +90834,15 @@ public boolean equals(get_partition_names_result that) { return false; } + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -90589,6 +90864,11 @@ public int hashCode() { if (present_success) list.add(success); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -90598,7 +90878,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_result other) { + public int compareTo(get_partitions_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -90615,6 +90895,16 @@ public int compareTo(get_partition_names_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -90642,7 +90932,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_result("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); boolean first = true; sb.append("success:"); @@ -90653,6 +90943,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -90685,15 +90983,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_resultStandardScheme getScheme() { - return new get_partition_names_resultStandardScheme(); + private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultStandardScheme getScheme() { + return new get_partitions_with_auth_resultStandardScheme(); } } - private static class get_partition_names_resultStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90706,13 +91004,14 @@ 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 _list952 = iprot.readListBegin(); - struct.success = new ArrayList(_list952.size); - String _elem953; - for (int _i954 = 0; _i954 < _list952.size; ++_i954) + org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); + struct.success = new ArrayList(_list984.size); + Partition _elem985; + for (int _i986 = 0; _i986 < _list984.size; ++_i986) { - _elem953 = iprot.readString(); - struct.success.add(_elem953); + _elem985 = new Partition(); + _elem985.read(iprot); + struct.success.add(_elem985); } iprot.readListEnd(); } @@ -90721,7 +91020,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O2 + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o2 = new MetaException(); struct.o2.read(iprot); @@ -90739,22 +91047,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_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 _iter955 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter987 : struct.success) { - oprot.writeString(_iter955); + _iter987.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o2 != null) { oprot.writeFieldBegin(O2_FIELD_DESC); struct.o2.write(oprot); @@ -90766,57 +91079,69 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_resultTupleScheme getScheme() { - return new get_partition_names_resultTupleScheme(); + private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultTupleScheme getScheme() { + return new get_partitions_with_auth_resultTupleScheme(); } } - private static class get_partition_names_resultTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter956 : struct.success) + for (Partition _iter988 : struct.success) { - oprot.writeString(_iter956); + _iter988.write(oprot); } } } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } if (struct.isSetO2()) { struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list957.size); - String _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list989.size); + Partition _elem990; + for (int _i991 = 0; _i991 < _list989.size; ++_i991) { - _elem958 = iprot.readString(); - struct.success.add(_elem958); + _elem990 = new Partition(); + _elem990.read(iprot); + struct.success.add(_elem990); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -90826,31 +91151,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_ps_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_partitions_ps_args"); + public static class get_partitions_pspec_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_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private short max_parts; // required + private int max_parts; // 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"), - PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -90869,9 +91191,7 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // MAX_PARTS + case 3: // MAX_PARTS return MAX_PARTS; default: return null; @@ -90922,30 +91242,25 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); } - public get_partitions_ps_args() { - this.max_parts = (short)-1; + public get_partitions_pspec_args() { + this.max_parts = -1; } - public get_partitions_ps_args( + public get_partitions_pspec_args( String db_name, String tbl_name, - List part_vals, - short max_parts) + int max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -90953,7 +91268,7 @@ public get_partitions_ps_args( /** * Performs a deep copy on other. */ - public get_partitions_ps_args(get_partitions_ps_args other) { + public get_partitions_pspec_args(get_partitions_pspec_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -90961,23 +91276,18 @@ public get_partitions_ps_args(get_partitions_ps_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; - } this.max_parts = other.max_parts; } - public get_partitions_ps_args deepCopy() { - return new get_partitions_ps_args(this); + public get_partitions_pspec_args deepCopy() { + return new get_partitions_pspec_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - this.max_parts = (short)-1; + this.max_parts = -1; } @@ -91027,49 +91337,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - - public short getMax_parts() { + public int getMax_parts() { return this.max_parts; } - public void setMax_parts(short max_parts) { + public void setMax_parts(int max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -91105,19 +91377,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - case MAX_PARTS: if (value == null) { unsetMax_parts(); } else { - setMax_parts((Short)value); + setMax_parts((Integer)value); } break; @@ -91132,9 +91396,6 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - case MAX_PARTS: return getMax_parts(); @@ -91153,8 +91414,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); } @@ -91165,12 +91424,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_args) - return this.equals((get_partitions_ps_args)that); + if (that instanceof get_partitions_pspec_args) + return this.equals((get_partitions_pspec_args)that); return false; } - public boolean equals(get_partitions_ps_args that) { + public boolean equals(get_partitions_pspec_args that) { if (that == null) return false; @@ -91192,15 +91451,6 @@ public boolean equals(get_partitions_ps_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - boolean this_present_max_parts = true; boolean that_present_max_parts = true; if (this_present_max_parts || that_present_max_parts) { @@ -91227,11 +91477,6 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - boolean present_max_parts = true; list.add(present_max_parts); if (present_max_parts) @@ -91241,7 +91486,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_ps_args other) { + public int compareTo(get_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -91268,16 +91513,6 @@ public int compareTo(get_partitions_ps_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; @@ -91305,7 +91540,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); boolean first = true; sb.append("db_name:"); @@ -91324,14 +91559,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); sb.append("max_parts:"); sb.append(this.max_parts); first = false; @@ -91362,15 +91589,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsStandardScheme getScheme() { - return new get_partitions_ps_argsStandardScheme(); + private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsStandardScheme getScheme() { + return new get_partitions_pspec_argsStandardScheme(); } } - private static class get_partitions_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -91396,27 +91623,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list960.size); - String _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) - { - _elem961 = iprot.readString(); - struct.part_vals.add(_elem961); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -91431,7 +91640,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -91445,20 +91654,8 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - 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 _iter963 : struct.part_vals) - { - oprot.writeString(_iter963); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -91466,16 +91663,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsTupleScheme getScheme() { - return new get_partitions_ps_argsTupleScheme(); + private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsTupleScheme getScheme() { + return new get_partitions_pspec_argsTupleScheme(); } } - private static class get_partitions_ps_argsTupleScheme extends TupleScheme { + private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -91484,37 +91681,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { - optionals.set(2); - } if (struct.isSetMax_parts()) { - optionals.set(3); + optionals.set(2); } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter964 : struct.part_vals) - { - oprot.writeString(_iter964); - } - } - } if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -91524,20 +91709,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list965.size); - String _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) - { - _elem966 = iprot.readString(); - struct.part_vals.add(_elem966); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.max_parts = iprot.readI16(); + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } } @@ -91545,8 +91717,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } - public static class get_partitions_ps_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_partitions_ps_result"); + public static class get_partitions_pspec_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_partitions_pspec_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); @@ -91554,13 +91726,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -91632,22 +91804,22 @@ 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.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_partitions_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); } - public get_partitions_ps_result() { + public get_partitions_pspec_result() { } - public get_partitions_ps_result( - List success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_pspec_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -91658,24 +91830,24 @@ public get_partitions_ps_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_result(get_partitions_ps_result other) { + public get_partitions_pspec_result(get_partitions_pspec_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); } this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partitions_ps_result deepCopy() { - return new get_partitions_ps_result(this); + public get_partitions_pspec_result deepCopy() { + return new get_partitions_pspec_result(this); } @Override @@ -91689,22 +91861,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(Partition elem) { + public void addToSuccess(PartitionSpec 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; } @@ -91723,11 +91895,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -91746,11 +91918,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -91775,7 +91947,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -91783,7 +91955,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -91791,7 +91963,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -91834,12 +92006,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_result) - return this.equals((get_partitions_ps_result)that); + if (that instanceof get_partitions_pspec_result) + return this.equals((get_partitions_pspec_result)that); return false; } - public boolean equals(get_partitions_ps_result that) { + public boolean equals(get_partitions_pspec_result that) { if (that == null) return false; @@ -91896,7 +92068,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_ps_result other) { + public int compareTo(get_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -91950,7 +92122,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_result("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); boolean first = true; sb.append("success:"); @@ -92001,15 +92173,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultStandardScheme getScheme() { - return new get_partitions_ps_resultStandardScheme(); + private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultStandardScheme getScheme() { + return new get_partitions_pspec_resultStandardScheme(); } } - private static class get_partitions_ps_resultStandardScheme extends StandardScheme { + private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -92022,14 +92194,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 _list968 = iprot.readListBegin(); - struct.success = new ArrayList(_list968.size); - Partition _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list992 = iprot.readListBegin(); + struct.success = new ArrayList(_list992.size); + PartitionSpec _elem993; + for (int _i994 = 0; _i994 < _list992.size; ++_i994) { - _elem969 = new Partition(); - _elem969.read(iprot); - struct.success.add(_elem969); + _elem993 = new PartitionSpec(); + _elem993.read(iprot); + struct.success.add(_elem993); } iprot.readListEnd(); } @@ -92040,7 +92212,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -92049,7 +92221,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -92065,7 +92237,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -92073,9 +92245,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 _iter971 : struct.success) + for (PartitionSpec _iter995 : struct.success) { - _iter971.write(oprot); + _iter995.write(oprot); } oprot.writeListEnd(); } @@ -92097,16 +92269,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultTupleScheme getScheme() { - return new get_partitions_ps_resultTupleScheme(); + private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultTupleScheme getScheme() { + return new get_partitions_pspec_resultTupleScheme(); } } - private static class get_partitions_ps_resultTupleScheme extends TupleScheme { + private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -92122,9 +92294,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter972 : struct.success) + for (PartitionSpec _iter996 : struct.success) { - _iter972.write(oprot); + _iter996.write(oprot); } } } @@ -92137,30 +92309,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list973.size); - Partition _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list997.size); + PartitionSpec _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem974 = new Partition(); - _elem974.read(iprot); - struct.success.add(_elem974); + _elem998 = new PartitionSpec(); + _elem998.read(iprot); + struct.success.add(_elem998); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -92169,37 +92341,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re } - public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_args"); + public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required private short max_parts; // required - private String user_name; // required - private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"), - USER_NAME((short)5, "user_name"), - GROUP_NAMES((short)6, "group_names"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -92218,14 +92381,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // MAX_PARTS + case 3: // MAX_PARTS return MAX_PARTS; - case 5: // USER_NAME - return USER_NAME; - case 6: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -92275,47 +92432,33 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); } - public get_partitions_ps_with_auth_args() { + public get_partition_names_args() { this.max_parts = (short)-1; } - public get_partitions_ps_with_auth_args( + public get_partition_names_args( String db_name, String tbl_name, - List part_vals, - short max_parts, - String user_name, - List group_names) + short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { + public get_partition_names_args(get_partition_names_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -92323,33 +92466,19 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; - } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_ps_with_auth_args deepCopy() { - return new get_partitions_ps_with_auth_args(this); + public get_partition_names_args deepCopy() { + return new get_partition_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; this.max_parts = (short)-1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -92398,44 +92527,6 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - public short getMax_parts() { return this.max_parts; } @@ -92458,67 +92549,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -92537,14 +92567,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - case MAX_PARTS: if (value == null) { unsetMax_parts(); @@ -92553,22 +92575,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); - } - break; - } } @@ -92580,18 +92586,9 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - case MAX_PARTS: return getMax_parts(); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -92607,14 +92604,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -92623,12 +92614,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_args) - return this.equals((get_partitions_ps_with_auth_args)that); + if (that instanceof get_partition_names_args) + return this.equals((get_partition_names_args)that); return false; } - public boolean equals(get_partitions_ps_with_auth_args that) { + public boolean equals(get_partition_names_args that) { if (that == null) return false; @@ -92650,15 +92641,6 @@ public boolean equals(get_partitions_ps_with_auth_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - boolean this_present_max_parts = true; boolean that_present_max_parts = true; if (this_present_max_parts || that_present_max_parts) { @@ -92668,24 +92650,6 @@ public boolean equals(get_partitions_ps_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @@ -92703,31 +92667,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - boolean present_max_parts = true; list.add(present_max_parts); if (present_max_parts) list.add(max_parts); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); - return list.hashCode(); } @Override - public int compareTo(get_partitions_ps_with_auth_args other) { + public int compareTo(get_partition_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -92754,16 +92703,6 @@ public int compareTo(get_partitions_ps_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; @@ -92774,26 +92713,6 @@ public int compareTo(get_partitions_ps_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -92811,7 +92730,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_names_args("); boolean first = true; sb.append("db_name:"); @@ -92830,33 +92749,9 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -92884,15 +92779,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsStandardScheme getScheme() { - return new get_partitions_ps_with_auth_argsStandardScheme(); + private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_argsStandardScheme getScheme() { + return new get_partition_names_argsStandardScheme(); } } - private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -92918,25 +92813,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list976.size); - String _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) - { - _elem977 = iprot.readString(); - struct.part_vals.add(_elem977); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MAX_PARTS + case 3: // MAX_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.I16) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); @@ -92944,32 +92821,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list979 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list979.size); - String _elem980; - for (int _i981 = 0; _i981 < _list979.size; ++_i981) - { - _elem980 = iprot.readString(); - struct.group_names.add(_elem980); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -92979,7 +92830,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -92993,54 +92844,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - 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 _iter982 : struct.part_vals) - { - oprot.writeString(_iter982); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - 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 _iter983 : struct.group_names) - { - oprot.writeString(_iter983); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsTupleScheme getScheme() { - return new get_partitions_ps_with_auth_argsTupleScheme(); + private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_argsTupleScheme getScheme() { + return new get_partition_names_argsTupleScheme(); } } - private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -93049,55 +92871,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { - optionals.set(2); - } if (struct.isSetMax_parts()) { - optionals.set(3); - } - if (struct.isSetUser_name()) { - optionals.set(4); - } - if (struct.isSetGroup_names()) { - optionals.set(5); + optionals.set(2); } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter984 : struct.part_vals) - { - oprot.writeString(_iter984); - } - } - } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter985 : struct.group_names) - { - oprot.writeString(_iter985); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -93107,66 +92899,33 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list986 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list986.size); - String _elem987; - for (int _i988 = 0; _i988 < _list986.size; ++_i988) - { - _elem987 = iprot.readString(); - struct.part_vals.add(_elem987); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } - if (incoming.get(4)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list989.size); - String _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) - { - _elem990 = iprot.readString(); - struct.group_names.add(_elem990); - } - } - struct.setGroup_namesIsSet(true); - } } } } - public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_result"); + public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required + private List success; // required private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -93183,9 +92942,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -93232,56 +92989,45 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); } - public get_partitions_ps_with_auth_result() { + public get_partition_names_result() { } - public get_partitions_ps_with_auth_result( - List success, - NoSuchObjectException o1, + public get_partition_names_result( + List success, MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { + public get_partition_names_result(get_partition_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public get_partitions_ps_with_auth_result deepCopy() { - return new get_partitions_ps_with_auth_result(this); + public get_partition_names_result deepCopy() { + return new get_partition_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } @@ -93289,22 +93035,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(Partition 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; } @@ -93323,29 +93069,6 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { - return this.o1; - } - - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - public MetaException getO2() { return this.o2; } @@ -93375,15 +93098,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; @@ -93403,9 +93118,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -93422,8 +93134,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -93434,12 +93144,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_result) - return this.equals((get_partitions_ps_with_auth_result)that); + if (that instanceof get_partition_names_result) + return this.equals((get_partition_names_result)that); return false; } - public boolean equals(get_partitions_ps_with_auth_result that) { + public boolean equals(get_partition_names_result that) { if (that == null) return false; @@ -93452,15 +93162,6 @@ public boolean equals(get_partitions_ps_with_auth_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -93482,11 +93183,6 @@ public int hashCode() { if (present_success) list.add(success); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -93496,7 +93192,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_ps_with_auth_result other) { + public int compareTo(get_partition_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -93513,16 +93209,6 @@ public int compareTo(get_partitions_ps_with_auth_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -93550,7 +93236,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_names_result("); boolean first = true; sb.append("success:"); @@ -93561,14 +93247,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -93601,15 +93279,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultStandardScheme getScheme() { - return new get_partitions_ps_with_auth_resultStandardScheme(); + private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_resultStandardScheme getScheme() { + return new get_partition_names_resultStandardScheme(); } } - private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -93622,14 +93300,13 @@ 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 _list992 = iprot.readListBegin(); - struct.success = new ArrayList(_list992.size); - Partition _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.success = new ArrayList(_list1000.size); + String _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem993 = new Partition(); - _elem993.read(iprot); - struct.success.add(_elem993); + _elem1001 = iprot.readString(); + struct.success.add(_elem1001); } iprot.readListEnd(); } @@ -93638,16 +93315,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o2 = new MetaException(); struct.o2.read(iprot); @@ -93665,27 +93333,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter995 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1003 : struct.success) { - _iter995.write(oprot); + oprot.writeString(_iter1003); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o2 != null) { oprot.writeFieldBegin(O2_FIELD_DESC); struct.o2.write(oprot); @@ -93697,69 +93360,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultTupleScheme getScheme() { - return new get_partitions_ps_with_auth_resultTupleScheme(); + private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_resultTupleScheme getScheme() { + return new get_partition_names_resultTupleScheme(); } } - private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO1()) { - optionals.set(1); - } if (struct.isSetO2()) { - optionals.set(2); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter996 : struct.success) + for (String _iter1004 : struct.success) { - _iter996.write(oprot); + oprot.writeString(_iter1004); } } } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } if (struct.isSetO2()) { struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list997.size); - Partition _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1005.size); + String _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem998 = new Partition(); - _elem998.read(iprot); - struct.success.add(_elem998); + _elem1006 = iprot.readString(); + struct.success.add(_elem1006); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -93769,8 +93420,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - public static class get_partition_names_ps_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_partition_names_ps_args"); + public static class get_partitions_ps_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_partitions_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -93779,8 +93430,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); } private String db_name; // required @@ -93871,15 +93522,15 @@ public String getFieldName() { tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); } - public get_partition_names_ps_args() { + public get_partitions_ps_args() { this.max_parts = (short)-1; } - public get_partition_names_ps_args( + public get_partitions_ps_args( String db_name, String tbl_name, List part_vals, @@ -93896,7 +93547,7 @@ public get_partition_names_ps_args( /** * Performs a deep copy on other. */ - public get_partition_names_ps_args(get_partition_names_ps_args other) { + public get_partitions_ps_args(get_partitions_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -93911,8 +93562,8 @@ public get_partition_names_ps_args(get_partition_names_ps_args other) { this.max_parts = other.max_parts; } - public get_partition_names_ps_args deepCopy() { - return new get_partition_names_ps_args(this); + public get_partitions_ps_args deepCopy() { + return new get_partitions_ps_args(this); } @Override @@ -94108,12 +93759,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_args) - return this.equals((get_partition_names_ps_args)that); + if (that instanceof get_partitions_ps_args) + return this.equals((get_partitions_ps_args)that); return false; } - public boolean equals(get_partition_names_ps_args that) { + public boolean equals(get_partitions_ps_args that) { if (that == null) return false; @@ -94184,7 +93835,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_ps_args other) { + public int compareTo(get_partitions_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -94248,7 +93899,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_args("); boolean first = true; sb.append("db_name:"); @@ -94305,15 +93956,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsStandardScheme getScheme() { - return new get_partition_names_ps_argsStandardScheme(); + private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsStandardScheme getScheme() { + return new get_partitions_ps_argsStandardScheme(); } } - private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -94342,13 +93993,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 _list1000 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1000.size); - String _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1008.size); + String _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem1001 = iprot.readString(); - struct.part_vals.add(_elem1001); + _elem1009 = iprot.readString(); + struct.part_vals.add(_elem1009); } iprot.readListEnd(); } @@ -94374,7 +94025,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -94392,9 +94043,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 _iter1003 : struct.part_vals) + for (String _iter1011 : struct.part_vals) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1011); } oprot.writeListEnd(); } @@ -94409,16 +94060,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsTupleScheme getScheme() { - return new get_partition_names_ps_argsTupleScheme(); + private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsTupleScheme getScheme() { + return new get_partitions_ps_argsTupleScheme(); } } - private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -94443,9 +94094,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 _iter1004 : struct.part_vals) + for (String _iter1012 : struct.part_vals) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1012); } } } @@ -94455,7 +94106,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -94468,13 +94119,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1005.size); - String _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1013.size); + String _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem1006 = iprot.readString(); - struct.part_vals.add(_elem1006); + _elem1014 = iprot.readString(); + struct.part_vals.add(_elem1014); } } struct.setPart_valsIsSet(true); @@ -94488,8 +94139,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partition_names_ps_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_partition_names_ps_result"); + public static class get_partitions_ps_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_partitions_ps_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); @@ -94497,11 +94148,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -94575,20 +94226,20 @@ 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, Partition.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_partition_names_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); } - public get_partition_names_ps_result() { + public get_partitions_ps_result() { } - public get_partition_names_ps_result( - List success, + public get_partitions_ps_result( + List success, MetaException o1, NoSuchObjectException o2) { @@ -94601,9 +94252,12 @@ public get_partition_names_ps_result( /** * Performs a deep copy on other. */ - public get_partition_names_ps_result(get_partition_names_ps_result other) { + public get_partitions_ps_result(get_partitions_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { @@ -94614,8 +94268,8 @@ public get_partition_names_ps_result(get_partition_names_ps_result other) { } } - public get_partition_names_ps_result deepCopy() { - return new get_partition_names_ps_result(this); + public get_partitions_ps_result deepCopy() { + return new get_partitions_ps_result(this); } @Override @@ -94629,22 +94283,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(Partition 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; } @@ -94715,7 +94369,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -94774,12 +94428,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_result) - return this.equals((get_partition_names_ps_result)that); + if (that instanceof get_partitions_ps_result) + return this.equals((get_partitions_ps_result)that); return false; } - public boolean equals(get_partition_names_ps_result that) { + public boolean equals(get_partitions_ps_result that) { if (that == null) return false; @@ -94836,7 +94490,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_ps_result other) { + public int compareTo(get_partitions_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -94890,7 +94544,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_result("); boolean first = true; sb.append("success:"); @@ -94941,15 +94595,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultStandardScheme getScheme() { - return new get_partition_names_ps_resultStandardScheme(); + private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultStandardScheme getScheme() { + return new get_partitions_ps_resultStandardScheme(); } } - private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -94962,13 +94616,14 @@ 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 _list1008 = iprot.readListBegin(); - struct.success = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.success = new ArrayList(_list1016.size); + Partition _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem1009 = iprot.readString(); - struct.success.add(_elem1009); + _elem1017 = new Partition(); + _elem1017.read(iprot); + struct.success.add(_elem1017); } iprot.readListEnd(); } @@ -95004,17 +94659,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_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 _iter1011 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1019 : struct.success) { - oprot.writeString(_iter1011); + _iter1019.write(oprot); } oprot.writeListEnd(); } @@ -95036,16 +94691,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultTupleScheme getScheme() { - return new get_partition_names_ps_resultTupleScheme(); + private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultTupleScheme getScheme() { + return new get_partitions_ps_resultTupleScheme(); } } - private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -95061,9 +94716,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1012 : struct.success) + for (Partition _iter1020 : struct.success) { - oprot.writeString(_iter1012); + _iter1020.write(oprot); } } } @@ -95076,18 +94731,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1013.size); - String _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1021.size); + Partition _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem1014 = iprot.readString(); - struct.success.add(_elem1014); + _elem1022 = new Partition(); + _elem1022.read(iprot); + struct.success.add(_elem1022); } } struct.setSuccessIsSet(true); @@ -95107,31 +94763,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_by_filter_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_partitions_by_filter_args"); + public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String filter; // required + private List part_vals; // required private short max_parts; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - FILTER((short)3, "filter"), - MAX_PARTS((short)4, "max_parts"); + PART_VALS((short)3, "part_vals"), + MAX_PARTS((short)4, "max_parts"), + USER_NAME((short)5, "user_name"), + GROUP_NAMES((short)6, "group_names"); private static final Map byName = new HashMap(); @@ -95150,10 +94812,14 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // FILTER - return FILTER; + case 3: // PART_VALS + return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; + case 5: // USER_NAME + return USER_NAME; + case 6: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -95203,37 +94869,47 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); } - public get_partitions_by_filter_args() { + public get_partitions_ps_with_auth_args() { this.max_parts = (short)-1; } - public get_partitions_by_filter_args( + public get_partitions_ps_with_auth_args( String db_name, String tbl_name, - String filter, - short max_parts) + List part_vals, + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.filter = filter; + this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_by_filter_args(get_partitions_by_filter_args other) { + public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -95241,23 +94917,33 @@ public get_partitions_by_filter_args(get_partitions_by_filter_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetFilter()) { - this.filter = other.filter; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; + } } - public get_partitions_by_filter_args deepCopy() { - return new get_partitions_by_filter_args(this); + public get_partitions_ps_with_auth_args deepCopy() { + return new get_partitions_ps_with_auth_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.filter = null; + this.part_vals = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -95306,26 +94992,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getFilter() { - return this.filter; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setFilter(String filter) { - this.filter = filter; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetFilter() { - this.filter = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != null; + public List getPart_vals() { + return this.part_vals; } - public void setFilterIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.filter = null; + this.part_vals = null; } } @@ -95351,6 +95052,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -95369,11 +95131,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case FILTER: + case PART_VALS: if (value == null) { - unsetFilter(); + unsetPart_vals(); } else { - setFilter((String)value); + setPart_vals((List)value); } break; @@ -95385,6 +95147,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -95396,12 +95174,18 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case FILTER: - return getFilter(); + case PART_VALS: + return getPart_vals(); case MAX_PARTS: return getMax_parts(); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -95417,10 +95201,14 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case FILTER: - return isSetFilter(); + case PART_VALS: + return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -95429,12 +95217,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_filter_args) - return this.equals((get_partitions_by_filter_args)that); + if (that instanceof get_partitions_ps_with_auth_args) + return this.equals((get_partitions_ps_with_auth_args)that); return false; } - public boolean equals(get_partitions_by_filter_args that) { + public boolean equals(get_partitions_ps_with_auth_args that) { if (that == null) return false; @@ -95456,12 +95244,12 @@ public boolean equals(get_partitions_by_filter_args that) { return false; } - boolean this_present_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.filter.equals(that.filter)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -95474,6 +95262,24 @@ public boolean equals(get_partitions_by_filter_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @@ -95491,21 +95297,31 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); boolean present_max_parts = true; list.add(present_max_parts); if (present_max_parts) list.add(max_parts); + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); + return list.hashCode(); } @Override - public int compareTo(get_partitions_by_filter_args other) { + public int compareTo(get_partitions_ps_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -95532,12 +95348,12 @@ public int compareTo(get_partitions_by_filter_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -95552,6 +95368,26 @@ public int compareTo(get_partitions_by_filter_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -95569,7 +95405,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_filter_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -95588,17 +95424,33 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("filter:"); - if (this.filter == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -95626,15 +95478,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_argsStandardScheme getScheme() { - return new get_partitions_by_filter_argsStandardScheme(); + private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsStandardScheme getScheme() { + return new get_partitions_ps_with_auth_argsStandardScheme(); } } - private static class get_partitions_by_filter_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -95660,10 +95512,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FILTER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1024.size); + String _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + { + _elem1025 = iprot.readString(); + struct.part_vals.add(_elem1025); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -95676,6 +95538,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1027 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1027.size); + String _elem1028; + for (int _i1029 = 0; _i1029 < _list1027.size; ++_i1029) + { + _elem1028 = iprot.readString(); + struct.group_names.add(_elem1028); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -95685,7 +95573,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -95699,30 +95587,54 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.part_vals != null) { + 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 _iter1030 : struct.part_vals) + { + oprot.writeString(_iter1030); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + 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 _iter1031 : struct.group_names) + { + oprot.writeString(_iter1031); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_argsTupleScheme getScheme() { - return new get_partitions_by_filter_argsTupleScheme(); + private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsTupleScheme getScheme() { + return new get_partitions_ps_with_auth_argsTupleScheme(); } } - private static class get_partitions_by_filter_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -95731,31 +95643,55 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetFilter()) { + if (struct.isSetPart_vals()) { optionals.set(2); } if (struct.isSetMax_parts()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetUser_name()) { + optionals.set(4); + } + if (struct.isSetGroup_names()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1032 : struct.part_vals) + { + oprot.writeString(_iter1032); + } + } } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter1033 : struct.group_names) + { + oprot.writeString(_iter1033); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -95765,20 +95701,46 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + { + org.apache.thrift.protocol.TList _list1034 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1034.size); + String _elem1035; + for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + { + _elem1035 = iprot.readString(); + struct.part_vals.add(_elem1035); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } + if (incoming.get(4)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1037.size); + String _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + { + _elem1038 = iprot.readString(); + struct.group_names.add(_elem1038); + } + } + struct.setGroup_namesIsSet(true); + } } } } - public static class get_partitions_by_filter_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_partitions_by_filter_result"); + public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_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); @@ -95786,13 +95748,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); } private List success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -95870,16 +95832,16 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); } - public get_partitions_by_filter_result() { + public get_partitions_ps_with_auth_result() { } - public get_partitions_by_filter_result( + public get_partitions_ps_with_auth_result( List success, - MetaException o1, - NoSuchObjectException o2) + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -95890,7 +95852,7 @@ public get_partitions_by_filter_result( /** * Performs a deep copy on other. */ - public get_partitions_by_filter_result(get_partitions_by_filter_result other) { + public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Partition other_element : other.success) { @@ -95899,15 +95861,15 @@ public get_partitions_by_filter_result(get_partitions_by_filter_result other) { this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partitions_by_filter_result deepCopy() { - return new get_partitions_by_filter_result(this); + public get_partitions_ps_with_auth_result deepCopy() { + return new get_partitions_ps_with_auth_result(this); } @Override @@ -95955,11 +95917,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -95978,11 +95940,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -96015,7 +95977,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -96023,7 +95985,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -96066,12 +96028,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_filter_result) - return this.equals((get_partitions_by_filter_result)that); + if (that instanceof get_partitions_ps_with_auth_result) + return this.equals((get_partitions_ps_with_auth_result)that); return false; } - public boolean equals(get_partitions_by_filter_result that) { + public boolean equals(get_partitions_ps_with_auth_result that) { if (that == null) return false; @@ -96128,7 +96090,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_by_filter_result other) { + public int compareTo(get_partitions_ps_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -96182,7 +96144,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_filter_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); boolean first = true; sb.append("success:"); @@ -96233,15 +96195,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_resultStandardScheme getScheme() { - return new get_partitions_by_filter_resultStandardScheme(); + private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultStandardScheme getScheme() { + return new get_partitions_ps_with_auth_resultStandardScheme(); } } - private static class get_partitions_by_filter_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -96254,14 +96216,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 _list1016 = iprot.readListBegin(); - struct.success = new ArrayList(_list1016.size); - Partition _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.success = new ArrayList(_list1040.size); + Partition _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1017 = new Partition(); - _elem1017.read(iprot); - struct.success.add(_elem1017); + _elem1041 = new Partition(); + _elem1041.read(iprot); + struct.success.add(_elem1041); } iprot.readListEnd(); } @@ -96272,7 +96234,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -96281,7 +96243,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -96297,7 +96259,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -96305,9 +96267,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 _iter1019 : struct.success) + for (Partition _iter1043 : struct.success) { - _iter1019.write(oprot); + _iter1043.write(oprot); } oprot.writeListEnd(); } @@ -96329,16 +96291,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_resultTupleScheme getScheme() { - return new get_partitions_by_filter_resultTupleScheme(); + private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultTupleScheme getScheme() { + return new get_partitions_ps_with_auth_resultTupleScheme(); } } - private static class get_partitions_by_filter_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -96354,9 +96316,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1020 : struct.success) + for (Partition _iter1044 : struct.success) { - _iter1020.write(oprot); + _iter1044.write(oprot); } } } @@ -96369,30 +96331,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1021.size); - Partition _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1045.size); + Partition _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem1022 = new Partition(); - _elem1022.read(iprot); - struct.success.add(_elem1022); + _elem1046 = new Partition(); + _elem1046.read(iprot); + struct.success.add(_elem1046); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -96401,30 +96363,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi } - public static class get_part_specs_by_filter_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_part_specs_by_filter_args"); + public static class get_partition_names_ps_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_partition_names_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_part_specs_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_part_specs_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String filter; // required - private int max_parts; // required + private List part_vals; // required + private short max_parts; // 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"), - FILTER((short)3, "filter"), + PART_VALS((short)3, "part_vals"), MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -96444,8 +96406,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // FILTER - return FILTER; + case 3: // PART_VALS + return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; default: @@ -96497,29 +96459,30 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); } - public get_part_specs_by_filter_args() { - this.max_parts = -1; + public get_partition_names_ps_args() { + this.max_parts = (short)-1; } - public get_part_specs_by_filter_args( + public get_partition_names_ps_args( String db_name, String tbl_name, - String filter, - int max_parts) + List part_vals, + short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.filter = filter; + this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -96527,7 +96490,7 @@ public get_part_specs_by_filter_args( /** * Performs a deep copy on other. */ - public get_part_specs_by_filter_args(get_part_specs_by_filter_args other) { + public get_partition_names_ps_args(get_partition_names_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -96535,22 +96498,23 @@ public get_part_specs_by_filter_args(get_part_specs_by_filter_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetFilter()) { - this.filter = other.filter; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; } - public get_part_specs_by_filter_args deepCopy() { - return new get_part_specs_by_filter_args(this); + public get_partition_names_ps_args deepCopy() { + return new get_partition_names_ps_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.filter = null; - this.max_parts = -1; + this.part_vals = null; + this.max_parts = (short)-1; } @@ -96600,34 +96564,49 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getFilter() { - return this.filter; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setFilter(String filter) { - this.filter = filter; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetFilter() { - this.filter = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != null; + public List getPart_vals() { + return this.part_vals; } - public void setFilterIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.filter = null; + this.part_vals = null; } } - public int getMax_parts() { + public short getMax_parts() { return this.max_parts; } - public void setMax_parts(int max_parts) { + public void setMax_parts(short max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -96663,11 +96642,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case FILTER: + case PART_VALS: if (value == null) { - unsetFilter(); + unsetPart_vals(); } else { - setFilter((String)value); + setPart_vals((List)value); } break; @@ -96675,7 +96654,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Integer)value); + setMax_parts((Short)value); } break; @@ -96690,8 +96669,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case FILTER: - return getFilter(); + case PART_VALS: + return getPart_vals(); case MAX_PARTS: return getMax_parts(); @@ -96711,8 +96690,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case FILTER: - return isSetFilter(); + case PART_VALS: + return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); } @@ -96723,12 +96702,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_part_specs_by_filter_args) - return this.equals((get_part_specs_by_filter_args)that); + if (that instanceof get_partition_names_ps_args) + return this.equals((get_partition_names_ps_args)that); return false; } - public boolean equals(get_part_specs_by_filter_args that) { + public boolean equals(get_partition_names_ps_args that) { if (that == null) return false; @@ -96750,12 +96729,12 @@ public boolean equals(get_part_specs_by_filter_args that) { return false; } - boolean this_present_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.filter.equals(that.filter)) + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -96785,10 +96764,10 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); boolean present_max_parts = true; list.add(present_max_parts); @@ -96799,7 +96778,7 @@ public int hashCode() { } @Override - public int compareTo(get_part_specs_by_filter_args other) { + public int compareTo(get_partition_names_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -96826,12 +96805,12 @@ public int compareTo(get_part_specs_by_filter_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -96863,7 +96842,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_part_specs_by_filter_args("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); boolean first = true; sb.append("db_name:"); @@ -96882,11 +96861,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("filter:"); - if (this.filter == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); @@ -96920,15 +96899,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_part_specs_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_argsStandardScheme getScheme() { - return new get_part_specs_by_filter_argsStandardScheme(); + private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsStandardScheme getScheme() { + return new get_partition_names_ps_argsStandardScheme(); } } - private static class get_part_specs_by_filter_argsStandardScheme extends StandardScheme { + private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -96954,17 +96933,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FILTER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1048.size); + String _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + { + _elem1049 = iprot.readString(); + struct.part_vals.add(_elem1049); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -96979,7 +96968,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -96993,13 +96982,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.part_vals != null) { + 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 _iter1051 : struct.part_vals) + { + oprot.writeString(_iter1051); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -97007,16 +97003,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ } - private static class get_part_specs_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_argsTupleScheme getScheme() { - return new get_part_specs_by_filter_argsTupleScheme(); + private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsTupleScheme getScheme() { + return new get_partition_names_ps_argsTupleScheme(); } } - private static class get_part_specs_by_filter_argsTupleScheme extends TupleScheme { + private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -97025,7 +97021,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetFilter()) { + if (struct.isSetPart_vals()) { optionals.set(2); } if (struct.isSetMax_parts()) { @@ -97038,16 +97034,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1052 : struct.part_vals) + { + oprot.writeString(_iter1052); + } + } } if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -97059,11 +97061,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + { + org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1053.size); + String _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + { + _elem1054 = iprot.readString(); + struct.part_vals.add(_elem1054); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.max_parts = iprot.readI32(); + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } } @@ -97071,8 +97082,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi } - public static class get_part_specs_by_filter_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_part_specs_by_filter_result"); + public static class get_partition_names_ps_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_partition_names_ps_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); @@ -97080,11 +97091,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_part_specs_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_part_specs_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -97158,20 +97169,20 @@ 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, PartitionSpec.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))); 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_part_specs_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); } - public get_part_specs_by_filter_result() { + public get_partition_names_ps_result() { } - public get_part_specs_by_filter_result( - List success, + public get_partition_names_ps_result( + List success, MetaException o1, NoSuchObjectException o2) { @@ -97184,12 +97195,9 @@ public get_part_specs_by_filter_result( /** * Performs a deep copy on other. */ - public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { + public get_partition_names_ps_result(get_partition_names_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } if (other.isSetO1()) { @@ -97200,8 +97208,8 @@ public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { } } - public get_part_specs_by_filter_result deepCopy() { - return new get_part_specs_by_filter_result(this); + public get_partition_names_ps_result deepCopy() { + return new get_partition_names_ps_result(this); } @Override @@ -97215,22 +97223,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(PartitionSpec 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; } @@ -97301,7 +97309,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -97360,12 +97368,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_part_specs_by_filter_result) - return this.equals((get_part_specs_by_filter_result)that); + if (that instanceof get_partition_names_ps_result) + return this.equals((get_partition_names_ps_result)that); return false; } - public boolean equals(get_part_specs_by_filter_result that) { + public boolean equals(get_partition_names_ps_result that) { if (that == null) return false; @@ -97422,7 +97430,7 @@ public int hashCode() { } @Override - public int compareTo(get_part_specs_by_filter_result other) { + public int compareTo(get_partition_names_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -97476,7 +97484,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_part_specs_by_filter_result("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); boolean first = true; sb.append("success:"); @@ -97527,15 +97535,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_part_specs_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_resultStandardScheme getScheme() { - return new get_part_specs_by_filter_resultStandardScheme(); + private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultStandardScheme getScheme() { + return new get_partition_names_ps_resultStandardScheme(); } } - private static class get_part_specs_by_filter_resultStandardScheme extends StandardScheme { + private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -97548,14 +97556,13 @@ 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 _list1024 = iprot.readListBegin(); - struct.success = new ArrayList(_list1024.size); - PartitionSpec _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); + struct.success = new ArrayList(_list1056.size); + String _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1025 = new PartitionSpec(); - _elem1025.read(iprot); - struct.success.add(_elem1025); + _elem1057 = iprot.readString(); + struct.success.add(_elem1057); } iprot.readListEnd(); } @@ -97591,17 +97598,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_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 (PartitionSpec _iter1027 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1059 : struct.success) { - _iter1027.write(oprot); + oprot.writeString(_iter1059); } oprot.writeListEnd(); } @@ -97623,16 +97630,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ } - private static class get_part_specs_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_resultTupleScheme getScheme() { - return new get_part_specs_by_filter_resultTupleScheme(); + private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultTupleScheme getScheme() { + return new get_partition_names_ps_resultTupleScheme(); } } - private static class get_part_specs_by_filter_resultTupleScheme extends TupleScheme { + private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -97648,9 +97655,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 _iter1028 : struct.success) + for (String _iter1060 : struct.success) { - _iter1028.write(oprot); + oprot.writeString(_iter1060); } } } @@ -97663,19 +97670,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1029.size); - PartitionSpec _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1061.size); + String _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem1030 = new PartitionSpec(); - _elem1030.read(iprot); - struct.success.add(_elem1030); + _elem1062 = iprot.readString(); + struct.success.add(_elem1062); } } struct.setSuccessIsSet(true); @@ -97695,22 +97701,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi } - public static class get_partitions_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_args"); + public static class get_partitions_by_filter_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_partitions_by_filter_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_expr_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_expr_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_filter_argsTupleSchemeFactory()); } - private PartitionsByExprRequest req; // required + private String db_name; // required + private String tbl_name; // required + private String filter; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + FILTER((short)3, "filter"), + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -97725,8 +97740,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // FILTER + return FILTER; + case 4: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -97767,73 +97788,194 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_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.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, PartitionsByExprRequest.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); } - public get_partitions_by_expr_args() { + public get_partitions_by_filter_args() { + this.max_parts = (short)-1; + } - public get_partitions_by_expr_args( - PartitionsByExprRequest req) + public get_partitions_by_filter_args( + String db_name, + String tbl_name, + String filter, + short max_parts) { this(); - this.req = req; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.filter = filter; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public get_partitions_by_expr_args(get_partitions_by_expr_args other) { - if (other.isSetReq()) { - this.req = new PartitionsByExprRequest(other.req); + public get_partitions_by_filter_args(get_partitions_by_filter_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } + if (other.isSetFilter()) { + this.filter = other.filter; + } + this.max_parts = other.max_parts; } - public get_partitions_by_expr_args deepCopy() { - return new get_partitions_by_expr_args(this); + public get_partitions_by_filter_args deepCopy() { + return new get_partitions_by_filter_args(this); } @Override public void clear() { - this.req = null; + this.db_name = null; + this.tbl_name = null; + this.filter = null; + this.max_parts = (short)-1; + } - public PartitionsByExprRequest getReq() { - return this.req; + public String getDb_name() { + return this.db_name; } - public void setReq(PartitionsByExprRequest req) { - this.req = req; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetReq() { - this.req = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setReqIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.req = null; + this.db_name = null; } } + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public String getFilter() { + return this.filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public void unsetFilter() { + this.filter = null; + } + + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; + } + + public void setFilterIsSet(boolean value) { + if (!value) { + this.filter = null; + } + } + + public short getMax_parts() { + return this.max_parts; + } + + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); + } + + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDb_name(); } else { - setReq((PartitionsByExprRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case FILTER: + if (value == null) { + unsetFilter(); + } else { + setFilter((String)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMax_parts(); + } else { + setMax_parts((Short)value); } break; @@ -97842,8 +97984,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case FILTER: + return getFilter(); + + case MAX_PARTS: + return getMax_parts(); } throw new IllegalStateException(); @@ -97856,8 +98007,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case FILTER: + return isSetFilter(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -97866,21 +98023,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_expr_args) - return this.equals((get_partitions_by_expr_args)that); + if (that instanceof get_partitions_by_filter_args) + return this.equals((get_partitions_by_filter_args)that); return false; } - public boolean equals(get_partitions_by_expr_args that) { + public boolean equals(get_partitions_by_filter_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_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.req.equals(that.req)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) + return false; + if (!this.filter.equals(that.filter)) + return false; + } + + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) + return false; + if (this.max_parts != that.max_parts) return false; } @@ -97891,28 +98075,73 @@ public boolean equals(get_partitions_by_expr_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_filter = true && (isSetFilter()); + list.add(present_filter); + if (present_filter) + list.add(filter); + + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); return list.hashCode(); } @Override - public int compareTo(get_partitions_by_expr_args other) { + public int compareTo(get_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -97934,16 +98163,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_expr_args("); + StringBuilder sb = new StringBuilder("get_partitions_by_filter_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("filter:"); + if (this.filter == null) { + sb.append("null"); + } else { + sb.append(this.filter); } first = false; + if (!first) sb.append(", "); + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; sb.append(")"); return sb.toString(); } @@ -97951,9 +98200,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -97966,21 +98212,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partitions_by_expr_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_argsStandardScheme getScheme() { - return new get_partitions_by_expr_argsStandardScheme(); + private static class get_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_argsStandardScheme getScheme() { + return new get_partitions_by_filter_argsStandardScheme(); } } - private static class get_partitions_by_expr_argsStandardScheme extends StandardScheme { + private static class get_partitions_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -97990,11 +98238,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new PartitionsByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -98008,70 +98279,112 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_by_expr_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_argsTupleScheme getScheme() { - return new get_partitions_by_expr_argsTupleScheme(); + private static class get_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_argsTupleScheme getScheme() { + return new get_partitions_by_filter_argsTupleScheme(); } } - private static class get_partitions_by_expr_argsTupleScheme extends TupleScheme { + private static class get_partitions_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetFilter()) { + optionals.set(2); + } + if (struct.isSetMax_parts()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); + } + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.req = new PartitionsByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } + if (incoming.get(3)) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } } } } - public static class get_partitions_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_result"); + public static class get_partitions_by_filter_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_partitions_by_filter_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_expr_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_expr_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_filter_resultTupleSchemeFactory()); } - private PartitionsByExprResult success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -98144,20 +98457,21 @@ 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, PartitionsByExprResult.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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_partitions_by_expr_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); } - public get_partitions_by_expr_result() { + public get_partitions_by_filter_result() { } - public get_partitions_by_expr_result( - PartitionsByExprResult success, + public get_partitions_by_filter_result( + List success, MetaException o1, NoSuchObjectException o2) { @@ -98170,9 +98484,13 @@ public get_partitions_by_expr_result( /** * Performs a deep copy on other. */ - public get_partitions_by_expr_result(get_partitions_by_expr_result other) { + public get_partitions_by_filter_result(get_partitions_by_filter_result other) { if (other.isSetSuccess()) { - this.success = new PartitionsByExprResult(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -98182,8 +98500,8 @@ public get_partitions_by_expr_result(get_partitions_by_expr_result other) { } } - public get_partitions_by_expr_result deepCopy() { - return new get_partitions_by_expr_result(this); + public get_partitions_by_filter_result deepCopy() { + return new get_partitions_by_filter_result(this); } @Override @@ -98193,11 +98511,26 @@ public void clear() { this.o2 = null; } - public PartitionsByExprResult getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(PartitionsByExprResult success) { + public void setSuccess(List success) { this.success = success; } @@ -98268,7 +98601,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PartitionsByExprResult)value); + setSuccess((List)value); } break; @@ -98327,12 +98660,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_expr_result) - return this.equals((get_partitions_by_expr_result)that); + if (that instanceof get_partitions_by_filter_result) + return this.equals((get_partitions_by_filter_result)that); return false; } - public boolean equals(get_partitions_by_expr_result that) { + public boolean equals(get_partitions_by_filter_result that) { if (that == null) return false; @@ -98389,7 +98722,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_by_expr_result other) { + public int compareTo(get_partitions_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -98443,7 +98776,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_expr_result("); + StringBuilder sb = new StringBuilder("get_partitions_by_filter_result("); boolean first = true; sb.append("success:"); @@ -98476,9 +98809,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -98497,15 +98827,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_expr_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_resultStandardScheme getScheme() { - return new get_partitions_by_expr_resultStandardScheme(); + private static class get_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_resultStandardScheme getScheme() { + return new get_partitions_by_filter_resultStandardScheme(); } } - private static class get_partitions_by_expr_resultStandardScheme extends StandardScheme { + private static class get_partitions_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -98516,9 +98846,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PartitionsByExprResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); + struct.success = new ArrayList(_list1064.size); + Partition _elem1065; + for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + { + _elem1065 = new Partition(); + _elem1065.read(iprot); + struct.success.add(_elem1065); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -98551,13 +98891,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1067 : struct.success) + { + _iter1067.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -98576,16 +98923,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_expr_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_resultTupleScheme getScheme() { - return new get_partitions_by_expr_resultTupleScheme(); + private static class get_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_resultTupleScheme getScheme() { + return new get_partitions_by_filter_resultTupleScheme(); } } - private static class get_partitions_by_expr_resultTupleScheme extends TupleScheme { + private static class get_partitions_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -98599,7 +98946,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_e } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter1068 : struct.success) + { + _iter1068.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -98610,12 +98963,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_e } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new PartitionsByExprResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1069.size); + Partition _elem1070; + for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + { + _elem1070 = new Partition(); + _elem1070.read(iprot); + struct.success.add(_elem1070); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -98633,28 +98995,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_ex } - public static class get_num_partitions_by_filter_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_num_partitions_by_filter_args"); + public static class get_part_specs_by_filter_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_part_specs_by_filter_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_num_partitions_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_num_partitions_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_part_specs_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_part_specs_by_filter_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String filter; // required + private int max_parts; // 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"), - FILTER((short)3, "filter"); + FILTER((short)3, "filter"), + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -98675,6 +99040,8 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // FILTER return FILTER; + case 4: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -98715,6 +99082,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_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); @@ -98724,28 +99093,36 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_args.class, metaDataMap); } - public get_num_partitions_by_filter_args() { + public get_part_specs_by_filter_args() { + this.max_parts = -1; + } - public get_num_partitions_by_filter_args( + public get_part_specs_by_filter_args( String db_name, String tbl_name, - String filter) + String filter, + int max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.filter = filter; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public get_num_partitions_by_filter_args(get_num_partitions_by_filter_args other) { + public get_part_specs_by_filter_args(get_part_specs_by_filter_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -98755,10 +99132,11 @@ public get_num_partitions_by_filter_args(get_num_partitions_by_filter_args other if (other.isSetFilter()) { this.filter = other.filter; } + this.max_parts = other.max_parts; } - public get_num_partitions_by_filter_args deepCopy() { - return new get_num_partitions_by_filter_args(this); + public get_part_specs_by_filter_args deepCopy() { + return new get_part_specs_by_filter_args(this); } @Override @@ -98766,6 +99144,8 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.filter = null; + this.max_parts = -1; + } public String getDb_name() { @@ -98837,6 +99217,28 @@ public void setFilterIsSet(boolean value) { } } + public int getMax_parts() { + return this.max_parts; + } + + public void setMax_parts(int max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); + } + + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -98863,6 +99265,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case MAX_PARTS: + if (value == null) { + unsetMax_parts(); + } else { + setMax_parts((Integer)value); + } + break; + } } @@ -98877,6 +99287,9 @@ public Object getFieldValue(_Fields field) { case FILTER: return getFilter(); + case MAX_PARTS: + return getMax_parts(); + } throw new IllegalStateException(); } @@ -98894,6 +99307,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case FILTER: return isSetFilter(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -98902,12 +99317,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_num_partitions_by_filter_args) - return this.equals((get_num_partitions_by_filter_args)that); + if (that instanceof get_part_specs_by_filter_args) + return this.equals((get_part_specs_by_filter_args)that); return false; } - public boolean equals(get_num_partitions_by_filter_args that) { + public boolean equals(get_part_specs_by_filter_args that) { if (that == null) return false; @@ -98938,6 +99353,15 @@ public boolean equals(get_num_partitions_by_filter_args that) { return false; } + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) + return false; + if (this.max_parts != that.max_parts) + return false; + } + return true; } @@ -98960,11 +99384,16 @@ public int hashCode() { if (present_filter) list.add(filter); + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); + return list.hashCode(); } @Override - public int compareTo(get_num_partitions_by_filter_args other) { + public int compareTo(get_part_specs_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -99001,6 +99430,16 @@ public int compareTo(get_num_partitions_by_filter_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -99018,7 +99457,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_args("); + StringBuilder sb = new StringBuilder("get_part_specs_by_filter_args("); boolean first = true; sb.append("db_name:"); @@ -99044,6 +99483,10 @@ public String toString() { sb.append(this.filter); } first = false; + if (!first) sb.append(", "); + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; sb.append(")"); return sb.toString(); } @@ -99063,21 +99506,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_num_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_num_partitions_by_filter_argsStandardScheme getScheme() { - return new get_num_partitions_by_filter_argsStandardScheme(); + private static class get_part_specs_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_argsStandardScheme getScheme() { + return new get_part_specs_by_filter_argsStandardScheme(); } } - private static class get_num_partitions_by_filter_argsStandardScheme extends StandardScheme { + private static class get_part_specs_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -99111,6 +99556,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); + struct.setMax_partsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -99120,7 +99573,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -99139,22 +99592,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions oprot.writeString(struct.filter); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI32(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_num_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_num_partitions_by_filter_argsTupleScheme getScheme() { - return new get_num_partitions_by_filter_argsTupleScheme(); + private static class get_part_specs_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_argsTupleScheme getScheme() { + return new get_part_specs_by_filter_argsTupleScheme(); } } - private static class get_num_partitions_by_filter_argsTupleScheme extends TupleScheme { + private static class get_part_specs_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -99166,7 +99622,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_ if (struct.isSetFilter()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetMax_parts()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -99176,12 +99635,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_ if (struct.isSetFilter()) { oprot.writeString(struct.filter); } + if (struct.isSetMax_parts()) { + oprot.writeI32(struct.max_parts); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_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.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -99194,25 +99656,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_b struct.filter = iprot.readString(); struct.setFilterIsSet(true); } + if (incoming.get(3)) { + struct.max_parts = iprot.readI32(); + struct.setMax_partsIsSet(true); + } } } } - public static class get_num_partitions_by_filter_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_num_partitions_by_filter_result"); + public static class get_part_specs_by_filter_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_part_specs_by_filter_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_num_partitions_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_num_partitions_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_part_specs_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_part_specs_by_filter_resultTupleSchemeFactory()); } - private int success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -99281,32 +99747,30 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + 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, PartitionSpec.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_num_partitions_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_result.class, metaDataMap); } - public get_num_partitions_by_filter_result() { + public get_part_specs_by_filter_result() { } - public get_num_partitions_by_filter_result( - int success, + public get_part_specs_by_filter_result( + List success, MetaException o1, NoSuchObjectException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -99314,9 +99778,14 @@ public get_num_partitions_by_filter_result( /** * Performs a deep copy on other. */ - public get_num_partitions_by_filter_result(get_num_partitions_by_filter_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } @@ -99325,38 +99794,53 @@ public get_num_partitions_by_filter_result(get_num_partitions_by_filter_result o } } - public get_num_partitions_by_filter_result deepCopy() { - return new get_num_partitions_by_filter_result(this); + public get_part_specs_by_filter_result deepCopy() { + return new get_part_specs_by_filter_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; } - public int getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(PartitionSpec elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public MetaException getO1() { @@ -99411,7 +99895,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((List)value); } break; @@ -99470,21 +99954,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_num_partitions_by_filter_result) - return this.equals((get_num_partitions_by_filter_result)that); + if (that instanceof get_part_specs_by_filter_result) + return this.equals((get_part_specs_by_filter_result)that); return false; } - public boolean equals(get_num_partitions_by_filter_result that) { + public boolean equals(get_part_specs_by_filter_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -99513,7 +99997,7 @@ public boolean equals(get_num_partitions_by_filter_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -99532,7 +100016,7 @@ public int hashCode() { } @Override - public int compareTo(get_num_partitions_by_filter_result other) { + public int compareTo(get_part_specs_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -99586,11 +100070,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_result("); + StringBuilder sb = new StringBuilder("get_part_specs_by_filter_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:"); @@ -99627,23 +100115,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_num_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_num_partitions_by_filter_resultStandardScheme getScheme() { - return new get_num_partitions_by_filter_resultStandardScheme(); + private static class get_part_specs_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_resultStandardScheme getScheme() { + return new get_part_specs_by_filter_resultStandardScheme(); } } - private static class get_num_partitions_by_filter_resultStandardScheme extends StandardScheme { + private static class get_part_specs_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -99654,8 +100140,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1072 = iprot.readListBegin(); + struct.success = new ArrayList(_list1072.size); + PartitionSpec _elem1073; + for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) + { + _elem1073 = new PartitionSpec(); + _elem1073.read(iprot); + struct.success.add(_elem1073); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -99688,13 +100185,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_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.writeI32(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (PartitionSpec _iter1075 : struct.success) + { + _iter1075.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -99713,16 +100217,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions } - private static class get_num_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_num_partitions_by_filter_resultTupleScheme getScheme() { - return new get_num_partitions_by_filter_resultTupleScheme(); + private static class get_part_specs_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_resultTupleScheme getScheme() { + return new get_part_specs_by_filter_resultTupleScheme(); } } - private static class get_num_partitions_by_filter_resultTupleScheme extends TupleScheme { + private static class get_part_specs_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -99736,7 +100240,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_ } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + { + oprot.writeI32(struct.success.size()); + for (PartitionSpec _iter1076 : struct.success) + { + _iter1076.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -99747,11 +100257,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readI32(); + { + org.apache.thrift.protocol.TList _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1077.size); + PartitionSpec _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + { + _elem1078 = new PartitionSpec(); + _elem1078.read(iprot); + struct.success.add(_elem1078); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -99769,28 +100289,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_b } - public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_args"); + public static class get_partitions_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (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 get_partitions_by_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_expr_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_expr_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List names; // required + private PartitionsByExprRequest 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - NAMES((short)3, "names"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -99805,12 +100319,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_b */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NAMES - return NAMES; + case 1: // REQ + return REQ; default: return null; } @@ -99854,165 +100364,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NAMES, new org.apache.thrift.meta_data.FieldMetaData("names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + 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, PartitionsByExprRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_args.class, metaDataMap); } - public get_partitions_by_names_args() { + public get_partitions_by_expr_args() { } - public get_partitions_by_names_args( - String db_name, - String tbl_name, - List names) + public get_partitions_by_expr_args( + PartitionsByExprRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.names = names; + this.req = req; } /** * Performs a deep copy on other. */ - public get_partitions_by_names_args(get_partitions_by_names_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNames()) { - List __this__names = new ArrayList(other.names); - this.names = __this__names; + public get_partitions_by_expr_args(get_partitions_by_expr_args other) { + if (other.isSetReq()) { + this.req = new PartitionsByExprRequest(other.req); } } - public get_partitions_by_names_args deepCopy() { - return new get_partitions_by_names_args(this); + public get_partitions_by_expr_args deepCopy() { + return new get_partitions_by_expr_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.names = 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 int getNamesSize() { - return (this.names == null) ? 0 : this.names.size(); - } - - public java.util.Iterator getNamesIterator() { - return (this.names == null) ? null : this.names.iterator(); - } - - public void addToNames(String elem) { - if (this.names == null) { - this.names = new ArrayList(); - } - this.names.add(elem); + this.req = null; } - public List getNames() { - return this.names; + public PartitionsByExprRequest getReq() { + return this.req; } - public void setNames(List names) { - this.names = names; + public void setReq(PartitionsByExprRequest req) { + this.req = req; } - public void unsetNames() { - this.names = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field names is set (has been assigned a value) and false otherwise */ - public boolean isSetNames() { - return this.names != 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 setNamesIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.names = null; + this.req = 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; - - case NAMES: + case REQ: if (value == null) { - unsetNames(); + unsetReq(); } else { - setNames((List)value); + setReq((PartitionsByExprRequest)value); } break; @@ -100021,14 +100436,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case NAMES: - return getNames(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -100041,12 +100450,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case NAMES: - return isSetNames(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -100055,39 +100460,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_names_args) - return this.equals((get_partitions_by_names_args)that); + if (that instanceof get_partitions_by_expr_args) + return this.equals((get_partitions_by_expr_args)that); return false; } - public boolean equals(get_partitions_by_names_args that) { + public boolean equals(get_partitions_by_expr_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_names = true && this.isSetNames(); - boolean that_present_names = true && that.isSetNames(); - if (this_present_names || that_present_names) { - if (!(this_present_names && that_present_names)) + 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.names.equals(that.names)) + if (!this.req.equals(that.req)) return false; } @@ -100098,58 +100485,28 @@ public boolean equals(get_partitions_by_names_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_names = true && (isSetNames()); - list.add(present_names); - if (present_names) - list.add(names); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_partitions_by_names_args other) { + public int compareTo(get_partitions_by_expr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetNames()).compareTo(other.isSetNames()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, other.names); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -100171,30 +100528,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_names_args("); + StringBuilder sb = new StringBuilder("get_partitions_by_expr_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("names:"); - if (this.names == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.names); + sb.append(this.req); } first = false; sb.append(")"); @@ -100204,6 +100545,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 { @@ -100222,15 +100566,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_names_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_names_argsStandardScheme getScheme() { - return new get_partitions_by_names_argsStandardScheme(); + private static class get_partitions_by_expr_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_argsStandardScheme getScheme() { + return new get_partitions_by_expr_argsStandardScheme(); } } - private static class get_partitions_by_names_argsStandardScheme extends StandardScheme { + private static class get_partitions_by_expr_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -100240,36 +100584,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); - struct.names = new ArrayList(_list1032.size); - String _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) - { - _elem1033 = iprot.readString(); - struct.names.add(_elem1033); - } - iprot.readListEnd(); - } - struct.setNamesIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new PartitionsByExprRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -100283,30 +100602,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.names != null) { - oprot.writeFieldBegin(NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter1035 : struct.names) - { - oprot.writeString(_iter1035); - } - oprot.writeListEnd(); - } + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -100315,89 +100617,55 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_names_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_names_argsTupleScheme getScheme() { - return new get_partitions_by_names_argsTupleScheme(); + private static class get_partitions_by_expr_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_argsTupleScheme getScheme() { + return new get_partitions_by_expr_argsTupleScheme(); } } - private static class get_partitions_by_names_argsTupleScheme extends TupleScheme { + private static class get_partitions_by_expr_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNames()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNames()) { - { - oprot.writeI32(struct.names.size()); - for (String _iter1036 : struct.names) - { - oprot.writeString(_iter1036); - } - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1037.size); - String _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) - { - _elem1038 = iprot.readString(); - struct.names.add(_elem1038); - } - } - struct.setNamesIsSet(true); + struct.req = new PartitionsByExprRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_result"); + public static class get_partitions_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_expr_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_expr_resultTupleSchemeFactory()); } - private List success; // required + private PartitionsByExprResult success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -100470,21 +100738,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.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsByExprResult.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_partitions_by_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_result.class, metaDataMap); } - public get_partitions_by_names_result() { + public get_partitions_by_expr_result() { } - public get_partitions_by_names_result( - List success, + public get_partitions_by_expr_result( + PartitionsByExprResult success, MetaException o1, NoSuchObjectException o2) { @@ -100497,13 +100764,9 @@ public get_partitions_by_names_result( /** * Performs a deep copy on other. */ - public get_partitions_by_names_result(get_partitions_by_names_result other) { + public get_partitions_by_expr_result(get_partitions_by_expr_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); - } - this.success = __this__success; + this.success = new PartitionsByExprResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -100513,8 +100776,8 @@ public get_partitions_by_names_result(get_partitions_by_names_result other) { } } - public get_partitions_by_names_result deepCopy() { - return new get_partitions_by_names_result(this); + public get_partitions_by_expr_result deepCopy() { + return new get_partitions_by_expr_result(this); } @Override @@ -100524,26 +100787,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Partition elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public PartitionsByExprResult getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PartitionsByExprResult success) { this.success = success; } @@ -100614,7 +100862,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PartitionsByExprResult)value); } break; @@ -100673,12 +100921,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_names_result) - return this.equals((get_partitions_by_names_result)that); + if (that instanceof get_partitions_by_expr_result) + return this.equals((get_partitions_by_expr_result)that); return false; } - public boolean equals(get_partitions_by_names_result that) { + public boolean equals(get_partitions_by_expr_result that) { if (that == null) return false; @@ -100735,7 +100983,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_by_names_result other) { + public int compareTo(get_partitions_by_expr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -100789,7 +101037,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_names_result("); + StringBuilder sb = new StringBuilder("get_partitions_by_expr_result("); boolean first = true; sb.append("success:"); @@ -100822,6 +101070,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 { @@ -100840,15 +101091,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_names_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_names_resultStandardScheme getScheme() { - return new get_partitions_by_names_resultStandardScheme(); + private static class get_partitions_by_expr_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_resultStandardScheme getScheme() { + return new get_partitions_by_expr_resultStandardScheme(); } } - private static class get_partitions_by_names_resultStandardScheme extends StandardScheme { + private static class get_partitions_by_expr_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -100859,19 +101110,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); - struct.success = new ArrayList(_list1040.size); - Partition _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) - { - _elem1041 = new Partition(); - _elem1041.read(iprot); - struct.success.add(_elem1041); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PartitionsByExprResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -100904,20 +101145,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_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 (Partition _iter1043 : struct.success) - { - _iter1043.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -100936,16 +101170,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_names_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_names_resultTupleScheme getScheme() { - return new get_partitions_by_names_resultTupleScheme(); + private static class get_partitions_by_expr_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_resultTupleScheme getScheme() { + return new get_partitions_by_expr_resultTupleScheme(); } } - private static class get_partitions_by_names_resultTupleScheme extends TupleScheme { + private static class get_partitions_by_expr_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -100959,13 +101193,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Partition _iter1044 : struct.success) - { - _iter1044.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -100976,21 +101204,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1045.size); - Partition _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) - { - _elem1046 = new Partition(); - _elem1046.read(iprot); - struct.success.add(_elem1046); - } - } + struct.success = new PartitionsByExprResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -101008,28 +101227,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } - public static class alter_partition_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("alter_partition_args"); + public static class get_num_partitions_by_filter_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_num_partitions_by_filter_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_num_partitions_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_num_partitions_by_filter_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private Partition new_part; // required + private String filter; // 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"), - NEW_PART((short)3, "new_part"); + FILTER((short)3, "filter"); private static final Map byName = new HashMap(); @@ -101048,8 +101267,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // NEW_PART - return NEW_PART; + case 3: // FILTER + return FILTER; default: return null; } @@ -101097,50 +101316,50 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", 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(alter_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_args.class, metaDataMap); } - public alter_partition_args() { + public get_num_partitions_by_filter_args() { } - public alter_partition_args( + public get_num_partitions_by_filter_args( String db_name, String tbl_name, - Partition new_part) + String filter) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.new_part = new_part; + this.filter = filter; } /** * Performs a deep copy on other. */ - public alter_partition_args(alter_partition_args other) { + public get_num_partitions_by_filter_args(get_num_partitions_by_filter_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); + if (other.isSetFilter()) { + this.filter = other.filter; } } - public alter_partition_args deepCopy() { - return new alter_partition_args(this); + public get_num_partitions_by_filter_args deepCopy() { + return new get_num_partitions_by_filter_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.new_part = null; + this.filter = null; } public String getDb_name() { @@ -101189,26 +101408,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public Partition getNew_part() { - return this.new_part; + public String getFilter() { + return this.filter; } - public void setNew_part(Partition new_part) { - this.new_part = new_part; + public void setFilter(String filter) { + this.filter = filter; } - public void unsetNew_part() { - this.new_part = null; + public void unsetFilter() { + this.filter = null; } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != null; + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; } - public void setNew_partIsSet(boolean value) { + public void setFilterIsSet(boolean value) { if (!value) { - this.new_part = null; + this.filter = null; } } @@ -101230,11 +101449,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case NEW_PART: + case FILTER: if (value == null) { - unsetNew_part(); + unsetFilter(); } else { - setNew_part((Partition)value); + setFilter((String)value); } break; @@ -101249,8 +101468,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case NEW_PART: - return getNew_part(); + case FILTER: + return getFilter(); } throw new IllegalStateException(); @@ -101267,8 +101486,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case NEW_PART: - return isSetNew_part(); + case FILTER: + return isSetFilter(); } throw new IllegalStateException(); } @@ -101277,12 +101496,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partition_args) - return this.equals((alter_partition_args)that); + if (that instanceof get_num_partitions_by_filter_args) + return this.equals((get_num_partitions_by_filter_args)that); return false; } - public boolean equals(alter_partition_args that) { + public boolean equals(get_num_partitions_by_filter_args that) { if (that == null) return false; @@ -101304,12 +101523,12 @@ public boolean equals(alter_partition_args that) { return false; } - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) return false; - if (!this.new_part.equals(that.new_part)) + if (!this.filter.equals(that.filter)) return false; } @@ -101330,16 +101549,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); + boolean present_filter = true && (isSetFilter()); + list.add(present_filter); + if (present_filter) + list.add(filter); return list.hashCode(); } @Override - public int compareTo(alter_partition_args other) { + public int compareTo(get_num_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -101366,12 +101585,12 @@ public int compareTo(alter_partition_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); if (lastComparison != 0) { return lastComparison; } @@ -101393,7 +101612,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partition_args("); + StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_args("); boolean first = true; sb.append("db_name:"); @@ -101412,11 +101631,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("new_part:"); - if (this.new_part == null) { + sb.append("filter:"); + if (this.filter == null) { sb.append("null"); } else { - sb.append(this.new_part); + sb.append(this.filter); } first = false; sb.append(")"); @@ -101426,9 +101645,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -101447,15 +101663,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partition_argsStandardSchemeFactory implements SchemeFactory { - public alter_partition_argsStandardScheme getScheme() { - return new alter_partition_argsStandardScheme(); + private static class get_num_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_argsStandardScheme getScheme() { + return new get_num_partitions_by_filter_argsStandardScheme(); } } - private static class alter_partition_argsStandardScheme extends StandardScheme { + private static class get_num_partitions_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -101481,11 +101697,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_arg org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + case 3: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -101499,7 +101714,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -101513,9 +101728,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_ar oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -101524,16 +101739,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_ar } - private static class alter_partition_argsTupleSchemeFactory implements SchemeFactory { - public alter_partition_argsTupleScheme getScheme() { - return new alter_partition_argsTupleScheme(); + private static class get_num_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_argsTupleScheme getScheme() { + return new get_num_partitions_by_filter_argsTupleScheme(); } } - private static class alter_partition_argsTupleScheme extends TupleScheme { + private static class get_num_partitions_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -101542,7 +101757,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_arg if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetNew_part()) { + if (struct.isSetFilter()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -101552,13 +101767,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_arg if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -101570,32 +101785,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } } } } - public static class alter_partition_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("alter_partition_result"); + public static class get_num_partitions_by_filter_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_num_partitions_by_filter_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (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 alter_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_num_partitions_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_num_partitions_by_filter_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private int 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"); @@ -101612,6 +101829,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 @@ -101656,25 +101875,32 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 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(alter_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_result.class, metaDataMap); } - public alter_partition_result() { + public get_num_partitions_by_filter_result() { } - public alter_partition_result( - InvalidOperationException o1, - MetaException o2) + public get_num_partitions_by_filter_result( + int success, + MetaException o1, + NoSuchObjectException o2) { this(); + this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -101682,30 +101908,56 @@ public alter_partition_result( /** * Performs a deep copy on other. */ - public alter_partition_result(alter_partition_result other) { + public get_num_partitions_by_filter_result(get_num_partitions_by_filter_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public alter_partition_result deepCopy() { - return new alter_partition_result(this); + public get_num_partitions_by_filter_result deepCopy() { + return new get_num_partitions_by_filter_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; } - public InvalidOperationException getO1() { + public int getSuccess() { + return this.success; + } + + public void setSuccess(int success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public MetaException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -101724,11 +101976,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -101749,11 +102001,19 @@ public void setO2IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Integer)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((MetaException)value); } break; @@ -101761,7 +102021,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -101770,6 +102030,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -101787,6 +102050,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -101799,15 +102064,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partition_result) - return this.equals((alter_partition_result)that); + if (that instanceof get_num_partitions_by_filter_result) + return this.equals((get_num_partitions_by_filter_result)that); return false; } - public boolean equals(alter_partition_result that) { + public boolean equals(get_num_partitions_by_filter_result that) { if (that == null) return false; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -101833,6 +102107,11 @@ public boolean equals(alter_partition_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -101847,13 +102126,23 @@ public int hashCode() { } @Override - public int compareTo(alter_partition_result other) { + public int compareTo(get_num_partitions_by_filter_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; @@ -101891,9 +102180,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partition_result("); + StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_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"); @@ -101928,21 +102221,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class alter_partition_resultStandardSchemeFactory implements SchemeFactory { - public alter_partition_resultStandardScheme getScheme() { - return new alter_partition_resultStandardScheme(); + private static class get_num_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_resultStandardScheme getScheme() { + return new get_num_partitions_by_filter_resultStandardScheme(); } } - private static class alter_partition_resultStandardScheme extends StandardScheme { + private static class get_num_partitions_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -101952,9 +102247,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_res break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -101963,7 +102266,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_res break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -101979,10 +102282,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeI32(struct.success); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -101999,25 +102307,31 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_re } - private static class alter_partition_resultTupleSchemeFactory implements SchemeFactory { - public alter_partition_resultTupleScheme getScheme() { - return new alter_partition_resultTupleScheme(); + private static class get_num_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_resultTupleScheme getScheme() { + return new get_num_partitions_by_filter_resultTupleScheme(); } } - private static class alter_partition_resultTupleScheme extends TupleScheme { + private static class get_num_partitions_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + oprot.writeI32(struct.success); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -102027,16 +102341,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = iprot.readI32(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -102045,28 +102363,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_resu } - public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_args"); + public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List new_parts; // required + private List names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - NEW_PARTS((short)3, "new_parts"); + NAMES((short)3, "names"); private static final Map byName = new HashMap(); @@ -102085,8 +102403,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // NEW_PARTS - return NEW_PARTS; + case 3: // NAMES + return NAMES; default: return null; } @@ -102134,55 +102452,52 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NAMES, new org.apache.thrift.meta_data.FieldMetaData("names", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class, metaDataMap); } - public alter_partitions_args() { + public get_partitions_by_names_args() { } - public alter_partitions_args( + public get_partitions_by_names_args( String db_name, String tbl_name, - List new_parts) + List names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.new_parts = new_parts; + this.names = names; } /** * Performs a deep copy on other. */ - public alter_partitions_args(alter_partitions_args other) { + public get_partitions_by_names_args(get_partitions_by_names_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (Partition other_element : other.new_parts) { - __this__new_parts.add(new Partition(other_element)); - } - this.new_parts = __this__new_parts; + if (other.isSetNames()) { + List __this__names = new ArrayList(other.names); + this.names = __this__names; } } - public alter_partitions_args deepCopy() { - return new alter_partitions_args(this); + public get_partitions_by_names_args deepCopy() { + return new get_partitions_by_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.new_parts = null; + this.names = null; } public String getDb_name() { @@ -102231,41 +102546,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); + public int getNamesSize() { + return (this.names == null) ? 0 : this.names.size(); } - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); + public java.util.Iterator getNamesIterator() { + return (this.names == null) ? null : this.names.iterator(); } - public void addToNew_parts(Partition elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); + public void addToNames(String elem) { + if (this.names == null) { + this.names = new ArrayList(); } - this.new_parts.add(elem); + this.names.add(elem); } - public List getNew_parts() { - return this.new_parts; + public List getNames() { + return this.names; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setNames(List names) { + this.names = names; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetNames() { + this.names = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != null; + /** Returns true if field names is set (has been assigned a value) and false otherwise */ + public boolean isSetNames() { + return this.names != null; } - public void setNew_partsIsSet(boolean value) { + public void setNamesIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.names = null; } } @@ -102287,11 +102602,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case NEW_PARTS: + case NAMES: if (value == null) { - unsetNew_parts(); + unsetNames(); } else { - setNew_parts((List)value); + setNames((List)value); } break; @@ -102306,8 +102621,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case NEW_PARTS: - return getNew_parts(); + case NAMES: + return getNames(); } throw new IllegalStateException(); @@ -102324,8 +102639,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case NEW_PARTS: - return isSetNew_parts(); + case NAMES: + return isSetNames(); } throw new IllegalStateException(); } @@ -102334,12 +102649,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partitions_args) - return this.equals((alter_partitions_args)that); + if (that instanceof get_partitions_by_names_args) + return this.equals((get_partitions_by_names_args)that); return false; } - public boolean equals(alter_partitions_args that) { + public boolean equals(get_partitions_by_names_args that) { if (that == null) return false; @@ -102361,12 +102676,12 @@ public boolean equals(alter_partitions_args that) { return false; } - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + boolean this_present_names = true && this.isSetNames(); + boolean that_present_names = true && that.isSetNames(); + if (this_present_names || that_present_names) { + if (!(this_present_names && that_present_names)) return false; - if (!this.new_parts.equals(that.new_parts)) + if (!this.names.equals(that.names)) return false; } @@ -102387,16 +102702,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_names = true && (isSetNames()); + list.add(present_names); + if (present_names) + list.add(names); return list.hashCode(); } @Override - public int compareTo(alter_partitions_args other) { + public int compareTo(get_partitions_by_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -102423,12 +102738,12 @@ public int compareTo(alter_partitions_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNames()).compareTo(other.isSetNames()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, other.names); if (lastComparison != 0) { return lastComparison; } @@ -102450,7 +102765,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partitions_args("); + StringBuilder sb = new StringBuilder("get_partitions_by_names_args("); boolean first = true; sb.append("db_name:"); @@ -102469,11 +102784,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("names:"); + if (this.names == null) { sb.append("null"); } else { - sb.append(this.new_parts); + sb.append(this.names); } first = false; sb.append(")"); @@ -102501,15 +102816,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partitions_argsStandardSchemeFactory implements SchemeFactory { - public alter_partitions_argsStandardScheme getScheme() { - return new alter_partitions_argsStandardScheme(); + private static class get_partitions_by_names_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_names_argsStandardScheme getScheme() { + return new get_partitions_by_names_argsStandardScheme(); } } - private static class alter_partitions_argsStandardScheme extends StandardScheme { + private static class get_partitions_by_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -102535,21 +102850,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_PARTS + case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1048.size); - Partition _elem1049; - for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); + struct.names = new ArrayList(_list1080.size); + String _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1049 = new Partition(); - _elem1049.read(iprot); - struct.new_parts.add(_elem1049); + _elem1081 = iprot.readString(); + struct.names.add(_elem1081); } iprot.readListEnd(); } - struct.setNew_partsIsSet(true); + struct.setNamesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -102563,7 +102877,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -102577,13 +102891,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.new_parts != null) { - oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); + if (struct.names != null) { + oprot.writeFieldBegin(NAMES_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1051 : struct.new_parts) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); + for (String _iter1083 : struct.names) { - _iter1051.write(oprot); + oprot.writeString(_iter1083); } oprot.writeListEnd(); } @@ -102595,16 +102909,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a } - private static class alter_partitions_argsTupleSchemeFactory implements SchemeFactory { - public alter_partitions_argsTupleScheme getScheme() { - return new alter_partitions_argsTupleScheme(); + private static class get_partitions_by_names_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_names_argsTupleScheme getScheme() { + return new get_partitions_by_names_argsTupleScheme(); } } - private static class alter_partitions_argsTupleScheme extends TupleScheme { + private static class get_partitions_by_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -102613,7 +102927,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetNew_parts()) { + if (struct.isSetNames()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -102623,19 +102937,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetNew_parts()) { + if (struct.isSetNames()) { { - oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1052 : struct.new_parts) + oprot.writeI32(struct.names.size()); + for (String _iter1084 : struct.names) { - _iter1052.write(oprot); + oprot.writeString(_iter1084); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -102648,40 +102962,42 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1053.size); - Partition _elem1054; - for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + org.apache.thrift.protocol.TList _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1085.size); + String _elem1086; + for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) { - _elem1054 = new Partition(); - _elem1054.read(iprot); - struct.new_parts.add(_elem1054); + _elem1086 = iprot.readString(); + struct.names.add(_elem1086); } } - struct.setNew_partsIsSet(true); + struct.setNamesIsSet(true); } } } } - public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_result"); + public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_names_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -102698,6 +103014,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 @@ -102745,22 +103063,27 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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(alter_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_result.class, metaDataMap); } - public alter_partitions_result() { + public get_partitions_by_names_result() { } - public alter_partitions_result( - InvalidOperationException o1, - MetaException o2) + public get_partitions_by_names_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; } @@ -102768,30 +103091,76 @@ public alter_partitions_result( /** * Performs a deep copy on other. */ - public alter_partitions_result(alter_partitions_result other) { + public get_partitions_by_names_result(get_partitions_by_names_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public alter_partitions_result deepCopy() { - return new alter_partitions_result(this); + public get_partitions_by_names_result deepCopy() { + return new get_partitions_by_names_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; } - public InvalidOperationException getO1() { + 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(Partition 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(InvalidOperationException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -102810,11 +103179,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -102835,11 +103204,19 @@ public void setO2IsSet(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(); } else { - setO1((InvalidOperationException)value); + setO1((MetaException)value); } break; @@ -102847,7 +103224,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -102856,6 +103233,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -102873,6 +103253,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -102885,15 +103267,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partitions_result) - return this.equals((alter_partitions_result)that); + if (that instanceof get_partitions_by_names_result) + return this.equals((get_partitions_by_names_result)that); return false; } - public boolean equals(alter_partitions_result that) { + public boolean equals(get_partitions_by_names_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) { @@ -102919,6 +103310,11 @@ public boolean equals(alter_partitions_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) @@ -102933,13 +103329,23 @@ public int hashCode() { } @Override - public int compareTo(alter_partitions_result other) { + public int compareTo(get_partitions_by_names_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; @@ -102977,9 +103383,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partitions_result("); + StringBuilder sb = new StringBuilder("get_partitions_by_names_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"); @@ -103020,15 +103434,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partitions_resultStandardSchemeFactory implements SchemeFactory { - public alter_partitions_resultStandardScheme getScheme() { - return new alter_partitions_resultStandardScheme(); + private static class get_partitions_by_names_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_names_resultStandardScheme getScheme() { + return new get_partitions_by_names_resultStandardScheme(); } } - private static class alter_partitions_resultStandardScheme extends StandardScheme { + private static class get_partitions_by_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -103038,9 +103452,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_re break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1088 = iprot.readListBegin(); + struct.success = new ArrayList(_list1088.size); + Partition _elem1089; + for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) + { + _elem1089 = new Partition(); + _elem1089.read(iprot); + struct.success.add(_elem1089); + } + 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 InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -103049,7 +103482,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_re break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -103065,10 +103498,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter1091 : struct.success) + { + _iter1091.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -103085,25 +103530,37 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_r } - private static class alter_partitions_resultTupleSchemeFactory implements SchemeFactory { - public alter_partitions_resultTupleScheme getScheme() { - return new alter_partitions_resultTupleScheme(); + private static class get_partitions_by_names_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_names_resultTupleScheme getScheme() { + return new get_partitions_by_names_resultTupleScheme(); } } - private static class alter_partitions_resultTupleScheme extends TupleScheme { + private static class get_partitions_by_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Partition _iter1092 : struct.success) + { + _iter1092.write(oprot); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -103113,16 +103570,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + { + org.apache.thrift.protocol.TList _list1093 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1093.size); + Partition _elem1094; + for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) + { + _elem1094 = new Partition(); + _elem1094.read(iprot); + struct.success.add(_elem1094); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -103131,31 +103602,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_res } - public static class alter_partitions_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("alter_partitions_with_environment_context_args"); + public static class alter_partition_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("alter_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (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 org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partition_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List new_parts; // required - private EnvironmentContext environment_context; // required + private Partition new_part; // 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"), - NEW_PARTS((short)3, "new_parts"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + NEW_PART((short)3, "new_part"); private static final Map byName = new HashMap(); @@ -103174,10 +103642,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // NEW_PARTS - return NEW_PARTS; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 3: // NEW_PART + return NEW_PART; default: return null; } @@ -103225,63 +103691,50 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); - 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))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_args.class, metaDataMap); } - public alter_partitions_with_environment_context_args() { + public alter_partition_args() { } - public alter_partitions_with_environment_context_args( + public alter_partition_args( String db_name, String tbl_name, - List new_parts, - EnvironmentContext environment_context) + Partition new_part) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.new_parts = new_parts; - this.environment_context = environment_context; + this.new_part = new_part; } /** * Performs a deep copy on other. */ - public alter_partitions_with_environment_context_args(alter_partitions_with_environment_context_args other) { + public alter_partition_args(alter_partition_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (Partition other_element : other.new_parts) { - __this__new_parts.add(new Partition(other_element)); - } - this.new_parts = __this__new_parts; - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } } - public alter_partitions_with_environment_context_args deepCopy() { - return new alter_partitions_with_environment_context_args(this); + public alter_partition_args deepCopy() { + return new alter_partition_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.new_parts = null; - this.environment_context = null; + this.new_part = null; } public String getDb_name() { @@ -103330,64 +103783,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); - } - - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); - } - - public void addToNew_parts(Partition elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); - } - this.new_parts.add(elem); - } - - public List getNew_parts() { - return this.new_parts; - } - - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; - } - - public void unsetNew_parts() { - this.new_parts = null; - } - - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != null; - } - - public void setNew_partsIsSet(boolean value) { - if (!value) { - this.new_parts = null; - } - } - - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public Partition getNew_part() { + return this.new_part; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetNew_part() { + this.new_part = 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; + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setNew_partIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.new_part = null; } } @@ -103409,19 +103824,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case NEW_PARTS: - if (value == null) { - unsetNew_parts(); - } else { - setNew_parts((List)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case NEW_PART: if (value == null) { - unsetEnvironment_context(); + unsetNew_part(); } else { - setEnvironment_context((EnvironmentContext)value); + setNew_part((Partition)value); } break; @@ -103436,11 +103843,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case NEW_PARTS: - return getNew_parts(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case NEW_PART: + return getNew_part(); } throw new IllegalStateException(); @@ -103457,10 +103861,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case NEW_PARTS: - return isSetNew_parts(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case NEW_PART: + return isSetNew_part(); } throw new IllegalStateException(); } @@ -103469,12 +103871,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partitions_with_environment_context_args) - return this.equals((alter_partitions_with_environment_context_args)that); + if (that instanceof alter_partition_args) + return this.equals((alter_partition_args)that); return false; } - public boolean equals(alter_partitions_with_environment_context_args that) { + public boolean equals(alter_partition_args that) { if (that == null) return false; @@ -103496,21 +103898,12 @@ public boolean equals(alter_partitions_with_environment_context_args that) { return false; } - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) - return false; - if (!this.new_parts.equals(that.new_parts)) - 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)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.new_part.equals(that.new_part)) return false; } @@ -103531,21 +103924,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); return list.hashCode(); } @Override - public int compareTo(alter_partitions_with_environment_context_args other) { + public int compareTo(alter_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -103572,22 +103960,12 @@ public int compareTo(alter_partitions_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); if (lastComparison != 0) { return lastComparison; } @@ -103609,7 +103987,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_args("); + StringBuilder sb = new StringBuilder("alter_partition_args("); boolean first = true; sb.append("db_name:"); @@ -103628,19 +104006,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("new_parts:"); - if (this.new_parts == null) { - sb.append("null"); - } else { - sb.append(this.new_parts); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.new_part); } first = false; sb.append(")"); @@ -103650,8 +104020,8 @@ 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(); + if (new_part != null) { + new_part.validate(); } } @@ -103671,15 +104041,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partitions_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public alter_partitions_with_environment_context_argsStandardScheme getScheme() { - return new alter_partitions_with_environment_context_argsStandardScheme(); + private static class alter_partition_argsStandardSchemeFactory implements SchemeFactory { + public alter_partition_argsStandardScheme getScheme() { + return new alter_partition_argsStandardScheme(); } } - private static class alter_partitions_with_environment_context_argsStandardScheme extends StandardScheme { + private static class alter_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -103705,30 +104075,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1056.size); - Partition _elem1057; - for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) - { - _elem1057 = new Partition(); - _elem1057.read(iprot); - struct.new_parts.add(_elem1057); - } - iprot.readListEnd(); - } - struct.setNew_partsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ENVIRONMENT_CONTEXT + case 3: // NEW_PART if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -103742,7 +104093,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -103756,21 +104107,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.new_parts != null) { - oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1059 : struct.new_parts) - { - _iter1059.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -103779,16 +104118,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w } - private static class alter_partitions_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public alter_partitions_with_environment_context_argsTupleScheme getScheme() { - return new alter_partitions_with_environment_context_argsTupleScheme(); + private static class alter_partition_argsTupleSchemeFactory implements SchemeFactory { + public alter_partition_argsTupleScheme getScheme() { + return new alter_partition_argsTupleScheme(); } } - private static class alter_partitions_with_environment_context_argsTupleScheme extends TupleScheme { + private static class alter_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -103797,37 +104136,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetNew_parts()) { + if (struct.isSetNew_part()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetNew_parts()) { - { - oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1060 : struct.new_parts) - { - _iter1060.write(oprot); - } - } - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -103837,39 +104164,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1061.size); - Partition _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) - { - _elem1062 = new Partition(); - _elem1062.read(iprot); - struct.new_parts.add(_elem1062); - } - } - struct.setNew_partsIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } } } } - public static class alter_partitions_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("alter_partitions_with_environment_context_result"); + public static class alter_partition_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("alter_partition_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partition_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -103945,13 +104258,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_result.class, metaDataMap); } - public alter_partitions_with_environment_context_result() { + public alter_partition_result() { } - public alter_partitions_with_environment_context_result( + public alter_partition_result( InvalidOperationException o1, MetaException o2) { @@ -103963,7 +104276,7 @@ public alter_partitions_with_environment_context_result( /** * Performs a deep copy on other. */ - public alter_partitions_with_environment_context_result(alter_partitions_with_environment_context_result other) { + public alter_partition_result(alter_partition_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -103972,8 +104285,8 @@ public alter_partitions_with_environment_context_result(alter_partitions_with_en } } - public alter_partitions_with_environment_context_result deepCopy() { - return new alter_partitions_with_environment_context_result(this); + public alter_partition_result deepCopy() { + return new alter_partition_result(this); } @Override @@ -104080,12 +104393,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partitions_with_environment_context_result) - return this.equals((alter_partitions_with_environment_context_result)that); + if (that instanceof alter_partition_result) + return this.equals((alter_partition_result)that); return false; } - public boolean equals(alter_partitions_with_environment_context_result that) { + public boolean equals(alter_partition_result that) { if (that == null) return false; @@ -104128,7 +104441,7 @@ public int hashCode() { } @Override - public int compareTo(alter_partitions_with_environment_context_result other) { + public int compareTo(alter_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -104172,7 +104485,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_result("); + StringBuilder sb = new StringBuilder("alter_partition_result("); boolean first = true; sb.append("o1:"); @@ -104215,15 +104528,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partitions_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public alter_partitions_with_environment_context_resultStandardScheme getScheme() { - return new alter_partitions_with_environment_context_resultStandardScheme(); + private static class alter_partition_resultStandardSchemeFactory implements SchemeFactory { + public alter_partition_resultStandardScheme getScheme() { + return new alter_partition_resultStandardScheme(); } } - private static class alter_partitions_with_environment_context_resultStandardScheme extends StandardScheme { + private static class alter_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -104260,7 +104573,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -104280,16 +104593,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w } - private static class alter_partitions_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public alter_partitions_with_environment_context_resultTupleScheme getScheme() { - return new alter_partitions_with_environment_context_resultTupleScheme(); + private static class alter_partition_resultTupleSchemeFactory implements SchemeFactory { + public alter_partition_resultTupleScheme getScheme() { + return new alter_partition_resultTupleScheme(); } } - private static class alter_partitions_with_environment_context_resultTupleScheme extends TupleScheme { + private static class alter_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -104308,7 +104621,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -104326,31 +104639,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } - public static class alter_partition_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("alter_partition_with_environment_context_args"); + public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (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 org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partitions_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private Partition new_part; // required - private EnvironmentContext environment_context; // required + private List new_parts; // 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"), - NEW_PART((short)3, "new_part"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + NEW_PARTS((short)3, "new_parts"); private static final Map byName = new HashMap(); @@ -104369,10 +104679,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // NEW_PART - return NEW_PART; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 3: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -104420,58 +104728,55 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); - 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))); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_args.class, metaDataMap); } - public alter_partition_with_environment_context_args() { + public alter_partitions_args() { } - public alter_partition_with_environment_context_args( + public alter_partitions_args( String db_name, String tbl_name, - Partition new_part, - EnvironmentContext environment_context) + List new_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.new_part = new_part; - this.environment_context = environment_context; + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public alter_partition_with_environment_context_args(alter_partition_with_environment_context_args other) { + public alter_partitions_args(alter_partitions_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (Partition other_element : other.new_parts) { + __this__new_parts.add(new Partition(other_element)); + } + this.new_parts = __this__new_parts; } } - public alter_partition_with_environment_context_args deepCopy() { - return new alter_partition_with_environment_context_args(this); + public alter_partitions_args deepCopy() { + return new alter_partitions_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.new_part = null; - this.environment_context = null; + this.new_parts = null; } public String getDb_name() { @@ -104520,49 +104825,41 @@ public void setTbl_nameIsSet(boolean value) { } } - public Partition getNew_part() { - return this.new_part; - } - - public void setNew_part(Partition new_part) { - this.new_part = new_part; - } - - public void unsetNew_part() { - this.new_part = null; + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != null; + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void setNew_partIsSet(boolean value) { - if (!value) { - this.new_part = null; + public void addToNew_parts(Partition elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); } + this.new_parts.add(elem); } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public List getNew_parts() { + return this.new_parts; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetNew_parts() { + this.new_parts = 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; + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setNew_partsIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.new_parts = null; } } @@ -104584,19 +104881,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case NEW_PART: - if (value == null) { - unsetNew_part(); - } else { - setNew_part((Partition)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case NEW_PARTS: if (value == null) { - unsetEnvironment_context(); + unsetNew_parts(); } else { - setEnvironment_context((EnvironmentContext)value); + setNew_parts((List)value); } break; @@ -104611,11 +104900,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case NEW_PART: - return getNew_part(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -104632,10 +104918,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case NEW_PART: - return isSetNew_part(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -104644,12 +104928,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partition_with_environment_context_args) - return this.equals((alter_partition_with_environment_context_args)that); + if (that instanceof alter_partitions_args) + return this.equals((alter_partitions_args)that); return false; } - public boolean equals(alter_partition_with_environment_context_args that) { + public boolean equals(alter_partitions_args that) { if (that == null) return false; @@ -104671,21 +104955,12 @@ public boolean equals(alter_partition_with_environment_context_args that) { return false; } - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) - return false; - if (!this.new_part.equals(that.new_part)) - 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)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -104706,21 +104981,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); return list.hashCode(); } @Override - public int compareTo(alter_partition_with_environment_context_args other) { + public int compareTo(alter_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -104747,22 +105017,12 @@ public int compareTo(alter_partition_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -104784,7 +105044,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("alter_partitions_args("); boolean first = true; sb.append("db_name:"); @@ -104803,19 +105063,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("new_part:"); - if (this.new_part == null) { - sb.append("null"); - } else { - sb.append(this.new_part); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.new_parts); } first = false; sb.append(")"); @@ -104825,12 +105077,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -104849,15 +105095,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public alter_partition_with_environment_context_argsStandardScheme getScheme() { - return new alter_partition_with_environment_context_argsStandardScheme(); + private static class alter_partitions_argsStandardSchemeFactory implements SchemeFactory { + public alter_partitions_argsStandardScheme getScheme() { + return new alter_partitions_argsStandardScheme(); } } - private static class alter_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class alter_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -104883,20 +105129,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_wit org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(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); + case 3: // NEW_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1096 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1096.size); + Partition _elem1097; + for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098) + { + _elem1097 = new Partition(); + _elem1097.read(iprot); + struct.new_parts.add(_elem1097); + } + iprot.readListEnd(); + } + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -104910,7 +105157,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_wit struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -104924,14 +105171,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_wi oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.new_parts != null) { + 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 _iter1099 : struct.new_parts) + { + _iter1099.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -104940,16 +105189,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_wi } - private static class alter_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public alter_partition_with_environment_context_argsTupleScheme getScheme() { - return new alter_partition_with_environment_context_argsTupleScheme(); + private static class alter_partitions_argsTupleSchemeFactory implements SchemeFactory { + public alter_partitions_argsTupleScheme getScheme() { + return new alter_partitions_argsTupleScheme(); } } - private static class alter_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class alter_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -104958,31 +105207,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_wit if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetNew_part()) { + if (struct.isSetNew_parts()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetNew_parts()) { + { + oprot.writeI32(struct.new_parts.size()); + for (Partition _iter1100 : struct.new_parts) + { + _iter1100.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -104992,30 +105241,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + { + org.apache.thrift.protocol.TList _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1101.size); + Partition _elem1102; + for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103) + { + _elem1102 = new Partition(); + _elem1102.read(iprot); + struct.new_parts.add(_elem1102); + } + } + struct.setNew_partsIsSet(true); } } } } - public static class alter_partition_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("alter_partition_with_environment_context_result"); + public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partitions_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -105091,13 +105344,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_result.class, metaDataMap); } - public alter_partition_with_environment_context_result() { + public alter_partitions_result() { } - public alter_partition_with_environment_context_result( + public alter_partitions_result( InvalidOperationException o1, MetaException o2) { @@ -105109,7 +105362,7 @@ public alter_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) { + public alter_partitions_result(alter_partitions_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -105118,8 +105371,8 @@ public alter_partition_with_environment_context_result(alter_partition_with_envi } } - public alter_partition_with_environment_context_result deepCopy() { - return new alter_partition_with_environment_context_result(this); + public alter_partitions_result deepCopy() { + return new alter_partitions_result(this); } @Override @@ -105226,12 +105479,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_partition_with_environment_context_result) - return this.equals((alter_partition_with_environment_context_result)that); + if (that instanceof alter_partitions_result) + return this.equals((alter_partitions_result)that); return false; } - public boolean equals(alter_partition_with_environment_context_result that) { + public boolean equals(alter_partitions_result that) { if (that == null) return false; @@ -105274,7 +105527,7 @@ public int hashCode() { } @Override - public int compareTo(alter_partition_with_environment_context_result other) { + public int compareTo(alter_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -105318,7 +105571,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("alter_partitions_result("); boolean first = true; sb.append("o1:"); @@ -105361,15 +105614,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public alter_partition_with_environment_context_resultStandardScheme getScheme() { - return new alter_partition_with_environment_context_resultStandardScheme(); + private static class alter_partitions_resultStandardSchemeFactory implements SchemeFactory { + public alter_partitions_resultStandardScheme getScheme() { + return new alter_partitions_resultStandardScheme(); } } - private static class alter_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class alter_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105406,7 +105659,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_wit struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -105426,16 +105679,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_wi } - private static class alter_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public alter_partition_with_environment_context_resultTupleScheme getScheme() { - return new alter_partition_with_environment_context_resultTupleScheme(); + private static class alter_partitions_resultTupleSchemeFactory implements SchemeFactory { + public alter_partitions_resultTupleScheme getScheme() { + return new alter_partitions_resultTupleScheme(); } } - private static class alter_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class alter_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -105454,7 +105707,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_wit } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -105472,31 +105725,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with } - public static class rename_partition_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("rename_partition_args"); + public static class alter_partitions_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("alter_partitions_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (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 rename_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new rename_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private Partition new_part; // required + private List new_parts; // 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, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"), - NEW_PART((short)4, "new_part"); + NEW_PARTS((short)3, "new_parts"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -105515,10 +105768,10 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // NEW_PART - return NEW_PART; + case 3: // NEW_PARTS + return NEW_PARTS; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -105566,60 +105819,63 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + 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(rename_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_args.class, metaDataMap); } - public rename_partition_args() { + public alter_partitions_with_environment_context_args() { } - public rename_partition_args( + public alter_partitions_with_environment_context_args( String db_name, String tbl_name, - List part_vals, - Partition new_part) + List new_parts, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.new_part = new_part; + this.new_parts = new_parts; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public rename_partition_args(rename_partition_args other) { + public alter_partitions_with_environment_context_args(alter_partitions_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(other.new_parts.size()); + for (Partition other_element : other.new_parts) { + __this__new_parts.add(new Partition(other_element)); + } + this.new_parts = __this__new_parts; } - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public rename_partition_args deepCopy() { - return new rename_partition_args(this); + public alter_partitions_with_environment_context_args deepCopy() { + return new alter_partitions_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - this.new_part = null; + this.new_parts = null; + this.environment_context = null; } public String getDb_name() { @@ -105668,64 +105924,64 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void addToNew_parts(Partition elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); } - this.part_vals.add(elem); + this.new_parts.add(elem); } - public List getPart_vals() { - return this.part_vals; + public List getNew_parts() { + return this.new_parts; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetNew_parts() { + this.new_parts = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; } - public void setPart_valsIsSet(boolean value) { + public void setNew_partsIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.new_parts = null; } } - public Partition getNew_part() { - return this.new_part; + public EnvironmentContext getEnvironment_context() { + return this.environment_context; } - public void setNew_part(Partition new_part) { - this.new_part = new_part; + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; } - public void unsetNew_part() { - this.new_part = null; + public void unsetEnvironment_context() { + this.environment_context = null; } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != 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 setNew_partIsSet(boolean value) { + public void setEnvironment_contextIsSet(boolean value) { if (!value) { - this.new_part = null; + this.environment_context = null; } } @@ -105747,19 +106003,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: + case NEW_PARTS: if (value == null) { - unsetPart_vals(); + unsetNew_parts(); } else { - setPart_vals((List)value); + setNew_parts((List)value); } break; - case NEW_PART: + case ENVIRONMENT_CONTEXT: if (value == null) { - unsetNew_part(); + unsetEnvironment_context(); } else { - setNew_part((Partition)value); + setEnvironment_context((EnvironmentContext)value); } break; @@ -105774,11 +106030,11 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); + case NEW_PARTS: + return getNew_parts(); - case NEW_PART: - return getNew_part(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -105795,10 +106051,10 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case NEW_PART: - return isSetNew_part(); + case NEW_PARTS: + return isSetNew_parts(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -105807,12 +106063,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof rename_partition_args) - return this.equals((rename_partition_args)that); + if (that instanceof alter_partitions_with_environment_context_args) + return this.equals((alter_partitions_with_environment_context_args)that); return false; } - public boolean equals(rename_partition_args that) { + public boolean equals(alter_partitions_with_environment_context_args that) { if (that == null) return false; @@ -105834,21 +106090,21 @@ public boolean equals(rename_partition_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.new_parts.equals(that.new_parts)) return false; } - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) + 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.new_part.equals(that.new_part)) + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -105869,21 +106125,21 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_new_parts = true && (isSetNew_parts()); + list.add(present_new_parts); + if (present_new_parts) + list.add(new_parts); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); + 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(rename_partition_args other) { + public int compareTo(alter_partitions_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -105910,22 +106166,22 @@ public int compareTo(rename_partition_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -105947,7 +106203,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("rename_partition_args("); + StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -105966,19 +106222,19 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.new_parts); } first = false; if (!first) sb.append(", "); - sb.append("new_part:"); - if (this.new_part == null) { + sb.append("environment_context:"); + if (this.environment_context == null) { sb.append("null"); } else { - sb.append(this.new_part); + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -105988,8 +106244,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); + if (environment_context != null) { + environment_context.validate(); } } @@ -106009,15 +106265,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class rename_partition_argsStandardSchemeFactory implements SchemeFactory { - public rename_partition_argsStandardScheme getScheme() { - return new rename_partition_argsStandardScheme(); + private static class alter_partitions_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public alter_partitions_with_environment_context_argsStandardScheme getScheme() { + return new alter_partitions_with_environment_context_argsStandardScheme(); } } - private static class rename_partition_argsStandardScheme extends StandardScheme { + private static class alter_partitions_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106043,29 +106299,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS + case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1064.size); - String _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1104 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1104.size); + Partition _elem1105; + for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) { - _elem1065 = iprot.readString(); - struct.part_vals.add(_elem1065); + _elem1105 = new Partition(); + _elem1105.read(iprot); + struct.new_parts.add(_elem1105); } iprot.readListEnd(); } - struct.setPart_valsIsSet(true); + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // NEW_PART + case 4: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -106079,7 +106336,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -106093,21 +106350,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + if (struct.new_parts != null) { + oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1067 : struct.part_vals) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); + for (Partition _iter1107 : struct.new_parts) { - oprot.writeString(_iter1067); + _iter1107.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -106116,16 +106373,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a } - private static class rename_partition_argsTupleSchemeFactory implements SchemeFactory { - public rename_partition_argsTupleScheme getScheme() { - return new rename_partition_argsTupleScheme(); + private static class alter_partitions_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public alter_partitions_with_environment_context_argsTupleScheme getScheme() { + return new alter_partitions_with_environment_context_argsTupleScheme(); } } - private static class rename_partition_argsTupleScheme extends TupleScheme { + private static class alter_partitions_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -106134,10 +106391,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetNew_parts()) { optionals.set(2); } - if (struct.isSetNew_part()) { + if (struct.isSetEnvironment_context()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); @@ -106147,22 +106404,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { + if (struct.isSetNew_parts()) { { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1068 : struct.part_vals) + oprot.writeI32(struct.new_parts.size()); + for (Partition _iter1108 : struct.new_parts) { - oprot.writeString(_iter1068); + _iter1108.write(oprot); } } } - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -106175,37 +106432,38 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1069.size); - String _elem1070; - for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + org.apache.thrift.protocol.TList _list1109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1109.size); + Partition _elem1110; + for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) { - _elem1070 = iprot.readString(); - struct.part_vals.add(_elem1070); + _elem1110 = new Partition(); + _elem1110.read(iprot); + struct.new_parts.add(_elem1110); } } - struct.setPart_valsIsSet(true); + struct.setNew_partsIsSet(true); } if (incoming.get(3)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class rename_partition_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("rename_partition_result"); + public static class alter_partitions_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("alter_partitions_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 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 rename_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new rename_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -106281,13 +106539,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(rename_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_result.class, metaDataMap); } - public rename_partition_result() { + public alter_partitions_with_environment_context_result() { } - public rename_partition_result( + public alter_partitions_with_environment_context_result( InvalidOperationException o1, MetaException o2) { @@ -106299,7 +106557,7 @@ public rename_partition_result( /** * Performs a deep copy on other. */ - public rename_partition_result(rename_partition_result other) { + public alter_partitions_with_environment_context_result(alter_partitions_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -106308,8 +106566,8 @@ public rename_partition_result(rename_partition_result other) { } } - public rename_partition_result deepCopy() { - return new rename_partition_result(this); + public alter_partitions_with_environment_context_result deepCopy() { + return new alter_partitions_with_environment_context_result(this); } @Override @@ -106416,12 +106674,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof rename_partition_result) - return this.equals((rename_partition_result)that); + if (that instanceof alter_partitions_with_environment_context_result) + return this.equals((alter_partitions_with_environment_context_result)that); return false; } - public boolean equals(rename_partition_result that) { + public boolean equals(alter_partitions_with_environment_context_result that) { if (that == null) return false; @@ -106464,7 +106722,7 @@ public int hashCode() { } @Override - public int compareTo(rename_partition_result other) { + public int compareTo(alter_partitions_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -106508,7 +106766,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("rename_partition_result("); + StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -106551,15 +106809,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class rename_partition_resultStandardSchemeFactory implements SchemeFactory { - public rename_partition_resultStandardScheme getScheme() { - return new rename_partition_resultStandardScheme(); + private static class alter_partitions_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public alter_partitions_with_environment_context_resultStandardScheme getScheme() { + return new alter_partitions_with_environment_context_resultStandardScheme(); } } - private static class rename_partition_resultStandardScheme extends StandardScheme { + private static class alter_partitions_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106596,7 +106854,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -106616,16 +106874,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_r } - private static class rename_partition_resultTupleSchemeFactory implements SchemeFactory { - public rename_partition_resultTupleScheme getScheme() { - return new rename_partition_resultTupleScheme(); + private static class alter_partitions_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public alter_partitions_with_environment_context_resultTupleScheme getScheme() { + return new alter_partitions_with_environment_context_resultTupleScheme(); } } - private static class rename_partition_resultTupleScheme extends TupleScheme { + private static class alter_partitions_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -106644,7 +106902,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -106662,25 +106920,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_res } - public static class partition_name_has_valid_characters_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("partition_name_has_valid_characters_args"); + public static class alter_partition_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("alter_partition_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)1); - private static final org.apache.thrift.protocol.TField THROW_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("throw_exception", org.apache.thrift.protocol.TType.BOOL, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (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 partition_name_has_valid_characters_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_has_valid_characters_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partition_with_environment_context_argsTupleSchemeFactory()); } - private List part_vals; // required - private boolean throw_exception; // required + private String db_name; // required + private String tbl_name; // required + private Partition new_part; // 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 { - PART_VALS((short)1, "part_vals"), - THROW_EXCEPTION((short)2, "throw_exception"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + NEW_PART((short)3, "new_part"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -106695,10 +106959,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PART_VALS - return PART_VALS; - case 2: // THROW_EXCEPTION - return THROW_EXCEPTION; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_PART + return NEW_PART; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -106739,131 +107007,190 @@ public String getFieldName() { } // isset id assignments - private static final int __THROW_EXCEPTION_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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.THROW_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("throw_exception", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + 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(partition_name_has_valid_characters_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_args.class, metaDataMap); } - public partition_name_has_valid_characters_args() { + public alter_partition_with_environment_context_args() { } - public partition_name_has_valid_characters_args( - List part_vals, - boolean throw_exception) + public alter_partition_with_environment_context_args( + String db_name, + String tbl_name, + Partition new_part, + EnvironmentContext environment_context) { this(); - this.part_vals = part_vals; - this.throw_exception = throw_exception; - setThrow_exceptionIsSet(true); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.new_part = new_part; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public partition_name_has_valid_characters_args(partition_name_has_valid_characters_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public alter_partition_with_environment_context_args(alter_partition_with_environment_context_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } - this.throw_exception = other.throw_exception; } - public partition_name_has_valid_characters_args deepCopy() { - return new partition_name_has_valid_characters_args(this); + public alter_partition_with_environment_context_args deepCopy() { + return new alter_partition_with_environment_context_args(this); } @Override public void clear() { - this.part_vals = null; - setThrow_exceptionIsSet(false); - this.throw_exception = false; + this.db_name = null; + this.tbl_name = null; + this.new_part = null; + this.environment_context = null; } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public String getDb_name() { + return this.db_name; } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; } - this.part_vals.add(elem); } - public List getPart_vals() { - return this.part_vals; + public String getTbl_name() { + return this.tbl_name; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != 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 setPart_valsIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.tbl_name = null; } } - public boolean isThrow_exception() { - return this.throw_exception; + public Partition getNew_part() { + return this.new_part; } - public void setThrow_exception(boolean throw_exception) { - this.throw_exception = throw_exception; - setThrow_exceptionIsSet(true); + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetThrow_exception() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID); + public void unsetNew_part() { + this.new_part = null; } - /** Returns true if field throw_exception is set (has been assigned a value) and false otherwise */ - public boolean isSetThrow_exception() { - return EncodingUtils.testBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID); + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setThrow_exceptionIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID, value); + public void setNew_partIsSet(boolean value) { + if (!value) { + this.new_part = null; + } + } + + 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 PART_VALS: + case DB_NAME: if (value == null) { - unsetPart_vals(); + unsetDb_name(); } else { - setPart_vals((List)value); + setDb_name((String)value); } break; - case THROW_EXCEPTION: + case TBL_NAME: if (value == null) { - unsetThrow_exception(); + unsetTbl_name(); } else { - setThrow_exception((Boolean)value); + setTbl_name((String)value); + } + break; + + case NEW_PART: + if (value == null) { + unsetNew_part(); + } else { + setNew_part((Partition)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -106872,11 +107199,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PART_VALS: - return getPart_vals(); + case DB_NAME: + return getDb_name(); - case THROW_EXCEPTION: - return isThrow_exception(); + case TBL_NAME: + return getTbl_name(); + + case NEW_PART: + return getNew_part(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -106889,10 +107222,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case PART_VALS: - return isSetPart_vals(); - case THROW_EXCEPTION: - return isSetThrow_exception(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_PART: + return isSetNew_part(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -106901,30 +107238,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_has_valid_characters_args) - return this.equals((partition_name_has_valid_characters_args)that); + if (that instanceof alter_partition_with_environment_context_args) + return this.equals((alter_partition_with_environment_context_args)that); return false; } - public boolean equals(partition_name_has_valid_characters_args that) { + public boolean equals(alter_partition_with_environment_context_args that) { if (that == null) return false; - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + 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.part_vals.equals(that.part_vals)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_throw_exception = true; - boolean that_present_throw_exception = true; - if (this_present_throw_exception || that_present_throw_exception) { - if (!(this_present_throw_exception && that_present_throw_exception)) + 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.throw_exception != that.throw_exception) + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) + return false; + if (!this.new_part.equals(that.new_part)) + 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; } @@ -106935,43 +107290,73 @@ public boolean equals(partition_name_has_valid_characters_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_throw_exception = true; - list.add(present_throw_exception); - if (present_throw_exception) - list.add(throw_exception); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); + + 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(partition_name_has_valid_characters_args other) { + public int compareTo(alter_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(other.isSetThrow_exception()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetThrow_exception()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, other.throw_exception); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + 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; } @@ -106993,19 +107378,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_has_valid_characters_args("); + StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_args("); boolean first = true; - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("throw_exception:"); - sb.append(this.throw_exception); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_part:"); + if (this.new_part == null) { + sb.append("null"); + } else { + sb.append(this.new_part); + } + 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(); @@ -107014,6 +107419,12 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_part != null) { + new_part.validate(); + } + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -107026,23 +107437,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 partition_name_has_valid_characters_argsStandardSchemeFactory implements SchemeFactory { - public partition_name_has_valid_characters_argsStandardScheme getScheme() { - return new partition_name_has_valid_characters_argsStandardScheme(); + private static class alter_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public alter_partition_with_environment_context_argsStandardScheme getScheme() { + return new alter_partition_with_environment_context_argsStandardScheme(); } } - private static class partition_name_has_valid_characters_argsStandardScheme extends StandardScheme { + private static class alter_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107052,28 +107461,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ break; } switch (schemeField.id) { - case 1: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1072 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1072.size); - String _elem1073; - for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) - { - _elem1073 = iprot.readString(); - struct.part_vals.add(_elem1073); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + 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: // THROW_EXCEPTION - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.throw_exception = iprot.readBool(); - struct.setThrow_exceptionIsSet(true); + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // NEW_PART + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(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); } @@ -107087,109 +107504,121 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1075 : struct.part_vals) - { - oprot.writeString(_iter1075); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(THROW_EXCEPTION_FIELD_DESC); - oprot.writeBool(struct.throw_exception); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class partition_name_has_valid_characters_argsTupleSchemeFactory implements SchemeFactory { - public partition_name_has_valid_characters_argsTupleScheme getScheme() { - return new partition_name_has_valid_characters_argsTupleScheme(); + private static class alter_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public alter_partition_with_environment_context_argsTupleScheme getScheme() { + return new alter_partition_with_environment_context_argsTupleScheme(); } } - private static class partition_name_has_valid_characters_argsTupleScheme extends TupleScheme { + private static class alter_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPart_vals()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetThrow_exception()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter1076 : struct.part_vals) - { - oprot.writeString(_iter1076); - } - } + if (struct.isSetNew_part()) { + optionals.set(2); } - if (struct.isSetThrow_exception()) { - oprot.writeBool(struct.throw_exception); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1077.size); - String _elem1078; - for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) - { - _elem1078 = iprot.readString(); - struct.part_vals.add(_elem1078); - } - } - struct.setPart_valsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.throw_exception = iprot.readBool(); - struct.setThrow_exceptionIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class partition_name_has_valid_characters_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("partition_name_has_valid_characters_result"); + public static class alter_partition_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("alter_partition_with_environment_context_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new partition_name_has_valid_characters_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_has_valid_characters_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_partition_with_environment_context_resultTupleSchemeFactory()); } - private boolean success; // required - private MetaException o1; // required + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -107204,10 +107633,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v */ 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; } @@ -107248,114 +107677,112 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); 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(partition_name_has_valid_characters_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_result.class, metaDataMap); } - public partition_name_has_valid_characters_result() { + public alter_partition_with_environment_context_result() { } - public partition_name_has_valid_characters_result( - boolean success, - MetaException o1) + public alter_partition_with_environment_context_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; - setSuccessIsSet(true); this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public partition_name_has_valid_characters_result(partition_name_has_valid_characters_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); } } - public partition_name_has_valid_characters_result deepCopy() { - return new partition_name_has_valid_characters_result(this); + public alter_partition_with_environment_context_result deepCopy() { + return new alter_partition_with_environment_context_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.o1 = null; + this.o2 = null; } - public boolean isSuccess() { - return this.success; + public InvalidOperationException getO1() { + return this.o1; } - public void setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public void setO1(InvalidOperationException o1) { + this.o1 = o1; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetO1() { + this.o1 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } } - public MetaException getO1() { - return this.o1; + public MetaException getO2() { + return this.o2; } - public void setO1(MetaException o1) { - this.o1 = o1; + public void setO2(MetaException o2) { + this.o2 = o2; } - public void unsetO1() { - this.o1 = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != 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 setO1IsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.o1 = null; + this.o2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((Boolean)value); + setO1((InvalidOperationException)value); } break; - case O1: + case O2: if (value == null) { - unsetO1(); + unsetO2(); } else { - setO1((MetaException)value); + setO2((MetaException)value); } break; @@ -107364,12 +107791,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return isSuccess(); - case O1: return getO1(); + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -107381,10 +107808,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -107393,24 +107820,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_has_valid_characters_result) - return this.equals((partition_name_has_valid_characters_result)that); + if (that instanceof alter_partition_with_environment_context_result) + return this.equals((alter_partition_with_environment_context_result)that); return false; } - public boolean equals(partition_name_has_valid_characters_result that) { + public boolean equals(alter_partition_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -107420,6 +107838,15 @@ public boolean equals(partition_name_has_valid_characters_result that) { return false; } + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + return true; } @@ -107427,43 +107854,43 @@ public boolean equals(partition_name_has_valid_characters_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) 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(partition_name_has_valid_characters_result other) { + public int compareTo(alter_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); if (lastComparison != 0) { return lastComparison; } @@ -107485,13 +107912,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_has_valid_characters_result("); + StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_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"); @@ -107499,6 +107922,14 @@ public String toString() { sb.append(this.o1); } first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; sb.append(")"); return sb.toString(); } @@ -107518,23 +107949,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 partition_name_has_valid_characters_resultStandardSchemeFactory implements SchemeFactory { - public partition_name_has_valid_characters_resultStandardScheme getScheme() { - return new partition_name_has_valid_characters_resultStandardScheme(); + private static class alter_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public alter_partition_with_environment_context_resultStandardScheme getScheme() { + return new alter_partition_with_environment_context_resultStandardScheme(); } } - private static class partition_name_has_valid_characters_resultStandardScheme extends StandardScheme { + private static class alter_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107544,19 +107973,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new InvalidOperationException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -107570,90 +108000,97 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_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(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class partition_name_has_valid_characters_resultTupleSchemeFactory implements SchemeFactory { - public partition_name_has_valid_characters_resultTupleScheme getScheme() { - return new partition_name_has_valid_characters_resultTupleScheme(); + private static class alter_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public alter_partition_with_environment_context_resultTupleScheme getScheme() { + return new alter_partition_with_environment_context_resultTupleScheme(); } } - private static class partition_name_has_valid_characters_resultTupleScheme extends TupleScheme { + private static class alter_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - public static class get_config_value_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_config_value_args"); + public static class rename_partition_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("rename_partition_args"); - 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)1); - private static final org.apache.thrift.protocol.TField DEFAULT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultValue", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_config_value_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_config_value_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new rename_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new rename_partition_argsTupleSchemeFactory()); } - private String name; // required - private String defaultValue; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private Partition new_part; // 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 { - NAME((short)1, "name"), - DEFAULT_VALUE((short)2, "defaultValue"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + NEW_PART((short)4, "new_part"); private static final Map byName = new HashMap(); @@ -107668,10 +108105,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; - case 2: // DEFAULT_VALUE - return DEFAULT_VALUE; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // NEW_PART + return NEW_PART; default: return null; } @@ -107715,109 +108156,204 @@ 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DEFAULT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("defaultValue", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(rename_partition_args.class, metaDataMap); } - public get_config_value_args() { + public rename_partition_args() { } - public get_config_value_args( - String name, - String defaultValue) + public rename_partition_args( + String db_name, + String tbl_name, + List part_vals, + Partition new_part) { this(); - this.name = name; - this.defaultValue = defaultValue; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.new_part = new_part; } /** * Performs a deep copy on other. */ - public get_config_value_args(get_config_value_args other) { - if (other.isSetName()) { - this.name = other.name; + public rename_partition_args(rename_partition_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetDefaultValue()) { - this.defaultValue = other.defaultValue; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; + } + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } } - public get_config_value_args deepCopy() { - return new get_config_value_args(this); + public rename_partition_args deepCopy() { + return new rename_partition_args(this); } @Override public void clear() { - this.name = null; - this.defaultValue = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.new_part = null; } - public String getName() { - return this.name; + public String getDb_name() { + return this.db_name; } - public void setName(String name) { - this.name = name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetName() { - this.name = null; + public void unsetDb_name() { + this.db_name = 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 db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setNameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.name = null; + this.db_name = null; } } - public String getDefaultValue() { - return this.defaultValue; + public String getTbl_name() { + return this.tbl_name; } - public void setDefaultValue(String defaultValue) { - this.defaultValue = defaultValue; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetDefaultValue() { - this.defaultValue = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field defaultValue is set (has been assigned a value) and false otherwise */ - public boolean isSetDefaultValue() { - return this.defaultValue != 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 setDefaultValueIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.defaultValue = null; + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public Partition getNew_part() { + return this.new_part; + } + + public void setNew_part(Partition new_part) { + this.new_part = new_part; + } + + public void unsetNew_part() { + this.new_part = null; + } + + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; + } + + public void setNew_partIsSet(boolean value) { + if (!value) { + this.new_part = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NAME: + case DB_NAME: if (value == null) { - unsetName(); + unsetDb_name(); } else { - setName((String)value); + setDb_name((String)value); } break; - case DEFAULT_VALUE: + case TBL_NAME: if (value == null) { - unsetDefaultValue(); + unsetTbl_name(); } else { - setDefaultValue((String)value); + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case NEW_PART: + if (value == null) { + unsetNew_part(); + } else { + setNew_part((Partition)value); } break; @@ -107826,11 +108362,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); + case DB_NAME: + return getDb_name(); - case DEFAULT_VALUE: - return getDefaultValue(); + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case NEW_PART: + return getNew_part(); } throw new IllegalStateException(); @@ -107843,10 +108385,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case NAME: - return isSetName(); - case DEFAULT_VALUE: - return isSetDefaultValue(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case NEW_PART: + return isSetNew_part(); } throw new IllegalStateException(); } @@ -107855,30 +108401,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_config_value_args) - return this.equals((get_config_value_args)that); + if (that instanceof rename_partition_args) + return this.equals((rename_partition_args)that); return false; } - public boolean equals(get_config_value_args that) { + public boolean equals(rename_partition_args that) { if (that == null) 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)) + 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.name.equals(that.name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_defaultValue = true && this.isSetDefaultValue(); - boolean that_present_defaultValue = true && that.isSetDefaultValue(); - if (this_present_defaultValue || that_present_defaultValue) { - if (!(this_present_defaultValue && that_present_defaultValue)) + 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.defaultValue.equals(that.defaultValue)) + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) + return false; + if (!this.new_part.equals(that.new_part)) return false; } @@ -107889,43 +108453,73 @@ public boolean equals(get_config_value_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_defaultValue = true && (isSetDefaultValue()); - list.add(present_defaultValue); - if (present_defaultValue) - list.add(defaultValue); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_new_part = true && (isSetNew_part()); + list.add(present_new_part); + if (present_new_part) + list.add(new_part); return list.hashCode(); } @Override - public int compareTo(get_config_value_args other) { + public int compareTo(rename_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(other.isSetDefaultValue()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDefaultValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, other.defaultValue); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); if (lastComparison != 0) { return lastComparison; } @@ -107947,22 +108541,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_config_value_args("); + StringBuilder sb = new StringBuilder("rename_partition_args("); boolean first = true; - sb.append("name:"); - if (this.name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("defaultValue:"); - if (this.defaultValue == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.defaultValue); + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("new_part:"); + if (this.new_part == null) { + sb.append("null"); + } else { + sb.append(this.new_part); } first = false; sb.append(")"); @@ -107972,6 +108582,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_part != null) { + new_part.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -107990,15 +108603,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_config_value_argsStandardSchemeFactory implements SchemeFactory { - public get_config_value_argsStandardScheme getScheme() { - return new get_config_value_argsStandardScheme(); + private static class rename_partition_argsStandardSchemeFactory implements SchemeFactory { + public rename_partition_argsStandardScheme getScheme() { + return new rename_partition_argsStandardScheme(); } } - private static class get_config_value_argsStandardScheme extends StandardScheme { + private static class rename_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -108008,18 +108621,45 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_ar break; } switch (schemeField.id) { - case 1: // NAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // DEFAULT_VALUE + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.defaultValue = iprot.readString(); - struct.setDefaultValueIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1112 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1112.size); + String _elem1113; + for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) + { + _elem1113 = iprot.readString(); + struct.part_vals.add(_elem1113); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // NEW_PART + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -108033,18 +108673,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_config_value_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.defaultValue != null) { - oprot.writeFieldBegin(DEFAULT_VALUE_FIELD_DESC); - oprot.writeString(struct.defaultValue); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + 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 _iter1115 : struct.part_vals) + { + oprot.writeString(_iter1115); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -108053,69 +108710,105 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_config_value_a } - private static class get_config_value_argsTupleSchemeFactory implements SchemeFactory { - public get_config_value_argsTupleScheme getScheme() { - return new get_config_value_argsTupleScheme(); + private static class rename_partition_argsTupleSchemeFactory implements SchemeFactory { + public rename_partition_argsTupleScheme getScheme() { + return new rename_partition_argsTupleScheme(); } } - private static class get_config_value_argsTupleScheme extends TupleScheme { + private static class rename_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_config_value_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetDefaultValue()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetName()) { - oprot.writeString(struct.name); + if (struct.isSetPart_vals()) { + optionals.set(2); } - if (struct.isSetDefaultValue()) { - oprot.writeString(struct.defaultValue); + if (struct.isSetNew_part()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1116 : struct.part_vals) + { + oprot.writeString(_iter1116); + } + } + } + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.defaultValue = iprot.readString(); - struct.setDefaultValueIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list1117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1117.size); + String _elem1118; + for (int _i1119 = 0; _i1119 < _list1117.size; ++_i1119) + { + _elem1118 = iprot.readString(); + struct.part_vals.add(_elem1118); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } } } } - public static class get_config_value_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_config_value_result"); + public static class rename_partition_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("rename_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (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_config_value_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_config_value_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new rename_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new rename_partition_resultTupleSchemeFactory()); } - private String success; // required - private ConfigValSecurityException o1; // required + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -108130,10 +108823,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_arg */ 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; } @@ -108177,109 +108870,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(rename_partition_result.class, metaDataMap); } - public get_config_value_result() { + public rename_partition_result() { } - public get_config_value_result( - String success, - ConfigValSecurityException o1) + public rename_partition_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_config_value_result(get_config_value_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public rename_partition_result(rename_partition_result other) { if (other.isSetO1()) { - this.o1 = new ConfigValSecurityException(other.o1); + this.o1 = new InvalidOperationException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); } } - public get_config_value_result deepCopy() { - return new get_config_value_result(this); + public rename_partition_result deepCopy() { + return new rename_partition_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; + this.o2 = null; } - public String getSuccess() { - return this.success; + public InvalidOperationException getO1() { + return this.o1; } - public void setSuccess(String success) { - this.success = success; + public void setO1(InvalidOperationException o1) { + this.o1 = o1; } - public void unsetSuccess() { - this.success = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setSuccessIsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.success = null; + this.o1 = null; } } - public ConfigValSecurityException getO1() { - return this.o1; + public MetaException getO2() { + return this.o2; } - public void setO1(ConfigValSecurityException o1) { - this.o1 = o1; + public void setO2(MetaException o2) { + this.o2 = o2; } - public void unsetO1() { - this.o1 = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != 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 setO1IsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.o1 = null; + this.o2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((String)value); + setO1((InvalidOperationException)value); } break; - case O1: + case O2: if (value == null) { - unsetO1(); + unsetO2(); } else { - setO1((ConfigValSecurityException)value); + setO2((MetaException)value); } break; @@ -108288,12 +108981,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -108305,10 +108998,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -108317,24 +109010,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_config_value_result) - return this.equals((get_config_value_result)that); + if (that instanceof rename_partition_result) + return this.equals((rename_partition_result)that); return false; } - public boolean equals(get_config_value_result that) { + public boolean equals(rename_partition_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) { @@ -108344,6 +109028,15 @@ public boolean equals(get_config_value_result that) { return false; } + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + return true; } @@ -108351,43 +109044,43 @@ public boolean equals(get_config_value_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) list.add(o1); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + return list.hashCode(); } @Override - public int compareTo(get_config_value_result other) { + public int compareTo(rename_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); if (lastComparison != 0) { return lastComparison; } @@ -108409,22 +109102,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_config_value_result("); + StringBuilder sb = new StringBuilder("rename_partition_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.o1); } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { + sb.append("o2:"); + if (this.o2 == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.o2); } first = false; sb.append(")"); @@ -108452,15 +109145,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_config_value_resultStandardSchemeFactory implements SchemeFactory { - public get_config_value_resultStandardScheme getScheme() { - return new get_config_value_resultStandardScheme(); + private static class rename_partition_resultStandardSchemeFactory implements SchemeFactory { + public rename_partition_resultStandardScheme getScheme() { + return new rename_partition_resultStandardScheme(); } } - private static class get_config_value_resultStandardScheme extends StandardScheme { + private static class rename_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -108470,19 +109163,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_re break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new InvalidOperationException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new ConfigValSecurityException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -108496,87 +109190,91 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_config_value_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeString(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(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_config_value_resultTupleSchemeFactory implements SchemeFactory { - public get_config_value_resultTupleScheme getScheme() { - return new get_config_value_resultTupleScheme(); + private static class rename_partition_resultTupleSchemeFactory implements SchemeFactory { + public rename_partition_resultTupleScheme getScheme() { + return new rename_partition_resultTupleScheme(); } } - private static class get_config_value_resultTupleScheme extends TupleScheme { + private static class rename_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_config_value_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeString(struct.success); - } if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new ConfigValSecurityException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - public static class partition_name_to_vals_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("partition_name_to_vals_args"); + public static class partition_name_has_valid_characters_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("partition_name_has_valid_characters_args"); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField THROW_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("throw_exception", org.apache.thrift.protocol.TType.BOOL, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new partition_name_to_vals_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_to_vals_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new partition_name_has_valid_characters_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_has_valid_characters_argsTupleSchemeFactory()); } - private String part_name; // required + private List part_vals; // required + private boolean throw_exception; // 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 { - PART_NAME((short)1, "part_name"); + PART_VALS((short)1, "part_vals"), + THROW_EXCEPTION((short)2, "throw_exception"); private static final Map byName = new HashMap(); @@ -108591,8 +109289,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PART_NAME - return PART_NAME; + case 1: // PART_VALS + return PART_VALS; + case 2: // THROW_EXCEPTION + return THROW_EXCEPTION; default: return null; } @@ -108633,73 +109333,131 @@ public String getFieldName() { } // isset id assignments + private static final int __THROW_EXCEPTION_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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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.THROW_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("throw_exception", 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(partition_name_to_vals_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_has_valid_characters_args.class, metaDataMap); } - public partition_name_to_vals_args() { + public partition_name_has_valid_characters_args() { } - public partition_name_to_vals_args( - String part_name) + public partition_name_has_valid_characters_args( + List part_vals, + boolean throw_exception) { this(); - this.part_name = part_name; + this.part_vals = part_vals; + this.throw_exception = throw_exception; + setThrow_exceptionIsSet(true); } /** * Performs a deep copy on other. */ - public partition_name_to_vals_args(partition_name_to_vals_args other) { - if (other.isSetPart_name()) { - this.part_name = other.part_name; + public partition_name_has_valid_characters_args(partition_name_has_valid_characters_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(other.part_vals); + this.part_vals = __this__part_vals; } + this.throw_exception = other.throw_exception; } - public partition_name_to_vals_args deepCopy() { - return new partition_name_to_vals_args(this); + public partition_name_has_valid_characters_args deepCopy() { + return new partition_name_has_valid_characters_args(this); } @Override public void clear() { - this.part_name = null; + this.part_vals = null; + setThrow_exceptionIsSet(false); + this.throw_exception = false; } - public String getPart_name() { - return this.part_name; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setPart_name(String part_name) { - this.part_name = part_name; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetPart_name() { - this.part_name = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + public List getPart_vals() { + return this.part_vals; } - public void setPart_nameIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.part_name = null; + this.part_vals = null; } } + public boolean isThrow_exception() { + return this.throw_exception; + } + + public void setThrow_exception(boolean throw_exception) { + this.throw_exception = throw_exception; + setThrow_exceptionIsSet(true); + } + + public void unsetThrow_exception() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID); + } + + /** Returns true if field throw_exception is set (has been assigned a value) and false otherwise */ + public boolean isSetThrow_exception() { + return EncodingUtils.testBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID); + } + + public void setThrow_exceptionIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __THROW_EXCEPTION_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case PART_NAME: + case PART_VALS: if (value == null) { - unsetPart_name(); + unsetPart_vals(); } else { - setPart_name((String)value); + setPart_vals((List)value); + } + break; + + case THROW_EXCEPTION: + if (value == null) { + unsetThrow_exception(); + } else { + setThrow_exception((Boolean)value); } break; @@ -108708,8 +109466,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PART_NAME: - return getPart_name(); + case PART_VALS: + return getPart_vals(); + + case THROW_EXCEPTION: + return isThrow_exception(); } throw new IllegalStateException(); @@ -108722,8 +109483,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case PART_NAME: - return isSetPart_name(); + case PART_VALS: + return isSetPart_vals(); + case THROW_EXCEPTION: + return isSetThrow_exception(); } throw new IllegalStateException(); } @@ -108732,21 +109495,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_to_vals_args) - return this.equals((partition_name_to_vals_args)that); + if (that instanceof partition_name_has_valid_characters_args) + return this.equals((partition_name_has_valid_characters_args)that); return false; } - public boolean equals(partition_name_to_vals_args that) { + public boolean equals(partition_name_has_valid_characters_args that) { if (that == null) return false; - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_throw_exception = true; + boolean that_present_throw_exception = true; + if (this_present_throw_exception || that_present_throw_exception) { + if (!(this_present_throw_exception && that_present_throw_exception)) + return false; + if (this.throw_exception != that.throw_exception) return false; } @@ -108757,28 +109529,43 @@ public boolean equals(partition_name_to_vals_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_throw_exception = true; + list.add(present_throw_exception); + if (present_throw_exception) + list.add(throw_exception); return list.hashCode(); } @Override - public int compareTo(partition_name_to_vals_args other) { + public int compareTo(partition_name_has_valid_characters_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(other.isSetThrow_exception()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetThrow_exception()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, other.throw_exception); if (lastComparison != 0) { return lastComparison; } @@ -108800,16 +109587,20 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_to_vals_args("); + StringBuilder sb = new StringBuilder("partition_name_has_valid_characters_args("); boolean first = true; - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.part_vals); } first = false; + if (!first) sb.append(", "); + sb.append("throw_exception:"); + sb.append(this.throw_exception); + first = false; sb.append(")"); return sb.toString(); } @@ -108829,21 +109620,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 partition_name_to_vals_argsStandardSchemeFactory implements SchemeFactory { - public partition_name_to_vals_argsStandardScheme getScheme() { - return new partition_name_to_vals_argsStandardScheme(); + private static class partition_name_has_valid_characters_argsStandardSchemeFactory implements SchemeFactory { + public partition_name_has_valid_characters_argsStandardScheme getScheme() { + return new partition_name_has_valid_characters_argsStandardScheme(); } } - private static class partition_name_to_vals_argsStandardScheme extends StandardScheme { + private static class partition_name_has_valid_characters_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -108853,10 +109646,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v break; } switch (schemeField.id) { - case 1: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 1: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1120 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1120.size); + String _elem1121; + for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) + { + _elem1121 = iprot.readString(); + struct.part_vals.add(_elem1121); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // THROW_EXCEPTION + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.throw_exception = iprot.readBool(); + struct.setThrow_exceptionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -108870,68 +109681,103 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.part_vals != null) { + 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 _iter1123 : struct.part_vals) + { + oprot.writeString(_iter1123); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(THROW_EXCEPTION_FIELD_DESC); + oprot.writeBool(struct.throw_exception); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class partition_name_to_vals_argsTupleSchemeFactory implements SchemeFactory { - public partition_name_to_vals_argsTupleScheme getScheme() { - return new partition_name_to_vals_argsTupleScheme(); + private static class partition_name_has_valid_characters_argsTupleSchemeFactory implements SchemeFactory { + public partition_name_has_valid_characters_argsTupleScheme getScheme() { + return new partition_name_has_valid_characters_argsTupleScheme(); } } - private static class partition_name_to_vals_argsTupleScheme extends TupleScheme { + private static class partition_name_has_valid_characters_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPart_name()) { + if (struct.isSetPart_vals()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetThrow_exception()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter1124 : struct.part_vals) + { + oprot.writeString(_iter1124); + } + } + } + if (struct.isSetThrow_exception()) { + oprot.writeBool(struct.throw_exception); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1125.size); + String _elem1126; + for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) + { + _elem1126 = iprot.readString(); + struct.part_vals.add(_elem1126); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(1)) { + struct.throw_exception = iprot.readBool(); + struct.setThrow_exceptionIsSet(true); } } } } - public static class partition_name_to_vals_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("partition_name_to_vals_result"); + public static class partition_name_has_valid_characters_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("partition_name_has_valid_characters_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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new partition_name_to_vals_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_to_vals_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new partition_name_has_valid_characters_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_has_valid_characters_resultTupleSchemeFactory()); } - private List success; // required + private boolean success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -108996,89 +109842,74 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_vals_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_has_valid_characters_result.class, metaDataMap); } - public partition_name_to_vals_result() { + public partition_name_has_valid_characters_result() { } - public partition_name_to_vals_result( - List success, + public partition_name_has_valid_characters_result( + boolean success, MetaException o1) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; } /** * Performs a deep copy on other. */ - public partition_name_to_vals_result(partition_name_to_vals_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; - } + public partition_name_has_valid_characters_result(partition_name_has_valid_characters_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public partition_name_to_vals_result deepCopy() { - return new partition_name_to_vals_result(this); + public partition_name_has_valid_characters_result deepCopy() { + return new partition_name_has_valid_characters_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; 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() { + public boolean isSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public MetaException getO1() { @@ -109110,7 +109941,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Boolean)value); } break; @@ -109128,7 +109959,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -109156,21 +109987,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_to_vals_result) - return this.equals((partition_name_to_vals_result)that); + if (that instanceof partition_name_has_valid_characters_result) + return this.equals((partition_name_has_valid_characters_result)that); return false; } - public boolean equals(partition_name_to_vals_result that) { + public boolean equals(partition_name_has_valid_characters_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -109190,7 +110021,7 @@ public boolean equals(partition_name_to_vals_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -109204,7 +110035,7 @@ public int hashCode() { } @Override - public int compareTo(partition_name_to_vals_result other) { + public int compareTo(partition_name_has_valid_characters_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -109248,15 +110079,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_to_vals_result("); + StringBuilder sb = new StringBuilder("partition_name_has_valid_characters_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -109285,21 +110112,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 partition_name_to_vals_resultStandardSchemeFactory implements SchemeFactory { - public partition_name_to_vals_resultStandardScheme getScheme() { - return new partition_name_to_vals_resultStandardScheme(); + private static class partition_name_has_valid_characters_resultStandardSchemeFactory implements SchemeFactory { + public partition_name_has_valid_characters_resultStandardScheme getScheme() { + return new partition_name_has_valid_characters_resultStandardScheme(); } } - private static class partition_name_to_vals_resultStandardScheme extends StandardScheme { + private static class partition_name_has_valid_characters_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -109310,18 +110139,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); - struct.success = new ArrayList(_list1080.size); - String _elem1081; - for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) - { - _elem1081 = iprot.readString(); - struct.success.add(_elem1081); - } - iprot.readListEnd(); - } + 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); @@ -109345,20 +110164,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1083 : struct.success) - { - oprot.writeString(_iter1083); - } - oprot.writeListEnd(); - } + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -109372,16 +110184,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ } - private static class partition_name_to_vals_resultTupleSchemeFactory implements SchemeFactory { - public partition_name_to_vals_resultTupleScheme getScheme() { - return new partition_name_to_vals_resultTupleScheme(); + private static class partition_name_has_valid_characters_resultTupleSchemeFactory implements SchemeFactory { + public partition_name_has_valid_characters_resultTupleScheme getScheme() { + return new partition_name_has_valid_characters_resultTupleScheme(); } } - private static class partition_name_to_vals_resultTupleScheme extends TupleScheme { + private static class partition_name_has_valid_characters_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -109392,13 +110204,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1084 : struct.success) - { - oprot.writeString(_iter1084); - } - } + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -109406,20 +110212,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_valid_characters_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 _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1085.size); - String _elem1086; - for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) - { - _elem1086 = iprot.readString(); - struct.success.add(_elem1086); - } - } + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -109432,22 +110229,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va } - public static class partition_name_to_spec_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("partition_name_to_spec_args"); + public static class get_config_value_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_config_value_args"); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", 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)1); + private static final org.apache.thrift.protocol.TField DEFAULT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultValue", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new partition_name_to_spec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_to_spec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_config_value_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_config_value_argsTupleSchemeFactory()); } - private String part_name; // required + private String name; // required + private String defaultValue; // 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 { - PART_NAME((short)1, "part_name"); + NAME((short)1, "name"), + DEFAULT_VALUE((short)2, "defaultValue"); private static final Map byName = new HashMap(); @@ -109462,8 +110262,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PART_NAME - return PART_NAME; + case 1: // NAME + return NAME; + case 2: // DEFAULT_VALUE + return DEFAULT_VALUE; default: return null; } @@ -109507,70 +110309,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", 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.DEFAULT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("defaultValue", 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(partition_name_to_spec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_args.class, metaDataMap); } - public partition_name_to_spec_args() { + public get_config_value_args() { } - public partition_name_to_spec_args( - String part_name) + public get_config_value_args( + String name, + String defaultValue) { this(); - this.part_name = part_name; - } + this.name = name; + this.defaultValue = defaultValue; + } /** * Performs a deep copy on other. */ - public partition_name_to_spec_args(partition_name_to_spec_args other) { - if (other.isSetPart_name()) { - this.part_name = other.part_name; + public get_config_value_args(get_config_value_args other) { + if (other.isSetName()) { + this.name = other.name; + } + if (other.isSetDefaultValue()) { + this.defaultValue = other.defaultValue; } } - public partition_name_to_spec_args deepCopy() { - return new partition_name_to_spec_args(this); + public get_config_value_args deepCopy() { + return new get_config_value_args(this); } @Override public void clear() { - this.part_name = null; + this.name = null; + this.defaultValue = null; } - public String getPart_name() { - return this.part_name; + public String getName() { + return this.name; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setName(String name) { + this.name = name; } - public void unsetPart_name() { - this.part_name = null; + public void unsetName() { + this.name = null; } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != 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 setPart_nameIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.part_name = null; + this.name = null; + } + } + + public String getDefaultValue() { + return this.defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public void unsetDefaultValue() { + this.defaultValue = null; + } + + /** Returns true if field defaultValue is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultValue() { + return this.defaultValue != null; + } + + public void setDefaultValueIsSet(boolean value) { + if (!value) { + this.defaultValue = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PART_NAME: + case NAME: if (value == null) { - unsetPart_name(); + unsetName(); } else { - setPart_name((String)value); + setName((String)value); + } + break; + + case DEFAULT_VALUE: + if (value == null) { + unsetDefaultValue(); + } else { + setDefaultValue((String)value); } break; @@ -109579,8 +110420,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PART_NAME: - return getPart_name(); + case NAME: + return getName(); + + case DEFAULT_VALUE: + return getDefaultValue(); } throw new IllegalStateException(); @@ -109593,8 +110437,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case PART_NAME: - return isSetPart_name(); + case NAME: + return isSetName(); + case DEFAULT_VALUE: + return isSetDefaultValue(); } throw new IllegalStateException(); } @@ -109603,21 +110449,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_to_spec_args) - return this.equals((partition_name_to_spec_args)that); + if (that instanceof get_config_value_args) + return this.equals((get_config_value_args)that); return false; } - public boolean equals(partition_name_to_spec_args that) { + public boolean equals(get_config_value_args that) { if (that == null) return false; - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + 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.part_name.equals(that.part_name)) + if (!this.name.equals(that.name)) + return false; + } + + boolean this_present_defaultValue = true && this.isSetDefaultValue(); + boolean that_present_defaultValue = true && that.isSetDefaultValue(); + if (this_present_defaultValue || that_present_defaultValue) { + if (!(this_present_defaultValue && that_present_defaultValue)) + return false; + if (!this.defaultValue.equals(that.defaultValue)) return false; } @@ -109628,28 +110483,43 @@ public boolean equals(partition_name_to_spec_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_name = true && (isSetName()); + list.add(present_name); + if (present_name) + list.add(name); + + boolean present_defaultValue = true && (isSetDefaultValue()); + list.add(present_defaultValue); + if (present_defaultValue) + list.add(defaultValue); return list.hashCode(); } @Override - public int compareTo(partition_name_to_spec_args other) { + public int compareTo(get_config_value_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(other.isSetDefaultValue()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultValue()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, other.defaultValue); if (lastComparison != 0) { return lastComparison; } @@ -109671,14 +110541,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_to_spec_args("); + StringBuilder sb = new StringBuilder("get_config_value_args("); boolean first = true; - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.name); + } + first = false; + if (!first) sb.append(", "); + sb.append("defaultValue:"); + if (this.defaultValue == null) { + sb.append("null"); + } else { + sb.append(this.defaultValue); } first = false; sb.append(")"); @@ -109706,15 +110584,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class partition_name_to_spec_argsStandardSchemeFactory implements SchemeFactory { - public partition_name_to_spec_argsStandardScheme getScheme() { - return new partition_name_to_spec_argsStandardScheme(); + private static class get_config_value_argsStandardSchemeFactory implements SchemeFactory { + public get_config_value_argsStandardScheme getScheme() { + return new get_config_value_argsStandardScheme(); } } - private static class partition_name_to_spec_argsStandardScheme extends StandardScheme { + private static class get_config_value_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -109724,10 +110602,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s break; } switch (schemeField.id) { - case 1: // PART_NAME + case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DEFAULT_VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.defaultValue = iprot.readString(); + struct.setDefaultValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -109741,13 +110627,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_config_value_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + if (struct.defaultValue != null) { + oprot.writeFieldBegin(DEFAULT_VALUE_FIELD_DESC); + oprot.writeString(struct.defaultValue); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -109756,54 +110647,64 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ } - private static class partition_name_to_spec_argsTupleSchemeFactory implements SchemeFactory { - public partition_name_to_spec_argsTupleScheme getScheme() { - return new partition_name_to_spec_argsTupleScheme(); + private static class get_config_value_argsTupleSchemeFactory implements SchemeFactory { + public get_config_value_argsTupleScheme getScheme() { + return new get_config_value_argsTupleScheme(); } } - private static class partition_name_to_spec_argsTupleScheme extends TupleScheme { + private static class get_config_value_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_config_value_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPart_name()) { + if (struct.isSetName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetDefaultValue()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetDefaultValue()) { + oprot.writeString(struct.defaultValue); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(1)) { + struct.defaultValue = iprot.readString(); + struct.setDefaultValueIsSet(true); } } } } - public static class partition_name_to_spec_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("partition_name_to_spec_result"); + public static class get_config_value_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_config_value_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (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 partition_name_to_spec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new partition_name_to_spec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_config_value_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_config_value_resultTupleSchemeFactory()); } - private Map success; // required - private MetaException o1; // required + private String success; // required + private ConfigValSecurityException 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 { @@ -109871,21 +110772,19 @@ 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + 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(partition_name_to_spec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_config_value_result.class, metaDataMap); } - public partition_name_to_spec_result() { + public get_config_value_result() { } - public partition_name_to_spec_result( - Map success, - MetaException o1) + public get_config_value_result( + String success, + ConfigValSecurityException o1) { this(); this.success = success; @@ -109895,18 +110794,17 @@ public partition_name_to_spec_result( /** * Performs a deep copy on other. */ - public partition_name_to_spec_result(partition_name_to_spec_result other) { + public get_config_value_result(get_config_value_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; + this.success = other.success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new ConfigValSecurityException(other.o1); } } - public partition_name_to_spec_result deepCopy() { - return new partition_name_to_spec_result(this); + public get_config_value_result deepCopy() { + return new get_config_value_result(this); } @Override @@ -109915,22 +110813,11 @@ public void clear() { this.o1 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { + public String getSuccess() { return this.success; } - public void setSuccess(Map success) { + public void setSuccess(String success) { this.success = success; } @@ -109949,11 +110836,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public ConfigValSecurityException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(ConfigValSecurityException o1) { this.o1 = o1; } @@ -109978,7 +110865,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((String)value); } break; @@ -109986,7 +110873,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((ConfigValSecurityException)value); } break; @@ -110024,12 +110911,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof partition_name_to_spec_result) - return this.equals((partition_name_to_spec_result)that); + if (that instanceof get_config_value_result) + return this.equals((get_config_value_result)that); return false; } - public boolean equals(partition_name_to_spec_result that) { + public boolean equals(get_config_value_result that) { if (that == null) return false; @@ -110072,7 +110959,7 @@ public int hashCode() { } @Override - public int compareTo(partition_name_to_spec_result other) { + public int compareTo(get_config_value_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -110116,7 +111003,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("partition_name_to_spec_result("); + StringBuilder sb = new StringBuilder("get_config_value_result("); boolean first = true; sb.append("success:"); @@ -110159,15 +111046,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class partition_name_to_spec_resultStandardSchemeFactory implements SchemeFactory { - public partition_name_to_spec_resultStandardScheme getScheme() { - return new partition_name_to_spec_resultStandardScheme(); + private static class get_config_value_resultStandardSchemeFactory implements SchemeFactory { + public get_config_value_resultStandardScheme getScheme() { + return new get_config_value_resultStandardScheme(); } } - private static class partition_name_to_spec_resultStandardScheme extends StandardScheme { + private static class get_config_value_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_config_value_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -110178,20 +111065,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map1088 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1088.size); - String _key1089; - String _val1090; - for (int _i1091 = 0; _i1091 < _map1088.size; ++_i1091) - { - _key1089 = iprot.readString(); - _val1090 = iprot.readString(); - struct.success.put(_key1089, _val1090); - } - iprot.readMapEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -110199,7 +111074,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new ConfigValSecurityException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -110215,21 +111090,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_config_value_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { 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 _iter1092 : struct.success.entrySet()) - { - oprot.writeString(_iter1092.getKey()); - oprot.writeString(_iter1092.getValue()); - } - oprot.writeMapEnd(); - } + oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -110243,16 +111110,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ } - private static class partition_name_to_spec_resultTupleSchemeFactory implements SchemeFactory { - public partition_name_to_spec_resultTupleScheme getScheme() { - return new partition_name_to_spec_resultTupleScheme(); + private static class get_config_value_resultTupleSchemeFactory implements SchemeFactory { + public get_config_value_resultTupleScheme getScheme() { + return new get_config_value_resultTupleScheme(); } } - private static class partition_name_to_spec_resultTupleScheme extends TupleScheme { + private static class get_config_value_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_config_value_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -110263,14 +111130,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1093 : struct.success.entrySet()) - { - oprot.writeString(_iter1093.getKey()); - oprot.writeString(_iter1093.getValue()); - } - } + oprot.writeString(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -110278,26 +111138,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map1094 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map1094.size); - String _key1095; - String _val1096; - for (int _i1097 = 0; _i1097 < _map1094.size; ++_i1097) - { - _key1095 = iprot.readString(); - _val1096 = iprot.readString(); - struct.success.put(_key1095, _val1096); - } - } + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new ConfigValSecurityException(); struct.o1.read(iprot); struct.setO1IsSet(true); } @@ -110306,35 +111155,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp } - public static class markPartitionForEvent_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("markPartitionForEvent_args"); + public static class partition_name_to_vals_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("partition_name_to_vals_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new markPartitionForEvent_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new markPartitionForEvent_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new partition_name_to_vals_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_to_vals_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private Map part_vals; // required - private PartitionEventType eventType; // required + private String part_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"), - PART_VALS((short)3, "part_vals"), - /** - * - * @see PartitionEventType - */ - EVENT_TYPE((short)4, "eventType"); + PART_NAME((short)1, "part_name"); private static final Map byName = new HashMap(); @@ -110349,14 +111185,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // EVENT_TYPE - return EVENT_TYPE; + case 1: // PART_NAME + return PART_NAME; default: return null; } @@ -110400,209 +111230,489 @@ 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, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartitionForEvent_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_to_vals_args.class, metaDataMap); } - public markPartitionForEvent_args() { + public partition_name_to_vals_args() { } - public markPartitionForEvent_args( - String db_name, - String tbl_name, - Map part_vals, - PartitionEventType eventType) + public partition_name_to_vals_args( + String part_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.eventType = eventType; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public markPartitionForEvent_args(markPartitionForEvent_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); - this.part_vals = __this__part_vals; - } - if (other.isSetEventType()) { - this.eventType = other.eventType; + public partition_name_to_vals_args(partition_name_to_vals_args other) { + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public markPartitionForEvent_args deepCopy() { - return new markPartitionForEvent_args(this); + public partition_name_to_vals_args deepCopy() { + return new partition_name_to_vals_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.eventType = null; + this.part_name = null; } - public String getDb_name() { - return this.db_name; + public String getPart_name() { + return this.part_name; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetDb_name() { - this.db_name = null; + public void unsetPart_name() { + this.part_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; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setDb_nameIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.db_name = null; + this.part_name = null; } } - public String getTbl_name() { - return this.tbl_name; + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PART_NAME: + if (value == null) { + unsetPart_name(); + } else { + setPart_name((String)value); + } + break; + + } } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public Object getFieldValue(_Fields field) { + switch (field) { + case PART_NAME: + return getPart_name(); + + } + throw new IllegalStateException(); } - public void unsetTbl_name() { - this.tbl_name = null; + /** 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 PART_NAME: + return isSetPart_name(); + } + throw new IllegalStateException(); } - /** 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; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof partition_name_to_vals_args) + return this.equals((partition_name_to_vals_args)that); + return false; } - public void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; + public boolean equals(partition_name_to_vals_args that) { + if (that == null) + return false; + + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) + return false; + if (!this.part_name.equals(that.part_name)) + return false; } + + return true; } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); + + return list.hashCode(); } - public void putToPart_vals(String key, String val) { - if (this.part_vals == null) { - this.part_vals = new HashMap(); + @Override + public int compareTo(partition_name_to_vals_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - this.part_vals.put(key, val); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public Map getPart_vals() { - return this.part_vals; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - public void setPart_vals(Map part_vals) { - this.part_vals = part_vals; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void unsetPart_vals() { - this.part_vals = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + @Override + public String toString() { + StringBuilder sb = new StringBuilder("partition_name_to_vals_args("); + boolean first = true; + + sb.append("part_name:"); + if (this.part_name == null) { + sb.append("null"); + } else { + sb.append(this.part_name); + } + first = false; + sb.append(")"); + return sb.toString(); } - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; + 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); } } - /** - * - * @see PartitionEventType - */ - public PartitionEventType getEventType() { - return this.eventType; + 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 partition_name_to_vals_argsStandardSchemeFactory implements SchemeFactory { + public partition_name_to_vals_argsStandardScheme getScheme() { + return new partition_name_to_vals_argsStandardScheme(); + } + } + + private static class partition_name_to_vals_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_vals_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: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_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, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class partition_name_to_vals_argsTupleSchemeFactory implements SchemeFactory { + public partition_name_to_vals_argsTupleScheme getScheme() { + return new partition_name_to_vals_argsTupleScheme(); + } + } + + private static class partition_name_to_vals_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPart_name()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } + } + } + + } + + public static class partition_name_to_vals_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("partition_name_to_vals_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 partition_name_to_vals_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_to_vals_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(partition_name_to_vals_result.class, metaDataMap); + } + + public partition_name_to_vals_result() { + } + + public partition_name_to_vals_result( + List success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; } /** - * - * @see PartitionEventType + * Performs a deep copy on other. */ - public void setEventType(PartitionEventType eventType) { - this.eventType = eventType; + public partition_name_to_vals_result(partition_name_to_vals_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 void unsetEventType() { - this.eventType = null; + public partition_name_to_vals_result deepCopy() { + return new partition_name_to_vals_result(this); } - /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ - public boolean isSetEventType() { - return this.eventType != null; + @Override + public void clear() { + this.success = null; + this.o1 = null; } - public void setEventTypeIsSet(boolean value) { + 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.eventType = null; + this.success = 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 MetaException getO1() { + return this.o1; + } - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; + public void setO1(MetaException o1) { + this.o1 = o1; + } - case PART_VALS: + 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) { - unsetPart_vals(); + unsetSuccess(); } else { - setPart_vals((Map)value); + setSuccess((List)value); } break; - case EVENT_TYPE: + case O1: if (value == null) { - unsetEventType(); + unsetO1(); } else { - setEventType((PartitionEventType)value); + setO1((MetaException)value); } break; @@ -110611,17 +111721,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); + case SUCCESS: + return getSuccess(); - case EVENT_TYPE: - return getEventType(); + case O1: + return getO1(); } throw new IllegalStateException(); @@ -110634,14 +111738,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case EVENT_TYPE: - return isSetEventType(); + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); } throw new IllegalStateException(); } @@ -110650,48 +111750,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof markPartitionForEvent_args) - return this.equals((markPartitionForEvent_args)that); + if (that instanceof partition_name_to_vals_result) + return this.equals((partition_name_to_vals_result)that); return false; } - public boolean equals(markPartitionForEvent_args that) { + public boolean equals(partition_name_to_vals_result that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + 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.part_vals.equals(that.part_vals)) + if (!this.success.equals(that.success)) return false; } - boolean this_present_eventType = true && this.isSetEventType(); - boolean that_present_eventType = true && that.isSetEventType(); - if (this_present_eventType || that_present_eventType) { - if (!(this_present_eventType && that_present_eventType)) + 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.eventType.equals(that.eventType)) + if (!this.o1.equals(that.o1)) return false; } @@ -110702,73 +111784,43 @@ public boolean equals(markPartitionForEvent_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); - boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); - if (present_eventType) - list.add(eventType.getValue()); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); return list.hashCode(); } @Override - public int compareTo(markPartitionForEvent_args other) { + public int compareTo(partition_name_to_vals_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); if (lastComparison != 0) { return lastComparison; } @@ -110786,42 +111838,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.t 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("markPartitionForEvent_args("); + StringBuilder sb = new StringBuilder("partition_name_to_vals_result("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { - sb.append("null"); - } else { - sb.append(this.tbl_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("eventType:"); - if (this.eventType == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.eventType); + sb.append(this.o1); } first = false; sb.append(")"); @@ -110849,15 +111885,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class markPartitionForEvent_argsStandardSchemeFactory implements SchemeFactory { - public markPartitionForEvent_argsStandardScheme getScheme() { - return new markPartitionForEvent_argsStandardScheme(); + private static class partition_name_to_vals_resultStandardSchemeFactory implements SchemeFactory { + public partition_name_to_vals_resultStandardScheme getScheme() { + return new partition_name_to_vals_resultStandardScheme(); } } - private static class markPartitionForEvent_argsStandardScheme extends StandardScheme { + private static class partition_name_to_vals_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -110867,46 +111903,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TMap _map1098 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1098.size); - String _key1099; - String _val1100; - for (int _i1101 = 0; _i1101 < _map1098.size; ++_i1101) + org.apache.thrift.protocol.TList _list1128 = iprot.readListBegin(); + struct.success = new ArrayList(_list1128.size); + String _elem1129; + for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) { - _key1099 = iprot.readString(); - _val1100 = iprot.readString(); - struct.part_vals.put(_key1099, _val1100); + _elem1129 = iprot.readString(); + struct.success.add(_elem1129); } - iprot.readMapEnd(); + iprot.readListEnd(); } - struct.setPart_valsIsSet(true); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // EVENT_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); - struct.setEventTypeIsSet(true); + 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); } @@ -110920,36 +111939,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + if (struct.success != null) { + 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.part_vals.size())); - for (Map.Entry _iter1102 : struct.part_vals.entrySet()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1131 : struct.success) { - oprot.writeString(_iter1102.getKey()); - oprot.writeString(_iter1102.getValue()); + oprot.writeString(_iter1131); } - oprot.writeMapEnd(); + oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.eventType != null) { - oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC); - oprot.writeI32(struct.eventType.getValue()); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -110958,119 +111966,82 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv } - private static class markPartitionForEvent_argsTupleSchemeFactory implements SchemeFactory { - public markPartitionForEvent_argsTupleScheme getScheme() { - return new markPartitionForEvent_argsTupleScheme(); + private static class partition_name_to_vals_resultTupleSchemeFactory implements SchemeFactory { + public partition_name_to_vals_resultTupleScheme getScheme() { + return new partition_name_to_vals_resultTupleScheme(); } } - private static class markPartitionForEvent_argsTupleScheme extends TupleScheme { + private static class partition_name_to_vals_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetPart_vals()) { - optionals.set(2); - } - if (struct.isSetEventType()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_vals()) { + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { { - oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1103 : struct.part_vals.entrySet()) + oprot.writeI32(struct.success.size()); + for (String _iter1132 : struct.success) { - oprot.writeString(_iter1103.getKey()); - oprot.writeString(_iter1103.getValue()); + oprot.writeString(_iter1132); } } } - if (struct.isSetEventType()) { - oprot.writeI32(struct.eventType.getValue()); + if (struct.isSetO1()) { + struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_vals_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1104 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1104.size); - String _key1105; - String _val1106; - for (int _i1107 = 0; _i1107 < _map1104.size; ++_i1107) + org.apache.thrift.protocol.TList _list1133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1133.size); + String _elem1134; + for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135) { - _key1105 = iprot.readString(); - _val1106 = iprot.readString(); - struct.part_vals.put(_key1105, _val1106); + _elem1134 = iprot.readString(); + struct.success.add(_elem1134); } } - struct.setPart_valsIsSet(true); + struct.setSuccessIsSet(true); } - if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); - struct.setEventTypeIsSet(true); + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - public static class markPartitionForEvent_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("markPartitionForEvent_result"); + public static class partition_name_to_spec_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("partition_name_to_spec_args"); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); - private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new markPartitionForEvent_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new markPartitionForEvent_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new partition_name_to_spec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_to_spec_argsTupleSchemeFactory()); } - private MetaException o1; // required - private NoSuchObjectException o2; // required - private UnknownDBException o3; // required - private UnknownTableException o4; // required - private UnknownPartitionException o5; // required - private InvalidPartitionException o6; // required + private String part_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 { - O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"), - O5((short)5, "o5"), - O6((short)6, "o6"); + PART_NAME((short)1, "part_name"); private static final Map byName = new HashMap(); @@ -111085,18 +112056,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // O1 - return O1; - case 2: // O2 - return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; - case 5: // O5 - return O5; - case 6: // O6 - return O6; + case 1: // PART_NAME + return PART_NAME; default: return null; } @@ -111140,85 +112101,4805 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.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))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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(partition_name_to_spec_args.class, metaDataMap); + } + + public partition_name_to_spec_args() { + } + + public partition_name_to_spec_args( + String part_name) + { + this(); + this.part_name = part_name; + } + + /** + * Performs a deep copy on other. + */ + public partition_name_to_spec_args(partition_name_to_spec_args other) { + if (other.isSetPart_name()) { + this.part_name = other.part_name; + } + } + + public partition_name_to_spec_args deepCopy() { + return new partition_name_to_spec_args(this); + } + + @Override + public void clear() { + this.part_name = null; + } + + public String getPart_name() { + return this.part_name; + } + + public void setPart_name(String part_name) { + this.part_name = part_name; + } + + public void unsetPart_name() { + this.part_name = null; + } + + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; + } + + public void setPart_nameIsSet(boolean value) { + if (!value) { + this.part_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PART_NAME: + if (value == null) { + unsetPart_name(); + } else { + setPart_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PART_NAME: + return getPart_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 PART_NAME: + return isSetPart_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof partition_name_to_spec_args) + return this.equals((partition_name_to_spec_args)that); + return false; + } + + public boolean equals(partition_name_to_spec_args that) { + if (that == null) + return false; + + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) + return false; + if (!this.part_name.equals(that.part_name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); + + return list.hashCode(); + } + + @Override + public int compareTo(partition_name_to_spec_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_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("partition_name_to_spec_args("); + boolean first = true; + + sb.append("part_name:"); + if (this.part_name == null) { + sb.append("null"); + } else { + sb.append(this.part_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 partition_name_to_spec_argsStandardSchemeFactory implements SchemeFactory { + public partition_name_to_spec_argsStandardScheme getScheme() { + return new partition_name_to_spec_argsStandardScheme(); + } + } + + private static class partition_name_to_spec_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_spec_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: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_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, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class partition_name_to_spec_argsTupleSchemeFactory implements SchemeFactory { + public partition_name_to_spec_argsTupleScheme getScheme() { + return new partition_name_to_spec_argsTupleScheme(); + } + } + + private static class partition_name_to_spec_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPart_name()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); + } + } + } + + } + + public static class partition_name_to_spec_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("partition_name_to_spec_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new partition_name_to_spec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new partition_name_to_spec_resultTupleSchemeFactory()); + } + + private Map 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.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(partition_name_to_spec_result.class, metaDataMap); + } + + public partition_name_to_spec_result() { + } + + public partition_name_to_spec_result( + Map success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public partition_name_to_spec_result(partition_name_to_spec_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success); + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public partition_name_to_spec_result deepCopy() { + return new partition_name_to_spec_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, String val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { + return this.success; + } + + public void setSuccess(Map 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((Map)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 partition_name_to_spec_result) + return this.equals((partition_name_to_spec_result)that); + return false; + } + + public boolean equals(partition_name_to_spec_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(partition_name_to_spec_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("partition_name_to_spec_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 partition_name_to_spec_resultStandardSchemeFactory implements SchemeFactory { + public partition_name_to_spec_resultStandardScheme getScheme() { + return new partition_name_to_spec_resultStandardScheme(); + } + } + + private static class partition_name_to_spec_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_spec_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.MAP) { + { + org.apache.thrift.protocol.TMap _map1136 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1136.size); + String _key1137; + String _val1138; + for (int _i1139 = 0; _i1139 < _map1136.size; ++_i1139) + { + _key1137 = iprot.readString(); + _val1138 = iprot.readString(); + struct.success.put(_key1137, _val1138); + } + iprot.readMapEnd(); + } + 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, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + 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 _iter1140 : struct.success.entrySet()) + { + oprot.writeString(_iter1140.getKey()); + oprot.writeString(_iter1140.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class partition_name_to_spec_resultTupleSchemeFactory implements SchemeFactory { + public partition_name_to_spec_resultTupleScheme getScheme() { + return new partition_name_to_spec_resultTupleScheme(); + } + } + + private static class partition_name_to_spec_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_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 (Map.Entry _iter1141 : struct.success.entrySet()) + { + oprot.writeString(_iter1141.getKey()); + oprot.writeString(_iter1141.getValue()); + } + } + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_spec_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TMap _map1142 = 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*_map1142.size); + String _key1143; + String _val1144; + for (int _i1145 = 0; _i1145 < _map1142.size; ++_i1145) + { + _key1143 = iprot.readString(); + _val1144 = iprot.readString(); + struct.success.put(_key1143, _val1144); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + public static class markPartitionForEvent_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("markPartitionForEvent_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new markPartitionForEvent_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new markPartitionForEvent_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private Map part_vals; // required + private PartitionEventType eventType; // 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"), + PART_VALS((short)3, "part_vals"), + /** + * + * @see PartitionEventType + */ + EVENT_TYPE((short)4, "eventType"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // EVENT_TYPE + return EVENT_TYPE; + 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))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPartitionForEvent_args.class, metaDataMap); + } + + public markPartitionForEvent_args() { + } + + public markPartitionForEvent_args( + String db_name, + String tbl_name, + Map part_vals, + PartitionEventType eventType) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.eventType = eventType; + } + + /** + * Performs a deep copy on other. + */ + public markPartitionForEvent_args(markPartitionForEvent_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + Map __this__part_vals = new HashMap(other.part_vals); + this.part_vals = __this__part_vals; + } + if (other.isSetEventType()) { + this.eventType = other.eventType; + } + } + + public markPartitionForEvent_args deepCopy() { + return new markPartitionForEvent_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.eventType = 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 int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public void putToPart_vals(String key, String val) { + if (this.part_vals == null) { + this.part_vals = new HashMap(); + } + this.part_vals.put(key, val); + } + + public Map getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(Map part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + /** + * + * @see PartitionEventType + */ + public PartitionEventType getEventType() { + return this.eventType; + } + + /** + * + * @see PartitionEventType + */ + public void setEventType(PartitionEventType eventType) { + this.eventType = eventType; + } + + public void unsetEventType() { + this.eventType = null; + } + + /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ + public boolean isSetEventType() { + return this.eventType != null; + } + + public void setEventTypeIsSet(boolean value) { + if (!value) { + this.eventType = 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; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((Map)value); + } + break; + + case EVENT_TYPE: + if (value == null) { + unsetEventType(); + } else { + setEventType((PartitionEventType)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case EVENT_TYPE: + return getEventType(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case EVENT_TYPE: + return isSetEventType(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof markPartitionForEvent_args) + return this.equals((markPartitionForEvent_args)that); + return false; + } + + public boolean equals(markPartitionForEvent_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_eventType = true && this.isSetEventType(); + boolean that_present_eventType = true && that.isSetEventType(); + if (this_present_eventType || that_present_eventType) { + if (!(this_present_eventType && that_present_eventType)) + return false; + if (!this.eventType.equals(that.eventType)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_eventType = true && (isSetEventType()); + list.add(present_eventType); + if (present_eventType) + list.add(eventType.getValue()); + + return list.hashCode(); + } + + @Override + public int compareTo(markPartitionForEvent_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEventType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + 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("markPartitionForEvent_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("eventType:"); + if (this.eventType == null) { + sb.append("null"); + } else { + sb.append(this.eventType); + } + 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 markPartitionForEvent_argsStandardSchemeFactory implements SchemeFactory { + public markPartitionForEvent_argsStandardScheme getScheme() { + return new markPartitionForEvent_argsStandardScheme(); + } + } + + private static class markPartitionForEvent_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map1146 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1146.size); + String _key1147; + String _val1148; + for (int _i1149 = 0; _i1149 < _map1146.size; ++_i1149) + { + _key1147 = iprot.readString(); + _val1148 = iprot.readString(); + struct.part_vals.put(_key1147, _val1148); + } + iprot.readMapEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EVENT_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.setEventTypeIsSet(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, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + 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 _iter1150 : struct.part_vals.entrySet()) + { + oprot.writeString(_iter1150.getKey()); + oprot.writeString(_iter1150.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.eventType != null) { + oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC); + oprot.writeI32(struct.eventType.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class markPartitionForEvent_argsTupleSchemeFactory implements SchemeFactory { + public markPartitionForEvent_argsTupleScheme getScheme() { + return new markPartitionForEvent_argsTupleScheme(); + } + } + + private static class markPartitionForEvent_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetEventType()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (Map.Entry _iter1151 : struct.part_vals.entrySet()) + { + oprot.writeString(_iter1151.getKey()); + oprot.writeString(_iter1151.getValue()); + } + } + } + if (struct.isSetEventType()) { + oprot.writeI32(struct.eventType.getValue()); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TMap _map1152 = 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*_map1152.size); + String _key1153; + String _val1154; + for (int _i1155 = 0; _i1155 < _map1152.size; ++_i1155) + { + _key1153 = iprot.readString(); + _val1154 = iprot.readString(); + struct.part_vals.put(_key1153, _val1154); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.setEventTypeIsSet(true); + } + } + } + + } + + public static class markPartitionForEvent_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("markPartitionForEvent_result"); + + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new markPartitionForEvent_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new markPartitionForEvent_resultTupleSchemeFactory()); + } + + private MetaException o1; // required + private NoSuchObjectException o2; // required + private UnknownDBException o3; // required + private UnknownTableException o4; // required + private UnknownPartitionException o5; // required + private InvalidPartitionException o6; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"), + O5((short)5, "o5"), + O6((short)6, "o6"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // O1 + return O1; + case 2: // O2 + return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; + case 5: // O5 + return O5; + case 6: // O6 + return O6; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", 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(markPartitionForEvent_result.class, metaDataMap); + } + + public markPartitionForEvent_result() { + } + + public markPartitionForEvent_result( + MetaException o1, + NoSuchObjectException o2, + UnknownDBException o3, + UnknownTableException o4, + UnknownPartitionException o5, + InvalidPartitionException o6) + { + this(); + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + this.o4 = o4; + this.o5 = o5; + this.o6 = o6; + } + + /** + * Performs a deep copy on other. + */ + public markPartitionForEvent_result(markPartitionForEvent_result other) { + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new UnknownTableException(other.o4); + } + if (other.isSetO5()) { + this.o5 = new UnknownPartitionException(other.o5); + } + if (other.isSetO6()) { + this.o6 = new InvalidPartitionException(other.o6); + } + } + + public markPartitionForEvent_result deepCopy() { + return new markPartitionForEvent_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + this.o3 = null; + this.o4 = null; + this.o5 = null; + this.o6 = 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 UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public UnknownTableException getO4() { + return this.o4; + } + + public void setO4(UnknownTableException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public UnknownPartitionException getO5() { + return this.o5; + } + + public void setO5(UnknownPartitionException o5) { + this.o5 = o5; + } + + public void unsetO5() { + this.o5 = null; + } + + /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ + public boolean isSetO5() { + return this.o5 != null; + } + + public void setO5IsSet(boolean value) { + if (!value) { + this.o5 = null; + } + } + + public InvalidPartitionException getO6() { + return this.o6; + } + + public void setO6(InvalidPartitionException o6) { + this.o6 = o6; + } + + public void unsetO6() { + this.o6 = null; + } + + /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ + public boolean isSetO6() { + return this.o6 != null; + } + + public void setO6IsSet(boolean value) { + if (!value) { + this.o6 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((UnknownTableException)value); + } + break; + + case O5: + if (value == null) { + unsetO5(); + } else { + setO5((UnknownPartitionException)value); + } + break; + + case O6: + if (value == null) { + unsetO6(); + } else { + setO6((InvalidPartitionException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + case O5: + return getO5(); + + case O6: + return getO6(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case O1: + return isSetO1(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + case O5: + return isSetO5(); + case O6: + return isSetO6(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof markPartitionForEvent_result) + return this.equals((markPartitionForEvent_result)that); + return false; + } + + public boolean equals(markPartitionForEvent_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + 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; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + + boolean this_present_o5 = true && this.isSetO5(); + boolean that_present_o5 = true && that.isSetO5(); + if (this_present_o5 || that_present_o5) { + if (!(this_present_o5 && that_present_o5)) + return false; + if (!this.o5.equals(that.o5)) + return false; + } + + boolean this_present_o6 = true && this.isSetO6(); + boolean that_present_o6 = true && that.isSetO6(); + if (this_present_o6 || that_present_o6) { + if (!(this_present_o6 && that_present_o6)) + return false; + if (!this.o6.equals(that.o6)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + + boolean present_o5 = true && (isSetO5()); + list.add(present_o5); + if (present_o5) + list.add(o5); + + boolean present_o6 = true && (isSetO6()); + list.add(present_o6); + if (present_o6) + list.add(o6); + + return list.hashCode(); + } + + @Override + public int compareTo(markPartitionForEvent_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO5()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO6()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + 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("markPartitionForEvent_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + 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 { + 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 markPartitionForEvent_resultStandardSchemeFactory implements SchemeFactory { + public markPartitionForEvent_resultStandardScheme getScheme() { + return new markPartitionForEvent_resultStandardScheme(); + } + } + + private static class markPartitionForEvent_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new 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, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + 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 markPartitionForEvent_resultTupleSchemeFactory implements SchemeFactory { + public markPartitionForEvent_resultTupleScheme getScheme() { + return new markPartitionForEvent_resultTupleScheme(); + } + } + + private static class markPartitionForEvent_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + if (struct.isSetO3()) { + optionals.set(2); + } + if (struct.isSetO4()) { + optionals.set(3); + } + if (struct.isSetO5()) { + optionals.set(4); + } + if (struct.isSetO6()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + 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, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(3)) { + struct.o4 = new UnknownTableException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } + if (incoming.get(4)) { + struct.o5 = new UnknownPartitionException(); + struct.o5.read(iprot); + struct.setO5IsSet(true); + } + if (incoming.get(5)) { + struct.o6 = new InvalidPartitionException(); + struct.o6.read(iprot); + struct.setO6IsSet(true); + } + } + } + + } + + public static class isPartitionMarkedForEvent_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("isPartitionMarkedForEvent_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new isPartitionMarkedForEvent_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isPartitionMarkedForEvent_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private Map part_vals; // required + private PartitionEventType eventType; // 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"), + PART_VALS((short)3, "part_vals"), + /** + * + * @see PartitionEventType + */ + EVENT_TYPE((short)4, "eventType"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // EVENT_TYPE + return EVENT_TYPE; + 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))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_args.class, metaDataMap); + } + + public isPartitionMarkedForEvent_args() { + } + + public isPartitionMarkedForEvent_args( + String db_name, + String tbl_name, + Map part_vals, + PartitionEventType eventType) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.eventType = eventType; + } + + /** + * Performs a deep copy on other. + */ + public isPartitionMarkedForEvent_args(isPartitionMarkedForEvent_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + Map __this__part_vals = new HashMap(other.part_vals); + this.part_vals = __this__part_vals; + } + if (other.isSetEventType()) { + this.eventType = other.eventType; + } + } + + public isPartitionMarkedForEvent_args deepCopy() { + return new isPartitionMarkedForEvent_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.eventType = 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 int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public void putToPart_vals(String key, String val) { + if (this.part_vals == null) { + this.part_vals = new HashMap(); + } + this.part_vals.put(key, val); + } + + public Map getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(Map part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + /** + * + * @see PartitionEventType + */ + public PartitionEventType getEventType() { + return this.eventType; + } + + /** + * + * @see PartitionEventType + */ + public void setEventType(PartitionEventType eventType) { + this.eventType = eventType; + } + + public void unsetEventType() { + this.eventType = null; + } + + /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ + public boolean isSetEventType() { + return this.eventType != null; + } + + public void setEventTypeIsSet(boolean value) { + if (!value) { + this.eventType = 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; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((Map)value); + } + break; + + case EVENT_TYPE: + if (value == null) { + unsetEventType(); + } else { + setEventType((PartitionEventType)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case EVENT_TYPE: + return getEventType(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case EVENT_TYPE: + return isSetEventType(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof isPartitionMarkedForEvent_args) + return this.equals((isPartitionMarkedForEvent_args)that); + return false; + } + + public boolean equals(isPartitionMarkedForEvent_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_eventType = true && this.isSetEventType(); + boolean that_present_eventType = true && that.isSetEventType(); + if (this_present_eventType || that_present_eventType) { + if (!(this_present_eventType && that_present_eventType)) + return false; + if (!this.eventType.equals(that.eventType)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_eventType = true && (isSetEventType()); + list.add(present_eventType); + if (present_eventType) + list.add(eventType.getValue()); + + return list.hashCode(); + } + + @Override + public int compareTo(isPartitionMarkedForEvent_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEventType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + 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("isPartitionMarkedForEvent_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("eventType:"); + if (this.eventType == null) { + sb.append("null"); + } else { + sb.append(this.eventType); + } + 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 isPartitionMarkedForEvent_argsStandardSchemeFactory implements SchemeFactory { + public isPartitionMarkedForEvent_argsStandardScheme getScheme() { + return new isPartitionMarkedForEvent_argsStandardScheme(); + } + } + + private static class isPartitionMarkedForEvent_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map1156 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1156.size); + String _key1157; + String _val1158; + for (int _i1159 = 0; _i1159 < _map1156.size; ++_i1159) + { + _key1157 = iprot.readString(); + _val1158 = iprot.readString(); + struct.part_vals.put(_key1157, _val1158); + } + iprot.readMapEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // EVENT_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.setEventTypeIsSet(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_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + 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 _iter1160 : struct.part_vals.entrySet()) + { + oprot.writeString(_iter1160.getKey()); + oprot.writeString(_iter1160.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.eventType != null) { + oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC); + oprot.writeI32(struct.eventType.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class isPartitionMarkedForEvent_argsTupleSchemeFactory implements SchemeFactory { + public isPartitionMarkedForEvent_argsTupleScheme getScheme() { + return new isPartitionMarkedForEvent_argsTupleScheme(); + } + } + + private static class isPartitionMarkedForEvent_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetEventType()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (Map.Entry _iter1161 : struct.part_vals.entrySet()) + { + oprot.writeString(_iter1161.getKey()); + oprot.writeString(_iter1161.getValue()); + } + } + } + if (struct.isSetEventType()) { + oprot.writeI32(struct.eventType.getValue()); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + 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.part_vals = new HashMap(2*_map1162.size); + String _key1163; + String _val1164; + for (int _i1165 = 0; _i1165 < _map1162.size; ++_i1165) + { + _key1163 = iprot.readString(); + _val1164 = iprot.readString(); + struct.part_vals.put(_key1163, _val1164); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.setEventTypeIsSet(true); + } + } + } + + } + + public static class isPartitionMarkedForEvent_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("isPartitionMarkedForEvent_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new isPartitionMarkedForEvent_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isPartitionMarkedForEvent_resultTupleSchemeFactory()); + } + + private boolean success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + private UnknownDBException o3; // required + private UnknownTableException o4; // required + private UnknownPartitionException o5; // required + private InvalidPartitionException o6; // 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"), + O3((short)3, "o3"), + O4((short)4, "o4"), + O5((short)5, "o5"), + O6((short)6, "o6"); + + 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; + case 3: // O3 + return O3; + case 4: // O4 + return O4; + case 5: // O5 + return O5; + case 6: // O6 + return O6; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", 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(isPartitionMarkedForEvent_result.class, metaDataMap); + } + + public isPartitionMarkedForEvent_result() { + } + + public isPartitionMarkedForEvent_result( + boolean success, + MetaException o1, + NoSuchObjectException o2, + UnknownDBException o3, + UnknownTableException o4, + UnknownPartitionException o5, + InvalidPartitionException o6) + { + this(); + this.success = success; + setSuccessIsSet(true); + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + this.o4 = o4; + this.o5 = o5; + this.o6 = o6; + } + + /** + * Performs a deep copy on other. + */ + public isPartitionMarkedForEvent_result(isPartitionMarkedForEvent_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new UnknownTableException(other.o4); + } + if (other.isSetO5()) { + this.o5 = new UnknownPartitionException(other.o5); + } + if (other.isSetO6()) { + this.o6 = new InvalidPartitionException(other.o6); + } + } + + public isPartitionMarkedForEvent_result deepCopy() { + return new isPartitionMarkedForEvent_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + this.o1 = null; + this.o2 = null; + this.o3 = null; + this.o4 = null; + this.o5 = null; + this.o6 = null; + } + + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public 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 UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public UnknownTableException getO4() { + return this.o4; + } + + public void setO4(UnknownTableException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public UnknownPartitionException getO5() { + return this.o5; + } + + public void setO5(UnknownPartitionException o5) { + this.o5 = o5; + } + + public void unsetO5() { + this.o5 = null; + } + + /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ + public boolean isSetO5() { + return this.o5 != null; + } + + public void setO5IsSet(boolean value) { + if (!value) { + this.o5 = null; + } + } + + public InvalidPartitionException getO6() { + return this.o6; + } + + public void setO6(InvalidPartitionException o6) { + this.o6 = o6; + } + + public void unsetO6() { + this.o6 = null; + } + + /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ + public boolean isSetO6() { + return this.o6 != null; + } + + public void setO6IsSet(boolean value) { + if (!value) { + this.o6 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((UnknownTableException)value); + } + break; + + case O5: + if (value == null) { + unsetO5(); + } else { + setO5((UnknownPartitionException)value); + } + break; + + case O6: + if (value == null) { + unsetO6(); + } else { + setO6((InvalidPartitionException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return isSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + case O5: + return getO5(); + + case O6: + return getO6(); + + } + 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(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + case O5: + return isSetO5(); + case O6: + return isSetO6(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof isPartitionMarkedForEvent_result) + return this.equals((isPartitionMarkedForEvent_result)that); + return false; + } + + public boolean equals(isPartitionMarkedForEvent_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + 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; + } + + 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; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + + boolean this_present_o5 = true && this.isSetO5(); + boolean that_present_o5 = true && that.isSetO5(); + if (this_present_o5 || that_present_o5) { + if (!(this_present_o5 && that_present_o5)) + return false; + if (!this.o5.equals(that.o5)) + return false; + } + + boolean this_present_o6 = true && this.isSetO6(); + boolean that_present_o6 = true && that.isSetO6(); + if (this_present_o6 || that_present_o6) { + if (!(this_present_o6 && that_present_o6)) + return false; + if (!this.o6.equals(that.o6)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + + boolean present_o5 = true && (isSetO5()); + list.add(present_o5); + if (present_o5) + list.add(o5); + + boolean present_o6 = true && (isSetO6()); + list.add(present_o6); + if (present_o6) + list.add(o6); + + return list.hashCode(); + } + + @Override + public int compareTo(isPartitionMarkedForEvent_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; + } + } + 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; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO5()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO6()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + 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("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); + } + } + } + + } + + public static class add_index_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_index_args"); + + private static final org.apache.thrift.protocol.TField NEW_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_index", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField INDEX_TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("index_table", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_index_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_index_argsTupleSchemeFactory()); + } + + private Index new_index; // required + private Table index_table; // 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 { + NEW_INDEX((short)1, "new_index"), + INDEX_TABLE((short)2, "index_table"); + + 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: // NEW_INDEX + return NEW_INDEX; + case 2: // INDEX_TABLE + return INDEX_TABLE; + 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.NEW_INDEX, new org.apache.thrift.meta_data.FieldMetaData("new_index", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); + tmpMap.put(_Fields.INDEX_TABLE, new org.apache.thrift.meta_data.FieldMetaData("index_table", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_index_args.class, metaDataMap); + } + + public add_index_args() { + } + + public add_index_args( + Index new_index, + Table index_table) + { + this(); + this.new_index = new_index; + this.index_table = index_table; + } + + /** + * Performs a deep copy on other. + */ + public add_index_args(add_index_args other) { + if (other.isSetNew_index()) { + this.new_index = new Index(other.new_index); + } + if (other.isSetIndex_table()) { + this.index_table = new Table(other.index_table); + } + } + + public add_index_args deepCopy() { + return new add_index_args(this); + } + + @Override + public void clear() { + this.new_index = null; + this.index_table = null; + } + + public Index getNew_index() { + return this.new_index; + } + + public void setNew_index(Index new_index) { + this.new_index = new_index; + } + + public void unsetNew_index() { + this.new_index = null; + } + + /** Returns true if field new_index is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_index() { + return this.new_index != null; + } + + public void setNew_indexIsSet(boolean value) { + if (!value) { + this.new_index = null; + } + } + + public Table getIndex_table() { + return this.index_table; + } + + public void setIndex_table(Table index_table) { + this.index_table = index_table; + } + + public void unsetIndex_table() { + this.index_table = null; + } + + /** Returns true if field index_table is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_table() { + return this.index_table != null; + } + + public void setIndex_tableIsSet(boolean value) { + if (!value) { + this.index_table = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NEW_INDEX: + if (value == null) { + unsetNew_index(); + } else { + setNew_index((Index)value); + } + break; + + case INDEX_TABLE: + if (value == null) { + unsetIndex_table(); + } else { + setIndex_table((Table)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NEW_INDEX: + return getNew_index(); + + case INDEX_TABLE: + return getIndex_table(); + + } + 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 NEW_INDEX: + return isSetNew_index(); + case INDEX_TABLE: + return isSetIndex_table(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_index_args) + return this.equals((add_index_args)that); + return false; + } + + public boolean equals(add_index_args that) { + if (that == null) + return false; + + boolean this_present_new_index = true && this.isSetNew_index(); + boolean that_present_new_index = true && that.isSetNew_index(); + if (this_present_new_index || that_present_new_index) { + if (!(this_present_new_index && that_present_new_index)) + return false; + if (!this.new_index.equals(that.new_index)) + return false; + } + + boolean this_present_index_table = true && this.isSetIndex_table(); + boolean that_present_index_table = true && that.isSetIndex_table(); + if (this_present_index_table || that_present_index_table) { + if (!(this_present_index_table && that_present_index_table)) + return false; + if (!this.index_table.equals(that.index_table)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_new_index = true && (isSetNew_index()); + list.add(present_new_index); + if (present_new_index) + list.add(new_index); + + boolean present_index_table = true && (isSetIndex_table()); + list.add(present_index_table); + if (present_index_table) + list.add(index_table); + + return list.hashCode(); + } + + @Override + public int compareTo(add_index_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(other.isSetNew_index()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNew_index()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, other.new_index); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(other.isSetIndex_table()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIndex_table()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, other.index_table); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("add_index_args("); + boolean first = true; + + sb.append("new_index:"); + if (this.new_index == null) { + sb.append("null"); + } else { + sb.append(this.new_index); + } + first = false; + if (!first) sb.append(", "); + sb.append("index_table:"); + if (this.index_table == null) { + sb.append("null"); + } else { + sb.append(this.index_table); + } + 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 (new_index != null) { + new_index.validate(); + } + if (index_table != null) { + index_table.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_index_argsStandardSchemeFactory implements SchemeFactory { + public add_index_argsStandardScheme getScheme() { + return new add_index_argsStandardScheme(); + } + } + + private static class add_index_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_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: // NEW_INDEX + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_index = new Index(); + struct.new_index.read(iprot); + struct.setNew_indexIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // INDEX_TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.index_table = new Table(); + struct.index_table.read(iprot); + struct.setIndex_tableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, add_index_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.new_index != null) { + oprot.writeFieldBegin(NEW_INDEX_FIELD_DESC); + struct.new_index.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.index_table != null) { + oprot.writeFieldBegin(INDEX_TABLE_FIELD_DESC); + struct.index_table.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_index_argsTupleSchemeFactory implements SchemeFactory { + public add_index_argsTupleScheme getScheme() { + return new add_index_argsTupleScheme(); + } + } + + private static class add_index_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_index_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetNew_index()) { + optionals.set(0); + } + if (struct.isSetIndex_table()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetNew_index()) { + struct.new_index.write(oprot); + } + if (struct.isSetIndex_table()) { + struct.index_table.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_index_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.new_index = new Index(); + struct.new_index.read(iprot); + struct.setNew_indexIsSet(true); + } + if (incoming.get(1)) { + struct.index_table = new Table(); + struct.index_table.read(iprot); + struct.setIndex_tableIsSet(true); + } + } + } + + } + + public static class add_index_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_index_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_index_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_index_resultTupleSchemeFactory()); + } + + private Index success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // 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 { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"); + + 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; + case 3: // O3 + return O3; + 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, Index.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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(markPartitionForEvent_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_index_result.class, metaDataMap); } - public markPartitionForEvent_result() { + public add_index_result() { } - public markPartitionForEvent_result( - MetaException o1, - NoSuchObjectException o2, - UnknownDBException o3, - UnknownTableException o4, - UnknownPartitionException o5, - InvalidPartitionException o6) + public add_index_result( + Index success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; - this.o4 = o4; - this.o5 = o5; - this.o6 = o6; } /** * Performs a deep copy on other. */ - public markPartitionForEvent_result(markPartitionForEvent_result other) { + public add_index_result(add_index_result other) { + if (other.isSetSuccess()) { + this.success = new Index(other.success); + } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); } if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new UnknownTableException(other.o4); - } - if (other.isSetO5()) { - this.o5 = new UnknownPartitionException(other.o5); - } - if (other.isSetO6()) { - this.o6 = new InvalidPartitionException(other.o6); + this.o3 = new MetaException(other.o3); } } - public markPartitionForEvent_result deepCopy() { - return new markPartitionForEvent_result(this); + public add_index_result deepCopy() { + return new add_index_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; - this.o4 = null; - this.o5 = null; - this.o6 = null; } - public MetaException getO1() { + public Index getSuccess() { + return this.success; + } + + public void setSuccess(Index 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 InvalidObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -111237,11 +116918,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -111260,11 +116941,11 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { + public MetaException getO3() { return this.o3; } - public void setO3(UnknownDBException o3) { + public void setO3(MetaException o3) { this.o3 = o3; } @@ -111283,82 +116964,21 @@ public void setO3IsSet(boolean value) { } } - public UnknownTableException getO4() { - return this.o4; - } - - public void setO4(UnknownTableException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - - public UnknownPartitionException getO5() { - return this.o5; - } - - public void setO5(UnknownPartitionException o5) { - this.o5 = o5; - } - - public void unsetO5() { - this.o5 = null; - } - - /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ - public boolean isSetO5() { - return this.o5 != null; - } - - public void setO5IsSet(boolean value) { - if (!value) { - this.o5 = null; - } - } - - public InvalidPartitionException getO6() { - return this.o6; - } - - public void setO6(InvalidPartitionException o6) { - this.o6 = o6; - } - - public void unsetO6() { - this.o6 = null; - } - - /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ - public boolean isSetO6() { - return this.o6 != null; - } - - public void setO6IsSet(boolean value) { - if (!value) { - this.o6 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Index)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidObjectException)value); } break; @@ -111366,7 +116986,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((AlreadyExistsException)value); } break; @@ -111374,31 +116994,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO3(); } else { - setO3((UnknownDBException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((UnknownTableException)value); - } - break; - - case O5: - if (value == null) { - unsetO5(); - } else { - setO5((UnknownPartitionException)value); - } - break; - - case O6: - if (value == null) { - unsetO6(); - } else { - setO6((InvalidPartitionException)value); + setO3((MetaException)value); } break; @@ -111407,6 +117003,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -111416,15 +117015,6 @@ public Object getFieldValue(_Fields field) { case O3: return getO3(); - case O4: - return getO4(); - - case O5: - return getO5(); - - case O6: - return getO6(); - } throw new IllegalStateException(); } @@ -111436,18 +117026,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); case O3: return isSetO3(); - case O4: - return isSetO4(); - case O5: - return isSetO5(); - case O6: - return isSetO6(); } throw new IllegalStateException(); } @@ -111456,15 +117042,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof markPartitionForEvent_result) - return this.equals((markPartitionForEvent_result)that); + if (that instanceof add_index_result) + return this.equals((add_index_result)that); return false; } - public boolean equals(markPartitionForEvent_result that) { + public boolean equals(add_index_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) { @@ -111492,33 +117087,6 @@ public boolean equals(markPartitionForEvent_result that) { return false; } - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - - boolean this_present_o5 = true && this.isSetO5(); - boolean that_present_o5 = true && that.isSetO5(); - if (this_present_o5 || that_present_o5) { - if (!(this_present_o5 && that_present_o5)) - return false; - if (!this.o5.equals(that.o5)) - return false; - } - - boolean this_present_o6 = true && this.isSetO6(); - boolean that_present_o6 = true && that.isSetO6(); - if (this_present_o6 || that_present_o6) { - if (!(this_present_o6 && that_present_o6)) - return false; - if (!this.o6.equals(that.o6)) - return false; - } - return true; } @@ -111526,6 +117094,11 @@ public boolean equals(markPartitionForEvent_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) @@ -111541,32 +117114,27 @@ public int hashCode() { if (present_o3) list.add(o3); - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - - boolean present_o5 = true && (isSetO5()); - list.add(present_o5); - if (present_o5) - list.add(o5); - - boolean present_o6 = true && (isSetO6()); - list.add(present_o6); - if (present_o6) - list.add(o6); - return list.hashCode(); } @Override - public int compareTo(markPartitionForEvent_result other) { + public int compareTo(add_index_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; @@ -111597,36 +117165,6 @@ public int compareTo(markPartitionForEvent_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -111644,9 +117182,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("markPartitionForEvent_result("); + StringBuilder sb = new StringBuilder("add_index_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"); @@ -111670,30 +117216,6 @@ public String toString() { 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(); } @@ -111701,6 +117223,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 { @@ -111719,15 +117244,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class markPartitionForEvent_resultStandardSchemeFactory implements SchemeFactory { - public markPartitionForEvent_resultStandardScheme getScheme() { - return new markPartitionForEvent_resultStandardScheme(); + private static class add_index_resultStandardSchemeFactory implements SchemeFactory { + public add_index_resultStandardScheme getScheme() { + return new add_index_resultStandardScheme(); } } - private static class markPartitionForEvent_resultStandardScheme extends StandardScheme { + private static class add_index_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -111737,9 +117262,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -111748,7 +117282,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -111757,40 +117291,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; case 3: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); + struct.o3 = new MetaException(); 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); } @@ -111800,10 +117307,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_index_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -111819,58 +117331,40 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv 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 markPartitionForEvent_resultTupleSchemeFactory implements SchemeFactory { - public markPartitionForEvent_resultTupleScheme getScheme() { - return new markPartitionForEvent_resultTupleScheme(); + private static class add_index_resultTupleSchemeFactory implements SchemeFactory { + public add_index_resultTupleScheme getScheme() { + return new add_index_resultTupleScheme(); } } - private static class markPartitionForEvent_resultTupleScheme extends TupleScheme { + private static class add_index_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_index_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO4()) { + if (struct.isSetO3()) { optionals.set(3); } - if (struct.isSetO5()) { - optionals.set(4); - } - if (struct.isSetO6()) { - optionals.set(5); + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); } - oprot.writeBitSet(optionals, 6); if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -111880,85 +117374,62 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve 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, markPartitionForEvent_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_index_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new MetaException(); + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new NoSuchObjectException(); + if (incoming.get(2)) { + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(2)) { - struct.o3 = new UnknownDBException(); + if (incoming.get(3)) { + struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); } - if (incoming.get(3)) { - struct.o4 = new UnknownTableException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } - if (incoming.get(4)) { - struct.o5 = new UnknownPartitionException(); - struct.o5.read(iprot); - struct.setO5IsSet(true); - } - if (incoming.get(5)) { - struct.o6 = new InvalidPartitionException(); - struct.o6.read(iprot); - struct.setO6IsSet(true); - } } } } - public static class isPartitionMarkedForEvent_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("isPartitionMarkedForEvent_args"); + public static class alter_index_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("alter_index_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.MAP, (short)3); - private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)4); + 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 BASE_TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("base_tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IDX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("idx_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField NEW_IDX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_idx", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isPartitionMarkedForEvent_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isPartitionMarkedForEvent_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_index_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_index_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private Map part_vals; // required - private PartitionEventType eventType; // required + private String dbname; // required + private String base_tbl_name; // required + private String idx_name; // required + private Index new_idx; // 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"), - PART_VALS((short)3, "part_vals"), - /** - * - * @see PartitionEventType - */ - EVENT_TYPE((short)4, "eventType"); + DBNAME((short)1, "dbname"), + BASE_TBL_NAME((short)2, "base_tbl_name"), + IDX_NAME((short)3, "idx_name"), + NEW_IDX((short)4, "new_idx"); private static final Map byName = new HashMap(); @@ -111973,14 +117444,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // EVENT_TYPE - return EVENT_TYPE; + case 1: // DBNAME + return DBNAME; + case 2: // BASE_TBL_NAME + return BASE_TBL_NAME; + case 3: // IDX_NAME + return IDX_NAME; + case 4: // NEW_IDX + return NEW_IDX; default: return null; } @@ -112024,209 +117495,187 @@ 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.BASE_TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("base_tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PartitionEventType.class))); + tmpMap.put(_Fields.IDX_NAME, new org.apache.thrift.meta_data.FieldMetaData("idx_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NEW_IDX, new org.apache.thrift.meta_data.FieldMetaData("new_idx", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPartitionMarkedForEvent_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_args.class, metaDataMap); } - public isPartitionMarkedForEvent_args() { + public alter_index_args() { } - public isPartitionMarkedForEvent_args( - String db_name, - String tbl_name, - Map part_vals, - PartitionEventType eventType) + public alter_index_args( + String dbname, + String base_tbl_name, + String idx_name, + Index new_idx) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.eventType = eventType; + this.dbname = dbname; + this.base_tbl_name = base_tbl_name; + this.idx_name = idx_name; + this.new_idx = new_idx; } /** * Performs a deep copy on other. */ - public isPartitionMarkedForEvent_args(isPartitionMarkedForEvent_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public alter_index_args(alter_index_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetBase_tbl_name()) { + this.base_tbl_name = other.base_tbl_name; } - if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetIdx_name()) { + this.idx_name = other.idx_name; } - if (other.isSetEventType()) { - this.eventType = other.eventType; + if (other.isSetNew_idx()) { + this.new_idx = new Index(other.new_idx); } } - public isPartitionMarkedForEvent_args deepCopy() { - return new isPartitionMarkedForEvent_args(this); + public alter_index_args deepCopy() { + return new alter_index_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; - this.eventType = null; + this.dbname = null; + this.base_tbl_name = null; + this.idx_name = null; + this.new_idx = 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 getTbl_name() { - return this.tbl_name; + public String getBase_tbl_name() { + return this.base_tbl_name; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setBase_tbl_name(String base_tbl_name) { + this.base_tbl_name = base_tbl_name; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetBase_tbl_name() { + this.base_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; + /** Returns true if field base_tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetBase_tbl_name() { + return this.base_tbl_name != null; } - public void setTbl_nameIsSet(boolean value) { + public void setBase_tbl_nameIsSet(boolean value) { if (!value) { - this.tbl_name = null; - } - } - - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public void putToPart_vals(String key, String val) { - if (this.part_vals == null) { - this.part_vals = new HashMap(); + this.base_tbl_name = null; } - this.part_vals.put(key, val); } - public Map getPart_vals() { - return this.part_vals; + public String getIdx_name() { + return this.idx_name; } - public void setPart_vals(Map part_vals) { - this.part_vals = part_vals; + public void setIdx_name(String idx_name) { + this.idx_name = idx_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetIdx_name() { + this.idx_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field idx_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIdx_name() { + return this.idx_name != null; } - public void setPart_valsIsSet(boolean value) { + public void setIdx_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.idx_name = null; } } - /** - * - * @see PartitionEventType - */ - public PartitionEventType getEventType() { - return this.eventType; + public Index getNew_idx() { + return this.new_idx; } - /** - * - * @see PartitionEventType - */ - public void setEventType(PartitionEventType eventType) { - this.eventType = eventType; + public void setNew_idx(Index new_idx) { + this.new_idx = new_idx; } - public void unsetEventType() { - this.eventType = null; + public void unsetNew_idx() { + this.new_idx = null; } - /** Returns true if field eventType is set (has been assigned a value) and false otherwise */ - public boolean isSetEventType() { - return this.eventType != null; + /** Returns true if field new_idx is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_idx() { + return this.new_idx != null; } - public void setEventTypeIsSet(boolean value) { + public void setNew_idxIsSet(boolean value) { if (!value) { - this.eventType = null; + this.new_idx = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DBNAME: if (value == null) { - unsetDb_name(); + unsetDbname(); } else { - setDb_name((String)value); + setDbname((String)value); } break; - case TBL_NAME: + case BASE_TBL_NAME: if (value == null) { - unsetTbl_name(); + unsetBase_tbl_name(); } else { - setTbl_name((String)value); + setBase_tbl_name((String)value); } break; - case PART_VALS: + case IDX_NAME: if (value == null) { - unsetPart_vals(); + unsetIdx_name(); } else { - setPart_vals((Map)value); + setIdx_name((String)value); } break; - case EVENT_TYPE: + case NEW_IDX: if (value == null) { - unsetEventType(); + unsetNew_idx(); } else { - setEventType((PartitionEventType)value); + setNew_idx((Index)value); } break; @@ -112235,17 +117684,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DBNAME: + return getDbname(); - case TBL_NAME: - return getTbl_name(); + case BASE_TBL_NAME: + return getBase_tbl_name(); - case PART_VALS: - return getPart_vals(); + case IDX_NAME: + return getIdx_name(); - case EVENT_TYPE: - return getEventType(); + case NEW_IDX: + return getNew_idx(); } throw new IllegalStateException(); @@ -112258,14 +117707,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case EVENT_TYPE: - return isSetEventType(); + case DBNAME: + return isSetDbname(); + case BASE_TBL_NAME: + return isSetBase_tbl_name(); + case IDX_NAME: + return isSetIdx_name(); + case NEW_IDX: + return isSetNew_idx(); } throw new IllegalStateException(); } @@ -112274,48 +117723,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isPartitionMarkedForEvent_args) - return this.equals((isPartitionMarkedForEvent_args)that); + if (that instanceof alter_index_args) + return this.equals((alter_index_args)that); return false; } - public boolean equals(isPartitionMarkedForEvent_args that) { + public boolean equals(alter_index_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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_base_tbl_name = true && this.isSetBase_tbl_name(); + boolean that_present_base_tbl_name = true && that.isSetBase_tbl_name(); + if (this_present_base_tbl_name || that_present_base_tbl_name) { + if (!(this_present_base_tbl_name && that_present_base_tbl_name)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.base_tbl_name.equals(that.base_tbl_name)) return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_idx_name = true && this.isSetIdx_name(); + boolean that_present_idx_name = true && that.isSetIdx_name(); + if (this_present_idx_name || that_present_idx_name) { + if (!(this_present_idx_name && that_present_idx_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.idx_name.equals(that.idx_name)) return false; } - boolean this_present_eventType = true && this.isSetEventType(); - boolean that_present_eventType = true && that.isSetEventType(); - if (this_present_eventType || that_present_eventType) { - if (!(this_present_eventType && that_present_eventType)) + boolean this_present_new_idx = true && this.isSetNew_idx(); + boolean that_present_new_idx = true && that.isSetNew_idx(); + if (this_present_new_idx || that_present_new_idx) { + if (!(this_present_new_idx && that_present_new_idx)) return false; - if (!this.eventType.equals(that.eventType)) + if (!this.new_idx.equals(that.new_idx)) return false; } @@ -112326,73 +117775,73 @@ public boolean equals(isPartitionMarkedForEvent_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_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_base_tbl_name = true && (isSetBase_tbl_name()); + list.add(present_base_tbl_name); + if (present_base_tbl_name) + list.add(base_tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_idx_name = true && (isSetIdx_name()); + list.add(present_idx_name); + if (present_idx_name) + list.add(idx_name); - boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); - if (present_eventType) - list.add(eventType.getValue()); + boolean present_new_idx = true && (isSetNew_idx()); + list.add(present_new_idx); + if (present_new_idx) + list.add(new_idx); return list.hashCode(); } @Override - public int compareTo(isPartitionMarkedForEvent_args other) { + public int compareTo(alter_index_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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetBase_tbl_name()).compareTo(other.isSetBase_tbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetBase_tbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, other.base_tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(other.isSetIdx_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetIdx_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, other.idx_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(other.isSetNew_idx()); if (lastComparison != 0) { return lastComparison; } - if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + if (isSetNew_idx()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, other.new_idx); if (lastComparison != 0) { return lastComparison; } @@ -112414,38 +117863,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("isPartitionMarkedForEvent_args("); + StringBuilder sb = new StringBuilder("alter_index_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("tbl_name:"); - if (this.tbl_name == null) { + sb.append("base_tbl_name:"); + if (this.base_tbl_name == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.base_tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("idx_name:"); + if (this.idx_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.idx_name); } first = false; if (!first) sb.append(", "); - sb.append("eventType:"); - if (this.eventType == null) { + sb.append("new_idx:"); + if (this.new_idx == null) { sb.append("null"); } else { - sb.append(this.eventType); + sb.append(this.new_idx); } first = false; sb.append(")"); @@ -112455,6 +117904,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_idx != null) { + new_idx.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -112473,15 +117925,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isPartitionMarkedForEvent_argsStandardSchemeFactory implements SchemeFactory { - public isPartitionMarkedForEvent_argsStandardScheme getScheme() { - return new isPartitionMarkedForEvent_argsStandardScheme(); + private static class alter_index_argsStandardSchemeFactory implements SchemeFactory { + public alter_index_argsStandardScheme getScheme() { + return new alter_index_argsStandardScheme(); } } - private static class isPartitionMarkedForEvent_argsStandardScheme extends StandardScheme { + private static class alter_index_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -112491,46 +117943,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DBNAME 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: // TBL_NAME + case 2: // BASE_TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.base_tbl_name = iprot.readString(); + struct.setBase_tbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map1108 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1108.size); - String _key1109; - String _val1110; - for (int _i1111 = 0; _i1111 < _map1108.size; ++_i1111) - { - _key1109 = iprot.readString(); - _val1110 = iprot.readString(); - struct.part_vals.put(_key1109, _val1110); - } - iprot.readMapEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // IDX_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.idx_name = iprot.readString(); + struct.setIdx_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // EVENT_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); - struct.setEventTypeIsSet(true); + case 4: // NEW_IDX + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_idx = new Index(); + struct.new_idx.read(iprot); + struct.setNew_idxIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -112544,36 +117985,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_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.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.base_tbl_name != null) { + oprot.writeFieldBegin(BASE_TBL_NAME_FIELD_DESC); + oprot.writeString(struct.base_tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - 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 _iter1112 : struct.part_vals.entrySet()) - { - oprot.writeString(_iter1112.getKey()); - oprot.writeString(_iter1112.getValue()); - } - oprot.writeMapEnd(); - } + if (struct.idx_name != null) { + oprot.writeFieldBegin(IDX_NAME_FIELD_DESC); + oprot.writeString(struct.idx_name); oprot.writeFieldEnd(); } - if (struct.eventType != null) { - oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC); - oprot.writeI32(struct.eventType.getValue()); + if (struct.new_idx != null) { + oprot.writeFieldBegin(NEW_IDX_FIELD_DESC); + struct.new_idx.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -112582,122 +118015,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF } - private static class isPartitionMarkedForEvent_argsTupleSchemeFactory implements SchemeFactory { - public isPartitionMarkedForEvent_argsTupleScheme getScheme() { - return new isPartitionMarkedForEvent_argsTupleScheme(); + private static class alter_index_argsTupleSchemeFactory implements SchemeFactory { + public alter_index_argsTupleScheme getScheme() { + return new alter_index_argsTupleScheme(); } } - private static class isPartitionMarkedForEvent_argsTupleScheme extends TupleScheme { + private static class alter_index_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_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.isSetTbl_name()) { + if (struct.isSetBase_tbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetIdx_name()) { optionals.set(2); } - if (struct.isSetEventType()) { + if (struct.isSetNew_idx()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + if (struct.isSetBase_tbl_name()) { + oprot.writeString(struct.base_tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1113 : struct.part_vals.entrySet()) - { - oprot.writeString(_iter1113.getKey()); - oprot.writeString(_iter1113.getValue()); - } - } + if (struct.isSetIdx_name()) { + oprot.writeString(struct.idx_name); } - if (struct.isSetEventType()) { - oprot.writeI32(struct.eventType.getValue()); + if (struct.isSetNew_idx()) { + struct.new_idx.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.base_tbl_name = iprot.readString(); + struct.setBase_tbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map1114 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1114.size); - String _key1115; - String _val1116; - for (int _i1117 = 0; _i1117 < _map1114.size; ++_i1117) - { - _key1115 = iprot.readString(); - _val1116 = iprot.readString(); - struct.part_vals.put(_key1115, _val1116); - } - } - struct.setPart_valsIsSet(true); + struct.idx_name = iprot.readString(); + struct.setIdx_nameIsSet(true); } if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); - struct.setEventTypeIsSet(true); + struct.new_idx = new Index(); + struct.new_idx.read(iprot); + struct.setNew_idxIsSet(true); } } } } - public static class isPartitionMarkedForEvent_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("isPartitionMarkedForEvent_result"); + public static class alter_index_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("alter_index_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private static final org.apache.thrift.protocol.TField O5_FIELD_DESC = new org.apache.thrift.protocol.TField("o5", org.apache.thrift.protocol.TType.STRUCT, (short)5); - private static final org.apache.thrift.protocol.TField O6_FIELD_DESC = new org.apache.thrift.protocol.TField("o6", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isPartitionMarkedForEvent_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isPartitionMarkedForEvent_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_index_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_index_resultTupleSchemeFactory()); } - private boolean success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required - private UnknownDBException o3; // required - private UnknownTableException o4; // required - private UnknownPartitionException o5; // required - private InvalidPartitionException o6; // required + private InvalidOperationException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"), - O5((short)5, "o5"), - O6((short)6, "o6"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -112712,20 +118113,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; - case 5: // O5 - return O5; - case 6: // O6 - return O6; default: return null; } @@ -112766,121 +118157,56 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O5, new org.apache.thrift.meta_data.FieldMetaData("o5", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O6, new org.apache.thrift.meta_data.FieldMetaData("o6", 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(isPartitionMarkedForEvent_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_result.class, metaDataMap); } - public isPartitionMarkedForEvent_result() { + public alter_index_result() { } - public isPartitionMarkedForEvent_result( - boolean success, - MetaException o1, - NoSuchObjectException o2, - UnknownDBException o3, - UnknownTableException o4, - UnknownPartitionException o5, - InvalidPartitionException o6) + public alter_index_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; - this.o5 = o5; - this.o6 = o6; } /** * Performs a deep copy on other. */ - public isPartitionMarkedForEvent_result(isPartitionMarkedForEvent_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public alter_index_result(alter_index_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new UnknownTableException(other.o4); - } - if (other.isSetO5()) { - this.o5 = new UnknownPartitionException(other.o5); - } - if (other.isSetO6()) { - this.o6 = new InvalidPartitionException(other.o6); + this.o2 = new MetaException(other.o2); } } - public isPartitionMarkedForEvent_result deepCopy() { - return new isPartitionMarkedForEvent_result(this); + public alter_index_result deepCopy() { + return new alter_index_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = null; - this.o5 = null; - this.o6 = null; - } - - public boolean isSuccess() { - return this.success; - } - - public void setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public MetaException getO1() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -112899,11 +118225,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -112922,113 +118248,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - - public UnknownTableException getO4() { - return this.o4; - } - - public void setO4(UnknownTableException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - - public UnknownPartitionException getO5() { - return this.o5; - } - - public void setO5(UnknownPartitionException o5) { - this.o5 = o5; - } - - public void unsetO5() { - this.o5 = null; - } - - /** Returns true if field o5 is set (has been assigned a value) and false otherwise */ - public boolean isSetO5() { - return this.o5 != null; - } - - public void setO5IsSet(boolean value) { - if (!value) { - this.o5 = null; - } - } - - public InvalidPartitionException getO6() { - return this.o6; - } - - public void setO6(InvalidPartitionException o6) { - this.o6 = o6; - } - - public void unsetO6() { - this.o6 = null; - } - - /** Returns true if field o6 is set (has been assigned a value) and false otherwise */ - public boolean isSetO6() { - return this.o6 != null; - } - - public void setO6IsSet(boolean value) { - if (!value) { - this.o6 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -113036,39 +118262,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((UnknownTableException)value); - } - break; - - case O5: - if (value == null) { - unsetO5(); - } else { - setO5((UnknownPartitionException)value); - } - break; - - case O6: - if (value == null) { - unsetO6(); - } else { - setO6((InvalidPartitionException)value); + setO2((MetaException)value); } break; @@ -113077,27 +118271,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return isSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - - case O5: - return getO5(); - - case O6: - return getO6(); - } throw new IllegalStateException(); } @@ -113109,20 +118288,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); - case O5: - return isSetO5(); - case O6: - return isSetO6(); } throw new IllegalStateException(); } @@ -113131,24 +118300,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isPartitionMarkedForEvent_result) - return this.equals((isPartitionMarkedForEvent_result)that); + if (that instanceof alter_index_result) + return this.equals((alter_index_result)that); return false; } - public boolean equals(isPartitionMarkedForEvent_result that) { + public boolean equals(alter_index_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -113167,42 +118327,6 @@ public boolean equals(isPartitionMarkedForEvent_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; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - - boolean this_present_o5 = true && this.isSetO5(); - boolean that_present_o5 = true && that.isSetO5(); - if (this_present_o5 || that_present_o5) { - if (!(this_present_o5 && that_present_o5)) - return false; - if (!this.o5.equals(that.o5)) - return false; - } - - boolean this_present_o6 = true && this.isSetO6(); - boolean that_present_o6 = true && that.isSetO6(); - if (this_present_o6 || that_present_o6) { - if (!(this_present_o6 && that_present_o6)) - return false; - if (!this.o6.equals(that.o6)) - return false; - } - return true; } @@ -113210,11 +118334,6 @@ public boolean equals(isPartitionMarkedForEvent_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); - boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -113225,47 +118344,17 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - - boolean present_o5 = true && (isSetO5()); - list.add(present_o5); - if (present_o5) - list.add(o5); - - boolean present_o6 = true && (isSetO6()); - list.add(present_o6); - if (present_o6) - list.add(o6); - return list.hashCode(); } @Override - public int compareTo(isPartitionMarkedForEvent_result other) { + public int compareTo(alter_index_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(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; @@ -113286,46 +118375,6 @@ public int compareTo(isPartitionMarkedForEvent_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; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -113343,13 +118392,9 @@ 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("alter_index_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"); @@ -113365,38 +118410,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(); } @@ -113416,23 +118429,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 alter_index_resultStandardSchemeFactory implements SchemeFactory { + public alter_index_resultStandardScheme getScheme() { + return new alter_index_resultStandardScheme(); } } - private static class isPartitionMarkedForEvent_resultStandardScheme extends StandardScheme { + private static class alter_index_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, alter_index_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -113442,17 +118453,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo 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 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -113461,49 +118464,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { 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); } @@ -113513,15 +118480,10 @@ 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, alter_index_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); @@ -113532,151 +118494,83 @@ 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 alter_index_resultTupleSchemeFactory implements SchemeFactory { + public alter_index_resultTupleScheme getScheme() { + return new alter_index_resultTupleScheme(); } } - private static class isPartitionMarkedForEvent_resultTupleScheme extends TupleScheme { + private static class alter_index_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, alter_index_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); + optionals.set(0); } 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); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); 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 { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(7); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); 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); - } } } } - public static class add_index_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_index_args"); + public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_args"); - private static final org.apache.thrift.protocol.TField NEW_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_index", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField INDEX_TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("index_table", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_index_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_index_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); } - private Index new_index; // required - private Table index_table; // required + private String db_name; // required + private String tbl_name; // required + private String index_name; // required + private boolean deleteData; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NEW_INDEX((short)1, "new_index"), - INDEX_TABLE((short)2, "index_table"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + INDEX_NAME((short)3, "index_name"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -113691,10 +118585,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_INDEX - return NEW_INDEX; - case 2: // INDEX_TABLE - return INDEX_TABLE; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // INDEX_NAME + return INDEX_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -113735,112 +118633,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.NEW_INDEX, new org.apache.thrift.meta_data.FieldMetaData("new_index", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); - tmpMap.put(_Fields.INDEX_TABLE, new org.apache.thrift.meta_data.FieldMetaData("index_table", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_index_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); } - public add_index_args() { + public drop_index_by_name_args() { } - public add_index_args( - Index new_index, - Table index_table) + public drop_index_by_name_args( + String db_name, + String tbl_name, + String index_name, + boolean deleteData) { this(); - this.new_index = new_index; - this.index_table = index_table; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.index_name = index_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public add_index_args(add_index_args other) { - if (other.isSetNew_index()) { - this.new_index = new Index(other.new_index); + public drop_index_by_name_args(drop_index_by_name_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetIndex_table()) { - this.index_table = new Table(other.index_table); + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetIndex_name()) { + this.index_name = other.index_name; } + this.deleteData = other.deleteData; } - public add_index_args deepCopy() { - return new add_index_args(this); + public drop_index_by_name_args deepCopy() { + return new drop_index_by_name_args(this); } @Override public void clear() { - this.new_index = null; - this.index_table = null; + this.db_name = null; + this.tbl_name = null; + this.index_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; } - public Index getNew_index() { - return this.new_index; + public String getDb_name() { + return this.db_name; } - public void setNew_index(Index new_index) { - this.new_index = new_index; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetNew_index() { - this.new_index = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field new_index is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_index() { - return this.new_index != 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 setNew_indexIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.new_index = null; + this.db_name = null; } } - public Table getIndex_table() { - return this.index_table; + public String getTbl_name() { + return this.tbl_name; } - public void setIndex_table(Table index_table) { - this.index_table = index_table; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetIndex_table() { - this.index_table = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field index_table is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_table() { - return this.index_table != 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 setIndex_tableIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.index_table = null; + this.tbl_name = null; + } + } + + public String getIndex_name() { + return this.index_name; + } + + public void setIndex_name(String index_name) { + this.index_name = index_name; + } + + public void unsetIndex_name() { + this.index_name = null; + } + + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_name() { + return this.index_name != null; + } + + public void setIndex_nameIsSet(boolean value) { + if (!value) { + this.index_name = null; } } + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_INDEX: + case DB_NAME: if (value == null) { - unsetNew_index(); + unsetDb_name(); } else { - setNew_index((Index)value); + setDb_name((String)value); } break; - case INDEX_TABLE: + case TBL_NAME: if (value == null) { - unsetIndex_table(); + unsetTbl_name(); } else { - setIndex_table((Table)value); + setTbl_name((String)value); + } + break; + + case INDEX_NAME: + if (value == null) { + unsetIndex_name(); + } else { + setIndex_name((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); } break; @@ -113849,11 +118827,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_INDEX: - return getNew_index(); + case DB_NAME: + return getDb_name(); - case INDEX_TABLE: - return getIndex_table(); + case TBL_NAME: + return getTbl_name(); + + case INDEX_NAME: + return getIndex_name(); + + case DELETE_DATA: + return isDeleteData(); } throw new IllegalStateException(); @@ -113866,10 +118850,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_INDEX: - return isSetNew_index(); - case INDEX_TABLE: - return isSetIndex_table(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case INDEX_NAME: + return isSetIndex_name(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -113878,30 +118866,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_index_args) - return this.equals((add_index_args)that); + if (that instanceof drop_index_by_name_args) + return this.equals((drop_index_by_name_args)that); return false; } - public boolean equals(add_index_args that) { + public boolean equals(drop_index_by_name_args that) { if (that == null) return false; - boolean this_present_new_index = true && this.isSetNew_index(); - boolean that_present_new_index = true && that.isSetNew_index(); - if (this_present_new_index || that_present_new_index) { - if (!(this_present_new_index && that_present_new_index)) + 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.new_index.equals(that.new_index)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_index_table = true && this.isSetIndex_table(); - boolean that_present_index_table = true && that.isSetIndex_table(); - if (this_present_index_table || that_present_index_table) { - if (!(this_present_index_table && that_present_index_table)) + 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.index_table.equals(that.index_table)) + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_index_name = true && this.isSetIndex_name(); + boolean that_present_index_name = true && that.isSetIndex_name(); + if (this_present_index_name || that_present_index_name) { + if (!(this_present_index_name && that_present_index_name)) + return false; + if (!this.index_name.equals(that.index_name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) return false; } @@ -113912,43 +118918,73 @@ public boolean equals(add_index_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_new_index = true && (isSetNew_index()); - list.add(present_new_index); - if (present_new_index) - list.add(new_index); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_index_table = true && (isSetIndex_table()); - list.add(present_index_table); - if (present_index_table) - list.add(index_table); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_index_name = true && (isSetIndex_name()); + list.add(present_index_name); + if (present_index_name) + list.add(index_name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); return list.hashCode(); } @Override - public int compareTo(add_index_args other) { + public int compareTo(drop_index_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(other.isSetNew_index()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_index()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, other.new_index); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(other.isSetIndex_table()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetIndex_table()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, other.index_table); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIndex_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -113970,24 +119006,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_index_args("); + StringBuilder sb = new StringBuilder("drop_index_by_name_args("); boolean first = true; - sb.append("new_index:"); - if (this.new_index == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.new_index); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("index_table:"); - if (this.index_table == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.index_table); + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("index_name:"); + if (this.index_name == null) { + sb.append("null"); + } else { + sb.append(this.index_name); } first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -113995,12 +119043,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_index != null) { - new_index.validate(); - } - if (index_table != null) { - index_table.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -114013,21 +119055,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 add_index_argsStandardSchemeFactory implements SchemeFactory { - public add_index_argsStandardScheme getScheme() { - return new add_index_argsStandardScheme(); + private static class drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsStandardScheme getScheme() { + return new drop_index_by_name_argsStandardScheme(); } } - private static class add_index_argsStandardScheme extends StandardScheme { + private static class drop_index_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -114037,20 +119081,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_args stru break; } switch (schemeField.id) { - case 1: // NEW_INDEX - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_index = new Index(); - struct.new_index.read(iprot); - struct.setNew_indexIsSet(true); + 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: // INDEX_TABLE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.index_table = new Table(); - struct.index_table.read(iprot); - struct.setIndex_tableIsSet(true); + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INDEX_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -114064,97 +119122,120 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_index_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_index != null) { - oprot.writeFieldBegin(NEW_INDEX_FIELD_DESC); - struct.new_index.write(oprot); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.index_table != null) { - oprot.writeFieldBegin(INDEX_TABLE_FIELD_DESC); - struct.index_table.write(oprot); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.index_name != null) { + oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); + oprot.writeString(struct.index_name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_index_argsTupleSchemeFactory implements SchemeFactory { - public add_index_argsTupleScheme getScheme() { - return new add_index_argsTupleScheme(); + private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsTupleScheme getScheme() { + return new drop_index_by_name_argsTupleScheme(); } } - private static class add_index_argsTupleScheme extends TupleScheme { + private static class drop_index_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_index_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_index()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetIndex_table()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNew_index()) { - struct.new_index.write(oprot); + if (struct.isSetIndex_name()) { + optionals.set(2); } - if (struct.isSetIndex_table()) { - struct.index_table.write(oprot); + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetIndex_name()) { + oprot.writeString(struct.index_name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_index_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.new_index = new Index(); - struct.new_index.read(iprot); - struct.setNew_indexIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.index_table = new Table(); - struct.index_table.read(iprot); - struct.setIndex_tableIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - public static class add_index_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_index_result"); + public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_index_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_index_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); } - private Index success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -114175,8 +119256,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -114217,95 +119296,89 @@ public String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - 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(add_index_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_result.class, metaDataMap); } - public add_index_result() { + public drop_index_by_name_result() { } - public add_index_result( - Index success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_index_by_name_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public add_index_result(add_index_result other) { - if (other.isSetSuccess()) { - this.success = new Index(other.success); - } + public drop_index_by_name_result(drop_index_by_name_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public add_index_result deepCopy() { - return new add_index_result(this); + public drop_index_by_name_result deepCopy() { + return new drop_index_by_name_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public Index getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Index success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -114324,11 +119397,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -114347,36 +119420,13 @@ public void setO2IsSet(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 SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Index)value); + setSuccess((Boolean)value); } break; @@ -114384,7 +119434,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -114392,15 +119442,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -114410,7 +119452,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return isSuccess(); case O1: return getO1(); @@ -114418,9 +119460,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -114438,8 +119477,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -114448,21 +119485,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_index_result) - return this.equals((add_index_result)that); + if (that instanceof drop_index_by_name_result) + return this.equals((drop_index_by_name_result)that); return false; } - public boolean equals(add_index_result that) { + public boolean equals(drop_index_by_name_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + boolean this_present_success = true; + boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (!this.success.equals(that.success)) + if (this.success != that.success) return false; } @@ -114484,15 +119521,6 @@ public boolean equals(add_index_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; } @@ -114500,7 +119528,7 @@ public boolean equals(add_index_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); + boolean present_success = true; list.add(present_success); if (present_success) list.add(success); @@ -114515,16 +119543,11 @@ public int hashCode() { if (present_o2) list.add(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - return list.hashCode(); } @Override - public int compareTo(add_index_result other) { + public int compareTo(drop_index_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -114561,16 +119584,6 @@ public int compareTo(add_index_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; } @@ -114588,15 +119601,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_index_result("); + StringBuilder sb = new StringBuilder("drop_index_by_name_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -114614,14 +119623,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; sb.append(")"); return sb.toString(); } @@ -114629,9 +119630,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -114644,21 +119642,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 add_index_resultStandardSchemeFactory implements SchemeFactory { - public add_index_resultStandardScheme getScheme() { - return new add_index_resultStandardScheme(); + private static class drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultStandardScheme getScheme() { + return new drop_index_by_name_resultStandardScheme(); } } - private static class add_index_resultStandardScheme extends StandardScheme { + private static class drop_index_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -114669,9 +119669,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result st } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Index(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -114679,7 +119678,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result st break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -114688,22 +119687,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result st break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); 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 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); } @@ -114713,13 +119703,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_index_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -114732,27 +119722,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_index_result s struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_index_resultTupleSchemeFactory implements SchemeFactory { - public add_index_resultTupleScheme getScheme() { - return new add_index_resultTupleScheme(); + private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultTupleScheme getScheme() { + return new drop_index_by_name_resultTupleScheme(); } } - private static class add_index_resultTupleScheme extends TupleScheme { + private static class drop_index_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -114764,12 +119749,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_index_result st if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -114777,65 +119759,53 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_index_result st if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Index(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class alter_index_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("alter_index_args"); + public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_args"); - private static final org.apache.thrift.protocol.TField 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 BASE_TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("base_tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField IDX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("idx_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField NEW_IDX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_idx", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_index_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_index_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); } - private String dbname; // required - private String base_tbl_name; // required - private String idx_name; // required - private Index new_idx; // required + private String db_name; // required + private String tbl_name; // required + private String index_name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DBNAME((short)1, "dbname"), - BASE_TBL_NAME((short)2, "base_tbl_name"), - IDX_NAME((short)3, "idx_name"), - NEW_IDX((short)4, "new_idx"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + INDEX_NAME((short)3, "index_name"); private static final Map byName = new HashMap(); @@ -114850,14 +119820,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_index_result str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // BASE_TBL_NAME - return BASE_TBL_NAME; - case 3: // IDX_NAME - return IDX_NAME; - case 4: // NEW_IDX - return NEW_IDX; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // INDEX_NAME + return INDEX_NAME; default: return null; } @@ -114901,187 +119869,148 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", 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.BASE_TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("base_tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IDX_NAME, new org.apache.thrift.meta_data.FieldMetaData("idx_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NEW_IDX, new org.apache.thrift.meta_data.FieldMetaData("new_idx", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); } - public alter_index_args() { + public get_index_by_name_args() { } - public alter_index_args( - String dbname, - String base_tbl_name, - String idx_name, - Index new_idx) + public get_index_by_name_args( + String db_name, + String tbl_name, + String index_name) { this(); - this.dbname = dbname; - this.base_tbl_name = base_tbl_name; - this.idx_name = idx_name; - this.new_idx = new_idx; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.index_name = index_name; } /** * Performs a deep copy on other. */ - public alter_index_args(alter_index_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetBase_tbl_name()) { - this.base_tbl_name = other.base_tbl_name; + public get_index_by_name_args(get_index_by_name_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetIdx_name()) { - this.idx_name = other.idx_name; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } - if (other.isSetNew_idx()) { - this.new_idx = new Index(other.new_idx); + if (other.isSetIndex_name()) { + this.index_name = other.index_name; } } - public alter_index_args deepCopy() { - return new alter_index_args(this); + public get_index_by_name_args deepCopy() { + return new get_index_by_name_args(this); } @Override public void clear() { - this.dbname = null; - this.base_tbl_name = null; - this.idx_name = null; - this.new_idx = null; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } + this.db_name = null; + this.tbl_name = null; + this.index_name = null; } - public String getBase_tbl_name() { - return this.base_tbl_name; + public String getDb_name() { + return this.db_name; } - public void setBase_tbl_name(String base_tbl_name) { - this.base_tbl_name = base_tbl_name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetBase_tbl_name() { - this.base_tbl_name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field base_tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetBase_tbl_name() { - return this.base_tbl_name != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setBase_tbl_nameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.base_tbl_name = null; + this.db_name = null; } } - public String getIdx_name() { - return this.idx_name; + public String getTbl_name() { + return this.tbl_name; } - public void setIdx_name(String idx_name) { - this.idx_name = idx_name; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetIdx_name() { - this.idx_name = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field idx_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIdx_name() { - return this.idx_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 setIdx_nameIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.idx_name = null; + this.tbl_name = null; } } - public Index getNew_idx() { - return this.new_idx; + public String getIndex_name() { + return this.index_name; } - public void setNew_idx(Index new_idx) { - this.new_idx = new_idx; + public void setIndex_name(String index_name) { + this.index_name = index_name; } - public void unsetNew_idx() { - this.new_idx = null; + public void unsetIndex_name() { + this.index_name = null; } - /** Returns true if field new_idx is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_idx() { - return this.new_idx != null; + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_name() { + return this.index_name != null; } - public void setNew_idxIsSet(boolean value) { + public void setIndex_nameIsSet(boolean value) { if (!value) { - this.new_idx = null; + this.index_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case BASE_TBL_NAME: + case DB_NAME: if (value == null) { - unsetBase_tbl_name(); + unsetDb_name(); } else { - setBase_tbl_name((String)value); + setDb_name((String)value); } break; - case IDX_NAME: + case TBL_NAME: if (value == null) { - unsetIdx_name(); + unsetTbl_name(); } else { - setIdx_name((String)value); + setTbl_name((String)value); } break; - case NEW_IDX: + case INDEX_NAME: if (value == null) { - unsetNew_idx(); + unsetIndex_name(); } else { - setNew_idx((Index)value); + setIndex_name((String)value); } break; @@ -115090,17 +120019,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case BASE_TBL_NAME: - return getBase_tbl_name(); + case DB_NAME: + return getDb_name(); - case IDX_NAME: - return getIdx_name(); + case TBL_NAME: + return getTbl_name(); - case NEW_IDX: - return getNew_idx(); + case INDEX_NAME: + return getIndex_name(); } throw new IllegalStateException(); @@ -115113,14 +120039,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case BASE_TBL_NAME: - return isSetBase_tbl_name(); - case IDX_NAME: - return isSetIdx_name(); - case NEW_IDX: - return isSetNew_idx(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case INDEX_NAME: + return isSetIndex_name(); } throw new IllegalStateException(); } @@ -115129,48 +120053,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_index_args) - return this.equals((alter_index_args)that); + if (that instanceof get_index_by_name_args) + return this.equals((get_index_by_name_args)that); return false; } - public boolean equals(alter_index_args that) { + public boolean equals(get_index_by_name_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_base_tbl_name = true && this.isSetBase_tbl_name(); - boolean that_present_base_tbl_name = true && that.isSetBase_tbl_name(); - if (this_present_base_tbl_name || that_present_base_tbl_name) { - if (!(this_present_base_tbl_name && that_present_base_tbl_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.base_tbl_name.equals(that.base_tbl_name)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_idx_name = true && this.isSetIdx_name(); - boolean that_present_idx_name = true && that.isSetIdx_name(); - if (this_present_idx_name || that_present_idx_name) { - if (!(this_present_idx_name && that_present_idx_name)) + 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.idx_name.equals(that.idx_name)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_new_idx = true && this.isSetNew_idx(); - boolean that_present_new_idx = true && that.isSetNew_idx(); - if (this_present_new_idx || that_present_new_idx) { - if (!(this_present_new_idx && that_present_new_idx)) + boolean this_present_index_name = true && this.isSetIndex_name(); + boolean that_present_index_name = true && that.isSetIndex_name(); + if (this_present_index_name || that_present_index_name) { + if (!(this_present_index_name && that_present_index_name)) return false; - if (!this.new_idx.equals(that.new_idx)) + if (!this.index_name.equals(that.index_name)) return false; } @@ -115181,73 +120096,58 @@ public boolean equals(alter_index_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_base_tbl_name = true && (isSetBase_tbl_name()); - list.add(present_base_tbl_name); - if (present_base_tbl_name) - list.add(base_tbl_name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); - boolean present_idx_name = true && (isSetIdx_name()); - list.add(present_idx_name); - if (present_idx_name) - list.add(idx_name); + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); - boolean present_new_idx = true && (isSetNew_idx()); - list.add(present_new_idx); - if (present_new_idx) - list.add(new_idx); + boolean present_index_name = true && (isSetIndex_name()); + list.add(present_index_name); + if (present_index_name) + list.add(index_name); return list.hashCode(); } @Override - public int compareTo(alter_index_args other) { + public int compareTo(get_index_by_name_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(isSetBase_tbl_name()).compareTo(other.isSetBase_tbl_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetBase_tbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, other.base_tbl_name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(other.isSetIdx_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetIdx_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, other.idx_name); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(other.isSetNew_idx()); + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_idx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, other.new_idx); + if (isSetIndex_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); if (lastComparison != 0) { return lastComparison; } @@ -115269,38 +120169,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_index_args("); + StringBuilder sb = new StringBuilder("get_index_by_name_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("base_tbl_name:"); - if (this.base_tbl_name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.base_tbl_name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("idx_name:"); - if (this.idx_name == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.idx_name); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("new_idx:"); - if (this.new_idx == null) { + sb.append("index_name:"); + if (this.index_name == null) { sb.append("null"); } else { - sb.append(this.new_idx); + sb.append(this.index_name); } first = false; sb.append(")"); @@ -115310,9 +120202,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_idx != null) { - new_idx.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -115331,15 +120220,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_index_argsStandardSchemeFactory implements SchemeFactory { - public alter_index_argsStandardScheme getScheme() { - return new alter_index_argsStandardScheme(); + private static class get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_argsStandardScheme getScheme() { + return new get_index_by_name_argsStandardScheme(); } } - private static class alter_index_argsStandardScheme extends StandardScheme { + private static class get_index_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -115349,35 +120238,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_args st break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // BASE_TBL_NAME + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.base_tbl_name = iprot.readString(); - struct.setBase_tbl_nameIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IDX_NAME + case 3: // INDEX_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.idx_name = iprot.readString(); - struct.setIdx_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // NEW_IDX - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_idx = new Index(); - struct.new_idx.read(iprot); - struct.setNew_idxIsSet(true); + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -115391,28 +120271,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.base_tbl_name != null) { - oprot.writeFieldBegin(BASE_TBL_NAME_FIELD_DESC); - oprot.writeString(struct.base_tbl_name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.idx_name != null) { - oprot.writeFieldBegin(IDX_NAME_FIELD_DESC); - oprot.writeString(struct.idx_name); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.new_idx != null) { - oprot.writeFieldBegin(NEW_IDX_FIELD_DESC); - struct.new_idx.write(oprot); + if (struct.index_name != null) { + oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); + oprot.writeString(struct.index_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -115421,88 +120296,80 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_args s } - private static class alter_index_argsTupleSchemeFactory implements SchemeFactory { - public alter_index_argsTupleScheme getScheme() { - return new alter_index_argsTupleScheme(); + private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_argsTupleScheme getScheme() { + return new get_index_by_name_argsTupleScheme(); } } - private static class alter_index_argsTupleScheme extends TupleScheme { + private static class get_index_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetBase_tbl_name()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIdx_name()) { + if (struct.isSetIndex_name()) { optionals.set(2); } - if (struct.isSetNew_idx()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetBase_tbl_name()) { - oprot.writeString(struct.base_tbl_name); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetIdx_name()) { - oprot.writeString(struct.idx_name); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - if (struct.isSetNew_idx()) { - struct.new_idx.write(oprot); + if (struct.isSetIndex_name()) { + oprot.writeString(struct.index_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.base_tbl_name = iprot.readString(); - struct.setBase_tbl_nameIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.idx_name = iprot.readString(); - struct.setIdx_nameIsSet(true); - } - if (incoming.get(3)) { - struct.new_idx = new Index(); - struct.new_idx.read(iprot); - struct.setNew_idxIsSet(true); + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); } } } } - public static class alter_index_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("alter_index_result"); + public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 alter_index_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_index_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private Index success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O2((short)2, "o2"); @@ -115519,6 +120386,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_args str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 @@ -115566,22 +120435,26 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); } - public alter_index_result() { + public get_index_by_name_result() { } - public alter_index_result( - InvalidOperationException o1, - MetaException o2) + public get_index_by_name_result( + Index success, + MetaException o1, + NoSuchObjectException o2) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; } @@ -115589,30 +120462,57 @@ public alter_index_result( /** * Performs a deep copy on other. */ - public alter_index_result(alter_index_result other) { + public get_index_by_name_result(get_index_by_name_result other) { + if (other.isSetSuccess()) { + this.success = new Index(other.success); + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public alter_index_result deepCopy() { - return new alter_index_result(this); + public get_index_by_name_result deepCopy() { + return new get_index_by_name_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; } - public InvalidOperationException getO1() { + public Index getSuccess() { + return this.success; + } + + public void setSuccess(Index 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(InvalidOperationException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -115631,11 +120531,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -115656,11 +120556,19 @@ public void setO2IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Index)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((MetaException)value); } break; @@ -115668,7 +120576,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -115677,6 +120585,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -115694,6 +120605,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -115706,15 +120619,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_index_result) - return this.equals((alter_index_result)that); + if (that instanceof get_index_by_name_result) + return this.equals((get_index_by_name_result)that); return false; } - public boolean equals(alter_index_result that) { + public boolean equals(get_index_by_name_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) { @@ -115740,6 +120662,11 @@ public boolean equals(alter_index_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) @@ -115754,13 +120681,23 @@ public int hashCode() { } @Override - public int compareTo(alter_index_result other) { + public int compareTo(get_index_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -115798,9 +120735,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_index_result("); + StringBuilder sb = new StringBuilder("get_index_by_name_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"); @@ -115823,6 +120768,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 { @@ -115841,15 +120789,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_index_resultStandardSchemeFactory implements SchemeFactory { - public alter_index_resultStandardScheme getScheme() { - return new alter_index_resultStandardScheme(); + private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_resultStandardScheme getScheme() { + return new get_index_by_name_resultStandardScheme(); } } - private static class alter_index_resultStandardScheme extends StandardScheme { + private static class get_index_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -115859,9 +120807,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -115870,7 +120827,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -115886,10 +120843,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -115906,25 +120868,31 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result } - private static class alter_index_resultTupleSchemeFactory implements SchemeFactory { - public alter_index_resultTupleScheme getScheme() { - return new alter_index_resultTupleScheme(); + private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_resultTupleScheme getScheme() { + return new get_index_by_name_resultTupleScheme(); } } - private static class alter_index_resultTupleScheme extends TupleScheme { + private static class get_index_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -115934,16 +120902,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -115952,31 +120925,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result s } - public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_args"); + public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String index_name; // required - private boolean deleteData; // required + private short max_indexes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"), - DELETE_DATA((short)4, "deleteData"); + MAX_INDEXES((short)3, "max_indexes"); private static final Map byName = new HashMap(); @@ -115995,10 +120965,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // INDEX_NAME - return INDEX_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; + case 3: // MAX_INDEXES + return MAX_INDEXES; default: return null; } @@ -116039,7 +121007,7 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; + private static final int __MAX_INDEXES_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { @@ -116048,35 +121016,33 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.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.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); } - public drop_index_by_name_args() { + public get_indexes_args() { + this.max_indexes = (short)-1; + } - public drop_index_by_name_args( + public get_indexes_args( String db_name, String tbl_name, - String index_name, - boolean deleteData) + short max_indexes) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.index_name = index_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public drop_index_by_name_args(drop_index_by_name_args other) { + public get_indexes_args(get_indexes_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -116084,23 +121050,19 @@ public drop_index_by_name_args(drop_index_by_name_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetIndex_name()) { - this.index_name = other.index_name; - } - this.deleteData = other.deleteData; + this.max_indexes = other.max_indexes; } - public drop_index_by_name_args deepCopy() { - return new drop_index_by_name_args(this); + public get_indexes_args deepCopy() { + return new get_indexes_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.index_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; + this.max_indexes = (short)-1; + } public String getDb_name() { @@ -116149,49 +121111,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getIndex_name() { - return this.index_name; - } - - public void setIndex_name(String index_name) { - this.index_name = index_name; - } - - public void unsetIndex_name() { - this.index_name = null; - } - - /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_name() { - return this.index_name != null; - } - - public void setIndex_nameIsSet(boolean value) { - if (!value) { - this.index_name = null; - } - } - - public boolean isDeleteData() { - return this.deleteData; + public short getMax_indexes() { + return this.max_indexes; } - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); + public void setMax_indexes(short max_indexes) { + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + public void unsetMax_indexes() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_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); + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_indexes() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + public void setMax_indexesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -116212,19 +121151,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case INDEX_NAME: - if (value == null) { - unsetIndex_name(); - } else { - setIndex_name((String)value); - } - break; - - case DELETE_DATA: + case MAX_INDEXES: if (value == null) { - unsetDeleteData(); + unsetMax_indexes(); } else { - setDeleteData((Boolean)value); + setMax_indexes((Short)value); } break; @@ -116239,11 +121170,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case INDEX_NAME: - return getIndex_name(); - - case DELETE_DATA: - return isDeleteData(); + case MAX_INDEXES: + return getMax_indexes(); } throw new IllegalStateException(); @@ -116260,10 +121188,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case INDEX_NAME: - return isSetIndex_name(); - case DELETE_DATA: - return isSetDeleteData(); + case MAX_INDEXES: + return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -116272,12 +121198,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_args) - return this.equals((drop_index_by_name_args)that); + if (that instanceof get_indexes_args) + return this.equals((get_indexes_args)that); return false; } - public boolean equals(drop_index_by_name_args that) { + public boolean equals(get_indexes_args that) { if (that == null) return false; @@ -116299,21 +121225,12 @@ public boolean equals(drop_index_by_name_args that) { return false; } - boolean this_present_index_name = true && this.isSetIndex_name(); - boolean that_present_index_name = true && that.isSetIndex_name(); - if (this_present_index_name || that_present_index_name) { - if (!(this_present_index_name && that_present_index_name)) - return false; - if (!this.index_name.equals(that.index_name)) - return false; - } - - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_max_indexes = true; + boolean that_present_max_indexes = true; + if (this_present_max_indexes || that_present_max_indexes) { + if (!(this_present_max_indexes && that_present_max_indexes)) return false; - if (this.deleteData != that.deleteData) + if (this.max_indexes != that.max_indexes) return false; } @@ -116334,21 +121251,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); - if (present_index_name) - list.add(index_name); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_max_indexes = true; + list.add(present_max_indexes); + if (present_max_indexes) + list.add(max_indexes); return list.hashCode(); } @Override - public int compareTo(drop_index_by_name_args other) { + public int compareTo(get_indexes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -116375,22 +121287,12 @@ public int compareTo(drop_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetMax_indexes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -116412,7 +121314,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_indexes_args("); boolean first = true; sb.append("db_name:"); @@ -116431,16 +121333,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("index_name:"); - if (this.index_name == null) { - sb.append("null"); - } else { - sb.append(this.index_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); + sb.append("max_indexes:"); + sb.append(this.max_indexes); first = false; sb.append(")"); return sb.toString(); @@ -116469,15 +121363,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsStandardScheme getScheme() { - return new drop_index_by_name_argsStandardScheme(); + private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { + public get_indexes_argsStandardScheme getScheme() { + return new get_indexes_argsStandardScheme(); } } - private static class drop_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_indexes_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -116503,18 +121397,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // INDEX_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 3: // MAX_INDEXES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -116528,7 +121414,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -116542,13 +121428,8 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.index_name != null) { - oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); - oprot.writeString(struct.index_name); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); + oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); + oprot.writeI16(struct.max_indexes); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -116556,16 +121437,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name } - private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsTupleScheme getScheme() { - return new drop_index_by_name_argsTupleScheme(); + private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { + public get_indexes_argsTupleScheme getScheme() { + return new get_indexes_argsTupleScheme(); } } - private static class drop_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_indexes_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -116574,31 +121455,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIndex_name()) { + if (struct.isSetMax_indexes()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetIndex_name()) { - oprot.writeString(struct.index_name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetMax_indexes()) { + oprot.writeI16(struct.max_indexes); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -116608,32 +121483,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_a struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } } } } - public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_result"); + public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); } - private boolean success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -116702,32 +121573,30 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); } - public drop_index_by_name_result() { + public get_indexes_result() { } - public drop_index_by_name_result( - boolean success, + public get_indexes_result( + List success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -116735,9 +121604,14 @@ public drop_index_by_name_result( /** * Performs a deep copy on other. */ - public drop_index_by_name_result(drop_index_by_name_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_indexes_result(get_indexes_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Index other_element : other.success) { + __this__success.add(new Index(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -116746,38 +121620,53 @@ public drop_index_by_name_result(drop_index_by_name_result other) { } } - public drop_index_by_name_result deepCopy() { - return new drop_index_by_name_result(this); + public get_indexes_result deepCopy() { + return new get_indexes_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Index elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public NoSuchObjectException getO1() { @@ -116832,7 +121721,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -116858,7 +121747,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -116891,21 +121780,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_result) - return this.equals((drop_index_by_name_result)that); + if (that instanceof get_indexes_result) + return this.equals((get_indexes_result)that); return false; } - public boolean equals(drop_index_by_name_result that) { + public boolean equals(get_indexes_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -116934,7 +121823,7 @@ public boolean equals(drop_index_by_name_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -116953,7 +121842,7 @@ public int hashCode() { } @Override - public int compareTo(drop_index_by_name_result other) { + public int compareTo(get_indexes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -117007,11 +121896,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_indexes_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:"); @@ -117048,23 +121941,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultStandardScheme getScheme() { - return new drop_index_by_name_resultStandardScheme(); + private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { + public get_indexes_resultStandardScheme getScheme() { + return new get_indexes_resultStandardScheme(); } } - private static class drop_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_indexes_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -117075,8 +121966,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1166 = iprot.readListBegin(); + struct.success = new ArrayList(_list1166.size); + Index _elem1167; + for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) + { + _elem1167 = new Index(); + _elem1167.read(iprot); + struct.success.add(_elem1167); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -117109,13 +122011,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_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); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Index _iter1169 : struct.success) + { + _iter1169.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -117134,16 +122043,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name } - private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultTupleScheme getScheme() { - return new drop_index_by_name_resultTupleScheme(); + private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { + public get_indexes_resultTupleScheme getScheme() { + return new get_indexes_resultTupleScheme(); } } - private static class drop_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_indexes_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -117157,7 +122066,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Index _iter1170 : struct.success) + { + _iter1170.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -117168,11 +122083,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1171.size); + Index _elem1172; + for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) + { + _elem1172 = new Index(); + _elem1172.read(iprot); + struct.success.add(_elem1172); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -117190,28 +122115,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_r } - public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_args"); + public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String index_name; // required + private short max_indexes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"); + MAX_INDEXES((short)3, "max_indexes"); private static final Map byName = new HashMap(); @@ -117230,8 +122155,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // INDEX_NAME - return INDEX_NAME; + case 3: // MAX_INDEXES + return MAX_INDEXES; default: return null; } @@ -117272,6 +122197,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_INDEXES_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -117279,50 +122206,53 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); } - public get_index_by_name_args() { + public get_index_names_args() { + this.max_indexes = (short)-1; + } - public get_index_by_name_args( + public get_index_names_args( String db_name, String tbl_name, - String index_name) + short max_indexes) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.index_name = index_name; + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public get_index_by_name_args(get_index_by_name_args other) { + public get_index_names_args(get_index_names_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetIndex_name()) { - this.index_name = other.index_name; - } + this.max_indexes = other.max_indexes; } - public get_index_by_name_args deepCopy() { - return new get_index_by_name_args(this); + public get_index_names_args deepCopy() { + return new get_index_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.index_name = null; + this.max_indexes = (short)-1; + } public String getDb_name() { @@ -117371,27 +122301,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getIndex_name() { - return this.index_name; + public short getMax_indexes() { + return this.max_indexes; } - public void setIndex_name(String index_name) { - this.index_name = index_name; + public void setMax_indexes(short max_indexes) { + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } - public void unsetIndex_name() { - this.index_name = null; + public void unsetMax_indexes() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_name() { - return this.index_name != null; + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_indexes() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - public void setIndex_nameIsSet(boolean value) { - if (!value) { - this.index_name = null; - } + public void setMax_indexesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -117412,11 +122341,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case INDEX_NAME: + case MAX_INDEXES: if (value == null) { - unsetIndex_name(); + unsetMax_indexes(); } else { - setIndex_name((String)value); + setMax_indexes((Short)value); } break; @@ -117431,8 +122360,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case INDEX_NAME: - return getIndex_name(); + case MAX_INDEXES: + return getMax_indexes(); } throw new IllegalStateException(); @@ -117449,8 +122378,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case INDEX_NAME: - return isSetIndex_name(); + case MAX_INDEXES: + return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -117459,12 +122388,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_args) - return this.equals((get_index_by_name_args)that); + if (that instanceof get_index_names_args) + return this.equals((get_index_names_args)that); return false; } - public boolean equals(get_index_by_name_args that) { + public boolean equals(get_index_names_args that) { if (that == null) return false; @@ -117486,12 +122415,12 @@ public boolean equals(get_index_by_name_args that) { return false; } - boolean this_present_index_name = true && this.isSetIndex_name(); - boolean that_present_index_name = true && that.isSetIndex_name(); - if (this_present_index_name || that_present_index_name) { - if (!(this_present_index_name && that_present_index_name)) + boolean this_present_max_indexes = true; + boolean that_present_max_indexes = true; + if (this_present_max_indexes || that_present_max_indexes) { + if (!(this_present_max_indexes && that_present_max_indexes)) return false; - if (!this.index_name.equals(that.index_name)) + if (this.max_indexes != that.max_indexes) return false; } @@ -117512,16 +122441,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); - if (present_index_name) - list.add(index_name); + boolean present_max_indexes = true; + list.add(present_max_indexes); + if (present_max_indexes) + list.add(max_indexes); return list.hashCode(); } @Override - public int compareTo(get_index_by_name_args other) { + public int compareTo(get_index_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -117548,12 +122477,12 @@ public int compareTo(get_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } - if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (isSetMax_indexes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -117575,7 +122504,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_index_names_args("); boolean first = true; sb.append("db_name:"); @@ -117594,12 +122523,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("index_name:"); - if (this.index_name == null) { - sb.append("null"); - } else { - sb.append(this.index_name); - } + sb.append("max_indexes:"); + sb.append(this.max_indexes); first = false; sb.append(")"); return sb.toString(); @@ -117620,21 +122545,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_argsStandardScheme getScheme() { - return new get_index_by_name_argsStandardScheme(); + private static class get_index_names_argsStandardSchemeFactory implements SchemeFactory { + public get_index_names_argsStandardScheme getScheme() { + return new get_index_names_argsStandardScheme(); } } - private static class get_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_index_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -117660,10 +122587,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // INDEX_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + case 3: // MAX_INDEXES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -117677,7 +122604,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -117691,27 +122618,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.index_name != null) { - oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); - oprot.writeString(struct.index_name); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); + oprot.writeI16(struct.max_indexes); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_argsTupleScheme getScheme() { - return new get_index_by_name_argsTupleScheme(); + private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { + public get_index_names_argsTupleScheme getScheme() { + return new get_index_names_argsTupleScheme(); } } - private static class get_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_index_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -117720,7 +122645,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIndex_name()) { + if (struct.isSetMax_indexes()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -117730,13 +122655,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetIndex_name()) { - oprot.writeString(struct.index_name); + if (struct.isSetMax_indexes()) { + oprot.writeI16(struct.max_indexes); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -117748,36 +122673,33 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_ar struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } } } } - public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_result"); + public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); } - private Index success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -117794,9 +122716,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -117842,60 +122762,69 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); } - public get_index_by_name_result() { + public get_index_names_result() { } - public get_index_by_name_result( - Index success, - MetaException o1, - NoSuchObjectException o2) + public get_index_names_result( + List success, + MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_index_by_name_result(get_index_by_name_result other) { + public get_index_names_result(get_index_names_result other) { if (other.isSetSuccess()) { - this.success = new Index(other.success); - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_index_by_name_result deepCopy() { - return new get_index_by_name_result(this); + public get_index_names_result deepCopy() { + return new get_index_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } - public Index getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Index success) { + public void setSuccess(List success) { this.success = success; } @@ -117914,34 +122843,11 @@ public void setSuccessIsSet(boolean value) { } } - 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() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -117966,15 +122872,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Index)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); + setSuccess((List)value); } break; @@ -117982,7 +122880,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -117994,9 +122892,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -118013,8 +122908,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -118025,12 +122918,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_result) - return this.equals((get_index_by_name_result)that); + if (that instanceof get_index_names_result) + return this.equals((get_index_names_result)that); return false; } - public boolean equals(get_index_by_name_result that) { + public boolean equals(get_index_names_result that) { if (that == null) return false; @@ -118043,15 +122936,6 @@ public boolean equals(get_index_by_name_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -118073,11 +122957,6 @@ public int hashCode() { if (present_success) list.add(success); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -118087,7 +122966,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_by_name_result other) { + public int compareTo(get_index_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -118104,16 +122983,6 @@ public int compareTo(get_index_by_name_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -118141,7 +123010,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_index_names_result("); boolean first = true; sb.append("success:"); @@ -118152,14 +123021,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -118174,9 +123035,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -118195,15 +123053,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_resultStandardScheme getScheme() { - return new get_index_by_name_resultStandardScheme(); + private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { + public get_index_names_resultStandardScheme getScheme() { + return new get_index_names_resultStandardScheme(); } } - private static class get_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_index_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -118214,26 +123072,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Index(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1174 = iprot.readListBegin(); + struct.success = new ArrayList(_list1174.size); + String _elem1175; + for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) + { + _elem1175 = iprot.readString(); + struct.success.add(_elem1175); + } + 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; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -118249,18 +123107,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1177 : struct.success) + { + oprot.writeString(_iter1177); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o2 != null) { @@ -118274,33 +123134,33 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ } - private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_resultTupleScheme getScheme() { - return new get_index_by_name_resultTupleScheme(); + private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { + public get_index_names_resultTupleScheme getScheme() { + return new get_index_names_resultTupleScheme(); } } - private static class get_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_index_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO1()) { - optionals.set(1); - } if (struct.isSetO2()) { - optionals.set(2); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetO1()) { - struct.o1.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter1178 : struct.success) + { + oprot.writeString(_iter1178); + } + } } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -118308,21 +123168,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Index(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1179.size); + String _elem1180; + for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) + { + _elem1180 = iprot.readString(); + struct.success.add(_elem1180); + } + } 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 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -118331,28 +123194,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re } - public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_args"); + public static class get_primary_keys_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_primary_keys_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private short max_indexes; // required + private PrimaryKeysRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_INDEXES((short)3, "max_indexes"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -118367,12 +123224,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_INDEXES - return MAX_INDEXES; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -118393,175 +123246,93 @@ public static _Fields findByThriftIdOrThrow(int fieldId) { */ 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 __MAX_INDEXES_ISSET_ID = 0; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); - } - - public get_indexes_args() { - this.max_indexes = (short)-1; - - } - - public get_indexes_args( - String db_name, - String tbl_name, - short max_indexes) - { - this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public get_indexes_args(get_indexes_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - this.max_indexes = other.max_indexes; - } - - public get_indexes_args deepCopy() { - return new get_indexes_args(this); - } - - @Override - public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_indexes = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } + } - public void setDb_name(String db_name) { - this.db_name = db_name; - } + private final short _thriftId; + private final String _fieldName; - public void unsetDb_name() { - this.db_name = null; - } + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - /** 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 short getThriftFieldId() { + return _thriftId; + } - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; + public String getFieldName() { + return _fieldName; } } - public String getTbl_name() { - return this.tbl_name; + // 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 void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public get_primary_keys_args() { } - public void unsetTbl_name() { - this.tbl_name = null; + public get_primary_keys_args( + PrimaryKeysRequest request) + { + this(); + this.request = request; } - /** 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; + /** + * 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 void setTbl_nameIsSet(boolean value) { - if (!value) { - this.tbl_name = null; - } + public get_primary_keys_args deepCopy() { + return new get_primary_keys_args(this); } - public short getMax_indexes() { - return this.max_indexes; + @Override + public void clear() { + this.request = null; } - public void setMax_indexes(short max_indexes) { - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); + public PrimaryKeysRequest getRequest() { + return this.request; } - public void unsetMax_indexes() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); + public void setRequest(PrimaryKeysRequest request) { + this.request = request; } - /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_indexes() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); + public void unsetRequest() { + this.request = null; } - public void setMax_indexesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); + /** 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 DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case MAX_INDEXES: + case REQUEST: if (value == null) { - unsetMax_indexes(); + unsetRequest(); } else { - setMax_indexes((Short)value); + setRequest((PrimaryKeysRequest)value); } break; @@ -118570,14 +123341,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case MAX_INDEXES: - return getMax_indexes(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -118590,12 +123355,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_INDEXES: - return isSetMax_indexes(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -118604,39 +123365,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_args) - return this.equals((get_indexes_args)that); + if (that instanceof get_primary_keys_args) + return this.equals((get_primary_keys_args)that); return false; } - public boolean equals(get_indexes_args that) { + public boolean equals(get_primary_keys_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_max_indexes = true; - boolean that_present_max_indexes = true; - if (this_present_max_indexes || that_present_max_indexes) { - if (!(this_present_max_indexes && that_present_max_indexes)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (this.max_indexes != that.max_indexes) + if (!this.request.equals(that.request)) return false; } @@ -118647,58 +123390,28 @@ public boolean equals(get_indexes_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_max_indexes = true; - list.add(present_max_indexes); - if (present_max_indexes) - list.add(max_indexes); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(get_indexes_args other) { + public int compareTo(get_primary_keys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -118720,28 +123433,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_args("); + StringBuilder sb = new StringBuilder("get_primary_keys_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.request); } first = false; - if (!first) sb.append(", "); - sb.append("max_indexes:"); - sb.append(this.max_indexes); - first = false; sb.append(")"); return sb.toString(); } @@ -118749,6 +123450,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -118761,23 +123465,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { - public get_indexes_argsStandardScheme getScheme() { - return new get_indexes_argsStandardScheme(); + private static class get_primary_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_argsStandardScheme getScheme() { + return new get_primary_keys_argsStandardScheme(); } } - private static class get_indexes_argsStandardScheme extends StandardScheme { + private static class get_primary_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -118787,26 +123489,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args st break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_INDEXES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new PrimaryKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -118820,99 +123507,72 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); - oprot.writeI16(struct.max_indexes); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { - public get_indexes_argsTupleScheme getScheme() { - return new get_indexes_argsTupleScheme(); + private static class get_primary_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_argsTupleScheme getScheme() { + return new get_primary_keys_argsTupleScheme(); } } - private static class get_indexes_argsTupleScheme extends TupleScheme { + private static class get_primary_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetMax_indexes()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetMax_indexes()) { - oprot.writeI16(struct.max_indexes); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + struct.request = new PrimaryKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_result"); + public static class get_primary_keys_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_primary_keys_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField 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_indexes_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private PrimaryKeysResponse success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -118983,23 +123643,22 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class)))); + 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_indexes_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_result.class, metaDataMap); } - public get_indexes_result() { + public get_primary_keys_result() { } - public get_indexes_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_primary_keys_result( + PrimaryKeysResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -119010,24 +123669,20 @@ public get_indexes_result( /** * Performs a deep copy on other. */ - public get_indexes_result(get_indexes_result other) { + public get_primary_keys_result(get_primary_keys_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Index other_element : other.success) { - __this__success.add(new Index(other_element)); - } - this.success = __this__success; + this.success = new PrimaryKeysResponse(other.success); } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_indexes_result deepCopy() { - return new get_indexes_result(this); + public get_primary_keys_result deepCopy() { + return new get_primary_keys_result(this); } @Override @@ -119037,26 +123692,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Index elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public PrimaryKeysResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PrimaryKeysResponse success) { this.success = success; } @@ -119075,11 +123715,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -119098,11 +123738,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -119127,7 +123767,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PrimaryKeysResponse)value); } break; @@ -119135,7 +123775,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -119143,7 +123783,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -119186,12 +123826,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_result) - return this.equals((get_indexes_result)that); + if (that instanceof get_primary_keys_result) + return this.equals((get_primary_keys_result)that); return false; } - public boolean equals(get_indexes_result that) { + public boolean equals(get_primary_keys_result that) { if (that == null) return false; @@ -119248,7 +123888,7 @@ public int hashCode() { } @Override - public int compareTo(get_indexes_result other) { + public int compareTo(get_primary_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -119302,7 +123942,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_result("); + StringBuilder sb = new StringBuilder("get_primary_keys_result("); boolean first = true; sb.append("success:"); @@ -119335,6 +123975,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 { @@ -119353,15 +123996,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { - public get_indexes_resultStandardScheme getScheme() { - return new get_indexes_resultStandardScheme(); + private static class get_primary_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_resultStandardScheme getScheme() { + return new get_primary_keys_resultStandardScheme(); } } - private static class get_indexes_resultStandardScheme extends StandardScheme { + private static class get_primary_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -119372,19 +124015,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1118 = iprot.readListBegin(); - struct.success = new ArrayList(_list1118.size); - Index _elem1119; - for (int _i1120 = 0; _i1120 < _list1118.size; ++_i1120) - { - _elem1119 = new Index(); - _elem1119.read(iprot); - struct.success.add(_elem1119); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -119392,7 +124025,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -119401,7 +124034,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -119417,20 +124050,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter1121 : struct.success) - { - _iter1121.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -119449,16 +124075,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result } - private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { - public get_indexes_resultTupleScheme getScheme() { - return new get_indexes_resultTupleScheme(); + private static class get_primary_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_resultTupleScheme getScheme() { + return new get_primary_keys_resultTupleScheme(); } } - private static class get_indexes_resultTupleScheme extends TupleScheme { + private static class get_primary_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -119472,13 +124098,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Index _iter1122 : struct.success) - { - _iter1122.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -119489,30 +124109,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1123.size); - Index _elem1124; - for (int _i1125 = 0; _i1125 < _list1123.size; ++_i1125) - { - _elem1124 = new Index(); - _elem1124.read(iprot); - struct.success.add(_elem1124); - } - } + struct.success = new PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -119521,28 +124132,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s } - public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_args"); + 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 DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private short max_indexes; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_INDEXES((short)3, "max_indexes"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -119557,12 +124162,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_INDEXES - return MAX_INDEXES; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -119603,155 +124204,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_INDEXES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ForeignKeysRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_args.class, metaDataMap); } - public get_index_names_args() { - this.max_indexes = (short)-1; - + public get_foreign_keys_args() { } - public get_index_names_args( - String db_name, - String tbl_name, - short max_indexes) + public get_foreign_keys_args( + ForeignKeysRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); + this.request = request; } /** * Performs a deep copy on other. */ - public get_index_names_args(get_index_names_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_foreign_keys_args(get_foreign_keys_args other) { + if (other.isSetRequest()) { + this.request = new ForeignKeysRequest(other.request); } - this.max_indexes = other.max_indexes; } - public get_index_names_args deepCopy() { - return new get_index_names_args(this); + public get_foreign_keys_args deepCopy() { + return new get_foreign_keys_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_indexes = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + this.request = null; } - public String getTbl_name() { - return this.tbl_name; + public ForeignKeysRequest getRequest() { + return this.request; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setRequest(ForeignKeysRequest request) { + this.request = request; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setTbl_nameIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.request = null; } } - public short getMax_indexes() { - return this.max_indexes; - } - - public void setMax_indexes(short max_indexes) { - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); - } - - public void unsetMax_indexes() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_indexes() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - public void setMax_indexesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case MAX_INDEXES: + case REQUEST: if (value == null) { - unsetMax_indexes(); + unsetRequest(); } else { - setMax_indexes((Short)value); + setRequest((ForeignKeysRequest)value); } break; @@ -119760,14 +124279,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case MAX_INDEXES: - return getMax_indexes(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -119780,12 +124293,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_INDEXES: - return isSetMax_indexes(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -119794,39 +124303,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_args) - return this.equals((get_index_names_args)that); + if (that instanceof get_foreign_keys_args) + return this.equals((get_foreign_keys_args)that); return false; } - public boolean equals(get_index_names_args that) { + public boolean equals(get_foreign_keys_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_max_indexes = true; - boolean that_present_max_indexes = true; - if (this_present_max_indexes || that_present_max_indexes) { - if (!(this_present_max_indexes && that_present_max_indexes)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (this.max_indexes != that.max_indexes) + if (!this.request.equals(that.request)) return false; } @@ -119837,58 +124328,28 @@ public boolean equals(get_index_names_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_max_indexes = true; - list.add(present_max_indexes); - if (present_max_indexes) - list.add(max_indexes); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(get_index_names_args other) { + public int compareTo(get_foreign_keys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -119910,28 +124371,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_args("); + StringBuilder sb = new StringBuilder("get_foreign_keys_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.request); } first = false; - if (!first) sb.append(", "); - sb.append("max_indexes:"); - sb.append(this.max_indexes); - first = false; sb.append(")"); return sb.toString(); } @@ -119939,6 +124388,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -119951,23 +124403,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_index_names_argsStandardSchemeFactory implements SchemeFactory { - public get_index_names_argsStandardScheme getScheme() { - return new get_index_names_argsStandardScheme(); + private static class get_foreign_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsStandardScheme getScheme() { + return new get_foreign_keys_argsStandardScheme(); } } - private static class get_index_names_argsStandardScheme extends StandardScheme { + private static class get_foreign_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -119977,26 +124427,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_INDEXES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new ForeignKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -120010,102 +124445,78 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); - oprot.writeI16(struct.max_indexes); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { - public get_index_names_argsTupleScheme getScheme() { - return new get_index_names_argsTupleScheme(); + private static class get_foreign_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsTupleScheme getScheme() { + return new get_foreign_keys_argsTupleScheme(); } } - private static class get_index_names_argsTupleScheme extends TupleScheme { + private static class get_foreign_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetMax_indexes()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetMax_indexes()) { - oprot.writeI16(struct.max_indexes); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + struct.request = new ForeignKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_result"); + 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.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o2; // required + private ForeignKeysResponse success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -120122,7 +124533,9 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O2 + case 1: // O1 + return O1; + case 2: // O2 return O2; default: return null; @@ -120168,69 +124581,60 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, 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_index_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_result.class, metaDataMap); } - public get_index_names_result() { + public get_foreign_keys_result() { } - public get_index_names_result( - List success, - MetaException o2) + public get_foreign_keys_result( + ForeignKeysResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_index_names_result(get_index_names_result other) { + public get_foreign_keys_result(get_foreign_keys_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new ForeignKeysResponse(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_index_names_result deepCopy() { - return new get_index_names_result(this); + public get_foreign_keys_result deepCopy() { + return new get_foreign_keys_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public ForeignKeysResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(ForeignKeysResponse success) { this.success = success; } @@ -120249,11 +124653,34 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO2() { + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -120278,7 +124705,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((ForeignKeysResponse)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -120286,7 +124721,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -120298,6 +124733,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -120314,6 +124752,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -120324,12 +124764,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_result) - return this.equals((get_index_names_result)that); + if (that instanceof get_foreign_keys_result) + return this.equals((get_foreign_keys_result)that); return false; } - public boolean equals(get_index_names_result that) { + public boolean equals(get_foreign_keys_result that) { if (that == null) return false; @@ -120342,6 +124782,15 @@ public boolean equals(get_index_names_result that) { return false; } + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -120363,6 +124812,11 @@ public int hashCode() { if (present_success) list.add(success); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -120372,7 +124826,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_names_result other) { + public int compareTo(get_foreign_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -120389,6 +124843,16 @@ public int compareTo(get_index_names_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -120416,7 +124880,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_result("); + StringBuilder sb = new StringBuilder("get_foreign_keys_result("); boolean first = true; sb.append("success:"); @@ -120427,6 +124891,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -120441,6 +124913,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 { @@ -120459,15 +124934,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { - public get_index_names_resultStandardScheme getScheme() { - return new get_index_names_resultStandardScheme(); + private static class get_foreign_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultStandardScheme getScheme() { + return new get_foreign_keys_resultStandardScheme(); } } - private static class get_index_names_resultStandardScheme extends StandardScheme { + private static class get_foreign_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -120478,26 +124953,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1126 = iprot.readListBegin(); - struct.success = new ArrayList(_list1126.size); - String _elem1127; - for (int _i1128 = 0; _i1128 < _list1126.size; ++_i1128) - { - _elem1127 = iprot.readString(); - struct.success.add(_elem1127); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new ForeignKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O2 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -120513,20 +124988,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1129 : struct.success) - { - oprot.writeString(_iter1129); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); oprot.writeFieldEnd(); } if (struct.o2 != null) { @@ -120540,33 +125013,33 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re } - private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { - public get_index_names_resultTupleScheme getScheme() { - return new get_index_names_resultTupleScheme(); + private static class get_foreign_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultTupleScheme getScheme() { + return new get_foreign_keys_resultTupleScheme(); } } - private static class get_index_names_resultTupleScheme extends TupleScheme { + private static class get_foreign_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1130 : struct.success) - { - oprot.writeString(_iter1130); - } - } + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -120574,24 +125047,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1131.size); - String _elem1132; - for (int _i1133 = 0; _i1133 < _list1131.size; ++_i1133) - { - _elem1132 = iprot.readString(); - struct.success.add(_elem1132); - } - } + struct.success = new ForeignKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -120600,18 +125070,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu } - 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"); + 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_primary_keys_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_primary_keys_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_unique_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_unique_constraints_argsTupleSchemeFactory()); } - private PrimaryKeysRequest 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 { @@ -120676,16 +125146,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, UniqueConstraintsRequest.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_unique_constraints_args.class, metaDataMap); } - public get_primary_keys_args() { + public get_unique_constraints_args() { } - public get_primary_keys_args( - PrimaryKeysRequest request) + public get_unique_constraints_args( + UniqueConstraintsRequest request) { this(); this.request = request; @@ -120694,14 +125164,14 @@ public get_primary_keys_args( /** * Performs a deep copy on other. */ - public get_primary_keys_args(get_primary_keys_args other) { + public get_unique_constraints_args(get_unique_constraints_args other) { if (other.isSetRequest()) { - this.request = new PrimaryKeysRequest(other.request); + this.request = new UniqueConstraintsRequest(other.request); } } - public get_primary_keys_args deepCopy() { - return new get_primary_keys_args(this); + public get_unique_constraints_args deepCopy() { + return new get_unique_constraints_args(this); } @Override @@ -120709,11 +125179,11 @@ public void clear() { this.request = null; } - public PrimaryKeysRequest getRequest() { + public UniqueConstraintsRequest getRequest() { return this.request; } - public void setRequest(PrimaryKeysRequest request) { + public void setRequest(UniqueConstraintsRequest request) { this.request = request; } @@ -120738,7 +125208,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((PrimaryKeysRequest)value); + setRequest((UniqueConstraintsRequest)value); } break; @@ -120771,12 +125241,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_unique_constraints_args) + return this.equals((get_unique_constraints_args)that); return false; } - public boolean equals(get_primary_keys_args that) { + public boolean equals(get_unique_constraints_args that) { if (that == null) return false; @@ -120805,7 +125275,7 @@ public int hashCode() { } @Override - public int compareTo(get_primary_keys_args other) { + public int compareTo(get_unique_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -120839,7 +125309,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_unique_constraints_args("); boolean first = true; sb.append("request:"); @@ -120877,15 +125347,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_unique_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_unique_constraints_argsStandardScheme getScheme() { + return new get_unique_constraints_argsStandardScheme(); } } - private static class get_primary_keys_argsStandardScheme extends StandardScheme { + private static class get_unique_constraints_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_unique_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -120897,7 +125367,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 UniqueConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -120913,7 +125383,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_unique_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -120928,16 +125398,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_unique_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_unique_constraints_argsTupleScheme getScheme() { + return new get_unique_constraints_argsTupleScheme(); } } - private static class get_primary_keys_argsTupleScheme extends TupleScheme { + private static class get_unique_constraints_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_unique_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -120950,11 +125420,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_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 PrimaryKeysRequest(); + struct.request = new UniqueConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -120963,8 +125433,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_arg } - 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"); + 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); @@ -120972,11 +125442,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_unique_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_unique_constraints_resultTupleSchemeFactory()); } - private PrimaryKeysResponse success; // required + private UniqueConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -121049,20 +125519,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, 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_primary_keys_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_unique_constraints_result.class, metaDataMap); } - public get_primary_keys_result() { + public get_unique_constraints_result() { } - public get_primary_keys_result( - PrimaryKeysResponse success, + public get_unique_constraints_result( + UniqueConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -121075,9 +125545,9 @@ public get_primary_keys_result( /** * Performs a deep copy on other. */ - public get_primary_keys_result(get_primary_keys_result other) { + public get_unique_constraints_result(get_unique_constraints_result other) { if (other.isSetSuccess()) { - this.success = new PrimaryKeysResponse(other.success); + this.success = new UniqueConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -121087,8 +125557,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_unique_constraints_result deepCopy() { + return new get_unique_constraints_result(this); } @Override @@ -121098,11 +125568,11 @@ public void clear() { this.o2 = null; } - public PrimaryKeysResponse getSuccess() { + public UniqueConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(PrimaryKeysResponse success) { + public void setSuccess(UniqueConstraintsResponse success) { this.success = success; } @@ -121173,7 +125643,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PrimaryKeysResponse)value); + setSuccess((UniqueConstraintsResponse)value); } break; @@ -121232,12 +125702,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_unique_constraints_result) + return this.equals((get_unique_constraints_result)that); return false; } - public boolean equals(get_primary_keys_result that) { + public boolean equals(get_unique_constraints_result that) { if (that == null) return false; @@ -121294,7 +125764,7 @@ public int hashCode() { } @Override - public int compareTo(get_primary_keys_result other) { + public int compareTo(get_unique_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -121348,7 +125818,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_unique_constraints_result("); boolean first = true; sb.append("success:"); @@ -121402,15 +125872,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_unique_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_unique_constraints_resultStandardScheme getScheme() { + return new get_unique_constraints_resultStandardScheme(); } } - private static class get_primary_keys_resultStandardScheme extends StandardScheme { + private static class get_unique_constraints_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_unique_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -121422,7 +125892,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 UniqueConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -121456,7 +125926,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_unique_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -121481,16 +125951,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_unique_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_unique_constraints_resultTupleScheme getScheme() { + return new get_unique_constraints_resultTupleScheme(); } } - private static class get_primary_keys_resultTupleScheme extends TupleScheme { + private static class get_unique_constraints_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_unique_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -121515,11 +125985,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_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 PrimaryKeysResponse(); + struct.success = new UniqueConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -121538,18 +126008,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_res } - 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"); + 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_foreign_keys_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_foreign_keys_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_not_null_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_not_null_constraints_argsTupleSchemeFactory()); } - private ForeignKeysRequest 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 { @@ -121614,16 +126084,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, NotNullConstraintsRequest.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_not_null_constraints_args.class, metaDataMap); } - public get_foreign_keys_args() { + public get_not_null_constraints_args() { } - public get_foreign_keys_args( - ForeignKeysRequest request) + public get_not_null_constraints_args( + NotNullConstraintsRequest request) { this(); this.request = request; @@ -121632,14 +126102,14 @@ public get_foreign_keys_args( /** * Performs a deep copy on other. */ - public get_foreign_keys_args(get_foreign_keys_args other) { + public get_not_null_constraints_args(get_not_null_constraints_args other) { if (other.isSetRequest()) { - this.request = new ForeignKeysRequest(other.request); + this.request = new NotNullConstraintsRequest(other.request); } } - public get_foreign_keys_args deepCopy() { - return new get_foreign_keys_args(this); + public get_not_null_constraints_args deepCopy() { + return new get_not_null_constraints_args(this); } @Override @@ -121647,11 +126117,11 @@ public void clear() { this.request = null; } - public ForeignKeysRequest getRequest() { + public NotNullConstraintsRequest getRequest() { return this.request; } - public void setRequest(ForeignKeysRequest request) { + public void setRequest(NotNullConstraintsRequest request) { this.request = request; } @@ -121676,7 +126146,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((ForeignKeysRequest)value); + setRequest((NotNullConstraintsRequest)value); } break; @@ -121709,12 +126179,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_not_null_constraints_args) + return this.equals((get_not_null_constraints_args)that); return false; } - public boolean equals(get_foreign_keys_args that) { + public boolean equals(get_not_null_constraints_args that) { if (that == null) return false; @@ -121743,7 +126213,7 @@ public int hashCode() { } @Override - public int compareTo(get_foreign_keys_args other) { + public int compareTo(get_not_null_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -121777,7 +126247,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_not_null_constraints_args("); boolean first = true; sb.append("request:"); @@ -121815,15 +126285,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_not_null_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_not_null_constraints_argsStandardScheme getScheme() { + return new get_not_null_constraints_argsStandardScheme(); } } - private static class get_foreign_keys_argsStandardScheme extends StandardScheme { + private static class get_not_null_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_not_null_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -121835,7 +126305,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 NotNullConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -121851,7 +126321,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_not_null_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -121866,16 +126336,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_not_null_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_not_null_constraints_argsTupleScheme getScheme() { + return new get_not_null_constraints_argsTupleScheme(); } } - private static class get_foreign_keys_argsTupleScheme extends TupleScheme { + private static class get_not_null_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_not_null_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -121888,11 +126358,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_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 ForeignKeysRequest(); + struct.request = new NotNullConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -121901,8 +126371,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_arg } - 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"); + 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); @@ -121910,11 +126380,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_not_null_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_not_null_constraints_resultTupleSchemeFactory()); } - private ForeignKeysResponse success; // required + private NotNullConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -121987,20 +126457,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, 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_foreign_keys_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_not_null_constraints_result.class, metaDataMap); } - public get_foreign_keys_result() { + public get_not_null_constraints_result() { } - public get_foreign_keys_result( - ForeignKeysResponse success, + public get_not_null_constraints_result( + NotNullConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -122013,9 +126483,9 @@ public get_foreign_keys_result( /** * Performs a deep copy on other. */ - public get_foreign_keys_result(get_foreign_keys_result other) { + public get_not_null_constraints_result(get_not_null_constraints_result other) { if (other.isSetSuccess()) { - this.success = new ForeignKeysResponse(other.success); + this.success = new NotNullConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -122025,8 +126495,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_not_null_constraints_result deepCopy() { + return new get_not_null_constraints_result(this); } @Override @@ -122036,11 +126506,11 @@ public void clear() { this.o2 = null; } - public ForeignKeysResponse getSuccess() { + public NotNullConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(ForeignKeysResponse success) { + public void setSuccess(NotNullConstraintsResponse success) { this.success = success; } @@ -122111,7 +126581,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((ForeignKeysResponse)value); + setSuccess((NotNullConstraintsResponse)value); } break; @@ -122170,12 +126640,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_not_null_constraints_result) + return this.equals((get_not_null_constraints_result)that); return false; } - public boolean equals(get_foreign_keys_result that) { + public boolean equals(get_not_null_constraints_result that) { if (that == null) return false; @@ -122232,7 +126702,7 @@ public int hashCode() { } @Override - public int compareTo(get_foreign_keys_result other) { + public int compareTo(get_not_null_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -122286,7 +126756,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_not_null_constraints_result("); boolean first = true; sb.append("success:"); @@ -122340,15 +126810,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_not_null_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_not_null_constraints_resultStandardScheme getScheme() { + return new get_not_null_constraints_resultStandardScheme(); } } - private static class get_foreign_keys_resultStandardScheme extends StandardScheme { + private static class get_not_null_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_not_null_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -122360,7 +126830,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 NotNullConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -122394,7 +126864,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_not_null_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -122419,16 +126889,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_not_null_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_not_null_constraints_resultTupleScheme getScheme() { + return new get_not_null_constraints_resultTupleScheme(); } } - private static class get_foreign_keys_resultTupleScheme extends TupleScheme { + private static class get_not_null_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_not_null_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -122453,11 +126923,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_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 ForeignKeysResponse(); + struct.success = new NotNullConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -138196,13 +142666,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 _list1134 = iprot.readListBegin(); - struct.success = new ArrayList(_list1134.size); - String _elem1135; - for (int _i1136 = 0; _i1136 < _list1134.size; ++_i1136) + org.apache.thrift.protocol.TList _list1182 = iprot.readListBegin(); + struct.success = new ArrayList(_list1182.size); + String _elem1183; + for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) { - _elem1135 = iprot.readString(); - struct.success.add(_elem1135); + _elem1183 = iprot.readString(); + struct.success.add(_elem1183); } iprot.readListEnd(); } @@ -138237,9 +142707,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 _iter1137 : struct.success) + for (String _iter1185 : struct.success) { - oprot.writeString(_iter1137); + oprot.writeString(_iter1185); } oprot.writeListEnd(); } @@ -138278,9 +142748,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1138 : struct.success) + for (String _iter1186 : struct.success) { - oprot.writeString(_iter1138); + oprot.writeString(_iter1186); } } } @@ -138295,13 +142765,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 _list1139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1139.size); - String _elem1140; - for (int _i1141 = 0; _i1141 < _list1139.size; ++_i1141) + org.apache.thrift.protocol.TList _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1187.size); + String _elem1188; + for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) { - _elem1140 = iprot.readString(); - struct.success.add(_elem1140); + _elem1188 = iprot.readString(); + struct.success.add(_elem1188); } } struct.setSuccessIsSet(true); @@ -142356,13 +146826,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 _list1142 = iprot.readListBegin(); - struct.success = new ArrayList(_list1142.size); - String _elem1143; - for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) + org.apache.thrift.protocol.TList _list1190 = iprot.readListBegin(); + struct.success = new ArrayList(_list1190.size); + String _elem1191; + for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) { - _elem1143 = iprot.readString(); - struct.success.add(_elem1143); + _elem1191 = iprot.readString(); + struct.success.add(_elem1191); } iprot.readListEnd(); } @@ -142397,9 +146867,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 _iter1145 : struct.success) + for (String _iter1193 : struct.success) { - oprot.writeString(_iter1145); + oprot.writeString(_iter1193); } oprot.writeListEnd(); } @@ -142438,9 +146908,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1146 : struct.success) + for (String _iter1194 : struct.success) { - oprot.writeString(_iter1146); + oprot.writeString(_iter1194); } } } @@ -142455,13 +146925,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 _list1147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1147.size); - String _elem1148; - for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) + org.apache.thrift.protocol.TList _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1195.size); + String _elem1196; + for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) { - _elem1148 = iprot.readString(); - struct.success.add(_elem1148); + _elem1196 = iprot.readString(); + struct.success.add(_elem1196); } } struct.setSuccessIsSet(true); @@ -145752,14 +150222,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 _list1150 = iprot.readListBegin(); - struct.success = new ArrayList(_list1150.size); - Role _elem1151; - for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) + org.apache.thrift.protocol.TList _list1198 = iprot.readListBegin(); + struct.success = new ArrayList(_list1198.size); + Role _elem1199; + for (int _i1200 = 0; _i1200 < _list1198.size; ++_i1200) { - _elem1151 = new Role(); - _elem1151.read(iprot); - struct.success.add(_elem1151); + _elem1199 = new Role(); + _elem1199.read(iprot); + struct.success.add(_elem1199); } iprot.readListEnd(); } @@ -145794,9 +150264,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 _iter1153 : struct.success) + for (Role _iter1201 : struct.success) { - _iter1153.write(oprot); + _iter1201.write(oprot); } oprot.writeListEnd(); } @@ -145835,9 +150305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1154 : struct.success) + for (Role _iter1202 : struct.success) { - _iter1154.write(oprot); + _iter1202.write(oprot); } } } @@ -145852,14 +150322,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 _list1155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1155.size); - Role _elem1156; - for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) + org.apache.thrift.protocol.TList _list1203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1203.size); + Role _elem1204; + for (int _i1205 = 0; _i1205 < _list1203.size; ++_i1205) { - _elem1156 = new Role(); - _elem1156.read(iprot); - struct.success.add(_elem1156); + _elem1204 = new Role(); + _elem1204.read(iprot); + struct.success.add(_elem1204); } } struct.setSuccessIsSet(true); @@ -148864,13 +153334,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 _list1158 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1158.size); - String _elem1159; - for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160) + org.apache.thrift.protocol.TList _list1206 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1206.size); + String _elem1207; + for (int _i1208 = 0; _i1208 < _list1206.size; ++_i1208) { - _elem1159 = iprot.readString(); - struct.group_names.add(_elem1159); + _elem1207 = iprot.readString(); + struct.group_names.add(_elem1207); } iprot.readListEnd(); } @@ -148906,9 +153376,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 _iter1161 : struct.group_names) + for (String _iter1209 : struct.group_names) { - oprot.writeString(_iter1161); + oprot.writeString(_iter1209); } oprot.writeListEnd(); } @@ -148951,9 +153421,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 _iter1162 : struct.group_names) + for (String _iter1210 : struct.group_names) { - oprot.writeString(_iter1162); + oprot.writeString(_iter1210); } } } @@ -148974,13 +153444,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1163.size); - String _elem1164; - for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) + org.apache.thrift.protocol.TList _list1211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1211.size); + String _elem1212; + for (int _i1213 = 0; _i1213 < _list1211.size; ++_i1213) { - _elem1164 = iprot.readString(); - struct.group_names.add(_elem1164); + _elem1212 = iprot.readString(); + struct.group_names.add(_elem1212); } } struct.setGroup_namesIsSet(true); @@ -150438,14 +154908,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 _list1166 = iprot.readListBegin(); - struct.success = new ArrayList(_list1166.size); - HiveObjectPrivilege _elem1167; - for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) + org.apache.thrift.protocol.TList _list1214 = iprot.readListBegin(); + struct.success = new ArrayList(_list1214.size); + HiveObjectPrivilege _elem1215; + for (int _i1216 = 0; _i1216 < _list1214.size; ++_i1216) { - _elem1167 = new HiveObjectPrivilege(); - _elem1167.read(iprot); - struct.success.add(_elem1167); + _elem1215 = new HiveObjectPrivilege(); + _elem1215.read(iprot); + struct.success.add(_elem1215); } iprot.readListEnd(); } @@ -150480,9 +154950,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 _iter1169 : struct.success) + for (HiveObjectPrivilege _iter1217 : struct.success) { - _iter1169.write(oprot); + _iter1217.write(oprot); } oprot.writeListEnd(); } @@ -150521,9 +154991,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1170 : struct.success) + for (HiveObjectPrivilege _iter1218 : struct.success) { - _iter1170.write(oprot); + _iter1218.write(oprot); } } } @@ -150538,14 +155008,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 _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1171.size); - HiveObjectPrivilege _elem1172; - for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) + org.apache.thrift.protocol.TList _list1219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1219.size); + HiveObjectPrivilege _elem1220; + for (int _i1221 = 0; _i1221 < _list1219.size; ++_i1221) { - _elem1172 = new HiveObjectPrivilege(); - _elem1172.read(iprot); - struct.success.add(_elem1172); + _elem1220 = new HiveObjectPrivilege(); + _elem1220.read(iprot); + struct.success.add(_elem1220); } } struct.setSuccessIsSet(true); @@ -153447,13 +157917,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 _list1174 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1174.size); - String _elem1175; - for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) + org.apache.thrift.protocol.TList _list1222 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1222.size); + String _elem1223; + for (int _i1224 = 0; _i1224 < _list1222.size; ++_i1224) { - _elem1175 = iprot.readString(); - struct.group_names.add(_elem1175); + _elem1223 = iprot.readString(); + struct.group_names.add(_elem1223); } iprot.readListEnd(); } @@ -153484,9 +157954,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 _iter1177 : struct.group_names) + for (String _iter1225 : struct.group_names) { - oprot.writeString(_iter1177); + oprot.writeString(_iter1225); } oprot.writeListEnd(); } @@ -153523,9 +157993,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 _iter1178 : struct.group_names) + for (String _iter1226 : struct.group_names) { - oprot.writeString(_iter1178); + oprot.writeString(_iter1226); } } } @@ -153541,13 +158011,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1179.size); - String _elem1180; - for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) + org.apache.thrift.protocol.TList _list1227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1227.size); + String _elem1228; + for (int _i1229 = 0; _i1229 < _list1227.size; ++_i1229) { - _elem1180 = iprot.readString(); - struct.group_names.add(_elem1180); + _elem1228 = iprot.readString(); + struct.group_names.add(_elem1228); } } struct.setGroup_namesIsSet(true); @@ -153950,13 +158420,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 _list1182 = iprot.readListBegin(); - struct.success = new ArrayList(_list1182.size); - String _elem1183; - for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) + org.apache.thrift.protocol.TList _list1230 = iprot.readListBegin(); + struct.success = new ArrayList(_list1230.size); + String _elem1231; + for (int _i1232 = 0; _i1232 < _list1230.size; ++_i1232) { - _elem1183 = iprot.readString(); - struct.success.add(_elem1183); + _elem1231 = iprot.readString(); + struct.success.add(_elem1231); } iprot.readListEnd(); } @@ -153991,9 +158461,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 _iter1185 : struct.success) + for (String _iter1233 : struct.success) { - oprot.writeString(_iter1185); + oprot.writeString(_iter1233); } oprot.writeListEnd(); } @@ -154032,9 +158502,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1186 : struct.success) + for (String _iter1234 : struct.success) { - oprot.writeString(_iter1186); + oprot.writeString(_iter1234); } } } @@ -154049,13 +158519,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 _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1187.size); - String _elem1188; - for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) + org.apache.thrift.protocol.TList _list1235 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1235.size); + String _elem1236; + for (int _i1237 = 0; _i1237 < _list1235.size; ++_i1237) { - _elem1188 = iprot.readString(); - struct.success.add(_elem1188); + _elem1236 = iprot.readString(); + struct.success.add(_elem1236); } } struct.setSuccessIsSet(true); @@ -159346,13 +163816,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 _list1190 = iprot.readListBegin(); - struct.success = new ArrayList(_list1190.size); - String _elem1191; - for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) + org.apache.thrift.protocol.TList _list1238 = iprot.readListBegin(); + struct.success = new ArrayList(_list1238.size); + String _elem1239; + for (int _i1240 = 0; _i1240 < _list1238.size; ++_i1240) { - _elem1191 = iprot.readString(); - struct.success.add(_elem1191); + _elem1239 = iprot.readString(); + struct.success.add(_elem1239); } iprot.readListEnd(); } @@ -159378,9 +163848,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 _iter1193 : struct.success) + for (String _iter1241 : struct.success) { - oprot.writeString(_iter1193); + oprot.writeString(_iter1241); } oprot.writeListEnd(); } @@ -159411,9 +163881,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1194 : struct.success) + for (String _iter1242 : struct.success) { - oprot.writeString(_iter1194); + oprot.writeString(_iter1242); } } } @@ -159425,13 +163895,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 _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1195.size); - String _elem1196; - for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) + org.apache.thrift.protocol.TList _list1243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1243.size); + String _elem1244; + for (int _i1245 = 0; _i1245 < _list1243.size; ++_i1245) { - _elem1196 = iprot.readString(); - struct.success.add(_elem1196); + _elem1244 = iprot.readString(); + struct.success.add(_elem1244); } } struct.setSuccessIsSet(true); @@ -162461,13 +166931,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 _list1198 = iprot.readListBegin(); - struct.success = new ArrayList(_list1198.size); - String _elem1199; - for (int _i1200 = 0; _i1200 < _list1198.size; ++_i1200) + org.apache.thrift.protocol.TList _list1246 = iprot.readListBegin(); + struct.success = new ArrayList(_list1246.size); + String _elem1247; + for (int _i1248 = 0; _i1248 < _list1246.size; ++_i1248) { - _elem1199 = iprot.readString(); - struct.success.add(_elem1199); + _elem1247 = iprot.readString(); + struct.success.add(_elem1247); } iprot.readListEnd(); } @@ -162493,9 +166963,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 _iter1201 : struct.success) + for (String _iter1249 : struct.success) { - oprot.writeString(_iter1201); + oprot.writeString(_iter1249); } oprot.writeListEnd(); } @@ -162526,9 +166996,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1202 : struct.success) + for (String _iter1250 : struct.success) { - oprot.writeString(_iter1202); + oprot.writeString(_iter1250); } } } @@ -162540,13 +167010,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 _list1203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1203.size); - String _elem1204; - for (int _i1205 = 0; _i1205 < _list1203.size; ++_i1205) + org.apache.thrift.protocol.TList _list1251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1251.size); + String _elem1252; + for (int _i1253 = 0; _i1253 < _list1251.size; ++_i1253) { - _elem1204 = iprot.readString(); - struct.success.add(_elem1204); + _elem1252 = iprot.readString(); + struct.success.add(_elem1252); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsRequest.java new file mode 100644 index 0000000..ccbecfc --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsRequest.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)") +public class UniqueConstraintsRequest 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("UniqueConstraintsRequest"); + + 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 UniqueConstraintsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new UniqueConstraintsRequestTupleSchemeFactory()); + } + + 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(UniqueConstraintsRequest.class, metaDataMap); + } + + public UniqueConstraintsRequest() { + } + + public UniqueConstraintsRequest( + String db_name, + String tbl_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + } + + /** + * Performs a deep copy on other. + */ + public UniqueConstraintsRequest(UniqueConstraintsRequest other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + } + + public UniqueConstraintsRequest deepCopy() { + return new UniqueConstraintsRequest(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 UniqueConstraintsRequest) + return this.equals((UniqueConstraintsRequest)that); + return false; + } + + public boolean equals(UniqueConstraintsRequest 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(UniqueConstraintsRequest 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("UniqueConstraintsRequest("); + 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 UniqueConstraintsRequestStandardSchemeFactory implements SchemeFactory { + public UniqueConstraintsRequestStandardScheme getScheme() { + return new UniqueConstraintsRequestStandardScheme(); + } + } + + private static class UniqueConstraintsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, UniqueConstraintsRequest 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, UniqueConstraintsRequest 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 UniqueConstraintsRequestTupleSchemeFactory implements SchemeFactory { + public UniqueConstraintsRequestTupleScheme getScheme() { + return new UniqueConstraintsRequestTupleScheme(); + } + } + + private static class UniqueConstraintsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsRequest 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, UniqueConstraintsRequest 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 metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java new file mode 100644 index 0000000..7de84ea --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.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)") +public class UniqueConstraintsResponse 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("UniqueConstraintsResponse"); + + 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)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new UniqueConstraintsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new UniqueConstraintsResponseTupleSchemeFactory()); + } + + private List uniqueConstraints; // 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 { + UNIQUE_CONSTRAINTS((short)1, "uniqueConstraints"); + + 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: // UNIQUE_CONSTRAINTS + return UNIQUE_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.UNIQUE_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("uniqueConstraints", 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, SQLUniqueConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UniqueConstraintsResponse.class, metaDataMap); + } + + public UniqueConstraintsResponse() { + } + + public UniqueConstraintsResponse( + List uniqueConstraints) + { + this(); + this.uniqueConstraints = uniqueConstraints; + } + + /** + * Performs a deep copy on other. + */ + public UniqueConstraintsResponse(UniqueConstraintsResponse other) { + if (other.isSetUniqueConstraints()) { + List __this__uniqueConstraints = new ArrayList(other.uniqueConstraints.size()); + for (SQLUniqueConstraint other_element : other.uniqueConstraints) { + __this__uniqueConstraints.add(new SQLUniqueConstraint(other_element)); + } + this.uniqueConstraints = __this__uniqueConstraints; + } + } + + public UniqueConstraintsResponse deepCopy() { + return new UniqueConstraintsResponse(this); + } + + @Override + public void clear() { + this.uniqueConstraints = null; + } + + public int getUniqueConstraintsSize() { + return (this.uniqueConstraints == null) ? 0 : this.uniqueConstraints.size(); + } + + public java.util.Iterator getUniqueConstraintsIterator() { + return (this.uniqueConstraints == null) ? null : this.uniqueConstraints.iterator(); + } + + public void addToUniqueConstraints(SQLUniqueConstraint elem) { + if (this.uniqueConstraints == null) { + this.uniqueConstraints = new ArrayList(); + } + this.uniqueConstraints.add(elem); + } + + public List getUniqueConstraints() { + return this.uniqueConstraints; + } + + public void setUniqueConstraints(List uniqueConstraints) { + this.uniqueConstraints = uniqueConstraints; + } + + public void unsetUniqueConstraints() { + this.uniqueConstraints = null; + } + + /** Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetUniqueConstraints() { + return this.uniqueConstraints != null; + } + + public void setUniqueConstraintsIsSet(boolean value) { + if (!value) { + this.uniqueConstraints = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case UNIQUE_CONSTRAINTS: + if (value == null) { + unsetUniqueConstraints(); + } else { + setUniqueConstraints((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case UNIQUE_CONSTRAINTS: + return getUniqueConstraints(); + + } + 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 UNIQUE_CONSTRAINTS: + return isSetUniqueConstraints(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof UniqueConstraintsResponse) + return this.equals((UniqueConstraintsResponse)that); + return false; + } + + public boolean equals(UniqueConstraintsResponse that) { + if (that == null) + return false; + + boolean this_present_uniqueConstraints = true && this.isSetUniqueConstraints(); + boolean that_present_uniqueConstraints = true && that.isSetUniqueConstraints(); + if (this_present_uniqueConstraints || that_present_uniqueConstraints) { + if (!(this_present_uniqueConstraints && that_present_uniqueConstraints)) + return false; + if (!this.uniqueConstraints.equals(that.uniqueConstraints)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_uniqueConstraints = true && (isSetUniqueConstraints()); + list.add(present_uniqueConstraints); + if (present_uniqueConstraints) + list.add(uniqueConstraints); + + return list.hashCode(); + } + + @Override + public int compareTo(UniqueConstraintsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUniqueConstraints()).compareTo(other.isSetUniqueConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniqueConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uniqueConstraints, other.uniqueConstraints); + 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("UniqueConstraintsResponse("); + boolean first = true; + + sb.append("uniqueConstraints:"); + if (this.uniqueConstraints == null) { + sb.append("null"); + } else { + sb.append(this.uniqueConstraints); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetUniqueConstraints()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'uniqueConstraints' 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 UniqueConstraintsResponseStandardSchemeFactory implements SchemeFactory { + public UniqueConstraintsResponseStandardScheme getScheme() { + return new UniqueConstraintsResponseStandardScheme(); + } + } + + private static class UniqueConstraintsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, UniqueConstraintsResponse 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: // UNIQUE_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list338.size); + SQLUniqueConstraint _elem339; + for (int _i340 = 0; _i340 < _list338.size; ++_i340) + { + _elem339 = new SQLUniqueConstraint(); + _elem339.read(iprot); + struct.uniqueConstraints.add(_elem339); + } + iprot.readListEnd(); + } + struct.setUniqueConstraintsIsSet(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, UniqueConstraintsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.uniqueConstraints != null) { + oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); + for (SQLUniqueConstraint _iter341 : struct.uniqueConstraints) + { + _iter341.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class UniqueConstraintsResponseTupleSchemeFactory implements SchemeFactory { + public UniqueConstraintsResponseTupleScheme getScheme() { + return new UniqueConstraintsResponseTupleScheme(); + } + } + + private static class UniqueConstraintsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.uniqueConstraints.size()); + for (SQLUniqueConstraint _iter342 : struct.uniqueConstraints) + { + _iter342.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list343.size); + SQLUniqueConstraint _elem344; + for (int _i345 = 0; _i345 < _list343.size; ++_i345) + { + _elem344 = new SQLUniqueConstraint(); + _elem344.read(iprot); + struct.uniqueConstraints.add(_elem344); + } + } + struct.setUniqueConstraintsIsSet(true); + } + } + +} + diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 4fb7183..51f9d6b 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -160,12 +160,14 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @param \metastore\Table $tbl * @param \metastore\SQLPrimaryKey[] $primaryKeys * @param \metastore\SQLForeignKey[] $foreignKeys + * @param \metastore\SQLUniqueConstraint[] $uniqueConstraints + * @param \metastore\SQLNotNullConstraint[] $notNullConstraints * @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); + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints); /** * @param \metastore\DropConstraintRequest $req * @throws \metastore\NoSuchObjectException @@ -185,6 +187,18 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function add_foreign_key(\metastore\AddForeignKeyRequest $req); /** + * @param \metastore\AddUniqueConstraintRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_unique_constraint(\metastore\AddUniqueConstraintRequest $req); + /** + * @param \metastore\AddNotNullConstraintRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_not_null_constraint(\metastore\AddNotNullConstraintRequest $req); + /** * @param string $dbname * @param string $name * @param bool $deleteData @@ -768,6 +782,20 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function get_foreign_keys(\metastore\ForeignKeysRequest $request); /** + * @param \metastore\UniqueConstraintsRequest $request + * @return \metastore\UniqueConstraintsResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_unique_constraints(\metastore\UniqueConstraintsRequest $request); + /** + * @param \metastore\NotNullConstraintsRequest $request + * @return \metastore\NotNullConstraintsResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_not_null_constraints(\metastore\NotNullConstraintsRequest $request); + /** * @param \metastore\ColumnStatistics $stats_obj * @return bool * @throws \metastore\NoSuchObjectException @@ -2238,18 +2266,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys) + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints) { - $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys); + $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys, $uniqueConstraints, $notNullConstraints); $this->recv_create_table_with_constraints(); } - public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys) + public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints) { $args = new \metastore\ThriftHiveMetastore_create_table_with_constraints_args(); $args->tbl = $tbl; $args->primaryKeys = $primaryKeys; $args->foreignKeys = $foreignKeys; + $args->uniqueConstraints = $uniqueConstraints; + $args->notNullConstraints = $notNullConstraints; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -2462,6 +2492,114 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function add_unique_constraint(\metastore\AddUniqueConstraintRequest $req) + { + $this->send_add_unique_constraint($req); + $this->recv_add_unique_constraint(); + } + + public function send_add_unique_constraint(\metastore\AddUniqueConstraintRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_unique_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_unique_constraint', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_unique_constraint', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_unique_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_unique_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_unique_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 add_not_null_constraint(\metastore\AddNotNullConstraintRequest $req) + { + $this->send_add_not_null_constraint($req); + $this->recv_add_not_null_constraint(); + } + + public function send_add_not_null_constraint(\metastore\AddNotNullConstraintRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_not_null_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_not_null_constraint', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_not_null_constraint', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_not_null_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_not_null_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_not_null_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); @@ -6291,6 +6429,120 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_foreign_keys failed: unknown result"); } + public function get_unique_constraints(\metastore\UniqueConstraintsRequest $request) + { + $this->send_get_unique_constraints($request); + return $this->recv_get_unique_constraints(); + } + + public function send_get_unique_constraints(\metastore\UniqueConstraintsRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_unique_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_unique_constraints', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_unique_constraints', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_unique_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_unique_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_unique_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_unique_constraints failed: unknown result"); + } + + public function get_not_null_constraints(\metastore\NotNullConstraintsRequest $request) + { + $this->send_get_not_null_constraints($request); + return $this->recv_get_not_null_constraints(); + } + + public function send_get_not_null_constraints(\metastore\NotNullConstraintsRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_not_null_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_not_null_constraints', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_not_null_constraints', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_not_null_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_not_null_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_not_null_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_not_null_constraints failed: unknown result"); + } + public function update_table_column_statistics(\metastore\ColumnStatistics $stats_obj) { $this->send_update_table_column_statistics($stats_obj); @@ -11092,14 +11344,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size596 = 0; - $_etype599 = 0; - $xfer += $input->readListBegin($_etype599, $_size596); - for ($_i600 = 0; $_i600 < $_size596; ++$_i600) + $_size624 = 0; + $_etype627 = 0; + $xfer += $input->readListBegin($_etype627, $_size624); + for ($_i628 = 0; $_i628 < $_size624; ++$_i628) { - $elem601 = null; - $xfer += $input->readString($elem601); - $this->success []= $elem601; + $elem629 = null; + $xfer += $input->readString($elem629); + $this->success []= $elem629; } $xfer += $input->readListEnd(); } else { @@ -11135,9 +11387,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter602) + foreach ($this->success as $iter630) { - $xfer += $output->writeString($iter602); + $xfer += $output->writeString($iter630); } } $output->writeListEnd(); @@ -11268,14 +11520,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size603 = 0; - $_etype606 = 0; - $xfer += $input->readListBegin($_etype606, $_size603); - for ($_i607 = 0; $_i607 < $_size603; ++$_i607) + $_size631 = 0; + $_etype634 = 0; + $xfer += $input->readListBegin($_etype634, $_size631); + for ($_i635 = 0; $_i635 < $_size631; ++$_i635) { - $elem608 = null; - $xfer += $input->readString($elem608); - $this->success []= $elem608; + $elem636 = null; + $xfer += $input->readString($elem636); + $this->success []= $elem636; } $xfer += $input->readListEnd(); } else { @@ -11311,9 +11563,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter609) + foreach ($this->success as $iter637) { - $xfer += $output->writeString($iter609); + $xfer += $output->writeString($iter637); } } $output->writeListEnd(); @@ -12314,18 +12566,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size610 = 0; - $_ktype611 = 0; - $_vtype612 = 0; - $xfer += $input->readMapBegin($_ktype611, $_vtype612, $_size610); - for ($_i614 = 0; $_i614 < $_size610; ++$_i614) + $_size638 = 0; + $_ktype639 = 0; + $_vtype640 = 0; + $xfer += $input->readMapBegin($_ktype639, $_vtype640, $_size638); + for ($_i642 = 0; $_i642 < $_size638; ++$_i642) { - $key615 = ''; - $val616 = new \metastore\Type(); - $xfer += $input->readString($key615); - $val616 = new \metastore\Type(); - $xfer += $val616->read($input); - $this->success[$key615] = $val616; + $key643 = ''; + $val644 = new \metastore\Type(); + $xfer += $input->readString($key643); + $val644 = new \metastore\Type(); + $xfer += $val644->read($input); + $this->success[$key643] = $val644; } $xfer += $input->readMapEnd(); } else { @@ -12361,10 +12613,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter617 => $viter618) + foreach ($this->success as $kiter645 => $viter646) { - $xfer += $output->writeString($kiter617); - $xfer += $viter618->write($output); + $xfer += $output->writeString($kiter645); + $xfer += $viter646->write($output); } } $output->writeMapEnd(); @@ -12568,15 +12820,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size619 = 0; - $_etype622 = 0; - $xfer += $input->readListBegin($_etype622, $_size619); - for ($_i623 = 0; $_i623 < $_size619; ++$_i623) + $_size647 = 0; + $_etype650 = 0; + $xfer += $input->readListBegin($_etype650, $_size647); + for ($_i651 = 0; $_i651 < $_size647; ++$_i651) { - $elem624 = null; - $elem624 = new \metastore\FieldSchema(); - $xfer += $elem624->read($input); - $this->success []= $elem624; + $elem652 = null; + $elem652 = new \metastore\FieldSchema(); + $xfer += $elem652->read($input); + $this->success []= $elem652; } $xfer += $input->readListEnd(); } else { @@ -12628,9 +12880,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter625) + foreach ($this->success as $iter653) { - $xfer += $iter625->write($output); + $xfer += $iter653->write($output); } } $output->writeListEnd(); @@ -12872,15 +13124,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size626 = 0; - $_etype629 = 0; - $xfer += $input->readListBegin($_etype629, $_size626); - for ($_i630 = 0; $_i630 < $_size626; ++$_i630) + $_size654 = 0; + $_etype657 = 0; + $xfer += $input->readListBegin($_etype657, $_size654); + for ($_i658 = 0; $_i658 < $_size654; ++$_i658) { - $elem631 = null; - $elem631 = new \metastore\FieldSchema(); - $xfer += $elem631->read($input); - $this->success []= $elem631; + $elem659 = null; + $elem659 = new \metastore\FieldSchema(); + $xfer += $elem659->read($input); + $this->success []= $elem659; } $xfer += $input->readListEnd(); } else { @@ -12932,9 +13184,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter632) + foreach ($this->success as $iter660) { - $xfer += $iter632->write($output); + $xfer += $iter660->write($output); } } $output->writeListEnd(); @@ -13148,15 +13400,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size633 = 0; - $_etype636 = 0; - $xfer += $input->readListBegin($_etype636, $_size633); - for ($_i637 = 0; $_i637 < $_size633; ++$_i637) + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) { - $elem638 = null; - $elem638 = new \metastore\FieldSchema(); - $xfer += $elem638->read($input); - $this->success []= $elem638; + $elem666 = null; + $elem666 = new \metastore\FieldSchema(); + $xfer += $elem666->read($input); + $this->success []= $elem666; } $xfer += $input->readListEnd(); } else { @@ -13208,9 +13460,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter639) + foreach ($this->success as $iter667) { - $xfer += $iter639->write($output); + $xfer += $iter667->write($output); } } $output->writeListEnd(); @@ -13452,15 +13704,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size640 = 0; - $_etype643 = 0; - $xfer += $input->readListBegin($_etype643, $_size640); - for ($_i644 = 0; $_i644 < $_size640; ++$_i644) + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readListBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) { - $elem645 = null; - $elem645 = new \metastore\FieldSchema(); - $xfer += $elem645->read($input); - $this->success []= $elem645; + $elem673 = null; + $elem673 = new \metastore\FieldSchema(); + $xfer += $elem673->read($input); + $this->success []= $elem673; } $xfer += $input->readListEnd(); } else { @@ -13512,9 +13764,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter646) + foreach ($this->success as $iter674) { - $xfer += $iter646->write($output); + $xfer += $iter674->write($output); } } $output->writeListEnd(); @@ -14050,6 +14302,14 @@ class ThriftHiveMetastore_create_table_with_constraints_args { * @var \metastore\SQLForeignKey[] */ public $foreignKeys = null; + /** + * @var \metastore\SQLUniqueConstraint[] + */ + public $uniqueConstraints = null; + /** + * @var \metastore\SQLNotNullConstraint[] + */ + public $notNullConstraints = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14077,6 +14337,24 @@ class ThriftHiveMetastore_create_table_with_constraints_args { 'class' => '\metastore\SQLForeignKey', ), ), + 4 => array( + 'var' => 'uniqueConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLUniqueConstraint', + ), + ), + 5 => array( + 'var' => 'notNullConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLNotNullConstraint', + ), + ), ); } if (is_array($vals)) { @@ -14089,6 +14367,12 @@ class ThriftHiveMetastore_create_table_with_constraints_args { if (isset($vals['foreignKeys'])) { $this->foreignKeys = $vals['foreignKeys']; } + if (isset($vals['uniqueConstraints'])) { + $this->uniqueConstraints = $vals['uniqueConstraints']; + } + if (isset($vals['notNullConstraints'])) { + $this->notNullConstraints = $vals['notNullConstraints']; + } } } @@ -14122,15 +14406,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $elem652 = null; - $elem652 = new \metastore\SQLPrimaryKey(); - $xfer += $elem652->read($input); - $this->primaryKeys []= $elem652; + $elem680 = null; + $elem680 = new \metastore\SQLPrimaryKey(); + $xfer += $elem680->read($input); + $this->primaryKeys []= $elem680; } $xfer += $input->readListEnd(); } else { @@ -14140,15 +14424,51 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size681 = 0; + $_etype684 = 0; + $xfer += $input->readListBegin($_etype684, $_size681); + for ($_i685 = 0; $_i685 < $_size681; ++$_i685) + { + $elem686 = null; + $elem686 = new \metastore\SQLForeignKey(); + $xfer += $elem686->read($input); + $this->foreignKeys []= $elem686; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::LST) { + $this->uniqueConstraints = array(); + $_size687 = 0; + $_etype690 = 0; + $xfer += $input->readListBegin($_etype690, $_size687); + for ($_i691 = 0; $_i691 < $_size687; ++$_i691) + { + $elem692 = null; + $elem692 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem692->read($input); + $this->uniqueConstraints []= $elem692; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::LST) { + $this->notNullConstraints = array(); + $_size693 = 0; + $_etype696 = 0; + $xfer += $input->readListBegin($_etype696, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $elem658 = null; - $elem658 = new \metastore\SQLForeignKey(); - $xfer += $elem658->read($input); - $this->foreignKeys []= $elem658; + $elem698 = null; + $elem698 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem698->read($input); + $this->notNullConstraints []= $elem698; } $xfer += $input->readListEnd(); } else { @@ -14184,9 +14504,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter659) + foreach ($this->primaryKeys as $iter699) { - $xfer += $iter659->write($output); + $xfer += $iter699->write($output); } } $output->writeListEnd(); @@ -14201,9 +14521,43 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter660) + foreach ($this->foreignKeys as $iter700) { - $xfer += $iter660->write($output); + $xfer += $iter700->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->uniqueConstraints !== null) { + if (!is_array($this->uniqueConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('uniqueConstraints', TType::LST, 4); + { + $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); + { + foreach ($this->uniqueConstraints as $iter701) + { + $xfer += $iter701->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->notNullConstraints !== null) { + if (!is_array($this->notNullConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('notNullConstraints', TType::LST, 5); + { + $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); + { + foreach ($this->notNullConstraints as $iter702) + { + $xfer += $iter702->write($output); } } $output->writeListEnd(); @@ -14915,54 +15269,125 @@ class ThriftHiveMetastore_add_foreign_key_result { } -class ThriftHiveMetastore_drop_table_args { +class ThriftHiveMetastore_add_unique_constraint_args { static $_TSPEC; /** - * @var string + * @var \metastore\AddUniqueConstraintRequest */ - public $dbname = null; + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\AddUniqueConstraintRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_unique_constraint_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\AddUniqueConstraintRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_unique_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(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_add_unique_constraint_result { + static $_TSPEC; + /** - * @var string + * @var \metastore\NoSuchObjectException */ - public $name = null; + public $o1 = null; /** - * @var bool + * @var \metastore\MetaException */ - public $deleteData = null; + public $o2 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'dbname', - 'type' => TType::STRING, + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', ), 2 => array( - 'var' => 'name', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'deleteData', - 'type' => TType::BOOL, + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', ), ); } if (is_array($vals)) { - if (isset($vals['dbname'])) { - $this->dbname = $vals['dbname']; - } - if (isset($vals['name'])) { - $this->name = $vals['name']; + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; } - if (isset($vals['deleteData'])) { - $this->deleteData = $vals['deleteData']; + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; } } } public function getName() { - return 'ThriftHiveMetastore_drop_table_args'; + return 'ThriftHiveMetastore_add_unique_constraint_result'; } public function read($input) @@ -14981,22 +15406,17 @@ class ThriftHiveMetastore_drop_table_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbname); + 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::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->o2 = new \metastore\MetaException(); + $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); } @@ -15013,20 +15433,95 @@ 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->writeStructBegin('ThriftHiveMetastore_add_unique_constraint_result'); + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->name !== null) { - $xfer += $output->writeFieldBegin('name', TType::STRING, 2); - $xfer += $output->writeString($this->name); + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->deleteData !== null) { - $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3); - $xfer += $output->writeBool($this->deleteData); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_add_not_null_constraint_args { + static $_TSPEC; + + /** + * @var \metastore\AddNotNullConstraintRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\AddNotNullConstraintRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_not_null_constraint_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\AddNotNullConstraintRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_not_null_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(); @@ -15036,7 +15531,7 @@ class ThriftHiveMetastore_drop_table_args { } -class ThriftHiveMetastore_drop_table_result { +class ThriftHiveMetastore_add_not_null_constraint_result { static $_TSPEC; /** @@ -15046,7 +15541,7 @@ class ThriftHiveMetastore_drop_table_result { /** * @var \metastore\MetaException */ - public $o3 = null; + public $o2 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15057,7 +15552,7 @@ class ThriftHiveMetastore_drop_table_result { 'class' => '\metastore\NoSuchObjectException', ), 2 => array( - 'var' => 'o3', + 'var' => 'o2', 'type' => TType::STRUCT, 'class' => '\metastore\MetaException', ), @@ -15067,14 +15562,14 @@ 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_not_null_constraint_result'; } public function read($input) @@ -15102,8 +15597,8 @@ class ThriftHiveMetastore_drop_table_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o3 = new \metastore\MetaException(); - $xfer += $this->o3->read($input); + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); } @@ -15120,15 +15615,15 @@ class ThriftHiveMetastore_drop_table_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_not_null_constraint_result'); if ($this->o1 !== null) { $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); $xfer += $this->o1->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->o3 !== null) { - $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 2); - $xfer += $this->o3->write($output); + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -15138,7 +15633,7 @@ class ThriftHiveMetastore_drop_table_result { } -class ThriftHiveMetastore_drop_table_with_environment_context_args { +class ThriftHiveMetastore_drop_table_args { static $_TSPEC; /** @@ -15153,10 +15648,6 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { * @var bool */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ - public $environment_context = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15173,11 +15664,6 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { 'var' => 'deleteData', 'type' => TType::BOOL, ), - 4 => array( - 'var' => 'environment_context', - 'type' => TType::STRUCT, - 'class' => '\metastore\EnvironmentContext', - ), ); } if (is_array($vals)) { @@ -15190,14 +15676,246 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { if (isset($vals['deleteData'])) { $this->deleteData = $vals['deleteData']; } - if (isset($vals['environment_context'])) { - $this->environment_context = $vals['environment_context']; - } } } public function getName() { - return 'ThriftHiveMetastore_drop_table_with_environment_context_args'; + 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) + { + $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->o3 = new \metastore\MetaException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_result'); + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 2); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_drop_table_with_environment_context_args { + static $_TSPEC; + + /** + * @var string + */ + public $dbname = null; + /** + * @var string + */ + public $name = null; + /** + * @var bool + */ + public $deleteData = null; + /** + * @var \metastore\EnvironmentContext + */ + public $environment_context = 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, + ), + 4 => array( + 'var' => 'environment_context', + 'type' => TType::STRUCT, + 'class' => '\metastore\EnvironmentContext', + ), + ); + } + 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['environment_context'])) { + $this->environment_context = $vals['environment_context']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_drop_table_with_environment_context_args'; } public function read($input) @@ -15475,14 +16193,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size661 = 0; - $_etype664 = 0; - $xfer += $input->readListBegin($_etype664, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size703 = 0; + $_etype706 = 0; + $xfer += $input->readListBegin($_etype706, $_size703); + for ($_i707 = 0; $_i707 < $_size703; ++$_i707) { - $elem666 = null; - $xfer += $input->readString($elem666); - $this->partNames []= $elem666; + $elem708 = null; + $xfer += $input->readString($elem708); + $this->partNames []= $elem708; } $xfer += $input->readListEnd(); } else { @@ -15520,9 +16238,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter667) + foreach ($this->partNames as $iter709) { - $xfer += $output->writeString($iter667); + $xfer += $output->writeString($iter709); } } $output->writeListEnd(); @@ -15773,14 +16491,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size710 = 0; + $_etype713 = 0; + $xfer += $input->readListBegin($_etype713, $_size710); + for ($_i714 = 0; $_i714 < $_size710; ++$_i714) { - $elem673 = null; - $xfer += $input->readString($elem673); - $this->success []= $elem673; + $elem715 = null; + $xfer += $input->readString($elem715); + $this->success []= $elem715; } $xfer += $input->readListEnd(); } else { @@ -15816,9 +16534,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter674) + foreach ($this->success as $iter716) { - $xfer += $output->writeString($iter674); + $xfer += $output->writeString($iter716); } } $output->writeListEnd(); @@ -16020,14 +16738,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size717 = 0; + $_etype720 = 0; + $xfer += $input->readListBegin($_etype720, $_size717); + for ($_i721 = 0; $_i721 < $_size717; ++$_i721) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->success []= $elem680; + $elem722 = null; + $xfer += $input->readString($elem722); + $this->success []= $elem722; } $xfer += $input->readListEnd(); } else { @@ -16063,9 +16781,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter681) + foreach ($this->success as $iter723) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter723); } } $output->writeListEnd(); @@ -16170,14 +16888,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size724 = 0; + $_etype727 = 0; + $xfer += $input->readListBegin($_etype727, $_size724); + for ($_i728 = 0; $_i728 < $_size724; ++$_i728) { - $elem687 = null; - $xfer += $input->readString($elem687); - $this->tbl_types []= $elem687; + $elem729 = null; + $xfer += $input->readString($elem729); + $this->tbl_types []= $elem729; } $xfer += $input->readListEnd(); } else { @@ -16215,9 +16933,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter688) + foreach ($this->tbl_types as $iter730) { - $xfer += $output->writeString($iter688); + $xfer += $output->writeString($iter730); } } $output->writeListEnd(); @@ -16294,15 +17012,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size689 = 0; - $_etype692 = 0; - $xfer += $input->readListBegin($_etype692, $_size689); - for ($_i693 = 0; $_i693 < $_size689; ++$_i693) + $_size731 = 0; + $_etype734 = 0; + $xfer += $input->readListBegin($_etype734, $_size731); + for ($_i735 = 0; $_i735 < $_size731; ++$_i735) { - $elem694 = null; - $elem694 = new \metastore\TableMeta(); - $xfer += $elem694->read($input); - $this->success []= $elem694; + $elem736 = null; + $elem736 = new \metastore\TableMeta(); + $xfer += $elem736->read($input); + $this->success []= $elem736; } $xfer += $input->readListEnd(); } else { @@ -16338,9 +17056,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter695) + foreach ($this->success as $iter737) { - $xfer += $iter695->write($output); + $xfer += $iter737->write($output); } } $output->writeListEnd(); @@ -16496,14 +17214,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size696 = 0; - $_etype699 = 0; - $xfer += $input->readListBegin($_etype699, $_size696); - for ($_i700 = 0; $_i700 < $_size696; ++$_i700) + $_size738 = 0; + $_etype741 = 0; + $xfer += $input->readListBegin($_etype741, $_size738); + for ($_i742 = 0; $_i742 < $_size738; ++$_i742) { - $elem701 = null; - $xfer += $input->readString($elem701); - $this->success []= $elem701; + $elem743 = null; + $xfer += $input->readString($elem743); + $this->success []= $elem743; } $xfer += $input->readListEnd(); } else { @@ -16539,9 +17257,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter702) + foreach ($this->success as $iter744) { - $xfer += $output->writeString($iter702); + $xfer += $output->writeString($iter744); } } $output->writeListEnd(); @@ -16856,14 +17574,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size703 = 0; - $_etype706 = 0; - $xfer += $input->readListBegin($_etype706, $_size703); - for ($_i707 = 0; $_i707 < $_size703; ++$_i707) + $_size745 = 0; + $_etype748 = 0; + $xfer += $input->readListBegin($_etype748, $_size745); + for ($_i749 = 0; $_i749 < $_size745; ++$_i749) { - $elem708 = null; - $xfer += $input->readString($elem708); - $this->tbl_names []= $elem708; + $elem750 = null; + $xfer += $input->readString($elem750); + $this->tbl_names []= $elem750; } $xfer += $input->readListEnd(); } else { @@ -16896,9 +17614,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter709) + foreach ($this->tbl_names as $iter751) { - $xfer += $output->writeString($iter709); + $xfer += $output->writeString($iter751); } } $output->writeListEnd(); @@ -16963,15 +17681,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size710 = 0; - $_etype713 = 0; - $xfer += $input->readListBegin($_etype713, $_size710); - for ($_i714 = 0; $_i714 < $_size710; ++$_i714) + $_size752 = 0; + $_etype755 = 0; + $xfer += $input->readListBegin($_etype755, $_size752); + for ($_i756 = 0; $_i756 < $_size752; ++$_i756) { - $elem715 = null; - $elem715 = new \metastore\Table(); - $xfer += $elem715->read($input); - $this->success []= $elem715; + $elem757 = null; + $elem757 = new \metastore\Table(); + $xfer += $elem757->read($input); + $this->success []= $elem757; } $xfer += $input->readListEnd(); } else { @@ -16999,9 +17717,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter716) + foreach ($this->success as $iter758) { - $xfer += $iter716->write($output); + $xfer += $iter758->write($output); } } $output->writeListEnd(); @@ -17667,14 +18385,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size717 = 0; - $_etype720 = 0; - $xfer += $input->readListBegin($_etype720, $_size717); - for ($_i721 = 0; $_i721 < $_size717; ++$_i721) + $_size759 = 0; + $_etype762 = 0; + $xfer += $input->readListBegin($_etype762, $_size759); + for ($_i763 = 0; $_i763 < $_size759; ++$_i763) { - $elem722 = null; - $xfer += $input->readString($elem722); - $this->success []= $elem722; + $elem764 = null; + $xfer += $input->readString($elem764); + $this->success []= $elem764; } $xfer += $input->readListEnd(); } else { @@ -17726,9 +18444,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter723) + foreach ($this->success as $iter765) { - $xfer += $output->writeString($iter723); + $xfer += $output->writeString($iter765); } } $output->writeListEnd(); @@ -19041,15 +19759,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size724 = 0; - $_etype727 = 0; - $xfer += $input->readListBegin($_etype727, $_size724); - for ($_i728 = 0; $_i728 < $_size724; ++$_i728) + $_size766 = 0; + $_etype769 = 0; + $xfer += $input->readListBegin($_etype769, $_size766); + for ($_i770 = 0; $_i770 < $_size766; ++$_i770) { - $elem729 = null; - $elem729 = new \metastore\Partition(); - $xfer += $elem729->read($input); - $this->new_parts []= $elem729; + $elem771 = null; + $elem771 = new \metastore\Partition(); + $xfer += $elem771->read($input); + $this->new_parts []= $elem771; } $xfer += $input->readListEnd(); } else { @@ -19077,9 +19795,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter730) + foreach ($this->new_parts as $iter772) { - $xfer += $iter730->write($output); + $xfer += $iter772->write($output); } } $output->writeListEnd(); @@ -19294,15 +20012,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size731 = 0; - $_etype734 = 0; - $xfer += $input->readListBegin($_etype734, $_size731); - for ($_i735 = 0; $_i735 < $_size731; ++$_i735) + $_size773 = 0; + $_etype776 = 0; + $xfer += $input->readListBegin($_etype776, $_size773); + for ($_i777 = 0; $_i777 < $_size773; ++$_i777) { - $elem736 = null; - $elem736 = new \metastore\PartitionSpec(); - $xfer += $elem736->read($input); - $this->new_parts []= $elem736; + $elem778 = null; + $elem778 = new \metastore\PartitionSpec(); + $xfer += $elem778->read($input); + $this->new_parts []= $elem778; } $xfer += $input->readListEnd(); } else { @@ -19330,9 +20048,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter737) + foreach ($this->new_parts as $iter779) { - $xfer += $iter737->write($output); + $xfer += $iter779->write($output); } } $output->writeListEnd(); @@ -19582,14 +20300,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size738 = 0; - $_etype741 = 0; - $xfer += $input->readListBegin($_etype741, $_size738); - for ($_i742 = 0; $_i742 < $_size738; ++$_i742) + $_size780 = 0; + $_etype783 = 0; + $xfer += $input->readListBegin($_etype783, $_size780); + for ($_i784 = 0; $_i784 < $_size780; ++$_i784) { - $elem743 = null; - $xfer += $input->readString($elem743); - $this->part_vals []= $elem743; + $elem785 = null; + $xfer += $input->readString($elem785); + $this->part_vals []= $elem785; } $xfer += $input->readListEnd(); } else { @@ -19627,9 +20345,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter744) + foreach ($this->part_vals as $iter786) { - $xfer += $output->writeString($iter744); + $xfer += $output->writeString($iter786); } } $output->writeListEnd(); @@ -20131,14 +20849,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size745 = 0; - $_etype748 = 0; - $xfer += $input->readListBegin($_etype748, $_size745); - for ($_i749 = 0; $_i749 < $_size745; ++$_i749) + $_size787 = 0; + $_etype790 = 0; + $xfer += $input->readListBegin($_etype790, $_size787); + for ($_i791 = 0; $_i791 < $_size787; ++$_i791) { - $elem750 = null; - $xfer += $input->readString($elem750); - $this->part_vals []= $elem750; + $elem792 = null; + $xfer += $input->readString($elem792); + $this->part_vals []= $elem792; } $xfer += $input->readListEnd(); } else { @@ -20184,9 +20902,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter751) + foreach ($this->part_vals as $iter793) { - $xfer += $output->writeString($iter751); + $xfer += $output->writeString($iter793); } } $output->writeListEnd(); @@ -21040,14 +21758,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size752 = 0; - $_etype755 = 0; - $xfer += $input->readListBegin($_etype755, $_size752); - for ($_i756 = 0; $_i756 < $_size752; ++$_i756) + $_size794 = 0; + $_etype797 = 0; + $xfer += $input->readListBegin($_etype797, $_size794); + for ($_i798 = 0; $_i798 < $_size794; ++$_i798) { - $elem757 = null; - $xfer += $input->readString($elem757); - $this->part_vals []= $elem757; + $elem799 = null; + $xfer += $input->readString($elem799); + $this->part_vals []= $elem799; } $xfer += $input->readListEnd(); } else { @@ -21092,9 +21810,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter758) + foreach ($this->part_vals as $iter800) { - $xfer += $output->writeString($iter758); + $xfer += $output->writeString($iter800); } } $output->writeListEnd(); @@ -21347,14 +22065,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size759 = 0; - $_etype762 = 0; - $xfer += $input->readListBegin($_etype762, $_size759); - for ($_i763 = 0; $_i763 < $_size759; ++$_i763) + $_size801 = 0; + $_etype804 = 0; + $xfer += $input->readListBegin($_etype804, $_size801); + for ($_i805 = 0; $_i805 < $_size801; ++$_i805) { - $elem764 = null; - $xfer += $input->readString($elem764); - $this->part_vals []= $elem764; + $elem806 = null; + $xfer += $input->readString($elem806); + $this->part_vals []= $elem806; } $xfer += $input->readListEnd(); } else { @@ -21407,9 +22125,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter765) + foreach ($this->part_vals as $iter807) { - $xfer += $output->writeString($iter765); + $xfer += $output->writeString($iter807); } } $output->writeListEnd(); @@ -22423,14 +23141,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size766 = 0; - $_etype769 = 0; - $xfer += $input->readListBegin($_etype769, $_size766); - for ($_i770 = 0; $_i770 < $_size766; ++$_i770) + $_size808 = 0; + $_etype811 = 0; + $xfer += $input->readListBegin($_etype811, $_size808); + for ($_i812 = 0; $_i812 < $_size808; ++$_i812) { - $elem771 = null; - $xfer += $input->readString($elem771); - $this->part_vals []= $elem771; + $elem813 = null; + $xfer += $input->readString($elem813); + $this->part_vals []= $elem813; } $xfer += $input->readListEnd(); } else { @@ -22468,9 +23186,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter772) + foreach ($this->part_vals as $iter814) { - $xfer += $output->writeString($iter772); + $xfer += $output->writeString($iter814); } } $output->writeListEnd(); @@ -22712,17 +23430,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size773 = 0; - $_ktype774 = 0; - $_vtype775 = 0; - $xfer += $input->readMapBegin($_ktype774, $_vtype775, $_size773); - for ($_i777 = 0; $_i777 < $_size773; ++$_i777) + $_size815 = 0; + $_ktype816 = 0; + $_vtype817 = 0; + $xfer += $input->readMapBegin($_ktype816, $_vtype817, $_size815); + for ($_i819 = 0; $_i819 < $_size815; ++$_i819) { - $key778 = ''; - $val779 = ''; - $xfer += $input->readString($key778); - $xfer += $input->readString($val779); - $this->partitionSpecs[$key778] = $val779; + $key820 = ''; + $val821 = ''; + $xfer += $input->readString($key820); + $xfer += $input->readString($val821); + $this->partitionSpecs[$key820] = $val821; } $xfer += $input->readMapEnd(); } else { @@ -22778,10 +23496,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter780 => $viter781) + foreach ($this->partitionSpecs as $kiter822 => $viter823) { - $xfer += $output->writeString($kiter780); - $xfer += $output->writeString($viter781); + $xfer += $output->writeString($kiter822); + $xfer += $output->writeString($viter823); } } $output->writeMapEnd(); @@ -23093,17 +23811,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size782 = 0; - $_ktype783 = 0; - $_vtype784 = 0; - $xfer += $input->readMapBegin($_ktype783, $_vtype784, $_size782); - for ($_i786 = 0; $_i786 < $_size782; ++$_i786) + $_size824 = 0; + $_ktype825 = 0; + $_vtype826 = 0; + $xfer += $input->readMapBegin($_ktype825, $_vtype826, $_size824); + for ($_i828 = 0; $_i828 < $_size824; ++$_i828) { - $key787 = ''; - $val788 = ''; - $xfer += $input->readString($key787); - $xfer += $input->readString($val788); - $this->partitionSpecs[$key787] = $val788; + $key829 = ''; + $val830 = ''; + $xfer += $input->readString($key829); + $xfer += $input->readString($val830); + $this->partitionSpecs[$key829] = $val830; } $xfer += $input->readMapEnd(); } else { @@ -23159,10 +23877,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter789 => $viter790) + foreach ($this->partitionSpecs as $kiter831 => $viter832) { - $xfer += $output->writeString($kiter789); - $xfer += $output->writeString($viter790); + $xfer += $output->writeString($kiter831); + $xfer += $output->writeString($viter832); } } $output->writeMapEnd(); @@ -23295,15 +24013,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size791 = 0; - $_etype794 = 0; - $xfer += $input->readListBegin($_etype794, $_size791); - for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem796 = null; - $elem796 = new \metastore\Partition(); - $xfer += $elem796->read($input); - $this->success []= $elem796; + $elem838 = null; + $elem838 = new \metastore\Partition(); + $xfer += $elem838->read($input); + $this->success []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -23363,9 +24081,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter797) + foreach ($this->success as $iter839) { - $xfer += $iter797->write($output); + $xfer += $iter839->write($output); } } $output->writeListEnd(); @@ -23511,14 +24229,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size840 = 0; + $_etype843 = 0; + $xfer += $input->readListBegin($_etype843, $_size840); + for ($_i844 = 0; $_i844 < $_size840; ++$_i844) { - $elem803 = null; - $xfer += $input->readString($elem803); - $this->part_vals []= $elem803; + $elem845 = null; + $xfer += $input->readString($elem845); + $this->part_vals []= $elem845; } $xfer += $input->readListEnd(); } else { @@ -23535,14 +24253,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size846 = 0; + $_etype849 = 0; + $xfer += $input->readListBegin($_etype849, $_size846); + for ($_i850 = 0; $_i850 < $_size846; ++$_i850) { - $elem809 = null; - $xfer += $input->readString($elem809); - $this->group_names []= $elem809; + $elem851 = null; + $xfer += $input->readString($elem851); + $this->group_names []= $elem851; } $xfer += $input->readListEnd(); } else { @@ -23580,9 +24298,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter810) + foreach ($this->part_vals as $iter852) { - $xfer += $output->writeString($iter810); + $xfer += $output->writeString($iter852); } } $output->writeListEnd(); @@ -23602,9 +24320,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter811) + foreach ($this->group_names as $iter853) { - $xfer += $output->writeString($iter811); + $xfer += $output->writeString($iter853); } } $output->writeListEnd(); @@ -24195,15 +24913,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size812 = 0; - $_etype815 = 0; - $xfer += $input->readListBegin($_etype815, $_size812); - for ($_i816 = 0; $_i816 < $_size812; ++$_i816) + $_size854 = 0; + $_etype857 = 0; + $xfer += $input->readListBegin($_etype857, $_size854); + for ($_i858 = 0; $_i858 < $_size854; ++$_i858) { - $elem817 = null; - $elem817 = new \metastore\Partition(); - $xfer += $elem817->read($input); - $this->success []= $elem817; + $elem859 = null; + $elem859 = new \metastore\Partition(); + $xfer += $elem859->read($input); + $this->success []= $elem859; } $xfer += $input->readListEnd(); } else { @@ -24247,9 +24965,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter818) + foreach ($this->success as $iter860) { - $xfer += $iter818->write($output); + $xfer += $iter860->write($output); } } $output->writeListEnd(); @@ -24395,14 +25113,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size819 = 0; - $_etype822 = 0; - $xfer += $input->readListBegin($_etype822, $_size819); - for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem824 = null; - $xfer += $input->readString($elem824); - $this->group_names []= $elem824; + $elem866 = null; + $xfer += $input->readString($elem866); + $this->group_names []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -24450,9 +25168,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter825) + foreach ($this->group_names as $iter867) { - $xfer += $output->writeString($iter825); + $xfer += $output->writeString($iter867); } } $output->writeListEnd(); @@ -24541,15 +25259,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size868 = 0; + $_etype871 = 0; + $xfer += $input->readListBegin($_etype871, $_size868); + for ($_i872 = 0; $_i872 < $_size868; ++$_i872) { - $elem831 = null; - $elem831 = new \metastore\Partition(); - $xfer += $elem831->read($input); - $this->success []= $elem831; + $elem873 = null; + $elem873 = new \metastore\Partition(); + $xfer += $elem873->read($input); + $this->success []= $elem873; } $xfer += $input->readListEnd(); } else { @@ -24593,9 +25311,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter832) + foreach ($this->success as $iter874) { - $xfer += $iter832->write($output); + $xfer += $iter874->write($output); } } $output->writeListEnd(); @@ -24815,15 +25533,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size875 = 0; + $_etype878 = 0; + $xfer += $input->readListBegin($_etype878, $_size875); + for ($_i879 = 0; $_i879 < $_size875; ++$_i879) { - $elem838 = null; - $elem838 = new \metastore\PartitionSpec(); - $xfer += $elem838->read($input); - $this->success []= $elem838; + $elem880 = null; + $elem880 = new \metastore\PartitionSpec(); + $xfer += $elem880->read($input); + $this->success []= $elem880; } $xfer += $input->readListEnd(); } else { @@ -24867,9 +25585,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter839) + foreach ($this->success as $iter881) { - $xfer += $iter839->write($output); + $xfer += $iter881->write($output); } } $output->writeListEnd(); @@ -25076,14 +25794,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size840 = 0; - $_etype843 = 0; - $xfer += $input->readListBegin($_etype843, $_size840); - for ($_i844 = 0; $_i844 < $_size840; ++$_i844) + $_size882 = 0; + $_etype885 = 0; + $xfer += $input->readListBegin($_etype885, $_size882); + for ($_i886 = 0; $_i886 < $_size882; ++$_i886) { - $elem845 = null; - $xfer += $input->readString($elem845); - $this->success []= $elem845; + $elem887 = null; + $xfer += $input->readString($elem887); + $this->success []= $elem887; } $xfer += $input->readListEnd(); } else { @@ -25119,9 +25837,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter846) + foreach ($this->success as $iter888) { - $xfer += $output->writeString($iter846); + $xfer += $output->writeString($iter888); } } $output->writeListEnd(); @@ -25237,14 +25955,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem852 = null; - $xfer += $input->readString($elem852); - $this->part_vals []= $elem852; + $elem894 = null; + $xfer += $input->readString($elem894); + $this->part_vals []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -25289,9 +26007,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter853) + foreach ($this->part_vals as $iter895) { - $xfer += $output->writeString($iter853); + $xfer += $output->writeString($iter895); } } $output->writeListEnd(); @@ -25385,15 +26103,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem859 = null; - $elem859 = new \metastore\Partition(); - $xfer += $elem859->read($input); - $this->success []= $elem859; + $elem901 = null; + $elem901 = new \metastore\Partition(); + $xfer += $elem901->read($input); + $this->success []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -25437,9 +26155,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter860) + foreach ($this->success as $iter902) { - $xfer += $iter860->write($output); + $xfer += $iter902->write($output); } } $output->writeListEnd(); @@ -25586,14 +26304,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem866 = null; - $xfer += $input->readString($elem866); - $this->part_vals []= $elem866; + $elem908 = null; + $xfer += $input->readString($elem908); + $this->part_vals []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -25617,14 +26335,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size867 = 0; - $_etype870 = 0; - $xfer += $input->readListBegin($_etype870, $_size867); - for ($_i871 = 0; $_i871 < $_size867; ++$_i871) + $_size909 = 0; + $_etype912 = 0; + $xfer += $input->readListBegin($_etype912, $_size909); + for ($_i913 = 0; $_i913 < $_size909; ++$_i913) { - $elem872 = null; - $xfer += $input->readString($elem872); - $this->group_names []= $elem872; + $elem914 = null; + $xfer += $input->readString($elem914); + $this->group_names []= $elem914; } $xfer += $input->readListEnd(); } else { @@ -25662,9 +26380,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter873) + foreach ($this->part_vals as $iter915) { - $xfer += $output->writeString($iter873); + $xfer += $output->writeString($iter915); } } $output->writeListEnd(); @@ -25689,9 +26407,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter874) + foreach ($this->group_names as $iter916) { - $xfer += $output->writeString($iter874); + $xfer += $output->writeString($iter916); } } $output->writeListEnd(); @@ -25780,15 +26498,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size875 = 0; - $_etype878 = 0; - $xfer += $input->readListBegin($_etype878, $_size875); - for ($_i879 = 0; $_i879 < $_size875; ++$_i879) + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) { - $elem880 = null; - $elem880 = new \metastore\Partition(); - $xfer += $elem880->read($input); - $this->success []= $elem880; + $elem922 = null; + $elem922 = new \metastore\Partition(); + $xfer += $elem922->read($input); + $this->success []= $elem922; } $xfer += $input->readListEnd(); } else { @@ -25832,9 +26550,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter881) + foreach ($this->success as $iter923) { - $xfer += $iter881->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -25955,14 +26673,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->part_vals []= $elem887; + $elem929 = null; + $xfer += $input->readString($elem929); + $this->part_vals []= $elem929; } $xfer += $input->readListEnd(); } else { @@ -26007,9 +26725,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter888) + foreach ($this->part_vals as $iter930) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter930); } } $output->writeListEnd(); @@ -26102,14 +26820,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size931 = 0; + $_etype934 = 0; + $xfer += $input->readListBegin($_etype934, $_size931); + for ($_i935 = 0; $_i935 < $_size931; ++$_i935) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->success []= $elem894; + $elem936 = null; + $xfer += $input->readString($elem936); + $this->success []= $elem936; } $xfer += $input->readListEnd(); } else { @@ -26153,9 +26871,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter895) + foreach ($this->success as $iter937) { - $xfer += $output->writeString($iter895); + $xfer += $output->writeString($iter937); } } $output->writeListEnd(); @@ -26398,15 +27116,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size938 = 0; + $_etype941 = 0; + $xfer += $input->readListBegin($_etype941, $_size938); + for ($_i942 = 0; $_i942 < $_size938; ++$_i942) { - $elem901 = null; - $elem901 = new \metastore\Partition(); - $xfer += $elem901->read($input); - $this->success []= $elem901; + $elem943 = null; + $elem943 = new \metastore\Partition(); + $xfer += $elem943->read($input); + $this->success []= $elem943; } $xfer += $input->readListEnd(); } else { @@ -26450,9 +27168,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter902) + foreach ($this->success as $iter944) { - $xfer += $iter902->write($output); + $xfer += $iter944->write($output); } } $output->writeListEnd(); @@ -26695,15 +27413,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size945 = 0; + $_etype948 = 0; + $xfer += $input->readListBegin($_etype948, $_size945); + for ($_i949 = 0; $_i949 < $_size945; ++$_i949) { - $elem908 = null; - $elem908 = new \metastore\PartitionSpec(); - $xfer += $elem908->read($input); - $this->success []= $elem908; + $elem950 = null; + $elem950 = new \metastore\PartitionSpec(); + $xfer += $elem950->read($input); + $this->success []= $elem950; } $xfer += $input->readListEnd(); } else { @@ -26747,9 +27465,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter909) + foreach ($this->success as $iter951) { - $xfer += $iter909->write($output); + $xfer += $iter951->write($output); } } $output->writeListEnd(); @@ -27315,14 +28033,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size952 = 0; + $_etype955 = 0; + $xfer += $input->readListBegin($_etype955, $_size952); + for ($_i956 = 0; $_i956 < $_size952; ++$_i956) { - $elem915 = null; - $xfer += $input->readString($elem915); - $this->names []= $elem915; + $elem957 = null; + $xfer += $input->readString($elem957); + $this->names []= $elem957; } $xfer += $input->readListEnd(); } else { @@ -27360,9 +28078,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter916) + foreach ($this->names as $iter958) { - $xfer += $output->writeString($iter916); + $xfer += $output->writeString($iter958); } } $output->writeListEnd(); @@ -27451,15 +28169,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size917 = 0; - $_etype920 = 0; - $xfer += $input->readListBegin($_etype920, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size959 = 0; + $_etype962 = 0; + $xfer += $input->readListBegin($_etype962, $_size959); + for ($_i963 = 0; $_i963 < $_size959; ++$_i963) { - $elem922 = null; - $elem922 = new \metastore\Partition(); - $xfer += $elem922->read($input); - $this->success []= $elem922; + $elem964 = null; + $elem964 = new \metastore\Partition(); + $xfer += $elem964->read($input); + $this->success []= $elem964; } $xfer += $input->readListEnd(); } else { @@ -27503,9 +28221,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter923) + foreach ($this->success as $iter965) { - $xfer += $iter923->write($output); + $xfer += $iter965->write($output); } } $output->writeListEnd(); @@ -27844,15 +28562,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size924 = 0; - $_etype927 = 0; - $xfer += $input->readListBegin($_etype927, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size966 = 0; + $_etype969 = 0; + $xfer += $input->readListBegin($_etype969, $_size966); + for ($_i970 = 0; $_i970 < $_size966; ++$_i970) { - $elem929 = null; - $elem929 = new \metastore\Partition(); - $xfer += $elem929->read($input); - $this->new_parts []= $elem929; + $elem971 = null; + $elem971 = new \metastore\Partition(); + $xfer += $elem971->read($input); + $this->new_parts []= $elem971; } $xfer += $input->readListEnd(); } else { @@ -27890,9 +28608,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter930) + foreach ($this->new_parts as $iter972) { - $xfer += $iter930->write($output); + $xfer += $iter972->write($output); } } $output->writeListEnd(); @@ -28107,15 +28825,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size931 = 0; - $_etype934 = 0; - $xfer += $input->readListBegin($_etype934, $_size931); - for ($_i935 = 0; $_i935 < $_size931; ++$_i935) + $_size973 = 0; + $_etype976 = 0; + $xfer += $input->readListBegin($_etype976, $_size973); + for ($_i977 = 0; $_i977 < $_size973; ++$_i977) { - $elem936 = null; - $elem936 = new \metastore\Partition(); - $xfer += $elem936->read($input); - $this->new_parts []= $elem936; + $elem978 = null; + $elem978 = new \metastore\Partition(); + $xfer += $elem978->read($input); + $this->new_parts []= $elem978; } $xfer += $input->readListEnd(); } else { @@ -28161,9 +28879,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter937) + foreach ($this->new_parts as $iter979) { - $xfer += $iter937->write($output); + $xfer += $iter979->write($output); } } $output->writeListEnd(); @@ -28641,14 +29359,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size938 = 0; - $_etype941 = 0; - $xfer += $input->readListBegin($_etype941, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size980 = 0; + $_etype983 = 0; + $xfer += $input->readListBegin($_etype983, $_size980); + for ($_i984 = 0; $_i984 < $_size980; ++$_i984) { - $elem943 = null; - $xfer += $input->readString($elem943); - $this->part_vals []= $elem943; + $elem985 = null; + $xfer += $input->readString($elem985); + $this->part_vals []= $elem985; } $xfer += $input->readListEnd(); } else { @@ -28694,9 +29412,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter944) + foreach ($this->part_vals as $iter986) { - $xfer += $output->writeString($iter944); + $xfer += $output->writeString($iter986); } } $output->writeListEnd(); @@ -28881,14 +29599,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size945 = 0; - $_etype948 = 0; - $xfer += $input->readListBegin($_etype948, $_size945); - for ($_i949 = 0; $_i949 < $_size945; ++$_i949) + $_size987 = 0; + $_etype990 = 0; + $xfer += $input->readListBegin($_etype990, $_size987); + for ($_i991 = 0; $_i991 < $_size987; ++$_i991) { - $elem950 = null; - $xfer += $input->readString($elem950); - $this->part_vals []= $elem950; + $elem992 = null; + $xfer += $input->readString($elem992); + $this->part_vals []= $elem992; } $xfer += $input->readListEnd(); } else { @@ -28923,9 +29641,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter951) + foreach ($this->part_vals as $iter993) { - $xfer += $output->writeString($iter951); + $xfer += $output->writeString($iter993); } } $output->writeListEnd(); @@ -29379,14 +30097,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size994 = 0; + $_etype997 = 0; + $xfer += $input->readListBegin($_etype997, $_size994); + for ($_i998 = 0; $_i998 < $_size994; ++$_i998) { - $elem957 = null; - $xfer += $input->readString($elem957); - $this->success []= $elem957; + $elem999 = null; + $xfer += $input->readString($elem999); + $this->success []= $elem999; } $xfer += $input->readListEnd(); } else { @@ -29422,9 +30140,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter958) + foreach ($this->success as $iter1000) { - $xfer += $output->writeString($iter958); + $xfer += $output->writeString($iter1000); } } $output->writeListEnd(); @@ -29584,17 +30302,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size959 = 0; - $_ktype960 = 0; - $_vtype961 = 0; - $xfer += $input->readMapBegin($_ktype960, $_vtype961, $_size959); - for ($_i963 = 0; $_i963 < $_size959; ++$_i963) + $_size1001 = 0; + $_ktype1002 = 0; + $_vtype1003 = 0; + $xfer += $input->readMapBegin($_ktype1002, $_vtype1003, $_size1001); + for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) { - $key964 = ''; - $val965 = ''; - $xfer += $input->readString($key964); - $xfer += $input->readString($val965); - $this->success[$key964] = $val965; + $key1006 = ''; + $val1007 = ''; + $xfer += $input->readString($key1006); + $xfer += $input->readString($val1007); + $this->success[$key1006] = $val1007; } $xfer += $input->readMapEnd(); } else { @@ -29630,10 +30348,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter966 => $viter967) + foreach ($this->success as $kiter1008 => $viter1009) { - $xfer += $output->writeString($kiter966); - $xfer += $output->writeString($viter967); + $xfer += $output->writeString($kiter1008); + $xfer += $output->writeString($viter1009); } } $output->writeMapEnd(); @@ -29753,17 +30471,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size968 = 0; - $_ktype969 = 0; - $_vtype970 = 0; - $xfer += $input->readMapBegin($_ktype969, $_vtype970, $_size968); - for ($_i972 = 0; $_i972 < $_size968; ++$_i972) + $_size1010 = 0; + $_ktype1011 = 0; + $_vtype1012 = 0; + $xfer += $input->readMapBegin($_ktype1011, $_vtype1012, $_size1010); + for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) { - $key973 = ''; - $val974 = ''; - $xfer += $input->readString($key973); - $xfer += $input->readString($val974); - $this->part_vals[$key973] = $val974; + $key1015 = ''; + $val1016 = ''; + $xfer += $input->readString($key1015); + $xfer += $input->readString($val1016); + $this->part_vals[$key1015] = $val1016; } $xfer += $input->readMapEnd(); } else { @@ -29808,10 +30526,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter975 => $viter976) + foreach ($this->part_vals as $kiter1017 => $viter1018) { - $xfer += $output->writeString($kiter975); - $xfer += $output->writeString($viter976); + $xfer += $output->writeString($kiter1017); + $xfer += $output->writeString($viter1018); } } $output->writeMapEnd(); @@ -30133,17 +30851,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size977 = 0; - $_ktype978 = 0; - $_vtype979 = 0; - $xfer += $input->readMapBegin($_ktype978, $_vtype979, $_size977); - for ($_i981 = 0; $_i981 < $_size977; ++$_i981) + $_size1019 = 0; + $_ktype1020 = 0; + $_vtype1021 = 0; + $xfer += $input->readMapBegin($_ktype1020, $_vtype1021, $_size1019); + for ($_i1023 = 0; $_i1023 < $_size1019; ++$_i1023) { - $key982 = ''; - $val983 = ''; - $xfer += $input->readString($key982); - $xfer += $input->readString($val983); - $this->part_vals[$key982] = $val983; + $key1024 = ''; + $val1025 = ''; + $xfer += $input->readString($key1024); + $xfer += $input->readString($val1025); + $this->part_vals[$key1024] = $val1025; } $xfer += $input->readMapEnd(); } else { @@ -30188,10 +30906,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter984 => $viter985) + foreach ($this->part_vals as $kiter1026 => $viter1027) { - $xfer += $output->writeString($kiter984); - $xfer += $output->writeString($viter985); + $xfer += $output->writeString($kiter1026); + $xfer += $output->writeString($viter1027); } } $output->writeMapEnd(); @@ -31665,15 +32383,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size986 = 0; - $_etype989 = 0; - $xfer += $input->readListBegin($_etype989, $_size986); - for ($_i990 = 0; $_i990 < $_size986; ++$_i990) + $_size1028 = 0; + $_etype1031 = 0; + $xfer += $input->readListBegin($_etype1031, $_size1028); + for ($_i1032 = 0; $_i1032 < $_size1028; ++$_i1032) { - $elem991 = null; - $elem991 = new \metastore\Index(); - $xfer += $elem991->read($input); - $this->success []= $elem991; + $elem1033 = null; + $elem1033 = new \metastore\Index(); + $xfer += $elem1033->read($input); + $this->success []= $elem1033; } $xfer += $input->readListEnd(); } else { @@ -31717,9 +32435,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter992) + foreach ($this->success as $iter1034) { - $xfer += $iter992->write($output); + $xfer += $iter1034->write($output); } } $output->writeListEnd(); @@ -31926,14 +32644,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size993 = 0; - $_etype996 = 0; - $xfer += $input->readListBegin($_etype996, $_size993); - for ($_i997 = 0; $_i997 < $_size993; ++$_i997) + $_size1035 = 0; + $_etype1038 = 0; + $xfer += $input->readListBegin($_etype1038, $_size1035); + for ($_i1039 = 0; $_i1039 < $_size1035; ++$_i1039) { - $elem998 = null; - $xfer += $input->readString($elem998); - $this->success []= $elem998; + $elem1040 = null; + $xfer += $input->readString($elem1040); + $this->success []= $elem1040; } $xfer += $input->readListEnd(); } else { @@ -31969,9 +32687,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter999) + foreach ($this->success as $iter1041) { - $xfer += $output->writeString($iter999); + $xfer += $output->writeString($iter1041); } } $output->writeListEnd(); @@ -32410,6 +33128,426 @@ class ThriftHiveMetastore_get_foreign_keys_result { } +class ThriftHiveMetastore_get_unique_constraints_args { + static $_TSPEC; + + /** + * @var \metastore\UniqueConstraintsRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\UniqueConstraintsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_unique_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\UniqueConstraintsRequest(); + $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_unique_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_unique_constraints_result { + static $_TSPEC; + + /** + * @var \metastore\UniqueConstraintsResponse + */ + 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\UniqueConstraintsResponse', + ), + 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_unique_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\UniqueConstraintsResponse(); + $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_unique_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_get_not_null_constraints_args { + static $_TSPEC; + + /** + * @var \metastore\NotNullConstraintsRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\NotNullConstraintsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_not_null_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\NotNullConstraintsRequest(); + $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_not_null_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_not_null_constraints_result { + static $_TSPEC; + + /** + * @var \metastore\NotNullConstraintsResponse + */ + 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\NotNullConstraintsResponse', + ), + 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_not_null_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\NotNullConstraintsResponse(); + $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_not_null_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; @@ -35865,14 +37003,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1000 = 0; - $_etype1003 = 0; - $xfer += $input->readListBegin($_etype1003, $_size1000); - for ($_i1004 = 0; $_i1004 < $_size1000; ++$_i1004) + $_size1042 = 0; + $_etype1045 = 0; + $xfer += $input->readListBegin($_etype1045, $_size1042); + for ($_i1046 = 0; $_i1046 < $_size1042; ++$_i1046) { - $elem1005 = null; - $xfer += $input->readString($elem1005); - $this->success []= $elem1005; + $elem1047 = null; + $xfer += $input->readString($elem1047); + $this->success []= $elem1047; } $xfer += $input->readListEnd(); } else { @@ -35908,9 +37046,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1006) + foreach ($this->success as $iter1048) { - $xfer += $output->writeString($iter1006); + $xfer += $output->writeString($iter1048); } } $output->writeListEnd(); @@ -36779,14 +37917,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1007 = 0; - $_etype1010 = 0; - $xfer += $input->readListBegin($_etype1010, $_size1007); - for ($_i1011 = 0; $_i1011 < $_size1007; ++$_i1011) + $_size1049 = 0; + $_etype1052 = 0; + $xfer += $input->readListBegin($_etype1052, $_size1049); + for ($_i1053 = 0; $_i1053 < $_size1049; ++$_i1053) { - $elem1012 = null; - $xfer += $input->readString($elem1012); - $this->success []= $elem1012; + $elem1054 = null; + $xfer += $input->readString($elem1054); + $this->success []= $elem1054; } $xfer += $input->readListEnd(); } else { @@ -36822,9 +37960,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1013) + foreach ($this->success as $iter1055) { - $xfer += $output->writeString($iter1013); + $xfer += $output->writeString($iter1055); } } $output->writeListEnd(); @@ -37515,15 +38653,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1014 = 0; - $_etype1017 = 0; - $xfer += $input->readListBegin($_etype1017, $_size1014); - for ($_i1018 = 0; $_i1018 < $_size1014; ++$_i1018) + $_size1056 = 0; + $_etype1059 = 0; + $xfer += $input->readListBegin($_etype1059, $_size1056); + for ($_i1060 = 0; $_i1060 < $_size1056; ++$_i1060) { - $elem1019 = null; - $elem1019 = new \metastore\Role(); - $xfer += $elem1019->read($input); - $this->success []= $elem1019; + $elem1061 = null; + $elem1061 = new \metastore\Role(); + $xfer += $elem1061->read($input); + $this->success []= $elem1061; } $xfer += $input->readListEnd(); } else { @@ -37559,9 +38697,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1020) + foreach ($this->success as $iter1062) { - $xfer += $iter1020->write($output); + $xfer += $iter1062->write($output); } } $output->writeListEnd(); @@ -38223,14 +39361,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1021 = 0; - $_etype1024 = 0; - $xfer += $input->readListBegin($_etype1024, $_size1021); - for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) + $_size1063 = 0; + $_etype1066 = 0; + $xfer += $input->readListBegin($_etype1066, $_size1063); + for ($_i1067 = 0; $_i1067 < $_size1063; ++$_i1067) { - $elem1026 = null; - $xfer += $input->readString($elem1026); - $this->group_names []= $elem1026; + $elem1068 = null; + $xfer += $input->readString($elem1068); + $this->group_names []= $elem1068; } $xfer += $input->readListEnd(); } else { @@ -38271,9 +39409,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1027) + foreach ($this->group_names as $iter1069) { - $xfer += $output->writeString($iter1027); + $xfer += $output->writeString($iter1069); } } $output->writeListEnd(); @@ -38581,15 +39719,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1028 = 0; - $_etype1031 = 0; - $xfer += $input->readListBegin($_etype1031, $_size1028); - for ($_i1032 = 0; $_i1032 < $_size1028; ++$_i1032) + $_size1070 = 0; + $_etype1073 = 0; + $xfer += $input->readListBegin($_etype1073, $_size1070); + for ($_i1074 = 0; $_i1074 < $_size1070; ++$_i1074) { - $elem1033 = null; - $elem1033 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1033->read($input); - $this->success []= $elem1033; + $elem1075 = null; + $elem1075 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1075->read($input); + $this->success []= $elem1075; } $xfer += $input->readListEnd(); } else { @@ -38625,9 +39763,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1034) + foreach ($this->success as $iter1076) { - $xfer += $iter1034->write($output); + $xfer += $iter1076->write($output); } } $output->writeListEnd(); @@ -39259,14 +40397,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1035 = 0; - $_etype1038 = 0; - $xfer += $input->readListBegin($_etype1038, $_size1035); - for ($_i1039 = 0; $_i1039 < $_size1035; ++$_i1039) + $_size1077 = 0; + $_etype1080 = 0; + $xfer += $input->readListBegin($_etype1080, $_size1077); + for ($_i1081 = 0; $_i1081 < $_size1077; ++$_i1081) { - $elem1040 = null; - $xfer += $input->readString($elem1040); - $this->group_names []= $elem1040; + $elem1082 = null; + $xfer += $input->readString($elem1082); + $this->group_names []= $elem1082; } $xfer += $input->readListEnd(); } else { @@ -39299,9 +40437,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1041) + foreach ($this->group_names as $iter1083) { - $xfer += $output->writeString($iter1041); + $xfer += $output->writeString($iter1083); } } $output->writeListEnd(); @@ -39377,14 +40515,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1042 = 0; - $_etype1045 = 0; - $xfer += $input->readListBegin($_etype1045, $_size1042); - for ($_i1046 = 0; $_i1046 < $_size1042; ++$_i1046) + $_size1084 = 0; + $_etype1087 = 0; + $xfer += $input->readListBegin($_etype1087, $_size1084); + for ($_i1088 = 0; $_i1088 < $_size1084; ++$_i1088) { - $elem1047 = null; - $xfer += $input->readString($elem1047); - $this->success []= $elem1047; + $elem1089 = null; + $xfer += $input->readString($elem1089); + $this->success []= $elem1089; } $xfer += $input->readListEnd(); } else { @@ -39420,9 +40558,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1048) + foreach ($this->success as $iter1090) { - $xfer += $output->writeString($iter1048); + $xfer += $output->writeString($iter1090); } } $output->writeListEnd(); @@ -40539,14 +41677,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1049 = 0; - $_etype1052 = 0; - $xfer += $input->readListBegin($_etype1052, $_size1049); - for ($_i1053 = 0; $_i1053 < $_size1049; ++$_i1053) + $_size1091 = 0; + $_etype1094 = 0; + $xfer += $input->readListBegin($_etype1094, $_size1091); + for ($_i1095 = 0; $_i1095 < $_size1091; ++$_i1095) { - $elem1054 = null; - $xfer += $input->readString($elem1054); - $this->success []= $elem1054; + $elem1096 = null; + $xfer += $input->readString($elem1096); + $this->success []= $elem1096; } $xfer += $input->readListEnd(); } else { @@ -40574,9 +41712,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1055) + foreach ($this->success as $iter1097) { - $xfer += $output->writeString($iter1055); + $xfer += $output->writeString($iter1097); } } $output->writeListEnd(); @@ -41215,14 +42353,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1056 = 0; - $_etype1059 = 0; - $xfer += $input->readListBegin($_etype1059, $_size1056); - for ($_i1060 = 0; $_i1060 < $_size1056; ++$_i1060) + $_size1098 = 0; + $_etype1101 = 0; + $xfer += $input->readListBegin($_etype1101, $_size1098); + for ($_i1102 = 0; $_i1102 < $_size1098; ++$_i1102) { - $elem1061 = null; - $xfer += $input->readString($elem1061); - $this->success []= $elem1061; + $elem1103 = null; + $xfer += $input->readString($elem1103); + $this->success []= $elem1103; } $xfer += $input->readListEnd(); } else { @@ -41250,9 +42388,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1062) + foreach ($this->success as $iter1104) { - $xfer += $output->writeString($iter1062); + $xfer += $output->writeString($iter1104); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-php/metastore/Types.php metastore/src/gen/thrift/gen-php/metastore/Types.php index 74f0028..9321301 100644 --- metastore/src/gen/thrift/gen-php/metastore/Types.php +++ metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -1003,70 +1003,109 @@ class SQLForeignKey { } -class Type { +class SQLUniqueConstraint { static $_TSPEC; /** * @var string */ - public $name = null; + public $table_db = null; /** * @var string */ - public $type1 = null; + public $table_name = null; /** * @var string */ - public $type2 = null; + public $column_name = null; /** - * @var \metastore\FieldSchema[] + * @var int */ - public $fields = null; + public $key_seq = null; + /** + * @var string + */ + public $uk_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' => 'name', + 'var' => 'table_db', 'type' => TType::STRING, ), 2 => array( - 'var' => 'type1', + 'var' => 'table_name', 'type' => TType::STRING, ), 3 => array( - 'var' => 'type2', + 'var' => 'column_name', 'type' => TType::STRING, ), 4 => array( - 'var' => 'fields', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\FieldSchema', - ), + 'var' => 'key_seq', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'uk_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['name'])) { - $this->name = $vals['name']; + if (isset($vals['table_db'])) { + $this->table_db = $vals['table_db']; } - if (isset($vals['type1'])) { - $this->type1 = $vals['type1']; + if (isset($vals['table_name'])) { + $this->table_name = $vals['table_name']; } - if (isset($vals['type2'])) { - $this->type2 = $vals['type2']; + if (isset($vals['column_name'])) { + $this->column_name = $vals['column_name']; } - if (isset($vals['fields'])) { - $this->fields = $vals['fields']; + if (isset($vals['key_seq'])) { + $this->key_seq = $vals['key_seq']; + } + if (isset($vals['uk_name'])) { + $this->uk_name = $vals['uk_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 'Type'; + return 'SQLUniqueConstraint'; } public function read($input) @@ -1086,39 +1125,56 @@ class Type { { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->name); + $xfer += $input->readString($this->table_db); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->type1); + $xfer += $input->readString($this->table_name); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->type2); + $xfer += $input->readString($this->column_name); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::LST) { - $this->fields = array(); - $_size0 = 0; - $_etype3 = 0; - $xfer += $input->readListBegin($_etype3, $_size0); - for ($_i4 = 0; $_i4 < $_size0; ++$_i4) - { - $elem5 = null; - $elem5 = new \metastore\FieldSchema(); - $xfer += $elem5->read($input); - $this->fields []= $elem5; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->key_seq); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->uk_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); } @@ -1135,37 +1191,45 @@ class Type { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Type'); - if ($this->name !== null) { - $xfer += $output->writeFieldBegin('name', TType::STRING, 1); - $xfer += $output->writeString($this->name); + $xfer += $output->writeStructBegin('SQLUniqueConstraint'); + if ($this->table_db !== null) { + $xfer += $output->writeFieldBegin('table_db', TType::STRING, 1); + $xfer += $output->writeString($this->table_db); $xfer += $output->writeFieldEnd(); } - if ($this->type1 !== null) { - $xfer += $output->writeFieldBegin('type1', TType::STRING, 2); - $xfer += $output->writeString($this->type1); + if ($this->table_name !== null) { + $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2); + $xfer += $output->writeString($this->table_name); $xfer += $output->writeFieldEnd(); } - if ($this->type2 !== null) { - $xfer += $output->writeFieldBegin('type2', TType::STRING, 3); - $xfer += $output->writeString($this->type2); + if ($this->column_name !== null) { + $xfer += $output->writeFieldBegin('column_name', TType::STRING, 3); + $xfer += $output->writeString($this->column_name); $xfer += $output->writeFieldEnd(); } - if ($this->fields !== null) { - if (!is_array($this->fields)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('fields', TType::LST, 4); - { - $output->writeListBegin(TType::STRUCT, count($this->fields)); - { - foreach ($this->fields as $iter6) - { - $xfer += $iter6->write($output); - } - } - $output->writeListEnd(); - } + if ($this->key_seq !== null) { + $xfer += $output->writeFieldBegin('key_seq', TType::I32, 4); + $xfer += $output->writeI32($this->key_seq); + $xfer += $output->writeFieldEnd(); + } + if ($this->uk_name !== null) { + $xfer += $output->writeFieldBegin('uk_name', TType::STRING, 5); + $xfer += $output->writeString($this->uk_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(); @@ -1175,80 +1239,98 @@ class Type { } -class HiveObjectRef { +class SQLNotNullConstraint { static $_TSPEC; /** - * @var int + * @var string */ - public $objectType = null; + public $table_db = null; /** * @var string */ - public $dbName = null; + public $table_name = null; /** * @var string */ - public $objectName = null; + public $column_name = null; /** - * @var string[] + * @var string */ - public $partValues = null; + public $nn_name = null; /** - * @var string + * @var bool */ - public $columnName = null; + 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' => 'objectType', - 'type' => TType::I32, + 'var' => 'table_db', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'dbName', + 'var' => 'table_name', 'type' => TType::STRING, ), 3 => array( - 'var' => 'objectName', + 'var' => 'column_name', 'type' => TType::STRING, ), 4 => array( - 'var' => 'partValues', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'nn_name', + 'type' => TType::STRING, ), 5 => array( - 'var' => 'columnName', - 'type' => TType::STRING, + 'var' => 'enable_cstr', + 'type' => TType::BOOL, + ), + 6 => array( + 'var' => 'validate_cstr', + 'type' => TType::BOOL, + ), + 7 => array( + 'var' => 'rely_cstr', + 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['objectType'])) { - $this->objectType = $vals['objectType']; + if (isset($vals['table_db'])) { + $this->table_db = $vals['table_db']; } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; + if (isset($vals['table_name'])) { + $this->table_name = $vals['table_name']; } - if (isset($vals['objectName'])) { - $this->objectName = $vals['objectName']; + if (isset($vals['column_name'])) { + $this->column_name = $vals['column_name']; } - if (isset($vals['partValues'])) { - $this->partValues = $vals['partValues']; + if (isset($vals['nn_name'])) { + $this->nn_name = $vals['nn_name']; } - if (isset($vals['columnName'])) { - $this->columnName = $vals['columnName']; + 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 'HiveObjectRef'; + return 'SQLNotNullConstraint'; } public function read($input) @@ -1267,46 +1349,50 @@ class HiveObjectRef { switch ($fid) { case 1: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->objectType); + 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->dbName); + $xfer += $input->readString($this->table_name); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->objectName); + $xfer += $input->readString($this->column_name); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::LST) { - $this->partValues = array(); - $_size7 = 0; - $_etype10 = 0; - $xfer += $input->readListBegin($_etype10, $_size7); - for ($_i11 = 0; $_i11 < $_size7; ++$_i11) - { - $elem12 = null; - $xfer += $input->readString($elem12); - $this->partValues []= $elem12; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->nn_name); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->columnName); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->enable_cstr); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->validate_cstr); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->rely_cstr); } else { $xfer += $input->skip($ftype); } @@ -1323,42 +1409,40 @@ class HiveObjectRef { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('HiveObjectRef'); - if ($this->objectType !== null) { - $xfer += $output->writeFieldBegin('objectType', TType::I32, 1); - $xfer += $output->writeI32($this->objectType); + $xfer += $output->writeStructBegin('SQLNotNullConstraint'); + if ($this->table_db !== null) { + $xfer += $output->writeFieldBegin('table_db', TType::STRING, 1); + $xfer += $output->writeString($this->table_db); $xfer += $output->writeFieldEnd(); } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); - $xfer += $output->writeString($this->dbName); + if ($this->table_name !== null) { + $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2); + $xfer += $output->writeString($this->table_name); $xfer += $output->writeFieldEnd(); } - if ($this->objectName !== null) { - $xfer += $output->writeFieldBegin('objectName', TType::STRING, 3); - $xfer += $output->writeString($this->objectName); + if ($this->column_name !== null) { + $xfer += $output->writeFieldBegin('column_name', TType::STRING, 3); + $xfer += $output->writeString($this->column_name); $xfer += $output->writeFieldEnd(); } - if ($this->partValues !== null) { - if (!is_array($this->partValues)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partValues', TType::LST, 4); - { - $output->writeListBegin(TType::STRING, count($this->partValues)); - { - foreach ($this->partValues as $iter13) - { - $xfer += $output->writeString($iter13); - } - } - $output->writeListEnd(); - } + if ($this->nn_name !== null) { + $xfer += $output->writeFieldBegin('nn_name', TType::STRING, 4); + $xfer += $output->writeString($this->nn_name); $xfer += $output->writeFieldEnd(); } - if ($this->columnName !== null) { - $xfer += $output->writeFieldBegin('columnName', TType::STRING, 5); - $xfer += $output->writeString($this->columnName); + if ($this->enable_cstr !== null) { + $xfer += $output->writeFieldBegin('enable_cstr', TType::BOOL, 5); + $xfer += $output->writeBool($this->enable_cstr); + $xfer += $output->writeFieldEnd(); + } + if ($this->validate_cstr !== null) { + $xfer += $output->writeFieldBegin('validate_cstr', TType::BOOL, 6); + $xfer += $output->writeBool($this->validate_cstr); + $xfer += $output->writeFieldEnd(); + } + if ($this->rely_cstr !== null) { + $xfer += $output->writeFieldBegin('rely_cstr', TType::BOOL, 7); + $xfer += $output->writeBool($this->rely_cstr); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -1368,76 +1452,70 @@ class HiveObjectRef { } -class PrivilegeGrantInfo { +class Type { static $_TSPEC; /** * @var string */ - public $privilege = null; - /** - * @var int - */ - public $createTime = null; + public $name = null; /** * @var string */ - public $grantor = null; + public $type1 = null; /** - * @var int + * @var string */ - public $grantorType = null; + public $type2 = null; /** - * @var bool + * @var \metastore\FieldSchema[] */ - public $grantOption = null; + public $fields = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'privilege', + 'var' => 'name', 'type' => TType::STRING, ), 2 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'type1', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'grantor', + 'var' => 'type2', 'type' => TType::STRING, ), 4 => array( - 'var' => 'grantorType', - 'type' => TType::I32, - ), - 5 => array( - 'var' => 'grantOption', - 'type' => TType::BOOL, + 'var' => 'fields', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), ), ); } if (is_array($vals)) { - if (isset($vals['privilege'])) { - $this->privilege = $vals['privilege']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; + if (isset($vals['name'])) { + $this->name = $vals['name']; } - if (isset($vals['grantor'])) { - $this->grantor = $vals['grantor']; + if (isset($vals['type1'])) { + $this->type1 = $vals['type1']; } - if (isset($vals['grantorType'])) { - $this->grantorType = $vals['grantorType']; + if (isset($vals['type2'])) { + $this->type2 = $vals['type2']; } - if (isset($vals['grantOption'])) { - $this->grantOption = $vals['grantOption']; + if (isset($vals['fields'])) { + $this->fields = $vals['fields']; } } } public function getName() { - return 'PrivilegeGrantInfo'; + return 'Type'; } public function read($input) @@ -1457,35 +1535,39 @@ class PrivilegeGrantInfo { { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->privilege); + $xfer += $input->readString($this->name); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->type1); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->grantor); + $xfer += $input->readString($this->type2); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->grantorType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->grantOption); + if ($ftype == TType::LST) { + $this->fields = array(); + $_size0 = 0; + $_etype3 = 0; + $xfer += $input->readListBegin($_etype3, $_size0); + for ($_i4 = 0; $_i4 < $_size0; ++$_i4) + { + $elem5 = null; + $elem5 = new \metastore\FieldSchema(); + $xfer += $elem5->read($input); + $this->fields []= $elem5; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -1502,30 +1584,37 @@ class PrivilegeGrantInfo { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PrivilegeGrantInfo'); - if ($this->privilege !== null) { - $xfer += $output->writeFieldBegin('privilege', TType::STRING, 1); - $xfer += $output->writeString($this->privilege); - $xfer += $output->writeFieldEnd(); - } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); - $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeStructBegin('Type'); + if ($this->name !== null) { + $xfer += $output->writeFieldBegin('name', TType::STRING, 1); + $xfer += $output->writeString($this->name); $xfer += $output->writeFieldEnd(); } - if ($this->grantor !== null) { - $xfer += $output->writeFieldBegin('grantor', TType::STRING, 3); - $xfer += $output->writeString($this->grantor); + if ($this->type1 !== null) { + $xfer += $output->writeFieldBegin('type1', TType::STRING, 2); + $xfer += $output->writeString($this->type1); $xfer += $output->writeFieldEnd(); } - if ($this->grantorType !== null) { - $xfer += $output->writeFieldBegin('grantorType', TType::I32, 4); - $xfer += $output->writeI32($this->grantorType); + if ($this->type2 !== null) { + $xfer += $output->writeFieldBegin('type2', TType::STRING, 3); + $xfer += $output->writeString($this->type2); $xfer += $output->writeFieldEnd(); } - if ($this->grantOption !== null) { - $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 5); - $xfer += $output->writeBool($this->grantOption); + if ($this->fields !== null) { + if (!is_array($this->fields)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('fields', TType::LST, 4); + { + $output->writeListBegin(TType::STRUCT, count($this->fields)); + { + foreach ($this->fields as $iter6) + { + $xfer += $iter6->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -1535,67 +1624,80 @@ class PrivilegeGrantInfo { } -class HiveObjectPrivilege { +class HiveObjectRef { static $_TSPEC; /** - * @var \metastore\HiveObjectRef + * @var int */ - public $hiveObject = null; + public $objectType = null; /** * @var string */ - public $principalName = null; + public $dbName = null; /** - * @var int + * @var string */ - public $principalType = null; + public $objectName = null; /** - * @var \metastore\PrivilegeGrantInfo + * @var string[] */ - public $grantInfo = null; + public $partValues = null; + /** + * @var string + */ + public $columnName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'hiveObject', - 'type' => TType::STRUCT, - 'class' => '\metastore\HiveObjectRef', + 'var' => 'objectType', + 'type' => TType::I32, ), 2 => array( - 'var' => 'principalName', + 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( - 'var' => 'principalType', - 'type' => TType::I32, + 'var' => 'objectName', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'grantInfo', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrivilegeGrantInfo', + 'var' => 'partValues', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 5 => array( + 'var' => 'columnName', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['hiveObject'])) { - $this->hiveObject = $vals['hiveObject']; + if (isset($vals['objectType'])) { + $this->objectType = $vals['objectType']; } - if (isset($vals['principalName'])) { - $this->principalName = $vals['principalName']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['principalType'])) { - $this->principalType = $vals['principalType']; + if (isset($vals['objectName'])) { + $this->objectName = $vals['objectName']; } - if (isset($vals['grantInfo'])) { - $this->grantInfo = $vals['grantInfo']; + if (isset($vals['partValues'])) { + $this->partValues = $vals['partValues']; + } + if (isset($vals['columnName'])) { + $this->columnName = $vals['columnName']; } } } public function getName() { - return 'HiveObjectPrivilege'; + return 'HiveObjectRef'; } public function read($input) @@ -1614,31 +1716,46 @@ class HiveObjectPrivilege { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->hiveObject = new \metastore\HiveObjectRef(); - $xfer += $this->hiveObject->read($input); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->objectType); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->principalName); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->principalType); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->objectName); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::STRUCT) { - $this->grantInfo = new \metastore\PrivilegeGrantInfo(); - $xfer += $this->grantInfo->read($input); + if ($ftype == TType::LST) { + $this->partValues = array(); + $_size7 = 0; + $_etype10 = 0; + $xfer += $input->readListBegin($_etype10, $_size7); + for ($_i11 = 0; $_i11 < $_size7; ++$_i11) + { + $elem12 = null; + $xfer += $input->readString($elem12); + $this->partValues []= $elem12; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->columnName); } else { $xfer += $input->skip($ftype); } @@ -1655,31 +1772,42 @@ class HiveObjectPrivilege { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('HiveObjectPrivilege'); - if ($this->hiveObject !== null) { - if (!is_object($this->hiveObject)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('hiveObject', TType::STRUCT, 1); - $xfer += $this->hiveObject->write($output); + $xfer += $output->writeStructBegin('HiveObjectRef'); + if ($this->objectType !== null) { + $xfer += $output->writeFieldBegin('objectType', TType::I32, 1); + $xfer += $output->writeI32($this->objectType); $xfer += $output->writeFieldEnd(); } - if ($this->principalName !== null) { - $xfer += $output->writeFieldBegin('principalName', TType::STRING, 2); - $xfer += $output->writeString($this->principalName); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->principalType !== null) { - $xfer += $output->writeFieldBegin('principalType', TType::I32, 3); - $xfer += $output->writeI32($this->principalType); + if ($this->objectName !== null) { + $xfer += $output->writeFieldBegin('objectName', TType::STRING, 3); + $xfer += $output->writeString($this->objectName); $xfer += $output->writeFieldEnd(); } - if ($this->grantInfo !== null) { - if (!is_object($this->grantInfo)) { + if ($this->partValues !== null) { + if (!is_array($this->partValues)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('grantInfo', TType::STRUCT, 4); - $xfer += $this->grantInfo->write($output); + $xfer += $output->writeFieldBegin('partValues', TType::LST, 4); + { + $output->writeListBegin(TType::STRING, count($this->partValues)); + { + foreach ($this->partValues as $iter13) + { + $xfer += $output->writeString($iter13); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->columnName !== null) { + $xfer += $output->writeFieldBegin('columnName', TType::STRING, 5); + $xfer += $output->writeString($this->columnName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -1689,37 +1817,76 @@ class HiveObjectPrivilege { } -class PrivilegeBag { +class PrivilegeGrantInfo { static $_TSPEC; /** - * @var \metastore\HiveObjectPrivilege[] + * @var string */ - public $privileges = null; + public $privilege = null; + /** + * @var int + */ + public $createTime = null; + /** + * @var string + */ + public $grantor = null; + /** + * @var int + */ + public $grantorType = null; + /** + * @var bool + */ + public $grantOption = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'privileges', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\HiveObjectPrivilege', - ), + 'var' => 'privilege', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'createTime', + 'type' => TType::I32, + ), + 3 => array( + 'var' => 'grantor', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'grantorType', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'grantOption', + 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; + if (isset($vals['privilege'])) { + $this->privilege = $vals['privilege']; + } + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['grantor'])) { + $this->grantor = $vals['grantor']; + } + if (isset($vals['grantorType'])) { + $this->grantorType = $vals['grantorType']; + } + if (isset($vals['grantOption'])) { + $this->grantOption = $vals['grantOption']; } } } public function getName() { - return 'PrivilegeBag'; + return 'PrivilegeGrantInfo'; } public function read($input) @@ -1738,19 +1905,36 @@ class PrivilegeBag { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->privileges = array(); - $_size14 = 0; - $_etype17 = 0; - $xfer += $input->readListBegin($_etype17, $_size14); - for ($_i18 = 0; $_i18 < $_size14; ++$_i18) - { - $elem19 = null; - $elem19 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem19->read($input); - $this->privileges []= $elem19; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->privilege); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->grantor); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->grantorType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->grantOption); } else { $xfer += $input->skip($ftype); } @@ -1767,118 +1951,100 @@ class PrivilegeBag { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PrivilegeBag'); - if ($this->privileges !== null) { - if (!is_array($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('privileges', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->privileges)); - { - foreach ($this->privileges as $iter20) - { - $xfer += $iter20->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('PrivilegeGrantInfo'); + if ($this->privilege !== null) { + $xfer += $output->writeFieldBegin('privilege', TType::STRING, 1); + $xfer += $output->writeString($this->privilege); $xfer += $output->writeFieldEnd(); } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class PrincipalPrivilegeSet { - static $_TSPEC; - - /** - * @var array - */ - public $userPrivileges = null; + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); + $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantor !== null) { + $xfer += $output->writeFieldBegin('grantor', TType::STRING, 3); + $xfer += $output->writeString($this->grantor); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantorType !== null) { + $xfer += $output->writeFieldBegin('grantorType', TType::I32, 4); + $xfer += $output->writeI32($this->grantorType); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantOption !== null) { + $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 5); + $xfer += $output->writeBool($this->grantOption); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class HiveObjectPrivilege { + static $_TSPEC; + /** - * @var array + * @var \metastore\HiveObjectRef */ - public $groupPrivileges = null; + public $hiveObject = null; /** - * @var array + * @var string */ - public $rolePrivileges = null; + public $principalName = null; + /** + * @var int + */ + public $principalType = null; + /** + * @var \metastore\PrivilegeGrantInfo + */ + public $grantInfo = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'userPrivileges', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::LST, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\PrivilegeGrantInfo', - ), - ), + 'var' => 'hiveObject', + 'type' => TType::STRUCT, + 'class' => '\metastore\HiveObjectRef', ), 2 => array( - 'var' => 'groupPrivileges', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::LST, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\PrivilegeGrantInfo', - ), - ), + 'var' => 'principalName', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'rolePrivileges', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::LST, - 'key' => array( - 'type' => TType::STRING, + 'var' => 'principalType', + 'type' => TType::I32, ), - 'val' => array( - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\PrivilegeGrantInfo', - ), - ), + 4 => array( + 'var' => 'grantInfo', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrivilegeGrantInfo', ), ); } if (is_array($vals)) { - if (isset($vals['userPrivileges'])) { - $this->userPrivileges = $vals['userPrivileges']; + if (isset($vals['hiveObject'])) { + $this->hiveObject = $vals['hiveObject']; } - if (isset($vals['groupPrivileges'])) { - $this->groupPrivileges = $vals['groupPrivileges']; + if (isset($vals['principalName'])) { + $this->principalName = $vals['principalName']; } - if (isset($vals['rolePrivileges'])) { - $this->rolePrivileges = $vals['rolePrivileges']; + if (isset($vals['principalType'])) { + $this->principalType = $vals['principalType']; + } + if (isset($vals['grantInfo'])) { + $this->grantInfo = $vals['grantInfo']; } } } public function getName() { - return 'PrincipalPrivilegeSet'; + return 'HiveObjectPrivilege'; } public function read($input) @@ -1897,94 +2063,31 @@ class PrincipalPrivilegeSet { switch ($fid) { case 1: - if ($ftype == TType::MAP) { - $this->userPrivileges = array(); - $_size21 = 0; - $_ktype22 = 0; - $_vtype23 = 0; - $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21); - for ($_i25 = 0; $_i25 < $_size21; ++$_i25) - { - $key26 = ''; - $val27 = array(); - $xfer += $input->readString($key26); - $val27 = array(); - $_size28 = 0; - $_etype31 = 0; - $xfer += $input->readListBegin($_etype31, $_size28); - for ($_i32 = 0; $_i32 < $_size28; ++$_i32) - { - $elem33 = null; - $elem33 = new \metastore\PrivilegeGrantInfo(); - $xfer += $elem33->read($input); - $val27 []= $elem33; - } - $xfer += $input->readListEnd(); - $this->userPrivileges[$key26] = $val27; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRUCT) { + $this->hiveObject = new \metastore\HiveObjectRef(); + $xfer += $this->hiveObject->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::MAP) { - $this->groupPrivileges = array(); - $_size34 = 0; - $_ktype35 = 0; - $_vtype36 = 0; - $xfer += $input->readMapBegin($_ktype35, $_vtype36, $_size34); - for ($_i38 = 0; $_i38 < $_size34; ++$_i38) - { - $key39 = ''; - $val40 = array(); - $xfer += $input->readString($key39); - $val40 = array(); - $_size41 = 0; - $_etype44 = 0; - $xfer += $input->readListBegin($_etype44, $_size41); - for ($_i45 = 0; $_i45 < $_size41; ++$_i45) - { - $elem46 = null; - $elem46 = new \metastore\PrivilegeGrantInfo(); - $xfer += $elem46->read($input); - $val40 []= $elem46; - } - $xfer += $input->readListEnd(); - $this->groupPrivileges[$key39] = $val40; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->principalName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::MAP) { - $this->rolePrivileges = array(); - $_size47 = 0; - $_ktype48 = 0; - $_vtype49 = 0; - $xfer += $input->readMapBegin($_ktype48, $_vtype49, $_size47); - for ($_i51 = 0; $_i51 < $_size47; ++$_i51) - { - $key52 = ''; - $val53 = array(); - $xfer += $input->readString($key52); - $val53 = array(); - $_size54 = 0; - $_etype57 = 0; - $xfer += $input->readListBegin($_etype57, $_size54); - for ($_i58 = 0; $_i58 < $_size54; ++$_i58) - { - $elem59 = null; - $elem59 = new \metastore\PrivilegeGrantInfo(); - $xfer += $elem59->read($input); - $val53 []= $elem59; - } - $xfer += $input->readListEnd(); - $this->rolePrivileges[$key52] = $val53; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->principalType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->grantInfo = new \metastore\PrivilegeGrantInfo(); + $xfer += $this->grantInfo->read($input); } else { $xfer += $input->skip($ftype); } @@ -2001,86 +2104,31 @@ class PrincipalPrivilegeSet { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PrincipalPrivilegeSet'); - if ($this->userPrivileges !== null) { - if (!is_array($this->userPrivileges)) { + $xfer += $output->writeStructBegin('HiveObjectPrivilege'); + if ($this->hiveObject !== null) { + if (!is_object($this->hiveObject)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('userPrivileges', TType::MAP, 1); - { - $output->writeMapBegin(TType::STRING, TType::LST, count($this->userPrivileges)); - { - foreach ($this->userPrivileges as $kiter60 => $viter61) - { - $xfer += $output->writeString($kiter60); - { - $output->writeListBegin(TType::STRUCT, count($viter61)); - { - foreach ($viter61 as $iter62) - { - $xfer += $iter62->write($output); - } - } - $output->writeListEnd(); - } - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('hiveObject', TType::STRUCT, 1); + $xfer += $this->hiveObject->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->groupPrivileges !== null) { - if (!is_array($this->groupPrivileges)) { + if ($this->principalName !== null) { + $xfer += $output->writeFieldBegin('principalName', TType::STRING, 2); + $xfer += $output->writeString($this->principalName); + $xfer += $output->writeFieldEnd(); + } + if ($this->principalType !== null) { + $xfer += $output->writeFieldBegin('principalType', TType::I32, 3); + $xfer += $output->writeI32($this->principalType); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantInfo !== null) { + if (!is_object($this->grantInfo)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('groupPrivileges', TType::MAP, 2); - { - $output->writeMapBegin(TType::STRING, TType::LST, count($this->groupPrivileges)); - { - foreach ($this->groupPrivileges as $kiter63 => $viter64) - { - $xfer += $output->writeString($kiter63); - { - $output->writeListBegin(TType::STRUCT, count($viter64)); - { - foreach ($viter64 as $iter65) - { - $xfer += $iter65->write($output); - } - } - $output->writeListEnd(); - } - } - } - $output->writeMapEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->rolePrivileges !== null) { - if (!is_array($this->rolePrivileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('rolePrivileges', TType::MAP, 3); - { - $output->writeMapBegin(TType::STRING, TType::LST, count($this->rolePrivileges)); - { - foreach ($this->rolePrivileges as $kiter66 => $viter67) - { - $xfer += $output->writeString($kiter66); - { - $output->writeListBegin(TType::STRUCT, count($viter67)); - { - foreach ($viter67 as $iter68) - { - $xfer += $iter68->write($output); - } - } - $output->writeListEnd(); - } - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('grantInfo', TType::STRUCT, 4); + $xfer += $this->grantInfo->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -2090,55 +2138,37 @@ class PrincipalPrivilegeSet { } -class GrantRevokePrivilegeRequest { +class PrivilegeBag { static $_TSPEC; /** - * @var int - */ - public $requestType = null; - /** - * @var \metastore\PrivilegeBag + * @var \metastore\HiveObjectPrivilege[] */ public $privileges = null; - /** - * @var bool - */ - public $revokeGrantOption = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'requestType', - 'type' => TType::I32, - ), - 2 => array( 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrivilegeBag', - ), - 3 => array( - 'var' => 'revokeGrantOption', - 'type' => TType::BOOL, + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\HiveObjectPrivilege', + ), ), ); } if (is_array($vals)) { - if (isset($vals['requestType'])) { - $this->requestType = $vals['requestType']; - } if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } - if (isset($vals['revokeGrantOption'])) { - $this->revokeGrantOption = $vals['revokeGrantOption']; - } } } public function getName() { - return 'GrantRevokePrivilegeRequest'; + return 'PrivilegeBag'; } public function read($input) @@ -2157,23 +2187,19 @@ class GrantRevokePrivilegeRequest { switch ($fid) { case 1: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->requestType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrivilegeBag(); - $xfer += $this->privileges->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->revokeGrantOption); + if ($ftype == TType::LST) { + $this->privileges = array(); + $_size14 = 0; + $_etype17 = 0; + $xfer += $input->readListBegin($_etype17, $_size14); + for ($_i18 = 0; $_i18 < $_size14; ++$_i18) + { + $elem19 = null; + $elem19 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem19->read($input); + $this->privileges []= $elem19; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -2190,23 +2216,22 @@ class GrantRevokePrivilegeRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('GrantRevokePrivilegeRequest'); - if ($this->requestType !== null) { - $xfer += $output->writeFieldBegin('requestType', TType::I32, 1); - $xfer += $output->writeI32($this->requestType); - $xfer += $output->writeFieldEnd(); - } + $xfer += $output->writeStructBegin('PrivilegeBag'); if ($this->privileges !== null) { - if (!is_object($this->privileges)) { + if (!is_array($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 2); - $xfer += $this->privileges->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->revokeGrantOption !== null) { - $xfer += $output->writeFieldBegin('revokeGrantOption', TType::BOOL, 3); - $xfer += $output->writeBool($this->revokeGrantOption); + $xfer += $output->writeFieldBegin('privileges', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->privileges)); + { + foreach ($this->privileges as $iter20) + { + $xfer += $iter20->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -2216,32 +2241,93 @@ class GrantRevokePrivilegeRequest { } -class GrantRevokePrivilegeResponse { +class PrincipalPrivilegeSet { static $_TSPEC; /** - * @var bool + * @var array */ - public $success = null; + public $userPrivileges = null; + /** + * @var array + */ + public $groupPrivileges = null; + /** + * @var array + */ + public $rolePrivileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'success', - 'type' => TType::BOOL, + 'var' => 'userPrivileges', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::LST, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PrivilegeGrantInfo', + ), + ), + ), + 2 => array( + 'var' => 'groupPrivileges', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::LST, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PrivilegeGrantInfo', + ), + ), + ), + 3 => array( + 'var' => 'rolePrivileges', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::LST, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PrivilegeGrantInfo', + ), + ), ), ); } if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; + if (isset($vals['userPrivileges'])) { + $this->userPrivileges = $vals['userPrivileges']; + } + if (isset($vals['groupPrivileges'])) { + $this->groupPrivileges = $vals['groupPrivileges']; + } + if (isset($vals['rolePrivileges'])) { + $this->rolePrivileges = $vals['rolePrivileges']; } } } public function getName() { - return 'GrantRevokePrivilegeResponse'; + return 'PrincipalPrivilegeSet'; } public function read($input) @@ -2260,28 +2346,190 @@ class GrantRevokePrivilegeResponse { switch ($fid) { case 1: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::MAP) { + $this->userPrivileges = array(); + $_size21 = 0; + $_ktype22 = 0; + $_vtype23 = 0; + $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21); + for ($_i25 = 0; $_i25 < $_size21; ++$_i25) + { + $key26 = ''; + $val27 = array(); + $xfer += $input->readString($key26); + $val27 = array(); + $_size28 = 0; + $_etype31 = 0; + $xfer += $input->readListBegin($_etype31, $_size28); + for ($_i32 = 0; $_i32 < $_size28; ++$_i32) + { + $elem33 = null; + $elem33 = new \metastore\PrivilegeGrantInfo(); + $xfer += $elem33->read($input); + $val27 []= $elem33; + } + $xfer += $input->readListEnd(); + $this->userPrivileges[$key26] = $val27; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } + case 2: + if ($ftype == TType::MAP) { + $this->groupPrivileges = array(); + $_size34 = 0; + $_ktype35 = 0; + $_vtype36 = 0; + $xfer += $input->readMapBegin($_ktype35, $_vtype36, $_size34); + for ($_i38 = 0; $_i38 < $_size34; ++$_i38) + { + $key39 = ''; + $val40 = array(); + $xfer += $input->readString($key39); + $val40 = array(); + $_size41 = 0; + $_etype44 = 0; + $xfer += $input->readListBegin($_etype44, $_size41); + for ($_i45 = 0; $_i45 < $_size41; ++$_i45) + { + $elem46 = null; + $elem46 = new \metastore\PrivilegeGrantInfo(); + $xfer += $elem46->read($input); + $val40 []= $elem46; + } + $xfer += $input->readListEnd(); + $this->groupPrivileges[$key39] = $val40; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::MAP) { + $this->rolePrivileges = array(); + $_size47 = 0; + $_ktype48 = 0; + $_vtype49 = 0; + $xfer += $input->readMapBegin($_ktype48, $_vtype49, $_size47); + for ($_i51 = 0; $_i51 < $_size47; ++$_i51) + { + $key52 = ''; + $val53 = array(); + $xfer += $input->readString($key52); + $val53 = array(); + $_size54 = 0; + $_etype57 = 0; + $xfer += $input->readListBegin($_etype57, $_size54); + for ($_i58 = 0; $_i58 < $_size54; ++$_i58) + { + $elem59 = null; + $elem59 = new \metastore\PrivilegeGrantInfo(); + $xfer += $elem59->read($input); + $val53 []= $elem59; + } + $xfer += $input->readListEnd(); + $this->rolePrivileges[$key52] = $val53; + } + $xfer += $input->readMapEnd(); + } 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('GrantRevokePrivilegeResponse'); - if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 1); - $xfer += $output->writeBool($this->success); + $xfer += $output->writeStructBegin('PrincipalPrivilegeSet'); + if ($this->userPrivileges !== null) { + if (!is_array($this->userPrivileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('userPrivileges', TType::MAP, 1); + { + $output->writeMapBegin(TType::STRING, TType::LST, count($this->userPrivileges)); + { + foreach ($this->userPrivileges as $kiter60 => $viter61) + { + $xfer += $output->writeString($kiter60); + { + $output->writeListBegin(TType::STRUCT, count($viter61)); + { + foreach ($viter61 as $iter62) + { + $xfer += $iter62->write($output); + } + } + $output->writeListEnd(); + } + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->groupPrivileges !== null) { + if (!is_array($this->groupPrivileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('groupPrivileges', TType::MAP, 2); + { + $output->writeMapBegin(TType::STRING, TType::LST, count($this->groupPrivileges)); + { + foreach ($this->groupPrivileges as $kiter63 => $viter64) + { + $xfer += $output->writeString($kiter63); + { + $output->writeListBegin(TType::STRUCT, count($viter64)); + { + foreach ($viter64 as $iter65) + { + $xfer += $iter65->write($output); + } + } + $output->writeListEnd(); + } + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->rolePrivileges !== null) { + if (!is_array($this->rolePrivileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('rolePrivileges', TType::MAP, 3); + { + $output->writeMapBegin(TType::STRING, TType::LST, count($this->rolePrivileges)); + { + foreach ($this->rolePrivileges as $kiter66 => $viter67) + { + $xfer += $output->writeString($kiter66); + { + $output->writeListBegin(TType::STRUCT, count($viter67)); + { + foreach ($viter67 as $iter68) + { + $xfer += $iter68->write($output); + } + } + $output->writeListEnd(); + } + } + } + $output->writeMapEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -2291,54 +2539,55 @@ class GrantRevokePrivilegeResponse { } -class Role { +class GrantRevokePrivilegeRequest { static $_TSPEC; /** - * @var string + * @var int */ - public $roleName = null; + public $requestType = null; /** - * @var int + * @var \metastore\PrivilegeBag */ - public $createTime = null; + public $privileges = null; /** - * @var string + * @var bool */ - public $ownerName = null; + public $revokeGrantOption = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'roleName', - 'type' => TType::STRING, + 'var' => 'requestType', + 'type' => TType::I32, ), 2 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrivilegeBag', ), 3 => array( - 'var' => 'ownerName', - 'type' => TType::STRING, + 'var' => 'revokeGrantOption', + 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['roleName'])) { - $this->roleName = $vals['roleName']; + if (isset($vals['requestType'])) { + $this->requestType = $vals['requestType']; } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; } - if (isset($vals['ownerName'])) { - $this->ownerName = $vals['ownerName']; + if (isset($vals['revokeGrantOption'])) { + $this->revokeGrantOption = $vals['revokeGrantOption']; } } } public function getName() { - return 'Role'; + return 'GrantRevokePrivilegeRequest'; } public function read($input) @@ -2357,22 +2606,23 @@ class Role { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->roleName); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->requestType); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrivilegeBag(); + $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->ownerName); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->revokeGrantOption); } else { $xfer += $input->skip($ftype); } @@ -2389,20 +2639,23 @@ class Role { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Role'); - if ($this->roleName !== null) { - $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1); - $xfer += $output->writeString($this->roleName); + $xfer += $output->writeStructBegin('GrantRevokePrivilegeRequest'); + if ($this->requestType !== null) { + $xfer += $output->writeFieldBegin('requestType', TType::I32, 1); + $xfer += $output->writeI32($this->requestType); $xfer += $output->writeFieldEnd(); } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); - $xfer += $output->writeI32($this->createTime); + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 2); + $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->ownerName !== null) { - $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 3); - $xfer += $output->writeString($this->ownerName); + if ($this->revokeGrantOption !== null) { + $xfer += $output->writeFieldBegin('revokeGrantOption', TType::BOOL, 3); + $xfer += $output->writeBool($this->revokeGrantOption); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -2412,34 +2665,230 @@ class Role { } -class RolePrincipalGrant { +class GrantRevokePrivilegeResponse { static $_TSPEC; /** - * @var string - */ - public $roleName = null; - /** - * @var string - */ - public $principalName = null; - /** - * @var int - */ - public $principalType = null; - /** * @var bool */ - public $grantOption = null; - /** - * @var int - */ - public $grantTime = null; - /** - * @var string - */ - public $grantorName = null; - /** + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'success', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'GrantRevokePrivilegeResponse'; + } + + 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::BOOL) { + $xfer += $input->readBool($this->success); + } 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('GrantRevokePrivilegeResponse'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::BOOL, 1); + $xfer += $output->writeBool($this->success); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Role { + static $_TSPEC; + + /** + * @var string + */ + public $roleName = null; + /** + * @var int + */ + public $createTime = null; + /** + * @var string + */ + public $ownerName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'roleName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'createTime', + 'type' => TType::I32, + ), + 3 => array( + 'var' => 'ownerName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['roleName'])) { + $this->roleName = $vals['roleName']; + } + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['ownerName'])) { + $this->ownerName = $vals['ownerName']; + } + } + } + + public function getName() { + return 'Role'; + } + + 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->roleName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->ownerName); + } 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('Role'); + if ($this->roleName !== null) { + $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1); + $xfer += $output->writeString($this->roleName); + $xfer += $output->writeFieldEnd(); + } + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); + $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->ownerName !== null) { + $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 3); + $xfer += $output->writeString($this->ownerName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class RolePrincipalGrant { + static $_TSPEC; + + /** + * @var string + */ + public $roleName = null; + /** + * @var string + */ + public $principalName = null; + /** + * @var int + */ + public $principalType = null; + /** + * @var bool + */ + public $grantOption = null; + /** + * @var int + */ + public $grantTime = null; + /** + * @var string + */ + public $grantorName = null; + /** * @var int */ public $grantorPrincipalType = null; @@ -2979,24 +3428,1524 @@ class GetPrincipalsInRoleResponse { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('GetPrincipalsInRoleResponse'); - if ($this->principalGrants !== null) { - if (!is_array($this->principalGrants)) { + $xfer += $output->writeStructBegin('GetPrincipalsInRoleResponse'); + if ($this->principalGrants !== null) { + if (!is_array($this->principalGrants)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('principalGrants', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->principalGrants)); + { + foreach ($this->principalGrants as $iter82) + { + $xfer += $iter82->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GrantRevokeRoleRequest { + static $_TSPEC; + + /** + * @var int + */ + public $requestType = null; + /** + * @var string + */ + public $roleName = null; + /** + * @var string + */ + public $principalName = null; + /** + * @var int + */ + public $principalType = null; + /** + * @var string + */ + public $grantor = null; + /** + * @var int + */ + public $grantorType = null; + /** + * @var bool + */ + public $grantOption = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'requestType', + 'type' => TType::I32, + ), + 2 => array( + 'var' => 'roleName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'principalName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'principalType', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'grantor', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'grantorType', + 'type' => TType::I32, + ), + 7 => array( + 'var' => 'grantOption', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['requestType'])) { + $this->requestType = $vals['requestType']; + } + if (isset($vals['roleName'])) { + $this->roleName = $vals['roleName']; + } + if (isset($vals['principalName'])) { + $this->principalName = $vals['principalName']; + } + if (isset($vals['principalType'])) { + $this->principalType = $vals['principalType']; + } + if (isset($vals['grantor'])) { + $this->grantor = $vals['grantor']; + } + if (isset($vals['grantorType'])) { + $this->grantorType = $vals['grantorType']; + } + if (isset($vals['grantOption'])) { + $this->grantOption = $vals['grantOption']; + } + } + } + + public function getName() { + return 'GrantRevokeRoleRequest'; + } + + 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::I32) { + $xfer += $input->readI32($this->requestType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->roleName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->principalName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->principalType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->grantor); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->grantorType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->grantOption); + } 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('GrantRevokeRoleRequest'); + if ($this->requestType !== null) { + $xfer += $output->writeFieldBegin('requestType', TType::I32, 1); + $xfer += $output->writeI32($this->requestType); + $xfer += $output->writeFieldEnd(); + } + if ($this->roleName !== null) { + $xfer += $output->writeFieldBegin('roleName', TType::STRING, 2); + $xfer += $output->writeString($this->roleName); + $xfer += $output->writeFieldEnd(); + } + if ($this->principalName !== null) { + $xfer += $output->writeFieldBegin('principalName', TType::STRING, 3); + $xfer += $output->writeString($this->principalName); + $xfer += $output->writeFieldEnd(); + } + if ($this->principalType !== null) { + $xfer += $output->writeFieldBegin('principalType', TType::I32, 4); + $xfer += $output->writeI32($this->principalType); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantor !== null) { + $xfer += $output->writeFieldBegin('grantor', TType::STRING, 5); + $xfer += $output->writeString($this->grantor); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantorType !== null) { + $xfer += $output->writeFieldBegin('grantorType', TType::I32, 6); + $xfer += $output->writeI32($this->grantorType); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantOption !== null) { + $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 7); + $xfer += $output->writeBool($this->grantOption); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GrantRevokeRoleResponse { + static $_TSPEC; + + /** + * @var bool + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'success', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'GrantRevokeRoleResponse'; + } + + 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::BOOL) { + $xfer += $input->readBool($this->success); + } 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('GrantRevokeRoleResponse'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::BOOL, 1); + $xfer += $output->writeBool($this->success); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Database { + static $_TSPEC; + + /** + * @var string + */ + public $name = null; + /** + * @var string + */ + public $description = null; + /** + * @var string + */ + public $locationUri = null; + /** + * @var array + */ + public $parameters = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; + /** + * @var string + */ + public $ownerName = null; + /** + * @var int + */ + public $ownerType = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'description', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'locationUri', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 5 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), + 6 => array( + 'var' => 'ownerName', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'ownerType', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['name'])) { + $this->name = $vals['name']; + } + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + if (isset($vals['locationUri'])) { + $this->locationUri = $vals['locationUri']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; + } + if (isset($vals['ownerName'])) { + $this->ownerName = $vals['ownerName']; + } + if (isset($vals['ownerType'])) { + $this->ownerType = $vals['ownerType']; + } + } + } + + public function getName() { + return 'Database'; + } + + 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->name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->locationUri); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size83 = 0; + $_ktype84 = 0; + $_vtype85 = 0; + $xfer += $input->readMapBegin($_ktype84, $_vtype85, $_size83); + for ($_i87 = 0; $_i87 < $_size83; ++$_i87) + { + $key88 = ''; + $val89 = ''; + $xfer += $input->readString($key88); + $xfer += $input->readString($val89); + $this->parameters[$key88] = $val89; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->ownerName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->ownerType); + } 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('Database'); + if ($this->name !== null) { + $xfer += $output->writeFieldBegin('name', TType::STRING, 1); + $xfer += $output->writeString($this->name); + $xfer += $output->writeFieldEnd(); + } + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 2); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + if ($this->locationUri !== null) { + $xfer += $output->writeFieldBegin('locationUri', TType::STRING, 3); + $xfer += $output->writeString($this->locationUri); + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 4); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter90 => $viter91) + { + $xfer += $output->writeString($kiter90); + $xfer += $output->writeString($viter91); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 5); + $xfer += $this->privileges->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ownerName !== null) { + $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 6); + $xfer += $output->writeString($this->ownerName); + $xfer += $output->writeFieldEnd(); + } + if ($this->ownerType !== null) { + $xfer += $output->writeFieldBegin('ownerType', TType::I32, 7); + $xfer += $output->writeI32($this->ownerType); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class SerDeInfo { + static $_TSPEC; + + /** + * @var string + */ + public $name = null; + /** + * @var string + */ + public $serializationLib = null; + /** + * @var array + */ + public $parameters = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'serializationLib', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['name'])) { + $this->name = $vals['name']; + } + if (isset($vals['serializationLib'])) { + $this->serializationLib = $vals['serializationLib']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + } + } + + public function getName() { + return 'SerDeInfo'; + } + + 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->name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->serializationLib); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size92 = 0; + $_ktype93 = 0; + $_vtype94 = 0; + $xfer += $input->readMapBegin($_ktype93, $_vtype94, $_size92); + for ($_i96 = 0; $_i96 < $_size92; ++$_i96) + { + $key97 = ''; + $val98 = ''; + $xfer += $input->readString($key97); + $xfer += $input->readString($val98); + $this->parameters[$key97] = $val98; + } + $xfer += $input->readMapEnd(); + } 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('SerDeInfo'); + if ($this->name !== null) { + $xfer += $output->writeFieldBegin('name', TType::STRING, 1); + $xfer += $output->writeString($this->name); + $xfer += $output->writeFieldEnd(); + } + if ($this->serializationLib !== null) { + $xfer += $output->writeFieldBegin('serializationLib', TType::STRING, 2); + $xfer += $output->writeString($this->serializationLib); + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 3); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter99 => $viter100) + { + $xfer += $output->writeString($kiter99); + $xfer += $output->writeString($viter100); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Order { + static $_TSPEC; + + /** + * @var string + */ + public $col = null; + /** + * @var int + */ + public $order = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'col', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'order', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['col'])) { + $this->col = $vals['col']; + } + if (isset($vals['order'])) { + $this->order = $vals['order']; + } + } + } + + public function getName() { + return 'Order'; + } + + 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->col); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->order); + } 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('Order'); + if ($this->col !== null) { + $xfer += $output->writeFieldBegin('col', TType::STRING, 1); + $xfer += $output->writeString($this->col); + $xfer += $output->writeFieldEnd(); + } + if ($this->order !== null) { + $xfer += $output->writeFieldBegin('order', TType::I32, 2); + $xfer += $output->writeI32($this->order); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class SkewedInfo { + static $_TSPEC; + + /** + * @var string[] + */ + public $skewedColNames = null; + /** + * @var (string[])[] + */ + public $skewedColValues = null; + /** + * @var array + */ + public $skewedColValueLocationMaps = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'skewedColNames', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 2 => array( + 'var' => 'skewedColValues', + 'type' => TType::LST, + 'etype' => TType::LST, + 'elem' => array( + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ), + 3 => array( + 'var' => 'skewedColValueLocationMaps', + 'type' => TType::MAP, + 'ktype' => TType::LST, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['skewedColNames'])) { + $this->skewedColNames = $vals['skewedColNames']; + } + if (isset($vals['skewedColValues'])) { + $this->skewedColValues = $vals['skewedColValues']; + } + if (isset($vals['skewedColValueLocationMaps'])) { + $this->skewedColValueLocationMaps = $vals['skewedColValueLocationMaps']; + } + } + } + + public function getName() { + return 'SkewedInfo'; + } + + 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->skewedColNames = array(); + $_size101 = 0; + $_etype104 = 0; + $xfer += $input->readListBegin($_etype104, $_size101); + for ($_i105 = 0; $_i105 < $_size101; ++$_i105) + { + $elem106 = null; + $xfer += $input->readString($elem106); + $this->skewedColNames []= $elem106; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::LST) { + $this->skewedColValues = array(); + $_size107 = 0; + $_etype110 = 0; + $xfer += $input->readListBegin($_etype110, $_size107); + for ($_i111 = 0; $_i111 < $_size107; ++$_i111) + { + $elem112 = null; + $elem112 = array(); + $_size113 = 0; + $_etype116 = 0; + $xfer += $input->readListBegin($_etype116, $_size113); + for ($_i117 = 0; $_i117 < $_size113; ++$_i117) + { + $elem118 = null; + $xfer += $input->readString($elem118); + $elem112 []= $elem118; + } + $xfer += $input->readListEnd(); + $this->skewedColValues []= $elem112; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::MAP) { + $this->skewedColValueLocationMaps = array(); + $_size119 = 0; + $_ktype120 = 0; + $_vtype121 = 0; + $xfer += $input->readMapBegin($_ktype120, $_vtype121, $_size119); + for ($_i123 = 0; $_i123 < $_size119; ++$_i123) + { + $key124 = array(); + $val125 = ''; + $key124 = array(); + $_size126 = 0; + $_etype129 = 0; + $xfer += $input->readListBegin($_etype129, $_size126); + for ($_i130 = 0; $_i130 < $_size126; ++$_i130) + { + $elem131 = null; + $xfer += $input->readString($elem131); + $key124 []= $elem131; + } + $xfer += $input->readListEnd(); + $xfer += $input->readString($val125); + $this->skewedColValueLocationMaps[$key124] = $val125; + } + $xfer += $input->readMapEnd(); + } 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('SkewedInfo'); + if ($this->skewedColNames !== null) { + if (!is_array($this->skewedColNames)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('skewedColNames', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->skewedColNames)); + { + foreach ($this->skewedColNames as $iter132) + { + $xfer += $output->writeString($iter132); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->skewedColValues !== null) { + if (!is_array($this->skewedColValues)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('skewedColValues', TType::LST, 2); + { + $output->writeListBegin(TType::LST, count($this->skewedColValues)); + { + foreach ($this->skewedColValues as $iter133) + { + { + $output->writeListBegin(TType::STRING, count($iter133)); + { + foreach ($iter133 as $iter134) + { + $xfer += $output->writeString($iter134); + } + } + $output->writeListEnd(); + } + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->skewedColValueLocationMaps !== null) { + if (!is_array($this->skewedColValueLocationMaps)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('skewedColValueLocationMaps', TType::MAP, 3); + { + $output->writeMapBegin(TType::LST, TType::STRING, count($this->skewedColValueLocationMaps)); + { + foreach ($this->skewedColValueLocationMaps as $kiter135 => $viter136) + { + { + $output->writeListBegin(TType::STRING, count($kiter135)); + { + foreach ($kiter135 as $iter137) + { + $xfer += $output->writeString($iter137); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeString($viter136); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class StorageDescriptor { + static $_TSPEC; + + /** + * @var \metastore\FieldSchema[] + */ + public $cols = null; + /** + * @var string + */ + public $location = null; + /** + * @var string + */ + public $inputFormat = null; + /** + * @var string + */ + public $outputFormat = null; + /** + * @var bool + */ + public $compressed = null; + /** + * @var int + */ + public $numBuckets = null; + /** + * @var \metastore\SerDeInfo + */ + public $serdeInfo = null; + /** + * @var string[] + */ + public $bucketCols = null; + /** + * @var \metastore\Order[] + */ + public $sortCols = null; + /** + * @var array + */ + public $parameters = null; + /** + * @var \metastore\SkewedInfo + */ + public $skewedInfo = null; + /** + * @var bool + */ + public $storedAsSubDirectories = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'cols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + 2 => array( + 'var' => 'location', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'inputFormat', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'outputFormat', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'compressed', + 'type' => TType::BOOL, + ), + 6 => array( + 'var' => 'numBuckets', + 'type' => TType::I32, + ), + 7 => array( + 'var' => 'serdeInfo', + 'type' => TType::STRUCT, + 'class' => '\metastore\SerDeInfo', + ), + 8 => array( + 'var' => 'bucketCols', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 9 => array( + 'var' => 'sortCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Order', + ), + ), + 10 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 11 => array( + 'var' => 'skewedInfo', + 'type' => TType::STRUCT, + 'class' => '\metastore\SkewedInfo', + ), + 12 => array( + 'var' => 'storedAsSubDirectories', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['cols'])) { + $this->cols = $vals['cols']; + } + if (isset($vals['location'])) { + $this->location = $vals['location']; + } + if (isset($vals['inputFormat'])) { + $this->inputFormat = $vals['inputFormat']; + } + if (isset($vals['outputFormat'])) { + $this->outputFormat = $vals['outputFormat']; + } + if (isset($vals['compressed'])) { + $this->compressed = $vals['compressed']; + } + if (isset($vals['numBuckets'])) { + $this->numBuckets = $vals['numBuckets']; + } + if (isset($vals['serdeInfo'])) { + $this->serdeInfo = $vals['serdeInfo']; + } + if (isset($vals['bucketCols'])) { + $this->bucketCols = $vals['bucketCols']; + } + if (isset($vals['sortCols'])) { + $this->sortCols = $vals['sortCols']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + if (isset($vals['skewedInfo'])) { + $this->skewedInfo = $vals['skewedInfo']; + } + if (isset($vals['storedAsSubDirectories'])) { + $this->storedAsSubDirectories = $vals['storedAsSubDirectories']; + } + } + } + + public function getName() { + return 'StorageDescriptor'; + } + + 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->cols = array(); + $_size138 = 0; + $_etype141 = 0; + $xfer += $input->readListBegin($_etype141, $_size138); + for ($_i142 = 0; $_i142 < $_size138; ++$_i142) + { + $elem143 = null; + $elem143 = new \metastore\FieldSchema(); + $xfer += $elem143->read($input); + $this->cols []= $elem143; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->location); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->inputFormat); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->outputFormat); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->compressed); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->numBuckets); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRUCT) { + $this->serdeInfo = new \metastore\SerDeInfo(); + $xfer += $this->serdeInfo->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::LST) { + $this->bucketCols = array(); + $_size144 = 0; + $_etype147 = 0; + $xfer += $input->readListBegin($_etype147, $_size144); + for ($_i148 = 0; $_i148 < $_size144; ++$_i148) + { + $elem149 = null; + $xfer += $input->readString($elem149); + $this->bucketCols []= $elem149; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::LST) { + $this->sortCols = array(); + $_size150 = 0; + $_etype153 = 0; + $xfer += $input->readListBegin($_etype153, $_size150); + for ($_i154 = 0; $_i154 < $_size150; ++$_i154) + { + $elem155 = null; + $elem155 = new \metastore\Order(); + $xfer += $elem155->read($input); + $this->sortCols []= $elem155; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size156 = 0; + $_ktype157 = 0; + $_vtype158 = 0; + $xfer += $input->readMapBegin($_ktype157, $_vtype158, $_size156); + for ($_i160 = 0; $_i160 < $_size156; ++$_i160) + { + $key161 = ''; + $val162 = ''; + $xfer += $input->readString($key161); + $xfer += $input->readString($val162); + $this->parameters[$key161] = $val162; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::STRUCT) { + $this->skewedInfo = new \metastore\SkewedInfo(); + $xfer += $this->skewedInfo->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 12: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->storedAsSubDirectories); + } 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('StorageDescriptor'); + if ($this->cols !== null) { + if (!is_array($this->cols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('principalGrants', TType::LST, 1); + $xfer += $output->writeFieldBegin('cols', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->principalGrants)); + $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->principalGrants as $iter82) + foreach ($this->cols as $iter163) { - $xfer += $iter82->write($output); + $xfer += $iter163->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->location !== null) { + $xfer += $output->writeFieldBegin('location', TType::STRING, 2); + $xfer += $output->writeString($this->location); + $xfer += $output->writeFieldEnd(); + } + if ($this->inputFormat !== null) { + $xfer += $output->writeFieldBegin('inputFormat', TType::STRING, 3); + $xfer += $output->writeString($this->inputFormat); + $xfer += $output->writeFieldEnd(); + } + if ($this->outputFormat !== null) { + $xfer += $output->writeFieldBegin('outputFormat', TType::STRING, 4); + $xfer += $output->writeString($this->outputFormat); + $xfer += $output->writeFieldEnd(); + } + if ($this->compressed !== null) { + $xfer += $output->writeFieldBegin('compressed', TType::BOOL, 5); + $xfer += $output->writeBool($this->compressed); + $xfer += $output->writeFieldEnd(); + } + if ($this->numBuckets !== null) { + $xfer += $output->writeFieldBegin('numBuckets', TType::I32, 6); + $xfer += $output->writeI32($this->numBuckets); + $xfer += $output->writeFieldEnd(); + } + if ($this->serdeInfo !== null) { + if (!is_object($this->serdeInfo)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('serdeInfo', TType::STRUCT, 7); + $xfer += $this->serdeInfo->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->bucketCols !== null) { + if (!is_array($this->bucketCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('bucketCols', TType::LST, 8); + { + $output->writeListBegin(TType::STRING, count($this->bucketCols)); + { + foreach ($this->bucketCols as $iter164) + { + $xfer += $output->writeString($iter164); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->sortCols !== null) { + if (!is_array($this->sortCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sortCols', TType::LST, 9); + { + $output->writeListBegin(TType::STRUCT, count($this->sortCols)); + { + foreach ($this->sortCols as $iter165) + { + $xfer += $iter165->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter166 => $viter167) + { + $xfer += $output->writeString($kiter166); + $xfer += $output->writeString($viter167); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->skewedInfo !== null) { + if (!is_object($this->skewedInfo)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('skewedInfo', TType::STRUCT, 11); + $xfer += $this->skewedInfo->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->storedAsSubDirectories !== null) { + $xfer += $output->writeFieldBegin('storedAsSubDirectories', TType::BOOL, 12); + $xfer += $output->writeBool($this->storedAsSubDirectories); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -3004,98 +4953,201 @@ class GetPrincipalsInRoleResponse { } -class GrantRevokeRoleRequest { +class Table { static $_TSPEC; /** - * @var int + * @var string */ - public $requestType = null; + public $tableName = null; /** * @var string */ - public $roleName = null; + public $dbName = null; /** * @var string */ - public $principalName = null; + public $owner = null; /** * @var int */ - public $principalType = null; + public $createTime = null; /** - * @var string + * @var int */ - public $grantor = null; + public $lastAccessTime = null; /** * @var int */ - public $grantorType = null; + public $retention = null; + /** + * @var \metastore\StorageDescriptor + */ + public $sd = null; + /** + * @var \metastore\FieldSchema[] + */ + public $partitionKeys = null; + /** + * @var array + */ + public $parameters = null; + /** + * @var string + */ + public $viewOriginalText = null; + /** + * @var string + */ + public $viewExpandedText = null; + /** + * @var string + */ + public $tableType = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; /** * @var bool */ - public $grantOption = null; + public $temporary = false; + /** + * @var bool + */ + public $rewriteEnabled = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'requestType', - 'type' => TType::I32, + 'var' => 'tableName', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'roleName', + 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( - 'var' => 'principalName', + 'var' => 'owner', 'type' => TType::STRING, ), 4 => array( - 'var' => 'principalType', + 'var' => 'createTime', 'type' => TType::I32, ), 5 => array( - 'var' => 'grantor', - 'type' => TType::STRING, + 'var' => 'lastAccessTime', + 'type' => TType::I32, ), 6 => array( - 'var' => 'grantorType', + 'var' => 'retention', 'type' => TType::I32, ), 7 => array( - 'var' => 'grantOption', + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', + ), + 8 => array( + 'var' => 'partitionKeys', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + 9 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 10 => array( + 'var' => 'viewOriginalText', + 'type' => TType::STRING, + ), + 11 => array( + 'var' => 'viewExpandedText', + 'type' => TType::STRING, + ), + 12 => array( + 'var' => 'tableType', + 'type' => TType::STRING, + ), + 13 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), + 14 => array( + 'var' => 'temporary', + 'type' => TType::BOOL, + ), + 15 => array( + 'var' => 'rewriteEnabled', 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['requestType'])) { - $this->requestType = $vals['requestType']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['owner'])) { + $this->owner = $vals['owner']; + } + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; + } + if (isset($vals['retention'])) { + $this->retention = $vals['retention']; } - if (isset($vals['roleName'])) { - $this->roleName = $vals['roleName']; + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; } - if (isset($vals['principalName'])) { - $this->principalName = $vals['principalName']; + if (isset($vals['partitionKeys'])) { + $this->partitionKeys = $vals['partitionKeys']; } - if (isset($vals['principalType'])) { - $this->principalType = $vals['principalType']; + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; } - if (isset($vals['grantor'])) { - $this->grantor = $vals['grantor']; + if (isset($vals['viewOriginalText'])) { + $this->viewOriginalText = $vals['viewOriginalText']; } - if (isset($vals['grantorType'])) { - $this->grantorType = $vals['grantorType']; + if (isset($vals['viewExpandedText'])) { + $this->viewExpandedText = $vals['viewExpandedText']; } - if (isset($vals['grantOption'])) { - $this->grantOption = $vals['grantOption']; + if (isset($vals['tableType'])) { + $this->tableType = $vals['tableType']; + } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; + } + if (isset($vals['temporary'])) { + $this->temporary = $vals['temporary']; + } + if (isset($vals['rewriteEnabled'])) { + $this->rewriteEnabled = $vals['rewriteEnabled']; } } } public function getName() { - return 'GrantRevokeRoleRequest'; + return 'Table'; } public function read($input) @@ -3114,50 +5166,132 @@ class GrantRevokeRoleRequest { switch ($fid) { case 1: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->requestType); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->roleName); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->principalName); + $xfer += $input->readString($this->owner); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I32) { - $xfer += $input->readI32($this->principalType); + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->grantor); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { - $xfer += $input->readI32($this->grantorType); + $xfer += $input->readI32($this->retention); } else { $xfer += $input->skip($ftype); } break; case 7: + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::LST) { + $this->partitionKeys = array(); + $_size168 = 0; + $_etype171 = 0; + $xfer += $input->readListBegin($_etype171, $_size168); + for ($_i172 = 0; $_i172 < $_size168; ++$_i172) + { + $elem173 = null; + $elem173 = new \metastore\FieldSchema(); + $xfer += $elem173->read($input); + $this->partitionKeys []= $elem173; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size174 = 0; + $_ktype175 = 0; + $_vtype176 = 0; + $xfer += $input->readMapBegin($_ktype175, $_vtype176, $_size174); + for ($_i178 = 0; $_i178 < $_size174; ++$_i178) + { + $key179 = ''; + $val180 = ''; + $xfer += $input->readString($key179); + $xfer += $input->readString($val180); + $this->parameters[$key179] = $val180; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->viewOriginalText); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->viewExpandedText); + } else { + $xfer += $input->skip($ftype); + } + break; + case 12: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 13: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 14: if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->grantOption); + $xfer += $input->readBool($this->temporary); + } else { + $xfer += $input->skip($ftype); + } + break; + case 15: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->rewriteEnabled); } else { $xfer += $input->skip($ftype); } @@ -3174,115 +5308,111 @@ class GrantRevokeRoleRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('GrantRevokeRoleRequest'); - if ($this->requestType !== null) { - $xfer += $output->writeFieldBegin('requestType', TType::I32, 1); - $xfer += $output->writeI32($this->requestType); + $xfer += $output->writeStructBegin('Table'); + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 1); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->roleName !== null) { - $xfer += $output->writeFieldBegin('roleName', TType::STRING, 2); - $xfer += $output->writeString($this->roleName); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->principalName !== null) { - $xfer += $output->writeFieldBegin('principalName', TType::STRING, 3); - $xfer += $output->writeString($this->principalName); + if ($this->owner !== null) { + $xfer += $output->writeFieldBegin('owner', TType::STRING, 3); + $xfer += $output->writeString($this->owner); $xfer += $output->writeFieldEnd(); } - if ($this->principalType !== null) { - $xfer += $output->writeFieldBegin('principalType', TType::I32, 4); - $xfer += $output->writeI32($this->principalType); + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); + $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } - if ($this->grantor !== null) { - $xfer += $output->writeFieldBegin('grantor', TType::STRING, 5); - $xfer += $output->writeString($this->grantor); + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); + $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } - if ($this->grantorType !== null) { - $xfer += $output->writeFieldBegin('grantorType', TType::I32, 6); - $xfer += $output->writeI32($this->grantorType); + if ($this->retention !== null) { + $xfer += $output->writeFieldBegin('retention', TType::I32, 6); + $xfer += $output->writeI32($this->retention); $xfer += $output->writeFieldEnd(); } - if ($this->grantOption !== null) { - $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 7); - $xfer += $output->writeBool($this->grantOption); + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 7); + $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GrantRevokeRoleResponse { - static $_TSPEC; - - /** - * @var bool - */ - public $success = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'success', - 'type' => TType::BOOL, - ), - ); + if ($this->partitionKeys !== null) { + if (!is_array($this->partitionKeys)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 8); + { + $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); + { + foreach ($this->partitionKeys as $iter181) + { + $xfer += $iter181->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 9); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter182 => $viter183) + { + $xfer += $output->writeString($kiter182); + $xfer += $output->writeString($viter183); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->viewOriginalText !== null) { + $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 10); + $xfer += $output->writeString($this->viewOriginalText); + $xfer += $output->writeFieldEnd(); + } + if ($this->viewExpandedText !== null) { + $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 11); + $xfer += $output->writeString($this->viewExpandedText); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableType !== null) { + $xfer += $output->writeFieldBegin('tableType', TType::STRING, 12); + $xfer += $output->writeString($this->tableType); + $xfer += $output->writeFieldEnd(); } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 13); + $xfer += $this->privileges->write($output); + $xfer += $output->writeFieldEnd(); } - } - - public function getName() { - return 'GrantRevokeRoleResponse'; - } - - 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::BOOL) { - $xfer += $input->readBool($this->success); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); + if ($this->temporary !== null) { + $xfer += $output->writeFieldBegin('temporary', TType::BOOL, 14); + $xfer += $output->writeBool($this->temporary); + $xfer += $output->writeFieldEnd(); } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('GrantRevokeRoleResponse'); - if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 1); - $xfer += $output->writeBool($this->success); + if ($this->rewriteEnabled !== null) { + $xfer += $output->writeFieldBegin('rewriteEnabled', TType::BOOL, 15); + $xfer += $output->writeBool($this->rewriteEnabled); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -3292,54 +5422,75 @@ class GrantRevokeRoleResponse { } -class Database { +class Partition { static $_TSPEC; /** - * @var string + * @var string[] */ - public $name = null; + public $values = null; /** * @var string */ - public $description = null; + public $dbName = null; /** * @var string */ - public $locationUri = null; + public $tableName = null; /** - * @var array + * @var int */ - public $parameters = null; + public $createTime = null; /** - * @var \metastore\PrincipalPrivilegeSet + * @var int */ - public $privileges = null; + public $lastAccessTime = null; /** - * @var string + * @var \metastore\StorageDescriptor */ - public $ownerName = null; + public $sd = null; /** - * @var int + * @var array */ - public $ownerType = null; + public $parameters = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'name', - 'type' => TType::STRING, + 'var' => 'values', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'description', + 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( - 'var' => 'locationUri', + 'var' => 'tableName', 'type' => TType::STRING, ), 4 => array( + 'var' => 'createTime', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'lastAccessTime', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', + ), + 7 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, @@ -3351,30 +5502,31 @@ class Database { 'type' => TType::STRING, ), ), - 5 => array( + 8 => array( 'var' => 'privileges', 'type' => TType::STRUCT, 'class' => '\metastore\PrincipalPrivilegeSet', ), - 6 => array( - 'var' => 'ownerName', - 'type' => TType::STRING, - ), - 7 => array( - 'var' => 'ownerType', - 'type' => TType::I32, - ), ); } if (is_array($vals)) { - if (isset($vals['name'])) { - $this->name = $vals['name']; + if (isset($vals['values'])) { + $this->values = $vals['values']; } - if (isset($vals['description'])) { - $this->description = $vals['description']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['locationUri'])) { - $this->locationUri = $vals['locationUri']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; + } + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; @@ -3382,17 +5534,11 @@ class Database { if (isset($vals['privileges'])) { $this->privileges = $vals['privileges']; } - if (isset($vals['ownerName'])) { - $this->ownerName = $vals['ownerName']; - } - if (isset($vals['ownerType'])) { - $this->ownerType = $vals['ownerType']; - } } } public function getName() { - return 'Database'; + return 'Partition'; } public function read($input) @@ -3411,64 +5557,82 @@ class Database { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->name); + if ($ftype == TType::LST) { + $this->values = array(); + $_size184 = 0; + $_etype187 = 0; + $xfer += $input->readListBegin($_etype187, $_size184); + for ($_i188 = 0; $_i188 < $_size184; ++$_i188) + { + $elem189 = null; + $xfer += $input->readString($elem189); + $this->values []= $elem189; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->locationUri); + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size83 = 0; - $_ktype84 = 0; - $_vtype85 = 0; - $xfer += $input->readMapBegin($_ktype84, $_vtype85, $_size83); - for ($_i87 = 0; $_i87 < $_size83; ++$_i87) - { - $key88 = ''; - $val89 = ''; - $xfer += $input->readString($key88); - $xfer += $input->readString($val89); - $this->parameters[$key88] = $val89; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 6: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->ownerName); + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } break; case 7: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->ownerType); + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size190 = 0; + $_ktype191 = 0; + $_vtype192 = 0; + $xfer += $input->readMapBegin($_ktype191, $_vtype192, $_size190); + for ($_i194 = 0; $_i194 < $_size190; ++$_i194) + { + $key195 = ''; + $val196 = ''; + $xfer += $input->readString($key195); + $xfer += $input->readString($val196); + $this->parameters[$key195] = $val196; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } @@ -3479,40 +5643,70 @@ class Database { } $xfer += $input->readFieldEnd(); } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Database'); - if ($this->name !== null) { - $xfer += $output->writeFieldBegin('name', TType::STRING, 1); - $xfer += $output->writeString($this->name); + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Partition'); + if ($this->values !== null) { + if (!is_array($this->values)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('values', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->values)); + { + foreach ($this->values as $iter197) + { + $xfer += $output->writeString($iter197); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); + $xfer += $output->writeString($this->tableName); + $xfer += $output->writeFieldEnd(); + } + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); + $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 2); - $xfer += $output->writeString($this->description); + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); + $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } - if ($this->locationUri !== null) { - $xfer += $output->writeFieldBegin('locationUri', TType::STRING, 3); - $xfer += $output->writeString($this->locationUri); + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6); + $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 4); + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter90 => $viter91) + foreach ($this->parameters as $kiter198 => $viter199) { - $xfer += $output->writeString($kiter90); - $xfer += $output->writeString($viter91); + $xfer += $output->writeString($kiter198); + $xfer += $output->writeString($viter199); } } $output->writeMapEnd(); @@ -3523,20 +5717,10 @@ class Database { if (!is_object($this->privileges)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 5); + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8); $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->ownerName !== null) { - $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 6); - $xfer += $output->writeString($this->ownerName); - $xfer += $output->writeFieldEnd(); - } - if ($this->ownerType !== null) { - $xfer += $output->writeFieldBegin('ownerType', TType::I32, 7); - $xfer += $output->writeI32($this->ownerType); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -3544,34 +5728,58 @@ class Database { } -class SerDeInfo { +class PartitionWithoutSD { static $_TSPEC; /** - * @var string + * @var string[] */ - public $name = null; + public $values = null; + /** + * @var int + */ + public $createTime = null; + /** + * @var int + */ + public $lastAccessTime = null; /** * @var string */ - public $serializationLib = null; + public $relativePath = null; /** * @var array */ public $parameters = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'name', - 'type' => TType::STRING, + 'var' => 'values', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'serializationLib', - 'type' => TType::STRING, + 'var' => 'createTime', + 'type' => TType::I32, ), 3 => array( + 'var' => 'lastAccessTime', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'relativePath', + 'type' => TType::STRING, + ), + 5 => array( 'var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, @@ -3583,23 +5791,37 @@ class SerDeInfo { 'type' => TType::STRING, ), ), + 6 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), ); } if (is_array($vals)) { - if (isset($vals['name'])) { - $this->name = $vals['name']; + if (isset($vals['values'])) { + $this->values = $vals['values']; } - if (isset($vals['serializationLib'])) { - $this->serializationLib = $vals['serializationLib']; + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; + } + if (isset($vals['relativePath'])) { + $this->relativePath = $vals['relativePath']; } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; + } } } public function getName() { - return 'SerDeInfo'; + return 'PartitionWithoutSD'; } public function read($input) @@ -3618,39 +5840,71 @@ class SerDeInfo { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->name); + if ($ftype == TType::LST) { + $this->values = array(); + $_size200 = 0; + $_etype203 = 0; + $xfer += $input->readListBegin($_etype203, $_size200); + for ($_i204 = 0; $_i204 < $_size200; ++$_i204) + { + $elem205 = null; + $xfer += $input->readString($elem205); + $this->values []= $elem205; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->serializationLib); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->relativePath); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size92 = 0; - $_ktype93 = 0; - $_vtype94 = 0; - $xfer += $input->readMapBegin($_ktype93, $_vtype94, $_size92); - for ($_i96 = 0; $_i96 < $_size92; ++$_i96) + $_size206 = 0; + $_ktype207 = 0; + $_vtype208 = 0; + $xfer += $input->readMapBegin($_ktype207, $_vtype208, $_size206); + for ($_i210 = 0; $_i210 < $_size206; ++$_i210) { - $key97 = ''; - $val98 = ''; - $xfer += $input->readString($key97); - $xfer += $input->readString($val98); - $this->parameters[$key97] = $val98; + $key211 = ''; + $val212 = ''; + $xfer += $input->readString($key211); + $xfer += $input->readString($val212); + $this->parameters[$key211] = $val212; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; + case 6: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -3663,35 +5917,65 @@ class SerDeInfo { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('SerDeInfo'); - if ($this->name !== null) { - $xfer += $output->writeFieldBegin('name', TType::STRING, 1); - $xfer += $output->writeString($this->name); + $xfer += $output->writeStructBegin('PartitionWithoutSD'); + if ($this->values !== null) { + if (!is_array($this->values)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('values', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->values)); + { + foreach ($this->values as $iter213) + { + $xfer += $output->writeString($iter213); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } - if ($this->serializationLib !== null) { - $xfer += $output->writeFieldBegin('serializationLib', TType::STRING, 2); - $xfer += $output->writeString($this->serializationLib); + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); + $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 3); + $xfer += $output->writeI32($this->lastAccessTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->relativePath !== null) { + $xfer += $output->writeFieldBegin('relativePath', TType::STRING, 4); + $xfer += $output->writeString($this->relativePath); $xfer += $output->writeFieldEnd(); } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 3); + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 5); { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter99 => $viter100) + foreach ($this->parameters as $kiter214 => $viter215) { - $xfer += $output->writeString($kiter99); - $xfer += $output->writeString($viter100); + $xfer += $output->writeString($kiter214); + $xfer += $output->writeString($viter215); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 6); + $xfer += $this->privileges->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -3699,43 +5983,49 @@ class SerDeInfo { } -class Order { +class PartitionSpecWithSharedSD { static $_TSPEC; /** - * @var string + * @var \metastore\PartitionWithoutSD[] */ - public $col = null; + public $partitions = null; /** - * @var int + * @var \metastore\StorageDescriptor */ - public $order = null; + public $sd = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'col', - 'type' => TType::STRING, + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionWithoutSD', + ), ), 2 => array( - 'var' => 'order', - 'type' => TType::I32, + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', ), ); } if (is_array($vals)) { - if (isset($vals['col'])) { - $this->col = $vals['col']; - } - if (isset($vals['order'])) { - $this->order = $vals['order']; + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; + } + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; } } } public function getName() { - return 'Order'; + return 'PartitionSpecWithSharedSD'; } public function read($input) @@ -3754,15 +6044,27 @@ class Order { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->col); + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size216 = 0; + $_etype219 = 0; + $xfer += $input->readListBegin($_etype219, $_size216); + for ($_i220 = 0; $_i220 < $_size216; ++$_i220) + { + $elem221 = null; + $elem221 = new \metastore\PartitionWithoutSD(); + $xfer += $elem221->read($input); + $this->partitions []= $elem221; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->order); + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } @@ -3779,15 +6081,30 @@ class Order { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Order'); - if ($this->col !== null) { - $xfer += $output->writeFieldBegin('col', TType::STRING, 1); - $xfer += $output->writeString($this->col); + $xfer += $output->writeStructBegin('PartitionSpecWithSharedSD'); + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitions)); + { + foreach ($this->partitions as $iter222) + { + $xfer += $iter222->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } - if ($this->order !== null) { - $xfer += $output->writeFieldBegin('order', TType::I32, 2); - $xfer += $output->writeI32($this->order); + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 2); + $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -3797,78 +6114,37 @@ class Order { } -class SkewedInfo { +class PartitionListComposingSpec { static $_TSPEC; /** - * @var string[] - */ - public $skewedColNames = null; - /** - * @var (string[])[] - */ - public $skewedColValues = null; - /** - * @var array + * @var \metastore\Partition[] */ - public $skewedColValueLocationMaps = null; + public $partitions = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'skewedColNames', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 2 => array( - 'var' => 'skewedColValues', + 'var' => 'partitions', 'type' => TType::LST, - 'etype' => TType::LST, + 'etype' => TType::STRUCT, 'elem' => array( - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - ), - 3 => array( - 'var' => 'skewedColValueLocationMaps', - 'type' => TType::MAP, - 'ktype' => TType::LST, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 'val' => array( - 'type' => TType::STRING, + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), ), ); } if (is_array($vals)) { - if (isset($vals['skewedColNames'])) { - $this->skewedColNames = $vals['skewedColNames']; - } - if (isset($vals['skewedColValues'])) { - $this->skewedColValues = $vals['skewedColValues']; - } - if (isset($vals['skewedColValueLocationMaps'])) { - $this->skewedColValueLocationMaps = $vals['skewedColValueLocationMaps']; + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; } } } public function getName() { - return 'SkewedInfo'; + return 'PartitionListComposingSpec'; } public function read($input) @@ -3888,78 +6164,22 @@ class SkewedInfo { { case 1: if ($ftype == TType::LST) { - $this->skewedColNames = array(); - $_size101 = 0; - $_etype104 = 0; - $xfer += $input->readListBegin($_etype104, $_size101); - for ($_i105 = 0; $_i105 < $_size101; ++$_i105) - { - $elem106 = null; - $xfer += $input->readString($elem106); - $this->skewedColNames []= $elem106; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::LST) { - $this->skewedColValues = array(); - $_size107 = 0; - $_etype110 = 0; - $xfer += $input->readListBegin($_etype110, $_size107); - for ($_i111 = 0; $_i111 < $_size107; ++$_i111) + $this->partitions = array(); + $_size223 = 0; + $_etype226 = 0; + $xfer += $input->readListBegin($_etype226, $_size223); + for ($_i227 = 0; $_i227 < $_size223; ++$_i227) { - $elem112 = null; - $elem112 = array(); - $_size113 = 0; - $_etype116 = 0; - $xfer += $input->readListBegin($_etype116, $_size113); - for ($_i117 = 0; $_i117 < $_size113; ++$_i117) - { - $elem118 = null; - $xfer += $input->readString($elem118); - $elem112 []= $elem118; - } - $xfer += $input->readListEnd(); - $this->skewedColValues []= $elem112; + $elem228 = null; + $elem228 = new \metastore\Partition(); + $xfer += $elem228->read($input); + $this->partitions []= $elem228; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::MAP) { - $this->skewedColValueLocationMaps = array(); - $_size119 = 0; - $_ktype120 = 0; - $_vtype121 = 0; - $xfer += $input->readMapBegin($_ktype120, $_vtype121, $_size119); - for ($_i123 = 0; $_i123 < $_size119; ++$_i123) - { - $key124 = array(); - $val125 = ''; - $key124 = array(); - $_size126 = 0; - $_etype129 = 0; - $xfer += $input->readListBegin($_etype129, $_size126); - for ($_i130 = 0; $_i130 < $_size126; ++$_i130) - { - $elem131 = null; - $xfer += $input->readString($elem131); - $key124 []= $elem131; - } - $xfer += $input->readListEnd(); - $xfer += $input->readString($val125); - $this->skewedColValueLocationMaps[$key124] = $val125; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -3972,74 +6192,21 @@ class SkewedInfo { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('SkewedInfo'); - if ($this->skewedColNames !== null) { - if (!is_array($this->skewedColNames)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('skewedColNames', TType::LST, 1); - { - $output->writeListBegin(TType::STRING, count($this->skewedColNames)); - { - foreach ($this->skewedColNames as $iter132) - { - $xfer += $output->writeString($iter132); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->skewedColValues !== null) { - if (!is_array($this->skewedColValues)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('skewedColValues', TType::LST, 2); - { - $output->writeListBegin(TType::LST, count($this->skewedColValues)); - { - foreach ($this->skewedColValues as $iter133) - { - { - $output->writeListBegin(TType::STRING, count($iter133)); - { - foreach ($iter133 as $iter134) - { - $xfer += $output->writeString($iter134); - } - } - $output->writeListEnd(); - } - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->skewedColValueLocationMaps !== null) { - if (!is_array($this->skewedColValueLocationMaps)) { + $xfer += $output->writeStructBegin('PartitionListComposingSpec'); + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('skewedColValueLocationMaps', TType::MAP, 3); - { - $output->writeMapBegin(TType::LST, TType::STRING, count($this->skewedColValueLocationMaps)); - { - foreach ($this->skewedColValueLocationMaps as $kiter135 => $viter136) - { - { - $output->writeListBegin(TType::STRING, count($kiter135)); - { - foreach ($kiter135 as $iter137) - { - $xfer += $output->writeString($iter137); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeString($viter136); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitions)); + { + foreach ($this->partitions as $iter229) + { + $xfer += $iter229->write($output); } } - $output->writeMapEnd(); + $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } @@ -4050,177 +6217,78 @@ class SkewedInfo { } -class StorageDescriptor { +class PartitionSpec { static $_TSPEC; /** - * @var \metastore\FieldSchema[] - */ - public $cols = null; - /** * @var string */ - public $location = null; + public $dbName = null; /** * @var string */ - public $inputFormat = null; + public $tableName = null; /** * @var string */ - public $outputFormat = null; - /** - * @var bool - */ - public $compressed = null; - /** - * @var int - */ - public $numBuckets = null; - /** - * @var \metastore\SerDeInfo - */ - public $serdeInfo = null; - /** - * @var string[] - */ - public $bucketCols = null; - /** - * @var \metastore\Order[] - */ - public $sortCols = null; - /** - * @var array - */ - public $parameters = null; + public $rootPath = null; /** - * @var \metastore\SkewedInfo + * @var \metastore\PartitionSpecWithSharedSD */ - public $skewedInfo = null; + public $sharedSDPartitionSpec = null; /** - * @var bool + * @var \metastore\PartitionListComposingSpec */ - public $storedAsSubDirectories = null; + public $partitionList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'cols', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\FieldSchema', - ), + 'var' => 'dbName', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'location', + 'var' => 'tableName', 'type' => TType::STRING, ), 3 => array( - 'var' => 'inputFormat', + 'var' => 'rootPath', 'type' => TType::STRING, ), 4 => array( - 'var' => 'outputFormat', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'compressed', - 'type' => TType::BOOL, - ), - 6 => array( - 'var' => 'numBuckets', - 'type' => TType::I32, - ), - 7 => array( - 'var' => 'serdeInfo', + 'var' => 'sharedSDPartitionSpec', 'type' => TType::STRUCT, - 'class' => '\metastore\SerDeInfo', - ), - 8 => array( - 'var' => 'bucketCols', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 9 => array( - 'var' => 'sortCols', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Order', - ), - ), - 10 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'class' => '\metastore\PartitionSpecWithSharedSD', ), - 11 => array( - 'var' => 'skewedInfo', + 5 => array( + 'var' => 'partitionList', 'type' => TType::STRUCT, - 'class' => '\metastore\SkewedInfo', - ), - 12 => array( - 'var' => 'storedAsSubDirectories', - 'type' => TType::BOOL, + 'class' => '\metastore\PartitionListComposingSpec', ), ); } if (is_array($vals)) { - if (isset($vals['cols'])) { - $this->cols = $vals['cols']; - } - if (isset($vals['location'])) { - $this->location = $vals['location']; - } - if (isset($vals['inputFormat'])) { - $this->inputFormat = $vals['inputFormat']; - } - if (isset($vals['outputFormat'])) { - $this->outputFormat = $vals['outputFormat']; - } - if (isset($vals['compressed'])) { - $this->compressed = $vals['compressed']; - } - if (isset($vals['numBuckets'])) { - $this->numBuckets = $vals['numBuckets']; - } - if (isset($vals['serdeInfo'])) { - $this->serdeInfo = $vals['serdeInfo']; - } - if (isset($vals['bucketCols'])) { - $this->bucketCols = $vals['bucketCols']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['sortCols'])) { - $this->sortCols = $vals['sortCols']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['rootPath'])) { + $this->rootPath = $vals['rootPath']; } - if (isset($vals['skewedInfo'])) { - $this->skewedInfo = $vals['skewedInfo']; + if (isset($vals['sharedSDPartitionSpec'])) { + $this->sharedSDPartitionSpec = $vals['sharedSDPartitionSpec']; } - if (isset($vals['storedAsSubDirectories'])) { - $this->storedAsSubDirectories = $vals['storedAsSubDirectories']; + if (isset($vals['partitionList'])) { + $this->partitionList = $vals['partitionList']; } } } public function getName() { - return 'StorageDescriptor'; + return 'PartitionSpec'; } public function read($input) @@ -4239,132 +6307,38 @@ class StorageDescriptor { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->cols = array(); - $_size138 = 0; - $_etype141 = 0; - $xfer += $input->readListBegin($_etype141, $_size138); - for ($_i142 = 0; $_i142 < $_size138; ++$_i142) - { - $elem143 = null; - $elem143 = new \metastore\FieldSchema(); - $xfer += $elem143->read($input); - $this->cols []= $elem143; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->location); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->inputFormat); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->outputFormat); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->compressed); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->numBuckets); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::STRUCT) { - $this->serdeInfo = new \metastore\SerDeInfo(); - $xfer += $this->serdeInfo->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::LST) { - $this->bucketCols = array(); - $_size144 = 0; - $_etype147 = 0; - $xfer += $input->readListBegin($_etype147, $_size144); - for ($_i148 = 0; $_i148 < $_size144; ++$_i148) - { - $elem149 = null; - $xfer += $input->readString($elem149); - $this->bucketCols []= $elem149; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 9: - if ($ftype == TType::LST) { - $this->sortCols = array(); - $_size150 = 0; - $_etype153 = 0; - $xfer += $input->readListBegin($_etype153, $_size150); - for ($_i154 = 0; $_i154 < $_size150; ++$_i154) - { - $elem155 = null; - $elem155 = new \metastore\Order(); - $xfer += $elem155->read($input); - $this->sortCols []= $elem155; - } - $xfer += $input->readListEnd(); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; - case 10: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size156 = 0; - $_ktype157 = 0; - $_vtype158 = 0; - $xfer += $input->readMapBegin($_ktype157, $_vtype158, $_size156); - for ($_i160 = 0; $_i160 < $_size156; ++$_i160) - { - $key161 = ''; - $val162 = ''; - $xfer += $input->readString($key161); - $xfer += $input->readString($val162); - $this->parameters[$key161] = $val162; - } - $xfer += $input->readMapEnd(); + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; - case 11: + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->rootPath); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: if ($ftype == TType::STRUCT) { - $this->skewedInfo = new \metastore\SkewedInfo(); - $xfer += $this->skewedInfo->read($input); + $this->sharedSDPartitionSpec = new \metastore\PartitionSpecWithSharedSD(); + $xfer += $this->sharedSDPartitionSpec->read($input); } else { $xfer += $input->skip($ftype); } break; - case 12: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->storedAsSubDirectories); + case 5: + if ($ftype == TType::STRUCT) { + $this->partitionList = new \metastore\PartitionListComposingSpec(); + $xfer += $this->partitionList->read($input); } else { $xfer += $input->skip($ftype); } @@ -4381,120 +6355,36 @@ class StorageDescriptor { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('StorageDescriptor'); - if ($this->cols !== null) { - if (!is_array($this->cols)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('cols', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->cols)); - { - foreach ($this->cols as $iter163) - { - $xfer += $iter163->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->location !== null) { - $xfer += $output->writeFieldBegin('location', TType::STRING, 2); - $xfer += $output->writeString($this->location); - $xfer += $output->writeFieldEnd(); - } - if ($this->inputFormat !== null) { - $xfer += $output->writeFieldBegin('inputFormat', TType::STRING, 3); - $xfer += $output->writeString($this->inputFormat); - $xfer += $output->writeFieldEnd(); - } - if ($this->outputFormat !== null) { - $xfer += $output->writeFieldBegin('outputFormat', TType::STRING, 4); - $xfer += $output->writeString($this->outputFormat); - $xfer += $output->writeFieldEnd(); - } - if ($this->compressed !== null) { - $xfer += $output->writeFieldBegin('compressed', TType::BOOL, 5); - $xfer += $output->writeBool($this->compressed); - $xfer += $output->writeFieldEnd(); - } - if ($this->numBuckets !== null) { - $xfer += $output->writeFieldBegin('numBuckets', TType::I32, 6); - $xfer += $output->writeI32($this->numBuckets); - $xfer += $output->writeFieldEnd(); - } - if ($this->serdeInfo !== null) { - if (!is_object($this->serdeInfo)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('serdeInfo', TType::STRUCT, 7); - $xfer += $this->serdeInfo->write($output); + $xfer += $output->writeStructBegin('PartitionSpec'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->bucketCols !== null) { - if (!is_array($this->bucketCols)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('bucketCols', TType::LST, 8); - { - $output->writeListBegin(TType::STRING, count($this->bucketCols)); - { - foreach ($this->bucketCols as $iter164) - { - $xfer += $output->writeString($iter164); - } - } - $output->writeListEnd(); - } + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 2); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->sortCols !== null) { - if (!is_array($this->sortCols)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sortCols', TType::LST, 9); - { - $output->writeListBegin(TType::STRUCT, count($this->sortCols)); - { - foreach ($this->sortCols as $iter165) - { - $xfer += $iter165->write($output); - } - } - $output->writeListEnd(); - } + if ($this->rootPath !== null) { + $xfer += $output->writeFieldBegin('rootPath', TType::STRING, 3); + $xfer += $output->writeString($this->rootPath); $xfer += $output->writeFieldEnd(); } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { + if ($this->sharedSDPartitionSpec !== null) { + if (!is_object($this->sharedSDPartitionSpec)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter166 => $viter167) - { - $xfer += $output->writeString($kiter166); - $xfer += $output->writeString($viter167); - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('sharedSDPartitionSpec', TType::STRUCT, 4); + $xfer += $this->sharedSDPartitionSpec->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->skewedInfo !== null) { - if (!is_object($this->skewedInfo)) { + if ($this->partitionList !== null) { + if (!is_object($this->partitionList)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('skewedInfo', TType::STRUCT, 11); - $xfer += $this->skewedInfo->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->storedAsSubDirectories !== null) { - $xfer += $output->writeFieldBegin('storedAsSubDirectories', TType::BOOL, 12); - $xfer += $output->writeBool($this->storedAsSubDirectories); + $xfer += $output->writeFieldBegin('partitionList', TType::STRUCT, 5); + $xfer += $this->partitionList->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -4504,13 +6394,17 @@ class StorageDescriptor { } -class Table { +class Index { static $_TSPEC; /** * @var string */ - public $tableName = null; + public $indexName = null; + /** + * @var string + */ + public $indexHandlerClass = null; /** * @var string */ @@ -4518,7 +6412,7 @@ class Table { /** * @var string */ - public $owner = null; + public $origTableName = null; /** * @var int */ @@ -4528,87 +6422,58 @@ class Table { */ public $lastAccessTime = null; /** - * @var int + * @var string */ - public $retention = null; + public $indexTableName = null; /** * @var \metastore\StorageDescriptor */ public $sd = null; /** - * @var \metastore\FieldSchema[] - */ - public $partitionKeys = null; - /** * @var array */ public $parameters = null; /** - * @var string - */ - public $viewOriginalText = null; - /** - * @var string - */ - public $viewExpandedText = null; - /** - * @var string - */ - public $tableType = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ - public $privileges = null; - /** - * @var bool - */ - public $temporary = false; - /** * @var bool */ - public $rewriteEnabled = null; + public $deferredRebuild = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'tableName', + 'var' => 'indexName', 'type' => TType::STRING, ), 2 => array( - 'var' => 'dbName', + 'var' => 'indexHandlerClass', 'type' => TType::STRING, ), 3 => array( - 'var' => 'owner', + 'var' => 'dbName', 'type' => TType::STRING, ), 4 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'origTableName', + 'type' => TType::STRING, ), 5 => array( - 'var' => 'lastAccessTime', + 'var' => 'createTime', 'type' => TType::I32, ), 6 => array( - 'var' => 'retention', + 'var' => 'lastAccessTime', 'type' => TType::I32, ), 7 => array( + 'var' => 'indexTableName', + 'type' => TType::STRING, + ), + 8 => array( 'var' => 'sd', 'type' => TType::STRUCT, 'class' => '\metastore\StorageDescriptor', ), - 8 => array( - 'var' => 'partitionKeys', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\FieldSchema', - ), - ), 9 => array( 'var' => 'parameters', 'type' => TType::MAP, @@ -4622,41 +6487,23 @@ class Table { ), ), 10 => array( - 'var' => 'viewOriginalText', - 'type' => TType::STRING, - ), - 11 => array( - 'var' => 'viewExpandedText', - 'type' => TType::STRING, - ), - 12 => array( - 'var' => 'tableType', - 'type' => TType::STRING, - ), - 13 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', - ), - 14 => array( - 'var' => 'temporary', - 'type' => TType::BOOL, - ), - 15 => array( - 'var' => 'rewriteEnabled', + 'var' => 'deferredRebuild', 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; + if (isset($vals['indexName'])) { + $this->indexName = $vals['indexName']; + } + if (isset($vals['indexHandlerClass'])) { + $this->indexHandlerClass = $vals['indexHandlerClass']; } if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } - if (isset($vals['owner'])) { - $this->owner = $vals['owner']; + if (isset($vals['origTableName'])) { + $this->origTableName = $vals['origTableName']; } if (isset($vals['createTime'])) { $this->createTime = $vals['createTime']; @@ -4664,41 +6511,23 @@ class Table { if (isset($vals['lastAccessTime'])) { $this->lastAccessTime = $vals['lastAccessTime']; } - if (isset($vals['retention'])) { - $this->retention = $vals['retention']; + if (isset($vals['indexTableName'])) { + $this->indexTableName = $vals['indexTableName']; } if (isset($vals['sd'])) { $this->sd = $vals['sd']; } - if (isset($vals['partitionKeys'])) { - $this->partitionKeys = $vals['partitionKeys']; - } if (isset($vals['parameters'])) { $this->parameters = $vals['parameters']; } - if (isset($vals['viewOriginalText'])) { - $this->viewOriginalText = $vals['viewOriginalText']; - } - if (isset($vals['viewExpandedText'])) { - $this->viewExpandedText = $vals['viewExpandedText']; - } - if (isset($vals['tableType'])) { - $this->tableType = $vals['tableType']; - } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; - } - if (isset($vals['temporary'])) { - $this->temporary = $vals['temporary']; - } - if (isset($vals['rewriteEnabled'])) { - $this->rewriteEnabled = $vals['rewriteEnabled']; + if (isset($vals['deferredRebuild'])) { + $this->deferredRebuild = $vals['deferredRebuild']; } } } public function getName() { - return 'Table'; + return 'Index'; } public function read($input) @@ -4718,68 +6547,57 @@ class Table { { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + $xfer += $input->readString($this->indexName); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); + $xfer += $input->readString($this->indexHandlerClass); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->owner); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->origTableName); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { - $xfer += $input->readI32($this->retention); + $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 7: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->indexTableName); } else { $xfer += $input->skip($ftype); } break; case 8: - if ($ftype == TType::LST) { - $this->partitionKeys = array(); - $_size168 = 0; - $_etype171 = 0; - $xfer += $input->readListBegin($_etype171, $_size168); - for ($_i172 = 0; $_i172 < $_size168; ++$_i172) - { - $elem173 = null; - $elem173 = new \metastore\FieldSchema(); - $xfer += $elem173->read($input); - $this->partitionKeys []= $elem173; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } @@ -4787,17 +6605,17 @@ class Table { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size174 = 0; - $_ktype175 = 0; - $_vtype176 = 0; - $xfer += $input->readMapBegin($_ktype175, $_vtype176, $_size174); - for ($_i178 = 0; $_i178 < $_size174; ++$_i178) + $_size230 = 0; + $_ktype231 = 0; + $_vtype232 = 0; + $xfer += $input->readMapBegin($_ktype231, $_vtype232, $_size230); + for ($_i234 = 0; $_i234 < $_size230; ++$_i234) { - $key179 = ''; - $val180 = ''; - $xfer += $input->readString($key179); - $xfer += $input->readString($val180); - $this->parameters[$key179] = $val180; + $key235 = ''; + $val236 = ''; + $xfer += $input->readString($key235); + $xfer += $input->readString($val236); + $this->parameters[$key235] = $val236; } $xfer += $input->readMapEnd(); } else { @@ -4805,44 +6623,8 @@ class Table { } break; case 10: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->viewOriginalText); - } else { - $xfer += $input->skip($ftype); - } - break; - case 11: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->viewExpandedText); - } else { - $xfer += $input->skip($ftype); - } - break; - case 12: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 13: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 14: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->temporary); - } else { - $xfer += $input->skip($ftype); - } - break; - case 15: if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->rewriteEnabled); + $xfer += $input->readBool($this->deferredRebuild); } else { $xfer += $input->skip($ftype); } @@ -4859,62 +6641,50 @@ class Table { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Table'); - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 1); - $xfer += $output->writeString($this->tableName); + $xfer += $output->writeStructBegin('Index'); + if ($this->indexName !== null) { + $xfer += $output->writeFieldBegin('indexName', TType::STRING, 1); + $xfer += $output->writeString($this->indexName); + $xfer += $output->writeFieldEnd(); + } + if ($this->indexHandlerClass !== null) { + $xfer += $output->writeFieldBegin('indexHandlerClass', TType::STRING, 2); + $xfer += $output->writeString($this->indexHandlerClass); $xfer += $output->writeFieldEnd(); } if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->owner !== null) { - $xfer += $output->writeFieldBegin('owner', TType::STRING, 3); - $xfer += $output->writeString($this->owner); + if ($this->origTableName !== null) { + $xfer += $output->writeFieldBegin('origTableName', TType::STRING, 4); + $xfer += $output->writeString($this->origTableName); $xfer += $output->writeFieldEnd(); } if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); + $xfer += $output->writeFieldBegin('createTime', TType::I32, 5); $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 6); $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } - if ($this->retention !== null) { - $xfer += $output->writeFieldBegin('retention', TType::I32, 6); - $xfer += $output->writeI32($this->retention); + if ($this->indexTableName !== null) { + $xfer += $output->writeFieldBegin('indexTableName', TType::STRING, 7); + $xfer += $output->writeString($this->indexTableName); $xfer += $output->writeFieldEnd(); } if ($this->sd !== null) { if (!is_object($this->sd)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 7); + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 8); $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->partitionKeys !== null) { - if (!is_array($this->partitionKeys)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 8); - { - $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); - { - foreach ($this->partitionKeys as $iter181) - { - $xfer += $iter181->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } if ($this->parameters !== null) { if (!is_array($this->parameters)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -4923,47 +6693,19 @@ class Table { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter182 => $viter183) + foreach ($this->parameters as $kiter237 => $viter238) { - $xfer += $output->writeString($kiter182); - $xfer += $output->writeString($viter183); + $xfer += $output->writeString($kiter237); + $xfer += $output->writeString($viter238); } } $output->writeMapEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->viewOriginalText !== null) { - $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 10); - $xfer += $output->writeString($this->viewOriginalText); - $xfer += $output->writeFieldEnd(); - } - if ($this->viewExpandedText !== null) { - $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 11); - $xfer += $output->writeString($this->viewExpandedText); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableType !== null) { - $xfer += $output->writeFieldBegin('tableType', TType::STRING, 12); - $xfer += $output->writeString($this->tableType); - $xfer += $output->writeFieldEnd(); - } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 13); - $xfer += $this->privileges->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->temporary !== null) { - $xfer += $output->writeFieldBegin('temporary', TType::BOOL, 14); - $xfer += $output->writeBool($this->temporary); - $xfer += $output->writeFieldEnd(); - } - if ($this->rewriteEnabled !== null) { - $xfer += $output->writeFieldBegin('rewriteEnabled', TType::BOOL, 15); - $xfer += $output->writeBool($this->rewriteEnabled); + if ($this->deferredRebuild !== null) { + $xfer += $output->writeFieldBegin('deferredRebuild', TType::BOOL, 10); + $xfer += $output->writeBool($this->deferredRebuild); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -4973,123 +6715,65 @@ class Table { } -class Partition { +class BooleanColumnStatsData { static $_TSPEC; /** - * @var string[] - */ - public $values = null; - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tableName = null; - /** * @var int */ - public $createTime = null; + public $numTrues = null; /** * @var int */ - public $lastAccessTime = null; - /** - * @var \metastore\StorageDescriptor - */ - public $sd = null; + public $numFalses = null; /** - * @var array + * @var int */ - public $parameters = null; + public $numNulls = null; /** - * @var \metastore\PrincipalPrivilegeSet + * @var string */ - public $privileges = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'values', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + public $bitVectors = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'numTrues', + 'type' => TType::I64, ), 2 => array( - 'var' => 'dbName', - 'type' => TType::STRING, + 'var' => 'numFalses', + 'type' => TType::I64, ), 3 => array( - 'var' => 'tableName', - 'type' => TType::STRING, + 'var' => 'numNulls', + 'type' => TType::I64, ), 4 => array( - 'var' => 'createTime', - 'type' => TType::I32, - ), - 5 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'sd', - 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', - ), - 7 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 8 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['values'])) { - $this->values = $vals['values']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; - } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; + if (isset($vals['numTrues'])) { + $this->numTrues = $vals['numTrues']; } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; + if (isset($vals['numFalses'])) { + $this->numFalses = $vals['numFalses']; } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'Partition'; + return 'BooleanColumnStatsData'; } public function read($input) @@ -5108,82 +6792,29 @@ class Partition { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->values = array(); - $_size184 = 0; - $_etype187 = 0; - $xfer += $input->readListBegin($_etype187, $_size184); - for ($_i188 = 0; $_i188 < $_size184; ++$_i188) - { - $elem189 = null; - $xfer += $input->readString($elem189); - $this->values []= $elem189; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numTrues); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numFalses); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size190 = 0; - $_ktype191 = 0; - $_vtype192 = 0; - $xfer += $input->readMapBegin($_ktype191, $_vtype192, $_size190); - for ($_i194 = 0; $_i194 < $_size190; ++$_i194) - { - $key195 = ''; - $val196 = ''; - $xfer += $input->readString($key195); - $xfer += $input->readString($val196); - $this->parameters[$key195] = $val196; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -5200,76 +6831,25 @@ class Partition { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Partition'); - if ($this->values !== null) { - if (!is_array($this->values)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('values', TType::LST, 1); - { - $output->writeListBegin(TType::STRING, count($this->values)); - { - foreach ($this->values as $iter197) - { - $xfer += $output->writeString($iter197); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); - $xfer += $output->writeString($this->tableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); - $xfer += $output->writeI32($this->createTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); - $xfer += $output->writeI32($this->lastAccessTime); + $xfer += $output->writeStructBegin('BooleanColumnStatsData'); + if ($this->numTrues !== null) { + $xfer += $output->writeFieldBegin('numTrues', TType::I64, 1); + $xfer += $output->writeI64($this->numTrues); $xfer += $output->writeFieldEnd(); } - if ($this->sd !== null) { - if (!is_object($this->sd)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6); - $xfer += $this->sd->write($output); + if ($this->numFalses !== null) { + $xfer += $output->writeFieldBegin('numFalses', TType::I64, 2); + $xfer += $output->writeI64($this->numFalses); $xfer += $output->writeFieldEnd(); } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter198 => $viter199) - { - $xfer += $output->writeString($kiter198); - $xfer += $output->writeString($viter199); - } - } - $output->writeMapEnd(); - } + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8); - $xfer += $this->privileges->write($output); + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -5279,100 +6859,76 @@ class Partition { } -class PartitionWithoutSD { +class DoubleColumnStatsData { static $_TSPEC; /** - * @var string[] + * @var double */ - public $values = null; + public $lowValue = null; /** - * @var int + * @var double */ - public $createTime = null; + public $highValue = null; /** * @var int */ - public $lastAccessTime = null; - /** - * @var string - */ - public $relativePath = null; + public $numNulls = null; /** - * @var array + * @var int */ - public $parameters = null; + public $numDVs = null; /** - * @var \metastore\PrincipalPrivilegeSet + * @var string */ - public $privileges = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'values', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'lowValue', + 'type' => TType::DOUBLE, ), 2 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'highValue', + 'type' => TType::DOUBLE, ), 3 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, + 'var' => 'numNulls', + 'type' => TType::I64, ), 4 => array( - 'var' => 'relativePath', - 'type' => TType::STRING, + 'var' => 'numDVs', + 'type' => TType::I64, ), 5 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 6 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['values'])) { - $this->values = $vals['values']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; } - if (isset($vals['relativePath'])) { - $this->relativePath = $vals['relativePath']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'PartitionWithoutSD'; + return 'DoubleColumnStatsData'; } public function read($input) @@ -5391,67 +6947,36 @@ class PartitionWithoutSD { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->values = array(); - $_size200 = 0; - $_etype203 = 0; - $xfer += $input->readListBegin($_etype203, $_size200); - for ($_i204 = 0; $_i204 < $_size200; ++$_i204) - { - $elem205 = null; - $xfer += $input->readString($elem205); - $this->values []= $elem205; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->lowValue); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->highValue); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->relativePath); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size206 = 0; - $_ktype207 = 0; - $_vtype208 = 0; - $xfer += $input->readMapBegin($_ktype207, $_vtype208, $_size206); - for ($_i210 = 0; $_i210 < $_size206; ++$_i210) - { - $key211 = ''; - $val212 = ''; - $xfer += $input->readString($key211); - $xfer += $input->readString($val212); - $this->parameters[$key211] = $val212; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -5468,63 +6993,30 @@ class PartitionWithoutSD { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionWithoutSD'); - if ($this->values !== null) { - if (!is_array($this->values)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('values', TType::LST, 1); - { - $output->writeListBegin(TType::STRING, count($this->values)); - { - foreach ($this->values as $iter213) - { - $xfer += $output->writeString($iter213); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); - $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeStructBegin('DoubleColumnStatsData'); + if ($this->lowValue !== null) { + $xfer += $output->writeFieldBegin('lowValue', TType::DOUBLE, 1); + $xfer += $output->writeDouble($this->lowValue); $xfer += $output->writeFieldEnd(); } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 3); - $xfer += $output->writeI32($this->lastAccessTime); + if ($this->highValue !== null) { + $xfer += $output->writeFieldBegin('highValue', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->highValue); $xfer += $output->writeFieldEnd(); } - if ($this->relativePath !== null) { - $xfer += $output->writeFieldBegin('relativePath', TType::STRING, 4); - $xfer += $output->writeString($this->relativePath); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 5); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter214 => $viter215) - { - $xfer += $output->writeString($kiter214); - $xfer += $output->writeString($viter215); - } - } - $output->writeMapEnd(); - } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 6); - $xfer += $this->privileges->write($output); + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -5534,49 +7026,76 @@ class PartitionWithoutSD { } -class PartitionSpecWithSharedSD { +class LongColumnStatsData { static $_TSPEC; /** - * @var \metastore\PartitionWithoutSD[] + * @var int */ - public $partitions = null; + public $lowValue = null; /** - * @var \metastore\StorageDescriptor + * @var int */ - public $sd = null; + public $highValue = null; + /** + * @var int + */ + public $numNulls = null; + /** + * @var int + */ + public $numDVs = null; + /** + * @var string + */ + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'partitions', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionWithoutSD', - ), + 'var' => 'lowValue', + 'type' => TType::I64, ), 2 => array( - 'var' => 'sd', - 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', + 'var' => 'highValue', + 'type' => TType::I64, + ), + 3 => array( + 'var' => 'numNulls', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'numDVs', + 'type' => TType::I64, + ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['partitions'])) { - $this->partitions = $vals['partitions']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; + } + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; + } + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; + } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'PartitionSpecWithSharedSD'; + return 'LongColumnStatsData'; } public function read($input) @@ -5595,27 +7114,36 @@ class PartitionSpecWithSharedSD { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->partitions = array(); - $_size216 = 0; - $_etype219 = 0; - $xfer += $input->readListBegin($_etype219, $_size216); - for ($_i220 = 0; $_i220 < $_size216; ++$_i220) - { - $elem221 = null; - $elem221 = new \metastore\PartitionWithoutSD(); - $xfer += $elem221->read($input); - $this->partitions []= $elem221; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->lowValue); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->highValue); } else { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -5632,30 +7160,30 @@ class PartitionSpecWithSharedSD { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionSpecWithSharedSD'); - if ($this->partitions !== null) { - if (!is_array($this->partitions)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->partitions)); - { - foreach ($this->partitions as $iter222) - { - $xfer += $iter222->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('LongColumnStatsData'); + if ($this->lowValue !== null) { + $xfer += $output->writeFieldBegin('lowValue', TType::I64, 1); + $xfer += $output->writeI64($this->lowValue); $xfer += $output->writeFieldEnd(); } - if ($this->sd !== null) { - if (!is_object($this->sd)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 2); - $xfer += $this->sd->write($output); + if ($this->highValue !== null) { + $xfer += $output->writeFieldBegin('highValue', TType::I64, 2); + $xfer += $output->writeI64($this->highValue); + $xfer += $output->writeFieldEnd(); + } + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); + $xfer += $output->writeFieldEnd(); + } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); + $xfer += $output->writeFieldEnd(); + } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -5665,37 +7193,76 @@ class PartitionSpecWithSharedSD { } -class PartitionListComposingSpec { +class StringColumnStatsData { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var int */ - public $partitions = null; + public $maxColLen = null; + /** + * @var double + */ + public $avgColLen = null; + /** + * @var int + */ + public $numNulls = null; + /** + * @var int + */ + public $numDVs = null; + /** + * @var string + */ + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'partitions', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), + 'var' => 'maxColLen', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'avgColLen', + 'type' => TType::DOUBLE, + ), + 3 => array( + 'var' => 'numNulls', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'numDVs', + 'type' => TType::I64, + ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['partitions'])) { - $this->partitions = $vals['partitions']; + if (isset($vals['maxColLen'])) { + $this->maxColLen = $vals['maxColLen']; + } + if (isset($vals['avgColLen'])) { + $this->avgColLen = $vals['avgColLen']; + } + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; + } + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; + } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'PartitionListComposingSpec'; + return 'StringColumnStatsData'; } public function read($input) @@ -5714,19 +7281,36 @@ class PartitionListComposingSpec { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->partitions = array(); - $_size223 = 0; - $_etype226 = 0; - $xfer += $input->readListBegin($_etype226, $_size223); - for ($_i227 = 0; $_i227 < $_size223; ++$_i227) - { - $elem228 = null; - $elem228 = new \metastore\Partition(); - $xfer += $elem228->read($input); - $this->partitions []= $elem228; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->maxColLen); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->avgColLen); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -5743,22 +7327,30 @@ class PartitionListComposingSpec { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionListComposingSpec'); - if ($this->partitions !== null) { - if (!is_array($this->partitions)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->partitions)); - { - foreach ($this->partitions as $iter229) - { - $xfer += $iter229->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('StringColumnStatsData'); + if ($this->maxColLen !== null) { + $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); + $xfer += $output->writeI64($this->maxColLen); + $xfer += $output->writeFieldEnd(); + } + if ($this->avgColLen !== null) { + $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->avgColLen); + $xfer += $output->writeFieldEnd(); + } + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); + $xfer += $output->writeFieldEnd(); + } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); + $xfer += $output->writeFieldEnd(); + } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -5768,78 +7360,65 @@ class PartitionListComposingSpec { } -class PartitionSpec { +class BinaryColumnStatsData { static $_TSPEC; /** - * @var string - */ - public $dbName = null; - /** - * @var string + * @var int */ - public $tableName = null; + public $maxColLen = null; /** - * @var string + * @var double */ - public $rootPath = null; + public $avgColLen = null; /** - * @var \metastore\PartitionSpecWithSharedSD + * @var int */ - public $sharedSDPartitionSpec = null; + public $numNulls = null; /** - * @var \metastore\PartitionListComposingSpec + * @var string */ - public $partitionList = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'dbName', - 'type' => TType::STRING, + 'var' => 'maxColLen', + 'type' => TType::I64, ), 2 => array( - 'var' => 'tableName', - 'type' => TType::STRING, + 'var' => 'avgColLen', + 'type' => TType::DOUBLE, ), 3 => array( - 'var' => 'rootPath', - 'type' => TType::STRING, + 'var' => 'numNulls', + 'type' => TType::I64, ), 4 => array( - 'var' => 'sharedSDPartitionSpec', - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionSpecWithSharedSD', - ), - 5 => array( - 'var' => 'partitionList', - 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionListComposingSpec', + 'var' => 'bitVectors', + '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['maxColLen'])) { + $this->maxColLen = $vals['maxColLen']; } - if (isset($vals['rootPath'])) { - $this->rootPath = $vals['rootPath']; + if (isset($vals['avgColLen'])) { + $this->avgColLen = $vals['avgColLen']; } - if (isset($vals['sharedSDPartitionSpec'])) { - $this->sharedSDPartitionSpec = $vals['sharedSDPartitionSpec']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; } - if (isset($vals['partitionList'])) { - $this->partitionList = $vals['partitionList']; + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'PartitionSpec'; + return 'BinaryColumnStatsData'; } public function read($input) @@ -5858,38 +7437,29 @@ class PartitionSpec { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->maxColLen); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->avgColLen); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->rootPath); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::STRUCT) { - $this->sharedSDPartitionSpec = new \metastore\PartitionSpecWithSharedSD(); - $xfer += $this->sharedSDPartitionSpec->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRUCT) { - $this->partitionList = new \metastore\PartitionListComposingSpec(); - $xfer += $this->partitionList->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -5906,36 +7476,25 @@ class PartitionSpec { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionSpec'); - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 2); - $xfer += $output->writeString($this->tableName); + $xfer += $output->writeStructBegin('BinaryColumnStatsData'); + if ($this->maxColLen !== null) { + $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); + $xfer += $output->writeI64($this->maxColLen); $xfer += $output->writeFieldEnd(); } - if ($this->rootPath !== null) { - $xfer += $output->writeFieldBegin('rootPath', TType::STRING, 3); - $xfer += $output->writeString($this->rootPath); + if ($this->avgColLen !== null) { + $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->avgColLen); $xfer += $output->writeFieldEnd(); } - if ($this->sharedSDPartitionSpec !== null) { - if (!is_object($this->sharedSDPartitionSpec)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sharedSDPartitionSpec', TType::STRUCT, 4); - $xfer += $this->sharedSDPartitionSpec->write($output); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->partitionList !== null) { - if (!is_object($this->partitionList)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitionList', TType::STRUCT, 5); - $xfer += $this->partitionList->write($output); + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -5945,140 +7504,43 @@ class PartitionSpec { } -class Index { +class Decimal { static $_TSPEC; /** * @var string */ - public $indexName = null; - /** - * @var string - */ - public $indexHandlerClass = null; - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $origTableName = null; - /** - * @var int - */ - public $createTime = null; + public $unscaled = null; /** * @var int */ - public $lastAccessTime = null; - /** - * @var string - */ - public $indexTableName = null; - /** - * @var \metastore\StorageDescriptor - */ - public $sd = null; - /** - * @var array - */ - public $parameters = null; - /** - * @var bool - */ - public $deferredRebuild = null; + public $scale = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'indexName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'indexHandlerClass', + 'var' => 'unscaled', 'type' => TType::STRING, ), 3 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'origTableName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'createTime', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, - ), - 7 => array( - 'var' => 'indexTableName', - 'type' => TType::STRING, - ), - 8 => array( - 'var' => 'sd', - 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', - ), - 9 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 10 => array( - 'var' => 'deferredRebuild', - 'type' => TType::BOOL, + 'var' => 'scale', + 'type' => TType::I16, ), ); } if (is_array($vals)) { - if (isset($vals['indexName'])) { - $this->indexName = $vals['indexName']; - } - if (isset($vals['indexHandlerClass'])) { - $this->indexHandlerClass = $vals['indexHandlerClass']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['origTableName'])) { - $this->origTableName = $vals['origTableName']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; - } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; - } - if (isset($vals['indexTableName'])) { - $this->indexTableName = $vals['indexTableName']; - } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; - } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['unscaled'])) { + $this->unscaled = $vals['unscaled']; } - if (isset($vals['deferredRebuild'])) { - $this->deferredRebuild = $vals['deferredRebuild']; + if (isset($vals['scale'])) { + $this->scale = $vals['scale']; } } } public function getName() { - return 'Index'; + return 'Decimal'; } public function read($input) @@ -6086,96 +7548,26 @@ class Index { $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->indexName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->indexHandlerClass); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->origTableName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: + $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->indexTableName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 9: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size230 = 0; - $_ktype231 = 0; - $_vtype232 = 0; - $xfer += $input->readMapBegin($_ktype231, $_vtype232, $_size230); - for ($_i234 = 0; $_i234 < $_size230; ++$_i234) - { - $key235 = ''; - $val236 = ''; - $xfer += $input->readString($key235); - $xfer += $input->readString($val236); - $this->parameters[$key235] = $val236; - } - $xfer += $input->readMapEnd(); + $xfer += $input->readString($this->unscaled); } else { $xfer += $input->skip($ftype); } break; - case 10: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->deferredRebuild); + case 3: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->scale); } else { $xfer += $input->skip($ftype); } @@ -6192,71 +7584,15 @@ class Index { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Index'); - if ($this->indexName !== null) { - $xfer += $output->writeFieldBegin('indexName', TType::STRING, 1); - $xfer += $output->writeString($this->indexName); - $xfer += $output->writeFieldEnd(); - } - if ($this->indexHandlerClass !== null) { - $xfer += $output->writeFieldBegin('indexHandlerClass', TType::STRING, 2); - $xfer += $output->writeString($this->indexHandlerClass); - $xfer += $output->writeFieldEnd(); - } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->origTableName !== null) { - $xfer += $output->writeFieldBegin('origTableName', TType::STRING, 4); - $xfer += $output->writeString($this->origTableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 5); - $xfer += $output->writeI32($this->createTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 6); - $xfer += $output->writeI32($this->lastAccessTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->indexTableName !== null) { - $xfer += $output->writeFieldBegin('indexTableName', TType::STRING, 7); - $xfer += $output->writeString($this->indexTableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->sd !== null) { - if (!is_object($this->sd)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 8); - $xfer += $this->sd->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 9); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter237 => $viter238) - { - $xfer += $output->writeString($kiter237); - $xfer += $output->writeString($viter238); - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeStructBegin('Decimal'); + if ($this->unscaled !== null) { + $xfer += $output->writeFieldBegin('unscaled', TType::STRING, 1); + $xfer += $output->writeString($this->unscaled); $xfer += $output->writeFieldEnd(); } - if ($this->deferredRebuild !== null) { - $xfer += $output->writeFieldBegin('deferredRebuild', TType::BOOL, 10); - $xfer += $output->writeBool($this->deferredRebuild); + if ($this->scale !== null) { + $xfer += $output->writeFieldBegin('scale', TType::I16, 3); + $xfer += $output->writeI16($this->scale); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -6266,22 +7602,26 @@ class Index { } -class BooleanColumnStatsData { +class DecimalColumnStatsData { static $_TSPEC; /** - * @var int + * @var \metastore\Decimal */ - public $numTrues = null; + public $lowValue = null; /** - * @var int + * @var \metastore\Decimal */ - public $numFalses = null; + public $highValue = null; /** * @var int */ public $numNulls = null; /** + * @var int + */ + public $numDVs = null; + /** * @var string */ public $bitVectors = null; @@ -6290,33 +7630,42 @@ class BooleanColumnStatsData { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'numTrues', - 'type' => TType::I64, + 'var' => 'lowValue', + 'type' => TType::STRUCT, + 'class' => '\metastore\Decimal', ), 2 => array( - 'var' => 'numFalses', - 'type' => TType::I64, + 'var' => 'highValue', + 'type' => TType::STRUCT, + 'class' => '\metastore\Decimal', ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), 4 => array( + 'var' => 'numDVs', + 'type' => TType::I64, + ), + 5 => array( 'var' => 'bitVectors', 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['numTrues'])) { - $this->numTrues = $vals['numTrues']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; } - if (isset($vals['numFalses'])) { - $this->numFalses = $vals['numFalses']; + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; + } if (isset($vals['bitVectors'])) { $this->bitVectors = $vals['bitVectors']; } @@ -6324,7 +7673,7 @@ class BooleanColumnStatsData { } public function getName() { - return 'BooleanColumnStatsData'; + return 'DecimalColumnStatsData'; } public function read($input) @@ -6343,15 +7692,17 @@ class BooleanColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numTrues); + if ($ftype == TType::STRUCT) { + $this->lowValue = new \metastore\Decimal(); + $xfer += $this->lowValue->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numFalses); + if ($ftype == TType::STRUCT) { + $this->highValue = new \metastore\Decimal(); + $xfer += $this->highValue->read($input); } else { $xfer += $input->skip($ftype); } @@ -6364,6 +7715,13 @@ class BooleanColumnStatsData { } break; case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: if ($ftype == TType::STRING) { $xfer += $input->readString($this->bitVectors); } else { @@ -6382,15 +7740,21 @@ class BooleanColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('BooleanColumnStatsData'); - if ($this->numTrues !== null) { - $xfer += $output->writeFieldBegin('numTrues', TType::I64, 1); - $xfer += $output->writeI64($this->numTrues); + $xfer += $output->writeStructBegin('DecimalColumnStatsData'); + if ($this->lowValue !== null) { + if (!is_object($this->lowValue)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); + $xfer += $this->lowValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->numFalses !== null) { - $xfer += $output->writeFieldBegin('numFalses', TType::I64, 2); - $xfer += $output->writeI64($this->numFalses); + if ($this->highValue !== null) { + if (!is_object($this->highValue)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); + $xfer += $this->highValue->write($output); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { @@ -6398,8 +7762,13 @@ class BooleanColumnStatsData { $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); + $xfer += $output->writeFieldEnd(); + } if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } @@ -6410,76 +7779,32 @@ class BooleanColumnStatsData { } -class DoubleColumnStatsData { +class Date { static $_TSPEC; /** - * @var double - */ - public $lowValue = null; - /** - * @var double - */ - public $highValue = null; - /** - * @var int - */ - public $numNulls = null; - /** * @var int */ - public $numDVs = null; - /** - * @var string - */ - public $bitVectors = null; + public $daysSinceEpoch = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'lowValue', - 'type' => TType::DOUBLE, - ), - 2 => array( - 'var' => 'highValue', - 'type' => TType::DOUBLE, - ), - 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'numDVs', + 'var' => 'daysSinceEpoch', 'type' => TType::I64, ), - 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, - ), ); - } - if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; - } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; - } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; - } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; - } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + } + if (is_array($vals)) { + if (isset($vals['daysSinceEpoch'])) { + $this->daysSinceEpoch = $vals['daysSinceEpoch']; } } } public function getName() { - return 'DoubleColumnStatsData'; + return 'Date'; } public function read($input) @@ -6498,36 +7823,8 @@ class DoubleColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->lowValue); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->highValue); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readI64($this->daysSinceEpoch); } else { $xfer += $input->skip($ftype); } @@ -6544,30 +7841,10 @@ class DoubleColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DoubleColumnStatsData'); - if ($this->lowValue !== null) { - $xfer += $output->writeFieldBegin('lowValue', TType::DOUBLE, 1); - $xfer += $output->writeDouble($this->lowValue); - $xfer += $output->writeFieldEnd(); - } - if ($this->highValue !== null) { - $xfer += $output->writeFieldBegin('highValue', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->highValue); - $xfer += $output->writeFieldEnd(); - } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); - $xfer += $output->writeFieldEnd(); - } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); - $xfer += $output->writeFieldEnd(); - } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeStructBegin('Date'); + if ($this->daysSinceEpoch !== null) { + $xfer += $output->writeFieldBegin('daysSinceEpoch', TType::I64, 1); + $xfer += $output->writeI64($this->daysSinceEpoch); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -6577,15 +7854,15 @@ class DoubleColumnStatsData { } -class LongColumnStatsData { +class DateColumnStatsData { static $_TSPEC; /** - * @var int + * @var \metastore\Date */ public $lowValue = null; /** - * @var int + * @var \metastore\Date */ public $highValue = null; /** @@ -6606,11 +7883,13 @@ class LongColumnStatsData { self::$_TSPEC = array( 1 => array( 'var' => 'lowValue', - 'type' => TType::I64, + 'type' => TType::STRUCT, + 'class' => '\metastore\Date', ), 2 => array( 'var' => 'highValue', - 'type' => TType::I64, + 'type' => TType::STRUCT, + 'class' => '\metastore\Date', ), 3 => array( 'var' => 'numNulls', @@ -6646,7 +7925,7 @@ class LongColumnStatsData { } public function getName() { - return 'LongColumnStatsData'; + return 'DateColumnStatsData'; } public function read($input) @@ -6665,15 +7944,17 @@ class LongColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->lowValue); + if ($ftype == TType::STRUCT) { + $this->lowValue = new \metastore\Date(); + $xfer += $this->lowValue->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->highValue); + if ($ftype == TType::STRUCT) { + $this->highValue = new \metastore\Date(); + $xfer += $this->highValue->read($input); } else { $xfer += $input->skip($ftype); } @@ -6711,15 +7992,21 @@ class LongColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('LongColumnStatsData'); + $xfer += $output->writeStructBegin('DateColumnStatsData'); if ($this->lowValue !== null) { - $xfer += $output->writeFieldBegin('lowValue', TType::I64, 1); - $xfer += $output->writeI64($this->lowValue); + if (!is_object($this->lowValue)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); + $xfer += $this->lowValue->write($output); $xfer += $output->writeFieldEnd(); } if ($this->highValue !== null) { - $xfer += $output->writeFieldBegin('highValue', TType::I64, 2); - $xfer += $output->writeI64($this->highValue); + if (!is_object($this->highValue)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); + $xfer += $this->highValue->write($output); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { @@ -6744,76 +8031,105 @@ class LongColumnStatsData { } -class StringColumnStatsData { +class ColumnStatisticsData { static $_TSPEC; /** - * @var int + * @var \metastore\BooleanColumnStatsData */ - public $maxColLen = null; + public $booleanStats = null; /** - * @var double + * @var \metastore\LongColumnStatsData */ - public $avgColLen = null; + public $longStats = null; /** - * @var int + * @var \metastore\DoubleColumnStatsData */ - public $numNulls = null; + public $doubleStats = null; /** - * @var int + * @var \metastore\StringColumnStatsData */ - public $numDVs = null; + public $stringStats = null; /** - * @var string + * @var \metastore\BinaryColumnStatsData */ - public $bitVectors = null; + public $binaryStats = null; + /** + * @var \metastore\DecimalColumnStatsData + */ + public $decimalStats = null; + /** + * @var \metastore\DateColumnStatsData + */ + public $dateStats = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'maxColLen', - 'type' => TType::I64, + 'var' => 'booleanStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\BooleanColumnStatsData', ), 2 => array( - 'var' => 'avgColLen', - 'type' => TType::DOUBLE, + 'var' => 'longStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\LongColumnStatsData', ), 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, + 'var' => 'doubleStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\DoubleColumnStatsData', ), 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, + 'var' => 'stringStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\StringColumnStatsData', ), 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, + 'var' => 'binaryStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\BinaryColumnStatsData', + ), + 6 => array( + 'var' => 'decimalStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\DecimalColumnStatsData', + ), + 7 => array( + 'var' => 'dateStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\DateColumnStatsData', ), ); } if (is_array($vals)) { - if (isset($vals['maxColLen'])) { - $this->maxColLen = $vals['maxColLen']; + if (isset($vals['booleanStats'])) { + $this->booleanStats = $vals['booleanStats']; } - if (isset($vals['avgColLen'])) { - $this->avgColLen = $vals['avgColLen']; + if (isset($vals['longStats'])) { + $this->longStats = $vals['longStats']; } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; + if (isset($vals['doubleStats'])) { + $this->doubleStats = $vals['doubleStats']; } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; + if (isset($vals['stringStats'])) { + $this->stringStats = $vals['stringStats']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['binaryStats'])) { + $this->binaryStats = $vals['binaryStats']; + } + if (isset($vals['decimalStats'])) { + $this->decimalStats = $vals['decimalStats']; + } + if (isset($vals['dateStats'])) { + $this->dateStats = $vals['dateStats']; } } } public function getName() { - return 'StringColumnStatsData'; + return 'ColumnStatisticsData'; } public function read($input) @@ -6832,36 +8148,57 @@ class StringColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->maxColLen); + if ($ftype == TType::STRUCT) { + $this->booleanStats = new \metastore\BooleanColumnStatsData(); + $xfer += $this->booleanStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->avgColLen); + if ($ftype == TType::STRUCT) { + $this->longStats = new \metastore\LongColumnStatsData(); + $xfer += $this->longStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + if ($ftype == TType::STRUCT) { + $this->doubleStats = new \metastore\DoubleColumnStatsData(); + $xfer += $this->doubleStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); + if ($ftype == TType::STRUCT) { + $this->stringStats = new \metastore\StringColumnStatsData(); + $xfer += $this->stringStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + if ($ftype == TType::STRUCT) { + $this->binaryStats = new \metastore\BinaryColumnStatsData(); + $xfer += $this->binaryStats->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRUCT) { + $this->decimalStats = new \metastore\DecimalColumnStatsData(); + $xfer += $this->decimalStats->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRUCT) { + $this->dateStats = new \metastore\DateColumnStatsData(); + $xfer += $this->dateStats->read($input); } else { $xfer += $input->skip($ftype); } @@ -6870,38 +8207,69 @@ class StringColumnStatsData { $xfer += $input->skip($ftype); break; } - $xfer += $input->readFieldEnd(); + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ColumnStatisticsData'); + if ($this->booleanStats !== null) { + if (!is_object($this->booleanStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('booleanStats', TType::STRUCT, 1); + $xfer += $this->booleanStats->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->longStats !== null) { + if (!is_object($this->longStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('longStats', TType::STRUCT, 2); + $xfer += $this->longStats->write($output); + $xfer += $output->writeFieldEnd(); } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('StringColumnStatsData'); - if ($this->maxColLen !== null) { - $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); - $xfer += $output->writeI64($this->maxColLen); + if ($this->doubleStats !== null) { + if (!is_object($this->doubleStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('doubleStats', TType::STRUCT, 3); + $xfer += $this->doubleStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->avgColLen !== null) { - $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->avgColLen); + if ($this->stringStats !== null) { + if (!is_object($this->stringStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('stringStats', TType::STRUCT, 4); + $xfer += $this->stringStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); + if ($this->binaryStats !== null) { + if (!is_object($this->binaryStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('binaryStats', TType::STRUCT, 5); + $xfer += $this->binaryStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); + if ($this->decimalStats !== null) { + if (!is_object($this->decimalStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('decimalStats', TType::STRUCT, 6); + $xfer += $this->decimalStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + if ($this->dateStats !== null) { + if (!is_object($this->dateStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('dateStats', TType::STRUCT, 7); + $xfer += $this->dateStats->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -6911,65 +8279,55 @@ class StringColumnStatsData { } -class BinaryColumnStatsData { +class ColumnStatisticsObj { static $_TSPEC; /** - * @var int - */ - public $maxColLen = null; - /** - * @var double + * @var string */ - public $avgColLen = null; + public $colName = null; /** - * @var int + * @var string */ - public $numNulls = null; + public $colType = null; /** - * @var string + * @var \metastore\ColumnStatisticsData */ - public $bitVectors = null; + public $statsData = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'maxColLen', - 'type' => TType::I64, + 'var' => 'colName', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'avgColLen', - 'type' => TType::DOUBLE, + 'var' => 'colType', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, + 'var' => 'statsData', + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsData', ), ); } if (is_array($vals)) { - if (isset($vals['maxColLen'])) { - $this->maxColLen = $vals['maxColLen']; - } - if (isset($vals['avgColLen'])) { - $this->avgColLen = $vals['avgColLen']; + if (isset($vals['colName'])) { + $this->colName = $vals['colName']; } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; + if (isset($vals['colType'])) { + $this->colType = $vals['colType']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['statsData'])) { + $this->statsData = $vals['statsData']; } } } public function getName() { - return 'BinaryColumnStatsData'; + return 'ColumnStatisticsObj'; } public function read($input) @@ -6988,29 +8346,23 @@ class BinaryColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->maxColLen); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->colName); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->avgColLen); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->colType); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + if ($ftype == TType::STRUCT) { + $this->statsData = new \metastore\ColumnStatisticsData(); + $xfer += $this->statsData->read($input); } else { $xfer += $input->skip($ftype); } @@ -7027,25 +8379,23 @@ class BinaryColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('BinaryColumnStatsData'); - if ($this->maxColLen !== null) { - $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); - $xfer += $output->writeI64($this->maxColLen); - $xfer += $output->writeFieldEnd(); - } - if ($this->avgColLen !== null) { - $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->avgColLen); + $xfer += $output->writeStructBegin('ColumnStatisticsObj'); + if ($this->colName !== null) { + $xfer += $output->writeFieldBegin('colName', TType::STRING, 1); + $xfer += $output->writeString($this->colName); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); + if ($this->colType !== null) { + $xfer += $output->writeFieldBegin('colType', TType::STRING, 2); + $xfer += $output->writeString($this->colType); $xfer += $output->writeFieldEnd(); } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); - $xfer += $output->writeString($this->bitVectors); + if ($this->statsData !== null) { + if (!is_object($this->statsData)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('statsData', TType::STRUCT, 3); + $xfer += $this->statsData->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7055,43 +8405,76 @@ class BinaryColumnStatsData { } -class Decimal { +class ColumnStatisticsDesc { static $_TSPEC; /** + * @var bool + */ + public $isTblLevel = null; + /** * @var string */ - public $unscaled = null; + public $dbName = null; + /** + * @var string + */ + public $tableName = null; + /** + * @var string + */ + public $partName = null; /** * @var int */ - public $scale = null; + public $lastAnalyzed = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'unscaled', + 'var' => 'isTblLevel', + 'type' => TType::BOOL, + ), + 2 => array( + 'var' => 'dbName', 'type' => TType::STRING, ), 3 => array( - 'var' => 'scale', - 'type' => TType::I16, + 'var' => 'tableName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'partName', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'lastAnalyzed', + 'type' => TType::I64, ), ); } if (is_array($vals)) { - if (isset($vals['unscaled'])) { - $this->unscaled = $vals['unscaled']; + if (isset($vals['isTblLevel'])) { + $this->isTblLevel = $vals['isTblLevel']; } - if (isset($vals['scale'])) { - $this->scale = $vals['scale']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['partName'])) { + $this->partName = $vals['partName']; + } + if (isset($vals['lastAnalyzed'])) { + $this->lastAnalyzed = $vals['lastAnalyzed']; } } } public function getName() { - return 'Decimal'; + return 'ColumnStatisticsDesc'; } public function read($input) @@ -7110,15 +8493,36 @@ class Decimal { switch ($fid) { case 1: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->isTblLevel); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->unscaled); + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I16) { - $xfer += $input->readI16($this->scale); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->partName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->lastAnalyzed); } else { $xfer += $input->skip($ftype); } @@ -7135,15 +8539,30 @@ class Decimal { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Decimal'); - if ($this->unscaled !== null) { - $xfer += $output->writeFieldBegin('unscaled', TType::STRING, 1); - $xfer += $output->writeString($this->unscaled); + $xfer += $output->writeStructBegin('ColumnStatisticsDesc'); + if ($this->isTblLevel !== null) { + $xfer += $output->writeFieldBegin('isTblLevel', TType::BOOL, 1); + $xfer += $output->writeBool($this->isTblLevel); + $xfer += $output->writeFieldEnd(); + } + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->scale !== null) { - $xfer += $output->writeFieldBegin('scale', TType::I16, 3); - $xfer += $output->writeI16($this->scale); + if ($this->partName !== null) { + $xfer += $output->writeFieldBegin('partName', TType::STRING, 4); + $xfer += $output->writeString($this->partName); + $xfer += $output->writeFieldEnd(); + } + if ($this->lastAnalyzed !== null) { + $xfer += $output->writeFieldBegin('lastAnalyzed', TType::I64, 5); + $xfer += $output->writeI64($this->lastAnalyzed); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7153,78 +8572,49 @@ class Decimal { } -class DecimalColumnStatsData { +class ColumnStatistics { static $_TSPEC; /** - * @var \metastore\Decimal - */ - public $lowValue = null; - /** - * @var \metastore\Decimal - */ - public $highValue = null; - /** - * @var int - */ - public $numNulls = null; - /** - * @var int + * @var \metastore\ColumnStatisticsDesc */ - public $numDVs = null; + public $statsDesc = null; /** - * @var string + * @var \metastore\ColumnStatisticsObj[] */ - public $bitVectors = null; + public $statsObj = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'lowValue', + 'var' => 'statsDesc', 'type' => TType::STRUCT, - 'class' => '\metastore\Decimal', + 'class' => '\metastore\ColumnStatisticsDesc', ), 2 => array( - 'var' => 'highValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Decimal', - ), - 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, - ), - 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, + 'var' => 'statsObj', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsObj', + ), ), ); } if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; - } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; - } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; - } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; + if (isset($vals['statsDesc'])) { + $this->statsDesc = $vals['statsDesc']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['statsObj'])) { + $this->statsObj = $vals['statsObj']; } } } public function getName() { - return 'DecimalColumnStatsData'; + return 'ColumnStatistics'; } public function read($input) @@ -7244,37 +8634,26 @@ class DecimalColumnStatsData { { case 1: if ($ftype == TType::STRUCT) { - $this->lowValue = new \metastore\Decimal(); - $xfer += $this->lowValue->read($input); + $this->statsDesc = new \metastore\ColumnStatisticsDesc(); + $xfer += $this->statsDesc->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->highValue = new \metastore\Decimal(); - $xfer += $this->highValue->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + if ($ftype == TType::LST) { + $this->statsObj = array(); + $_size239 = 0; + $_etype242 = 0; + $xfer += $input->readListBegin($_etype242, $_size239); + for ($_i243 = 0; $_i243 < $_size239; ++$_i243) + { + $elem244 = null; + $elem244 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem244->read($input); + $this->statsObj []= $elem244; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -7291,36 +8670,30 @@ class DecimalColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DecimalColumnStatsData'); - if ($this->lowValue !== null) { - if (!is_object($this->lowValue)) { + $xfer += $output->writeStructBegin('ColumnStatistics'); + if ($this->statsDesc !== null) { + if (!is_object($this->statsDesc)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); - $xfer += $this->lowValue->write($output); + $xfer += $output->writeFieldBegin('statsDesc', TType::STRUCT, 1); + $xfer += $this->statsDesc->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->highValue !== null) { - if (!is_object($this->highValue)) { + if ($this->statsObj !== null) { + if (!is_array($this->statsObj)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); - $xfer += $this->highValue->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); - $xfer += $output->writeFieldEnd(); - } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); - $xfer += $output->writeFieldEnd(); - } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldBegin('statsObj', TType::LST, 2); + { + $output->writeListBegin(TType::STRUCT, count($this->statsObj)); + { + foreach ($this->statsObj as $iter245) + { + $xfer += $iter245->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7330,32 +8703,48 @@ class DecimalColumnStatsData { } -class Date { +class AggrStats { static $_TSPEC; /** + * @var \metastore\ColumnStatisticsObj[] + */ + public $colStats = null; + /** * @var int */ - public $daysSinceEpoch = null; + public $partsFound = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'daysSinceEpoch', + 'var' => 'colStats', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsObj', + ), + ), + 2 => array( + 'var' => 'partsFound', 'type' => TType::I64, ), ); } if (is_array($vals)) { - if (isset($vals['daysSinceEpoch'])) { - $this->daysSinceEpoch = $vals['daysSinceEpoch']; + if (isset($vals['colStats'])) { + $this->colStats = $vals['colStats']; + } + if (isset($vals['partsFound'])) { + $this->partsFound = $vals['partsFound']; } } } public function getName() { - return 'Date'; + return 'AggrStats'; } public function read($input) @@ -7374,8 +8763,26 @@ class Date { switch ($fid) { case 1: + if ($ftype == TType::LST) { + $this->colStats = array(); + $_size246 = 0; + $_etype249 = 0; + $xfer += $input->readListBegin($_etype249, $_size246); + for ($_i250 = 0; $_i250 < $_size246; ++$_i250) + { + $elem251 = null; + $elem251 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem251->read($input); + $this->colStats []= $elem251; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->daysSinceEpoch); + $xfer += $input->readI64($this->partsFound); } else { $xfer += $input->skip($ftype); } @@ -7392,91 +8799,78 @@ class Date { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Date'); - if ($this->daysSinceEpoch !== null) { - $xfer += $output->writeFieldBegin('daysSinceEpoch', TType::I64, 1); - $xfer += $output->writeI64($this->daysSinceEpoch); + $xfer += $output->writeStructBegin('AggrStats'); + if ($this->colStats !== null) { + if (!is_array($this->colStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('colStats', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->colStats)); + { + foreach ($this->colStats as $iter252) + { + $xfer += $iter252->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partsFound !== null) { + $xfer += $output->writeFieldBegin('partsFound', TType::I64, 2); + $xfer += $output->writeI64($this->partsFound); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; - } - -} - -class DateColumnStatsData { - static $_TSPEC; - - /** - * @var \metastore\Date - */ - public $lowValue = null; - /** - * @var \metastore\Date - */ - public $highValue = null; - /** - * @var int - */ - public $numNulls = null; + } + +} + +class SetPartitionsStatsRequest { + static $_TSPEC; + /** - * @var int + * @var \metastore\ColumnStatistics[] */ - public $numDVs = null; + public $colStats = null; /** - * @var string + * @var bool */ - public $bitVectors = null; + public $needMerge = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'lowValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Date', + 'var' => 'colStats', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatistics', + ), ), 2 => array( - 'var' => 'highValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Date', - ), - 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, - ), - 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, + 'var' => 'needMerge', + 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; - } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; - } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; - } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; + if (isset($vals['colStats'])) { + $this->colStats = $vals['colStats']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['needMerge'])) { + $this->needMerge = $vals['needMerge']; } } } public function getName() { - return 'DateColumnStatsData'; + return 'SetPartitionsStatsRequest'; } public function read($input) @@ -7495,38 +8889,26 @@ class DateColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->lowValue = new \metastore\Date(); - $xfer += $this->lowValue->read($input); + if ($ftype == TType::LST) { + $this->colStats = array(); + $_size253 = 0; + $_etype256 = 0; + $xfer += $input->readListBegin($_etype256, $_size253); + for ($_i257 = 0; $_i257 < $_size253; ++$_i257) + { + $elem258 = null; + $elem258 = new \metastore\ColumnStatistics(); + $xfer += $elem258->read($input); + $this->colStats []= $elem258; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->highValue = new \metastore\Date(); - $xfer += $this->highValue->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->needMerge); } else { $xfer += $input->skip($ftype); } @@ -7543,36 +8925,27 @@ class DateColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DateColumnStatsData'); - if ($this->lowValue !== null) { - if (!is_object($this->lowValue)) { + $xfer += $output->writeStructBegin('SetPartitionsStatsRequest'); + if ($this->colStats !== null) { + if (!is_array($this->colStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); - $xfer += $this->lowValue->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->highValue !== null) { - if (!is_object($this->highValue)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + $xfer += $output->writeFieldBegin('colStats', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->colStats)); + { + foreach ($this->colStats as $iter259) + { + $xfer += $iter259->write($output); + } + } + $output->writeListEnd(); } - $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); - $xfer += $this->highValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); - $xfer += $output->writeFieldEnd(); - } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); - $xfer += $output->writeFieldEnd(); - } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + if ($this->needMerge !== null) { + $xfer += $output->writeFieldBegin('needMerge', TType::BOOL, 2); + $xfer += $output->writeBool($this->needMerge); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7582,105 +8955,56 @@ class DateColumnStatsData { } -class ColumnStatisticsData { +class Schema { static $_TSPEC; /** - * @var \metastore\BooleanColumnStatsData - */ - public $booleanStats = null; - /** - * @var \metastore\LongColumnStatsData - */ - public $longStats = null; - /** - * @var \metastore\DoubleColumnStatsData - */ - public $doubleStats = null; - /** - * @var \metastore\StringColumnStatsData - */ - public $stringStats = null; - /** - * @var \metastore\BinaryColumnStatsData - */ - public $binaryStats = null; - /** - * @var \metastore\DecimalColumnStatsData + * @var \metastore\FieldSchema[] */ - public $decimalStats = null; + public $fieldSchemas = null; /** - * @var \metastore\DateColumnStatsData + * @var array */ - public $dateStats = null; + public $properties = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'booleanStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\BooleanColumnStatsData', + 'var' => 'fieldSchemas', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), ), 2 => array( - 'var' => 'longStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\LongColumnStatsData', - ), - 3 => array( - 'var' => 'doubleStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DoubleColumnStatsData', - ), - 4 => array( - 'var' => 'stringStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\StringColumnStatsData', - ), - 5 => array( - 'var' => 'binaryStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\BinaryColumnStatsData', - ), - 6 => array( - 'var' => 'decimalStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DecimalColumnStatsData', + 'var' => 'properties', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, ), - 7 => array( - 'var' => 'dateStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DateColumnStatsData', + 'val' => array( + 'type' => TType::STRING, + ), ), ); } if (is_array($vals)) { - if (isset($vals['booleanStats'])) { - $this->booleanStats = $vals['booleanStats']; - } - if (isset($vals['longStats'])) { - $this->longStats = $vals['longStats']; - } - if (isset($vals['doubleStats'])) { - $this->doubleStats = $vals['doubleStats']; - } - if (isset($vals['stringStats'])) { - $this->stringStats = $vals['stringStats']; - } - if (isset($vals['binaryStats'])) { - $this->binaryStats = $vals['binaryStats']; - } - if (isset($vals['decimalStats'])) { - $this->decimalStats = $vals['decimalStats']; + if (isset($vals['fieldSchemas'])) { + $this->fieldSchemas = $vals['fieldSchemas']; } - if (isset($vals['dateStats'])) { - $this->dateStats = $vals['dateStats']; + if (isset($vals['properties'])) { + $this->properties = $vals['properties']; } } } public function getName() { - return 'ColumnStatisticsData'; + return 'Schema'; } public function read($input) @@ -7699,57 +9023,39 @@ class ColumnStatisticsData { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->booleanStats = new \metastore\BooleanColumnStatsData(); - $xfer += $this->booleanStats->read($input); + if ($ftype == TType::LST) { + $this->fieldSchemas = array(); + $_size260 = 0; + $_etype263 = 0; + $xfer += $input->readListBegin($_etype263, $_size260); + for ($_i264 = 0; $_i264 < $_size260; ++$_i264) + { + $elem265 = null; + $elem265 = new \metastore\FieldSchema(); + $xfer += $elem265->read($input); + $this->fieldSchemas []= $elem265; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->longStats = new \metastore\LongColumnStatsData(); - $xfer += $this->longStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->doubleStats = new \metastore\DoubleColumnStatsData(); - $xfer += $this->doubleStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->stringStats = new \metastore\StringColumnStatsData(); - $xfer += $this->stringStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRUCT) { - $this->binaryStats = new \metastore\BinaryColumnStatsData(); - $xfer += $this->binaryStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::STRUCT) { - $this->decimalStats = new \metastore\DecimalColumnStatsData(); - $xfer += $this->decimalStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::STRUCT) { - $this->dateStats = new \metastore\DateColumnStatsData(); - $xfer += $this->dateStats->read($input); + if ($ftype == TType::MAP) { + $this->properties = array(); + $_size266 = 0; + $_ktype267 = 0; + $_vtype268 = 0; + $xfer += $input->readMapBegin($_ktype267, $_vtype268, $_size266); + for ($_i270 = 0; $_i270 < $_size266; ++$_i270) + { + $key271 = ''; + $val272 = ''; + $xfer += $input->readString($key271); + $xfer += $input->readString($val272); + $this->properties[$key271] = $val272; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } @@ -7766,61 +9072,40 @@ class ColumnStatisticsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsData'); - if ($this->booleanStats !== null) { - if (!is_object($this->booleanStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('booleanStats', TType::STRUCT, 1); - $xfer += $this->booleanStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->longStats !== null) { - if (!is_object($this->longStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('longStats', TType::STRUCT, 2); - $xfer += $this->longStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->doubleStats !== null) { - if (!is_object($this->doubleStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('doubleStats', TType::STRUCT, 3); - $xfer += $this->doubleStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->stringStats !== null) { - if (!is_object($this->stringStats)) { + $xfer += $output->writeStructBegin('Schema'); + if ($this->fieldSchemas !== null) { + if (!is_array($this->fieldSchemas)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('stringStats', TType::STRUCT, 4); - $xfer += $this->stringStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->binaryStats !== null) { - if (!is_object($this->binaryStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + $xfer += $output->writeFieldBegin('fieldSchemas', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); + { + foreach ($this->fieldSchemas as $iter273) + { + $xfer += $iter273->write($output); + } + } + $output->writeListEnd(); } - $xfer += $output->writeFieldBegin('binaryStats', TType::STRUCT, 5); - $xfer += $this->binaryStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->decimalStats !== null) { - if (!is_object($this->decimalStats)) { + if ($this->properties !== null) { + if (!is_array($this->properties)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('decimalStats', TType::STRUCT, 6); - $xfer += $this->decimalStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->dateStats !== null) { - if (!is_object($this->dateStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + $xfer += $output->writeFieldBegin('properties', TType::MAP, 2); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); + { + foreach ($this->properties as $kiter274 => $viter275) + { + $xfer += $output->writeString($kiter274); + $xfer += $output->writeString($viter275); + } + } + $output->writeMapEnd(); } - $xfer += $output->writeFieldBegin('dateStats', TType::STRUCT, 7); - $xfer += $this->dateStats->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7830,55 +9115,40 @@ class ColumnStatisticsData { } -class ColumnStatisticsObj { +class EnvironmentContext { static $_TSPEC; /** - * @var string - */ - public $colName = null; - /** - * @var string - */ - public $colType = null; - /** - * @var \metastore\ColumnStatisticsData + * @var array */ - public $statsData = null; + public $properties = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'colName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'colType', - 'type' => TType::STRING, + 'var' => 'properties', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, ), - 3 => array( - 'var' => 'statsData', - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsData', + 'val' => array( + 'type' => TType::STRING, + ), ), ); } if (is_array($vals)) { - if (isset($vals['colName'])) { - $this->colName = $vals['colName']; - } - if (isset($vals['colType'])) { - $this->colType = $vals['colType']; - } - if (isset($vals['statsData'])) { - $this->statsData = $vals['statsData']; + if (isset($vals['properties'])) { + $this->properties = $vals['properties']; } } } public function getName() { - return 'ColumnStatisticsObj'; + return 'EnvironmentContext'; } public function read($input) @@ -7897,23 +9167,21 @@ class ColumnStatisticsObj { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->colName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->colType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->statsData = new \metastore\ColumnStatisticsData(); - $xfer += $this->statsData->read($input); + if ($ftype == TType::MAP) { + $this->properties = array(); + $_size276 = 0; + $_ktype277 = 0; + $_vtype278 = 0; + $xfer += $input->readMapBegin($_ktype277, $_vtype278, $_size276); + for ($_i280 = 0; $_i280 < $_size276; ++$_i280) + { + $key281 = ''; + $val282 = ''; + $xfer += $input->readString($key281); + $xfer += $input->readString($val282); + $this->properties[$key281] = $val282; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } @@ -7930,23 +9198,23 @@ class ColumnStatisticsObj { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsObj'); - if ($this->colName !== null) { - $xfer += $output->writeFieldBegin('colName', TType::STRING, 1); - $xfer += $output->writeString($this->colName); - $xfer += $output->writeFieldEnd(); - } - if ($this->colType !== null) { - $xfer += $output->writeFieldBegin('colType', TType::STRING, 2); - $xfer += $output->writeString($this->colType); - $xfer += $output->writeFieldEnd(); - } - if ($this->statsData !== null) { - if (!is_object($this->statsData)) { + $xfer += $output->writeStructBegin('EnvironmentContext'); + if ($this->properties !== null) { + if (!is_array($this->properties)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('statsData', TType::STRUCT, 3); - $xfer += $this->statsData->write($output); + $xfer += $output->writeFieldBegin('properties', TType::MAP, 1); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); + { + foreach ($this->properties as $kiter283 => $viter284) + { + $xfer += $output->writeString($kiter283); + $xfer += $output->writeString($viter284); + } + } + $output->writeMapEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7954,78 +9222,45 @@ class ColumnStatisticsObj { return $xfer; } -} - -class ColumnStatisticsDesc { - static $_TSPEC; - - /** - * @var bool - */ - public $isTblLevel = null; - /** - * @var string - */ - public $dbName = null; +} + +class PrimaryKeysRequest { + static $_TSPEC; + /** * @var string */ - public $tableName = null; + public $db_name = null; /** * @var string */ - public $partName = null; - /** - * @var int - */ - public $lastAnalyzed = null; + public $tbl_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'isTblLevel', - 'type' => TType::BOOL, - ), - 2 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'tableName', + 'var' => 'db_name', 'type' => TType::STRING, ), - 4 => array( - 'var' => 'partName', + 2 => array( + 'var' => 'tbl_name', 'type' => TType::STRING, ), - 5 => array( - 'var' => 'lastAnalyzed', - 'type' => TType::I64, - ), ); } if (is_array($vals)) { - if (isset($vals['isTblLevel'])) { - $this->isTblLevel = $vals['isTblLevel']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['partName'])) { - $this->partName = $vals['partName']; + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; } - if (isset($vals['lastAnalyzed'])) { - $this->lastAnalyzed = $vals['lastAnalyzed']; + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; } } } public function getName() { - return 'ColumnStatisticsDesc'; + return 'PrimaryKeysRequest'; } public function read($input) @@ -8044,36 +9279,15 @@ class ColumnStatisticsDesc { switch ($fid) { case 1: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->isTblLevel); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + $xfer += $input->readString($this->db_name); } else { $xfer += $input->skip($ftype); } break; - case 4: + case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->partName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->lastAnalyzed); + $xfer += $input->readString($this->tbl_name); } else { $xfer += $input->skip($ftype); } @@ -8090,30 +9304,15 @@ class ColumnStatisticsDesc { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsDesc'); - if ($this->isTblLevel !== null) { - $xfer += $output->writeFieldBegin('isTblLevel', TType::BOOL, 1); - $xfer += $output->writeBool($this->isTblLevel); - $xfer += $output->writeFieldEnd(); - } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); - $xfer += $output->writeString($this->tableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->partName !== null) { - $xfer += $output->writeFieldBegin('partName', TType::STRING, 4); - $xfer += $output->writeString($this->partName); + $xfer += $output->writeStructBegin('PrimaryKeysRequest'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); $xfer += $output->writeFieldEnd(); } - if ($this->lastAnalyzed !== null) { - $xfer += $output->writeFieldBegin('lastAnalyzed', TType::I64, 5); - $xfer += $output->writeI64($this->lastAnalyzed); + 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(); @@ -8123,49 +9322,37 @@ class ColumnStatisticsDesc { } -class ColumnStatistics { +class PrimaryKeysResponse { static $_TSPEC; /** - * @var \metastore\ColumnStatisticsDesc - */ - public $statsDesc = null; - /** - * @var \metastore\ColumnStatisticsObj[] + * @var \metastore\SQLPrimaryKey[] */ - public $statsObj = null; + public $primaryKeys = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'statsDesc', - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsDesc', - ), - 2 => array( - 'var' => 'statsObj', + 'var' => 'primaryKeys', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsObj', + 'class' => '\metastore\SQLPrimaryKey', ), ), ); } if (is_array($vals)) { - if (isset($vals['statsDesc'])) { - $this->statsDesc = $vals['statsDesc']; - } - if (isset($vals['statsObj'])) { - $this->statsObj = $vals['statsObj']; + if (isset($vals['primaryKeys'])) { + $this->primaryKeys = $vals['primaryKeys']; } } } public function getName() { - return 'ColumnStatistics'; + return 'PrimaryKeysResponse'; } public function read($input) @@ -8184,25 +9371,17 @@ class ColumnStatistics { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->statsDesc = new \metastore\ColumnStatisticsDesc(); - $xfer += $this->statsDesc->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: if ($ftype == TType::LST) { - $this->statsObj = array(); - $_size239 = 0; - $_etype242 = 0; - $xfer += $input->readListBegin($_etype242, $_size239); - for ($_i243 = 0; $_i243 < $_size239; ++$_i243) + $this->primaryKeys = array(); + $_size285 = 0; + $_etype288 = 0; + $xfer += $input->readListBegin($_etype288, $_size285); + for ($_i289 = 0; $_i289 < $_size285; ++$_i289) { - $elem244 = null; - $elem244 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem244->read($input); - $this->statsObj []= $elem244; + $elem290 = null; + $elem290 = new \metastore\SQLPrimaryKey(); + $xfer += $elem290->read($input); + $this->primaryKeys []= $elem290; } $xfer += $input->readListEnd(); } else { @@ -8221,26 +9400,18 @@ class ColumnStatistics { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatistics'); - if ($this->statsDesc !== null) { - if (!is_object($this->statsDesc)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('statsDesc', TType::STRUCT, 1); - $xfer += $this->statsDesc->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->statsObj !== null) { - if (!is_array($this->statsObj)) { + $xfer += $output->writeStructBegin('PrimaryKeysResponse'); + if ($this->primaryKeys !== null) { + if (!is_array($this->primaryKeys)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('statsObj', TType::LST, 2); + $xfer += $output->writeFieldBegin('primaryKeys', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->statsObj)); + $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->statsObj as $iter245) + foreach ($this->primaryKeys as $iter291) { - $xfer += $iter245->write($output); + $xfer += $iter291->write($output); } } $output->writeListEnd(); @@ -8254,48 +9425,65 @@ class ColumnStatistics { } -class AggrStats { +class ForeignKeysRequest { static $_TSPEC; /** - * @var \metastore\ColumnStatisticsObj[] + * @var string */ - public $colStats = null; + public $parent_db_name = null; /** - * @var int + * @var string */ - public $partsFound = null; + public $parent_tbl_name = null; + /** + * @var string + */ + public $foreign_db_name = null; + /** + * @var string + */ + public $foreign_tbl_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'colStats', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsObj', - ), + 'var' => 'parent_db_name', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'partsFound', - 'type' => TType::I64, + 'var' => 'parent_tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'foreign_db_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'foreign_tbl_name', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['colStats'])) { - $this->colStats = $vals['colStats']; + if (isset($vals['parent_db_name'])) { + $this->parent_db_name = $vals['parent_db_name']; } - if (isset($vals['partsFound'])) { - $this->partsFound = $vals['partsFound']; + if (isset($vals['parent_tbl_name'])) { + $this->parent_tbl_name = $vals['parent_tbl_name']; + } + if (isset($vals['foreign_db_name'])) { + $this->foreign_db_name = $vals['foreign_db_name']; + } + if (isset($vals['foreign_tbl_name'])) { + $this->foreign_tbl_name = $vals['foreign_tbl_name']; } } } public function getName() { - return 'AggrStats'; + return 'ForeignKeysRequest'; } public function read($input) @@ -8308,32 +9496,35 @@ class AggrStats { while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::LST) { - $this->colStats = array(); - $_size246 = 0; - $_etype249 = 0; - $xfer += $input->readListBegin($_etype249, $_size246); - for ($_i250 = 0; $_i250 < $_size246; ++$_i250) - { - $elem251 = null; - $elem251 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem251->read($input); - $this->colStats []= $elem251; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->parent_db_name); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->partsFound); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->parent_tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->foreign_db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->foreign_tbl_name); } else { $xfer += $input->skip($ftype); } @@ -8350,27 +9541,25 @@ class AggrStats { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('AggrStats'); - if ($this->colStats !== null) { - if (!is_array($this->colStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('colStats', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->colStats)); - { - foreach ($this->colStats as $iter252) - { - $xfer += $iter252->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('ForeignKeysRequest'); + if ($this->parent_db_name !== null) { + $xfer += $output->writeFieldBegin('parent_db_name', TType::STRING, 1); + $xfer += $output->writeString($this->parent_db_name); $xfer += $output->writeFieldEnd(); } - if ($this->partsFound !== null) { - $xfer += $output->writeFieldBegin('partsFound', TType::I64, 2); - $xfer += $output->writeI64($this->partsFound); + if ($this->parent_tbl_name !== null) { + $xfer += $output->writeFieldBegin('parent_tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->parent_tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->foreign_db_name !== null) { + $xfer += $output->writeFieldBegin('foreign_db_name', TType::STRING, 3); + $xfer += $output->writeString($this->foreign_db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->foreign_tbl_name !== null) { + $xfer += $output->writeFieldBegin('foreign_tbl_name', TType::STRING, 4); + $xfer += $output->writeString($this->foreign_tbl_name); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -8380,48 +9569,37 @@ class AggrStats { } -class SetPartitionsStatsRequest { +class ForeignKeysResponse { static $_TSPEC; /** - * @var \metastore\ColumnStatistics[] - */ - public $colStats = null; - /** - * @var bool + * @var \metastore\SQLForeignKey[] */ - public $needMerge = null; + public $foreignKeys = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'colStats', + 'var' => 'foreignKeys', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatistics', + 'class' => '\metastore\SQLForeignKey', ), ), - 2 => array( - 'var' => 'needMerge', - 'type' => TType::BOOL, - ), ); } if (is_array($vals)) { - if (isset($vals['colStats'])) { - $this->colStats = $vals['colStats']; - } - if (isset($vals['needMerge'])) { - $this->needMerge = $vals['needMerge']; + if (isset($vals['foreignKeys'])) { + $this->foreignKeys = $vals['foreignKeys']; } } } public function getName() { - return 'SetPartitionsStatsRequest'; + return 'ForeignKeysResponse'; } public function read($input) @@ -8441,29 +9619,22 @@ class SetPartitionsStatsRequest { { case 1: if ($ftype == TType::LST) { - $this->colStats = array(); - $_size253 = 0; - $_etype256 = 0; - $xfer += $input->readListBegin($_etype256, $_size253); - for ($_i257 = 0; $_i257 < $_size253; ++$_i257) + $this->foreignKeys = array(); + $_size292 = 0; + $_etype295 = 0; + $xfer += $input->readListBegin($_etype295, $_size292); + for ($_i296 = 0; $_i296 < $_size292; ++$_i296) { - $elem258 = null; - $elem258 = new \metastore\ColumnStatistics(); - $xfer += $elem258->read($input); - $this->colStats []= $elem258; + $elem297 = null; + $elem297 = new \metastore\SQLForeignKey(); + $xfer += $elem297->read($input); + $this->foreignKeys []= $elem297; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->needMerge); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -8476,29 +9647,24 @@ class SetPartitionsStatsRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('SetPartitionsStatsRequest'); - if ($this->colStats !== null) { - if (!is_array($this->colStats)) { + $xfer += $output->writeStructBegin('ForeignKeysResponse'); + if ($this->foreignKeys !== null) { + if (!is_array($this->foreignKeys)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('colStats', TType::LST, 1); + $xfer += $output->writeFieldBegin('foreignKeys', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->colStats)); + $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->colStats as $iter259) + foreach ($this->foreignKeys as $iter298) { - $xfer += $iter259->write($output); + $xfer += $iter298->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->needMerge !== null) { - $xfer += $output->writeFieldBegin('needMerge', TType::BOOL, 2); - $xfer += $output->writeBool($this->needMerge); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -8506,56 +9672,43 @@ class SetPartitionsStatsRequest { } -class Schema { +class UniqueConstraintsRequest { static $_TSPEC; /** - * @var \metastore\FieldSchema[] + * @var string */ - public $fieldSchemas = null; + public $db_name = null; /** - * @var array + * @var string */ - public $properties = null; + public $tbl_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'fieldSchemas', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\FieldSchema', - ), + 'var' => 'db_name', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'properties', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'var' => 'tbl_name', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['fieldSchemas'])) { - $this->fieldSchemas = $vals['fieldSchemas']; + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; } - if (isset($vals['properties'])) { - $this->properties = $vals['properties']; + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; } } } public function getName() { - return 'Schema'; + return 'UniqueConstraintsRequest'; } public function read($input) @@ -8574,39 +9727,15 @@ class Schema { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->fieldSchemas = array(); - $_size260 = 0; - $_etype263 = 0; - $xfer += $input->readListBegin($_etype263, $_size260); - for ($_i264 = 0; $_i264 < $_size260; ++$_i264) - { - $elem265 = null; - $elem265 = new \metastore\FieldSchema(); - $xfer += $elem265->read($input); - $this->fieldSchemas []= $elem265; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::MAP) { - $this->properties = array(); - $_size266 = 0; - $_ktype267 = 0; - $_vtype268 = 0; - $xfer += $input->readMapBegin($_ktype267, $_vtype268, $_size266); - for ($_i270 = 0; $_i270 < $_size266; ++$_i270) - { - $key271 = ''; - $val272 = ''; - $xfer += $input->readString($key271); - $xfer += $input->readString($val272); - $this->properties[$key271] = $val272; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); } else { $xfer += $input->skip($ftype); } @@ -8623,40 +9752,15 @@ class Schema { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Schema'); - if ($this->fieldSchemas !== null) { - if (!is_array($this->fieldSchemas)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('fieldSchemas', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); - { - foreach ($this->fieldSchemas as $iter273) - { - $xfer += $iter273->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('UniqueConstraintsRequest'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); $xfer += $output->writeFieldEnd(); } - if ($this->properties !== null) { - if (!is_array($this->properties)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('properties', TType::MAP, 2); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); - { - foreach ($this->properties as $kiter274 => $viter275) - { - $xfer += $output->writeString($kiter274); - $xfer += $output->writeString($viter275); - } - } - $output->writeMapEnd(); - } + 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(); @@ -8666,40 +9770,37 @@ class Schema { } -class EnvironmentContext { +class UniqueConstraintsResponse { static $_TSPEC; /** - * @var array + * @var \metastore\SQLUniqueConstraint[] */ - public $properties = null; + public $uniqueConstraints = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'properties', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, + self::$_TSPEC = array( + 1 => array( + 'var' => 'uniqueConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLUniqueConstraint', ), ), ); } if (is_array($vals)) { - if (isset($vals['properties'])) { - $this->properties = $vals['properties']; + if (isset($vals['uniqueConstraints'])) { + $this->uniqueConstraints = $vals['uniqueConstraints']; } } } public function getName() { - return 'EnvironmentContext'; + return 'UniqueConstraintsResponse'; } public function read($input) @@ -8718,21 +9819,19 @@ class EnvironmentContext { switch ($fid) { case 1: - if ($ftype == TType::MAP) { - $this->properties = array(); - $_size276 = 0; - $_ktype277 = 0; - $_vtype278 = 0; - $xfer += $input->readMapBegin($_ktype277, $_vtype278, $_size276); - for ($_i280 = 0; $_i280 < $_size276; ++$_i280) + if ($ftype == TType::LST) { + $this->uniqueConstraints = array(); + $_size299 = 0; + $_etype302 = 0; + $xfer += $input->readListBegin($_etype302, $_size299); + for ($_i303 = 0; $_i303 < $_size299; ++$_i303) { - $key281 = ''; - $val282 = ''; - $xfer += $input->readString($key281); - $xfer += $input->readString($val282); - $this->properties[$key281] = $val282; + $elem304 = null; + $elem304 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem304->read($input); + $this->uniqueConstraints []= $elem304; } - $xfer += $input->readMapEnd(); + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -8749,22 +9848,21 @@ class EnvironmentContext { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('EnvironmentContext'); - if ($this->properties !== null) { - if (!is_array($this->properties)) { + $xfer += $output->writeStructBegin('UniqueConstraintsResponse'); + if ($this->uniqueConstraints !== null) { + if (!is_array($this->uniqueConstraints)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('properties', TType::MAP, 1); + $xfer += $output->writeFieldBegin('uniqueConstraints', TType::LST, 1); { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); + $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->properties as $kiter283 => $viter284) + foreach ($this->uniqueConstraints as $iter305) { - $xfer += $output->writeString($kiter283); - $xfer += $output->writeString($viter284); + $xfer += $iter305->write($output); } } - $output->writeMapEnd(); + $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } @@ -8775,7 +9873,7 @@ class EnvironmentContext { } -class PrimaryKeysRequest { +class NotNullConstraintsRequest { static $_TSPEC; /** @@ -8811,7 +9909,7 @@ class PrimaryKeysRequest { } public function getName() { - return 'PrimaryKeysRequest'; + return 'NotNullConstraintsRequest'; } public function read($input) @@ -8855,7 +9953,7 @@ class PrimaryKeysRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PrimaryKeysRequest'); + $xfer += $output->writeStructBegin('NotNullConstraintsRequest'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -8873,37 +9971,37 @@ class PrimaryKeysRequest { } -class PrimaryKeysResponse { +class NotNullConstraintsResponse { static $_TSPEC; /** - * @var \metastore\SQLPrimaryKey[] + * @var \metastore\SQLNotNullConstraint[] */ - public $primaryKeys = null; + public $notNullConstraints = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'primaryKeys', + 'var' => 'notNullConstraints', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\SQLPrimaryKey', + 'class' => '\metastore\SQLNotNullConstraint', ), ), ); } if (is_array($vals)) { - if (isset($vals['primaryKeys'])) { - $this->primaryKeys = $vals['primaryKeys']; + if (isset($vals['notNullConstraints'])) { + $this->notNullConstraints = $vals['notNullConstraints']; } } } public function getName() { - return 'PrimaryKeysResponse'; + return 'NotNullConstraintsResponse'; } public function read($input) @@ -8923,16 +10021,16 @@ class PrimaryKeysResponse { { case 1: if ($ftype == TType::LST) { - $this->primaryKeys = array(); - $_size285 = 0; - $_etype288 = 0; - $xfer += $input->readListBegin($_etype288, $_size285); - for ($_i289 = 0; $_i289 < $_size285; ++$_i289) + $this->notNullConstraints = array(); + $_size306 = 0; + $_etype309 = 0; + $xfer += $input->readListBegin($_etype309, $_size306); + for ($_i310 = 0; $_i310 < $_size306; ++$_i310) { - $elem290 = null; - $elem290 = new \metastore\SQLPrimaryKey(); - $xfer += $elem290->read($input); - $this->primaryKeys []= $elem290; + $elem311 = null; + $elem311 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem311->read($input); + $this->notNullConstraints []= $elem311; } $xfer += $input->readListEnd(); } else { @@ -8951,18 +10049,18 @@ class PrimaryKeysResponse { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PrimaryKeysResponse'); - if ($this->primaryKeys !== null) { - if (!is_array($this->primaryKeys)) { + $xfer += $output->writeStructBegin('NotNullConstraintsResponse'); + if ($this->notNullConstraints !== null) { + if (!is_array($this->notNullConstraints)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('primaryKeys', TType::LST, 1); + $xfer += $output->writeFieldBegin('notNullConstraints', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); + $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->primaryKeys as $iter291) + foreach ($this->notNullConstraints as $iter312) { - $xfer += $iter291->write($output); + $xfer += $iter312->write($output); } } $output->writeListEnd(); @@ -8976,65 +10074,54 @@ class PrimaryKeysResponse { } -class ForeignKeysRequest { +class DropConstraintRequest { static $_TSPEC; /** * @var string */ - public $parent_db_name = null; - /** - * @var string - */ - public $parent_tbl_name = null; + public $dbname = null; /** * @var string */ - public $foreign_db_name = null; + public $tablename = null; /** * @var string */ - public $foreign_tbl_name = null; + public $constraintname = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'parent_db_name', + 'var' => 'dbname', 'type' => TType::STRING, ), 2 => array( - 'var' => 'parent_tbl_name', + 'var' => 'tablename', 'type' => TType::STRING, ), 3 => array( - 'var' => 'foreign_db_name', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'foreign_tbl_name', + 'var' => 'constraintname', 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['parent_db_name'])) { - $this->parent_db_name = $vals['parent_db_name']; - } - if (isset($vals['parent_tbl_name'])) { - $this->parent_tbl_name = $vals['parent_tbl_name']; + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; } - if (isset($vals['foreign_db_name'])) { - $this->foreign_db_name = $vals['foreign_db_name']; + if (isset($vals['tablename'])) { + $this->tablename = $vals['tablename']; } - if (isset($vals['foreign_tbl_name'])) { - $this->foreign_tbl_name = $vals['foreign_tbl_name']; + if (isset($vals['constraintname'])) { + $this->constraintname = $vals['constraintname']; } } } public function getName() { - return 'ForeignKeysRequest'; + return 'DropConstraintRequest'; } public function read($input) @@ -9054,28 +10141,21 @@ class ForeignKeysRequest { { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->parent_db_name); + $xfer += $input->readString($this->dbname); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->parent_tbl_name); + $xfer += $input->readString($this->tablename); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->foreign_db_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->foreign_tbl_name); + $xfer += $input->readString($this->constraintname); } else { $xfer += $input->skip($ftype); } @@ -9092,25 +10172,20 @@ class ForeignKeysRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ForeignKeysRequest'); - if ($this->parent_db_name !== null) { - $xfer += $output->writeFieldBegin('parent_db_name', TType::STRING, 1); - $xfer += $output->writeString($this->parent_db_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->parent_tbl_name !== null) { - $xfer += $output->writeFieldBegin('parent_tbl_name', TType::STRING, 2); - $xfer += $output->writeString($this->parent_tbl_name); + $xfer += $output->writeStructBegin('DropConstraintRequest'); + if ($this->dbname !== null) { + $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); + $xfer += $output->writeString($this->dbname); $xfer += $output->writeFieldEnd(); } - if ($this->foreign_db_name !== null) { - $xfer += $output->writeFieldBegin('foreign_db_name', TType::STRING, 3); - $xfer += $output->writeString($this->foreign_db_name); + if ($this->tablename !== null) { + $xfer += $output->writeFieldBegin('tablename', TType::STRING, 2); + $xfer += $output->writeString($this->tablename); $xfer += $output->writeFieldEnd(); } - if ($this->foreign_tbl_name !== null) { - $xfer += $output->writeFieldBegin('foreign_tbl_name', TType::STRING, 4); - $xfer += $output->writeString($this->foreign_tbl_name); + if ($this->constraintname !== null) { + $xfer += $output->writeFieldBegin('constraintname', TType::STRING, 3); + $xfer += $output->writeString($this->constraintname); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -9120,37 +10195,37 @@ class ForeignKeysRequest { } -class ForeignKeysResponse { +class AddPrimaryKeyRequest { static $_TSPEC; /** - * @var \metastore\SQLForeignKey[] + * @var \metastore\SQLPrimaryKey[] */ - public $foreignKeys = null; + public $primaryKeyCols = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'foreignKeys', + 'var' => 'primaryKeyCols', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\SQLForeignKey', + 'class' => '\metastore\SQLPrimaryKey', ), ), ); } if (is_array($vals)) { - if (isset($vals['foreignKeys'])) { - $this->foreignKeys = $vals['foreignKeys']; + if (isset($vals['primaryKeyCols'])) { + $this->primaryKeyCols = $vals['primaryKeyCols']; } } } public function getName() { - return 'ForeignKeysResponse'; + return 'AddPrimaryKeyRequest'; } public function read($input) @@ -9170,16 +10245,16 @@ class ForeignKeysResponse { { case 1: if ($ftype == TType::LST) { - $this->foreignKeys = array(); - $_size292 = 0; - $_etype295 = 0; - $xfer += $input->readListBegin($_etype295, $_size292); - for ($_i296 = 0; $_i296 < $_size292; ++$_i296) + $this->primaryKeyCols = array(); + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) { - $elem297 = null; - $elem297 = new \metastore\SQLForeignKey(); - $xfer += $elem297->read($input); - $this->foreignKeys []= $elem297; + $elem318 = null; + $elem318 = new \metastore\SQLPrimaryKey(); + $xfer += $elem318->read($input); + $this->primaryKeyCols []= $elem318; } $xfer += $input->readListEnd(); } else { @@ -9198,18 +10273,18 @@ class ForeignKeysResponse { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ForeignKeysResponse'); - if ($this->foreignKeys !== null) { - if (!is_array($this->foreignKeys)) { + $xfer += $output->writeStructBegin('AddPrimaryKeyRequest'); + if ($this->primaryKeyCols !== null) { + if (!is_array($this->primaryKeyCols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('foreignKeys', TType::LST, 1); + $xfer += $output->writeFieldBegin('primaryKeyCols', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); + $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); { - foreach ($this->foreignKeys as $iter298) + foreach ($this->primaryKeyCols as $iter319) { - $xfer += $iter298->write($output); + $xfer += $iter319->write($output); } } $output->writeListEnd(); @@ -9223,54 +10298,37 @@ class ForeignKeysResponse { } -class DropConstraintRequest { +class AddForeignKeyRequest { static $_TSPEC; /** - * @var string - */ - public $dbname = null; - /** - * @var string - */ - public $tablename = null; - /** - * @var string + * @var \metastore\SQLForeignKey[] */ - public $constraintname = null; + public $foreignKeyCols = 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, + 'var' => 'foreignKeyCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLForeignKey', + ), ), ); } 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']; + if (isset($vals['foreignKeyCols'])) { + $this->foreignKeyCols = $vals['foreignKeyCols']; } } } public function getName() { - return 'DropConstraintRequest'; + return 'AddForeignKeyRequest'; } public function read($input) @@ -9289,22 +10347,19 @@ class DropConstraintRequest { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbname); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tablename); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->constraintname); + if ($ftype == TType::LST) { + $this->foreignKeyCols = array(); + $_size320 = 0; + $_etype323 = 0; + $xfer += $input->readListBegin($_etype323, $_size320); + for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + { + $elem325 = null; + $elem325 = new \metastore\SQLForeignKey(); + $xfer += $elem325->read($input); + $this->foreignKeyCols []= $elem325; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -9321,20 +10376,22 @@ class DropConstraintRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DropConstraintRequest'); - if ($this->dbname !== null) { - $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); - $xfer += $output->writeString($this->dbname); - $xfer += $output->writeFieldEnd(); - } - if ($this->tablename !== null) { - $xfer += $output->writeFieldBegin('tablename', TType::STRING, 2); - $xfer += $output->writeString($this->tablename); - $xfer += $output->writeFieldEnd(); - } - if ($this->constraintname !== null) { - $xfer += $output->writeFieldBegin('constraintname', TType::STRING, 3); - $xfer += $output->writeString($this->constraintname); + $xfer += $output->writeStructBegin('AddForeignKeyRequest'); + if ($this->foreignKeyCols !== null) { + if (!is_array($this->foreignKeyCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('foreignKeyCols', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); + { + foreach ($this->foreignKeyCols as $iter326) + { + $xfer += $iter326->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -9344,37 +10401,37 @@ class DropConstraintRequest { } -class AddPrimaryKeyRequest { +class AddUniqueConstraintRequest { static $_TSPEC; /** - * @var \metastore\SQLPrimaryKey[] + * @var \metastore\SQLUniqueConstraint[] */ - public $primaryKeyCols = null; + public $uniqueConstraintCols = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'primaryKeyCols', + 'var' => 'uniqueConstraintCols', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\SQLPrimaryKey', + 'class' => '\metastore\SQLUniqueConstraint', ), ), ); } if (is_array($vals)) { - if (isset($vals['primaryKeyCols'])) { - $this->primaryKeyCols = $vals['primaryKeyCols']; + if (isset($vals['uniqueConstraintCols'])) { + $this->uniqueConstraintCols = $vals['uniqueConstraintCols']; } } } public function getName() { - return 'AddPrimaryKeyRequest'; + return 'AddUniqueConstraintRequest'; } public function read($input) @@ -9394,16 +10451,16 @@ class AddPrimaryKeyRequest { { case 1: if ($ftype == TType::LST) { - $this->primaryKeyCols = array(); - $_size299 = 0; - $_etype302 = 0; - $xfer += $input->readListBegin($_etype302, $_size299); - for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + $this->uniqueConstraintCols = array(); + $_size327 = 0; + $_etype330 = 0; + $xfer += $input->readListBegin($_etype330, $_size327); + for ($_i331 = 0; $_i331 < $_size327; ++$_i331) { - $elem304 = null; - $elem304 = new \metastore\SQLPrimaryKey(); - $xfer += $elem304->read($input); - $this->primaryKeyCols []= $elem304; + $elem332 = null; + $elem332 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem332->read($input); + $this->uniqueConstraintCols []= $elem332; } $xfer += $input->readListEnd(); } else { @@ -9422,18 +10479,18 @@ class AddPrimaryKeyRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('AddPrimaryKeyRequest'); - if ($this->primaryKeyCols !== null) { - if (!is_array($this->primaryKeyCols)) { + $xfer += $output->writeStructBegin('AddUniqueConstraintRequest'); + if ($this->uniqueConstraintCols !== null) { + if (!is_array($this->uniqueConstraintCols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('primaryKeyCols', TType::LST, 1); + $xfer += $output->writeFieldBegin('uniqueConstraintCols', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); + $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraintCols)); { - foreach ($this->primaryKeyCols as $iter305) + foreach ($this->uniqueConstraintCols as $iter333) { - $xfer += $iter305->write($output); + $xfer += $iter333->write($output); } } $output->writeListEnd(); @@ -9447,37 +10504,37 @@ class AddPrimaryKeyRequest { } -class AddForeignKeyRequest { +class AddNotNullConstraintRequest { static $_TSPEC; /** - * @var \metastore\SQLForeignKey[] + * @var \metastore\SQLNotNullConstraint[] */ - public $foreignKeyCols = null; + public $notNullConstraintCols = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'foreignKeyCols', + 'var' => 'notNullConstraintCols', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\SQLForeignKey', + 'class' => '\metastore\SQLNotNullConstraint', ), ), ); } if (is_array($vals)) { - if (isset($vals['foreignKeyCols'])) { - $this->foreignKeyCols = $vals['foreignKeyCols']; + if (isset($vals['notNullConstraintCols'])) { + $this->notNullConstraintCols = $vals['notNullConstraintCols']; } } } public function getName() { - return 'AddForeignKeyRequest'; + return 'AddNotNullConstraintRequest'; } public function read($input) @@ -9497,16 +10554,16 @@ class AddForeignKeyRequest { { case 1: if ($ftype == TType::LST) { - $this->foreignKeyCols = array(); - $_size306 = 0; - $_etype309 = 0; - $xfer += $input->readListBegin($_etype309, $_size306); - for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + $this->notNullConstraintCols = array(); + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readListBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem311 = null; - $elem311 = new \metastore\SQLForeignKey(); - $xfer += $elem311->read($input); - $this->foreignKeyCols []= $elem311; + $elem339 = null; + $elem339 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem339->read($input); + $this->notNullConstraintCols []= $elem339; } $xfer += $input->readListEnd(); } else { @@ -9525,18 +10582,18 @@ class AddForeignKeyRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('AddForeignKeyRequest'); - if ($this->foreignKeyCols !== null) { - if (!is_array($this->foreignKeyCols)) { + $xfer += $output->writeStructBegin('AddNotNullConstraintRequest'); + if ($this->notNullConstraintCols !== null) { + if (!is_array($this->notNullConstraintCols)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('foreignKeyCols', TType::LST, 1); + $xfer += $output->writeFieldBegin('notNullConstraintCols', TType::LST, 1); { - $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); + $output->writeListBegin(TType::STRUCT, count($this->notNullConstraintCols)); { - foreach ($this->foreignKeyCols as $iter312) + foreach ($this->notNullConstraintCols as $iter340) { - $xfer += $iter312->write($output); + $xfer += $iter340->write($output); } } $output->writeListEnd(); @@ -9612,15 +10669,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size313 = 0; - $_etype316 = 0; - $xfer += $input->readListBegin($_etype316, $_size313); - for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + $_size341 = 0; + $_etype344 = 0; + $xfer += $input->readListBegin($_etype344, $_size341); + for ($_i345 = 0; $_i345 < $_size341; ++$_i345) { - $elem318 = null; - $elem318 = new \metastore\Partition(); - $xfer += $elem318->read($input); - $this->partitions []= $elem318; + $elem346 = null; + $elem346 = new \metastore\Partition(); + $xfer += $elem346->read($input); + $this->partitions []= $elem346; } $xfer += $input->readListEnd(); } else { @@ -9655,9 +10712,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter319) + foreach ($this->partitions as $iter347) { - $xfer += $iter319->write($output); + $xfer += $iter347->write($output); } } $output->writeListEnd(); @@ -9894,15 +10951,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size320 = 0; - $_etype323 = 0; - $xfer += $input->readListBegin($_etype323, $_size320); - for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + $_size348 = 0; + $_etype351 = 0; + $xfer += $input->readListBegin($_etype351, $_size348); + for ($_i352 = 0; $_i352 < $_size348; ++$_i352) { - $elem325 = null; - $elem325 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem325->read($input); - $this->tableStats []= $elem325; + $elem353 = null; + $elem353 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem353->read($input); + $this->tableStats []= $elem353; } $xfer += $input->readListEnd(); } else { @@ -9930,9 +10987,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter326) + foreach ($this->tableStats as $iter354) { - $xfer += $iter326->write($output); + $xfer += $iter354->write($output); } } $output->writeListEnd(); @@ -10005,28 +11062,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size327 = 0; - $_ktype328 = 0; - $_vtype329 = 0; - $xfer += $input->readMapBegin($_ktype328, $_vtype329, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size355 = 0; + $_ktype356 = 0; + $_vtype357 = 0; + $xfer += $input->readMapBegin($_ktype356, $_vtype357, $_size355); + for ($_i359 = 0; $_i359 < $_size355; ++$_i359) { - $key332 = ''; - $val333 = array(); - $xfer += $input->readString($key332); - $val333 = array(); - $_size334 = 0; - $_etype337 = 0; - $xfer += $input->readListBegin($_etype337, $_size334); - for ($_i338 = 0; $_i338 < $_size334; ++$_i338) + $key360 = ''; + $val361 = array(); + $xfer += $input->readString($key360); + $val361 = array(); + $_size362 = 0; + $_etype365 = 0; + $xfer += $input->readListBegin($_etype365, $_size362); + for ($_i366 = 0; $_i366 < $_size362; ++$_i366) { - $elem339 = null; - $elem339 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem339->read($input); - $val333 []= $elem339; + $elem367 = null; + $elem367 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem367->read($input); + $val361 []= $elem367; } $xfer += $input->readListEnd(); - $this->partStats[$key332] = $val333; + $this->partStats[$key360] = $val361; } $xfer += $input->readMapEnd(); } else { @@ -10054,15 +11111,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter340 => $viter341) + foreach ($this->partStats as $kiter368 => $viter369) { - $xfer += $output->writeString($kiter340); + $xfer += $output->writeString($kiter368); { - $output->writeListBegin(TType::STRUCT, count($viter341)); + $output->writeListBegin(TType::STRUCT, count($viter369)); { - foreach ($viter341 as $iter342) + foreach ($viter369 as $iter370) { - $xfer += $iter342->write($output); + $xfer += $iter370->write($output); } } $output->writeListEnd(); @@ -10166,14 +11223,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size343 = 0; - $_etype346 = 0; - $xfer += $input->readListBegin($_etype346, $_size343); - for ($_i347 = 0; $_i347 < $_size343; ++$_i347) + $_size371 = 0; + $_etype374 = 0; + $xfer += $input->readListBegin($_etype374, $_size371); + for ($_i375 = 0; $_i375 < $_size371; ++$_i375) { - $elem348 = null; - $xfer += $input->readString($elem348); - $this->colNames []= $elem348; + $elem376 = null; + $xfer += $input->readString($elem376); + $this->colNames []= $elem376; } $xfer += $input->readListEnd(); } else { @@ -10211,9 +11268,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter349) + foreach ($this->colNames as $iter377) { - $xfer += $output->writeString($iter349); + $xfer += $output->writeString($iter377); } } $output->writeListEnd(); @@ -10328,14 +11385,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size350 = 0; - $_etype353 = 0; - $xfer += $input->readListBegin($_etype353, $_size350); - for ($_i354 = 0; $_i354 < $_size350; ++$_i354) + $_size378 = 0; + $_etype381 = 0; + $xfer += $input->readListBegin($_etype381, $_size378); + for ($_i382 = 0; $_i382 < $_size378; ++$_i382) { - $elem355 = null; - $xfer += $input->readString($elem355); - $this->colNames []= $elem355; + $elem383 = null; + $xfer += $input->readString($elem383); + $this->colNames []= $elem383; } $xfer += $input->readListEnd(); } else { @@ -10345,14 +11402,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size356 = 0; - $_etype359 = 0; - $xfer += $input->readListBegin($_etype359, $_size356); - for ($_i360 = 0; $_i360 < $_size356; ++$_i360) + $_size384 = 0; + $_etype387 = 0; + $xfer += $input->readListBegin($_etype387, $_size384); + for ($_i388 = 0; $_i388 < $_size384; ++$_i388) { - $elem361 = null; - $xfer += $input->readString($elem361); - $this->partNames []= $elem361; + $elem389 = null; + $xfer += $input->readString($elem389); + $this->partNames []= $elem389; } $xfer += $input->readListEnd(); } else { @@ -10390,9 +11447,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter362) + foreach ($this->colNames as $iter390) { - $xfer += $output->writeString($iter362); + $xfer += $output->writeString($iter390); } } $output->writeListEnd(); @@ -10407,9 +11464,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter363) + foreach ($this->partNames as $iter391) { - $xfer += $output->writeString($iter363); + $xfer += $output->writeString($iter391); } } $output->writeListEnd(); @@ -10474,15 +11531,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size364 = 0; - $_etype367 = 0; - $xfer += $input->readListBegin($_etype367, $_size364); - for ($_i368 = 0; $_i368 < $_size364; ++$_i368) + $_size392 = 0; + $_etype395 = 0; + $xfer += $input->readListBegin($_etype395, $_size392); + for ($_i396 = 0; $_i396 < $_size392; ++$_i396) { - $elem369 = null; - $elem369 = new \metastore\Partition(); - $xfer += $elem369->read($input); - $this->partitions []= $elem369; + $elem397 = null; + $elem397 = new \metastore\Partition(); + $xfer += $elem397->read($input); + $this->partitions []= $elem397; } $xfer += $input->readListEnd(); } else { @@ -10510,9 +11567,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter370) + foreach ($this->partitions as $iter398) { - $xfer += $iter370->write($output); + $xfer += $iter398->write($output); } } $output->writeListEnd(); @@ -10635,15 +11692,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size371 = 0; - $_etype374 = 0; - $xfer += $input->readListBegin($_etype374, $_size371); - for ($_i375 = 0; $_i375 < $_size371; ++$_i375) + $_size399 = 0; + $_etype402 = 0; + $xfer += $input->readListBegin($_etype402, $_size399); + for ($_i403 = 0; $_i403 < $_size399; ++$_i403) { - $elem376 = null; - $elem376 = new \metastore\Partition(); - $xfer += $elem376->read($input); - $this->parts []= $elem376; + $elem404 = null; + $elem404 = new \metastore\Partition(); + $xfer += $elem404->read($input); + $this->parts []= $elem404; } $xfer += $input->readListEnd(); } else { @@ -10695,9 +11752,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter377) + foreach ($this->parts as $iter405) { - $xfer += $iter377->write($output); + $xfer += $iter405->write($output); } } $output->writeListEnd(); @@ -10772,15 +11829,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size378 = 0; - $_etype381 = 0; - $xfer += $input->readListBegin($_etype381, $_size378); - for ($_i382 = 0; $_i382 < $_size378; ++$_i382) + $_size406 = 0; + $_etype409 = 0; + $xfer += $input->readListBegin($_etype409, $_size406); + for ($_i410 = 0; $_i410 < $_size406; ++$_i410) { - $elem383 = null; - $elem383 = new \metastore\Partition(); - $xfer += $elem383->read($input); - $this->partitions []= $elem383; + $elem411 = null; + $elem411 = new \metastore\Partition(); + $xfer += $elem411->read($input); + $this->partitions []= $elem411; } $xfer += $input->readListEnd(); } else { @@ -10808,9 +11865,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter384) + foreach ($this->partitions as $iter412) { - $xfer += $iter384->write($output); + $xfer += $iter412->write($output); } } $output->writeListEnd(); @@ -10988,14 +12045,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size385 = 0; - $_etype388 = 0; - $xfer += $input->readListBegin($_etype388, $_size385); - for ($_i389 = 0; $_i389 < $_size385; ++$_i389) + $_size413 = 0; + $_etype416 = 0; + $xfer += $input->readListBegin($_etype416, $_size413); + for ($_i417 = 0; $_i417 < $_size413; ++$_i417) { - $elem390 = null; - $xfer += $input->readString($elem390); - $this->names []= $elem390; + $elem418 = null; + $xfer += $input->readString($elem418); + $this->names []= $elem418; } $xfer += $input->readListEnd(); } else { @@ -11005,15 +12062,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size391 = 0; - $_etype394 = 0; - $xfer += $input->readListBegin($_etype394, $_size391); - for ($_i395 = 0; $_i395 < $_size391; ++$_i395) + $_size419 = 0; + $_etype422 = 0; + $xfer += $input->readListBegin($_etype422, $_size419); + for ($_i423 = 0; $_i423 < $_size419; ++$_i423) { - $elem396 = null; - $elem396 = new \metastore\DropPartitionsExpr(); - $xfer += $elem396->read($input); - $this->exprs []= $elem396; + $elem424 = null; + $elem424 = new \metastore\DropPartitionsExpr(); + $xfer += $elem424->read($input); + $this->exprs []= $elem424; } $xfer += $input->readListEnd(); } else { @@ -11041,9 +12098,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter397) + foreach ($this->names as $iter425) { - $xfer += $output->writeString($iter397); + $xfer += $output->writeString($iter425); } } $output->writeListEnd(); @@ -11058,9 +12115,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter398) + foreach ($this->exprs as $iter426) { - $xfer += $iter398->write($output); + $xfer += $iter426->write($output); } } $output->writeListEnd(); @@ -11595,15 +12652,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size399 = 0; - $_etype402 = 0; - $xfer += $input->readListBegin($_etype402, $_size399); - for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + $_size427 = 0; + $_etype430 = 0; + $xfer += $input->readListBegin($_etype430, $_size427); + for ($_i431 = 0; $_i431 < $_size427; ++$_i431) { - $elem404 = null; - $elem404 = new \metastore\ResourceUri(); - $xfer += $elem404->read($input); - $this->resourceUris []= $elem404; + $elem432 = null; + $elem432 = new \metastore\ResourceUri(); + $xfer += $elem432->read($input); + $this->resourceUris []= $elem432; } $xfer += $input->readListEnd(); } else { @@ -11666,9 +12723,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter405) + foreach ($this->resourceUris as $iter433) { - $xfer += $iter405->write($output); + $xfer += $iter433->write($output); } } $output->writeListEnd(); @@ -12010,15 +13067,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size406 = 0; - $_etype409 = 0; - $xfer += $input->readListBegin($_etype409, $_size406); - for ($_i410 = 0; $_i410 < $_size406; ++$_i410) + $_size434 = 0; + $_etype437 = 0; + $xfer += $input->readListBegin($_etype437, $_size434); + for ($_i438 = 0; $_i438 < $_size434; ++$_i438) { - $elem411 = null; - $elem411 = new \metastore\TxnInfo(); - $xfer += $elem411->read($input); - $this->open_txns []= $elem411; + $elem439 = null; + $elem439 = new \metastore\TxnInfo(); + $xfer += $elem439->read($input); + $this->open_txns []= $elem439; } $xfer += $input->readListEnd(); } else { @@ -12051,9 +13108,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter412) + foreach ($this->open_txns as $iter440) { - $xfer += $iter412->write($output); + $xfer += $iter440->write($output); } } $output->writeListEnd(); @@ -12157,14 +13214,14 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size413 = 0; - $_etype416 = 0; - $xfer += $input->readListBegin($_etype416, $_size413); - for ($_i417 = 0; $_i417 < $_size413; ++$_i417) + $_size441 = 0; + $_etype444 = 0; + $xfer += $input->readListBegin($_etype444, $_size441); + for ($_i445 = 0; $_i445 < $_size441; ++$_i445) { - $elem418 = null; - $xfer += $input->readI64($elem418); - $this->open_txns []= $elem418; + $elem446 = null; + $xfer += $input->readI64($elem446); + $this->open_txns []= $elem446; } $xfer += $input->readListEnd(); } else { @@ -12211,9 +13268,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter419) + foreach ($this->open_txns as $iter447) { - $xfer += $output->writeI64($iter419); + $xfer += $output->writeI64($iter447); } } $output->writeListEnd(); @@ -12431,14 +13488,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size420 = 0; - $_etype423 = 0; - $xfer += $input->readListBegin($_etype423, $_size420); - for ($_i424 = 0; $_i424 < $_size420; ++$_i424) + $_size448 = 0; + $_etype451 = 0; + $xfer += $input->readListBegin($_etype451, $_size448); + for ($_i452 = 0; $_i452 < $_size448; ++$_i452) { - $elem425 = null; - $xfer += $input->readI64($elem425); - $this->txn_ids []= $elem425; + $elem453 = null; + $xfer += $input->readI64($elem453); + $this->txn_ids []= $elem453; } $xfer += $input->readListEnd(); } else { @@ -12466,9 +13523,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter426) + foreach ($this->txn_ids as $iter454) { - $xfer += $output->writeI64($iter426); + $xfer += $output->writeI64($iter454); } } $output->writeListEnd(); @@ -12607,14 +13664,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size427 = 0; - $_etype430 = 0; - $xfer += $input->readListBegin($_etype430, $_size427); - for ($_i431 = 0; $_i431 < $_size427; ++$_i431) + $_size455 = 0; + $_etype458 = 0; + $xfer += $input->readListBegin($_etype458, $_size455); + for ($_i459 = 0; $_i459 < $_size455; ++$_i459) { - $elem432 = null; - $xfer += $input->readI64($elem432); - $this->txn_ids []= $elem432; + $elem460 = null; + $xfer += $input->readI64($elem460); + $this->txn_ids []= $elem460; } $xfer += $input->readListEnd(); } else { @@ -12642,9 +13699,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter433) + foreach ($this->txn_ids as $iter461) { - $xfer += $output->writeI64($iter433); + $xfer += $output->writeI64($iter461); } } $output->writeListEnd(); @@ -13064,15 +14121,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size434 = 0; - $_etype437 = 0; - $xfer += $input->readListBegin($_etype437, $_size434); - for ($_i438 = 0; $_i438 < $_size434; ++$_i438) + $_size462 = 0; + $_etype465 = 0; + $xfer += $input->readListBegin($_etype465, $_size462); + for ($_i466 = 0; $_i466 < $_size462; ++$_i466) { - $elem439 = null; - $elem439 = new \metastore\LockComponent(); - $xfer += $elem439->read($input); - $this->component []= $elem439; + $elem467 = null; + $elem467 = new \metastore\LockComponent(); + $xfer += $elem467->read($input); + $this->component []= $elem467; } $xfer += $input->readListEnd(); } else { @@ -13128,9 +14185,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter440) + foreach ($this->component as $iter468) { - $xfer += $iter440->write($output); + $xfer += $iter468->write($output); } } $output->writeListEnd(); @@ -14073,15 +15130,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size441 = 0; - $_etype444 = 0; - $xfer += $input->readListBegin($_etype444, $_size441); - for ($_i445 = 0; $_i445 < $_size441; ++$_i445) + $_size469 = 0; + $_etype472 = 0; + $xfer += $input->readListBegin($_etype472, $_size469); + for ($_i473 = 0; $_i473 < $_size469; ++$_i473) { - $elem446 = null; - $elem446 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem446->read($input); - $this->locks []= $elem446; + $elem474 = null; + $elem474 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem474->read($input); + $this->locks []= $elem474; } $xfer += $input->readListEnd(); } else { @@ -14109,9 +15166,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter447) + foreach ($this->locks as $iter475) { - $xfer += $iter447->write($output); + $xfer += $iter475->write($output); } } $output->writeListEnd(); @@ -14386,17 +15443,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size448 = 0; - $_etype451 = 0; - $xfer += $input->readSetBegin($_etype451, $_size448); - for ($_i452 = 0; $_i452 < $_size448; ++$_i452) + $_size476 = 0; + $_etype479 = 0; + $xfer += $input->readSetBegin($_etype479, $_size476); + for ($_i480 = 0; $_i480 < $_size476; ++$_i480) { - $elem453 = null; - $xfer += $input->readI64($elem453); - if (is_scalar($elem453)) { - $this->aborted[$elem453] = true; + $elem481 = null; + $xfer += $input->readI64($elem481); + if (is_scalar($elem481)) { + $this->aborted[$elem481] = true; } else { - $this->aborted []= $elem453; + $this->aborted []= $elem481; } } $xfer += $input->readSetEnd(); @@ -14407,17 +15464,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size454 = 0; - $_etype457 = 0; - $xfer += $input->readSetBegin($_etype457, $_size454); - for ($_i458 = 0; $_i458 < $_size454; ++$_i458) + $_size482 = 0; + $_etype485 = 0; + $xfer += $input->readSetBegin($_etype485, $_size482); + for ($_i486 = 0; $_i486 < $_size482; ++$_i486) { - $elem459 = null; - $xfer += $input->readI64($elem459); - if (is_scalar($elem459)) { - $this->nosuch[$elem459] = true; + $elem487 = null; + $xfer += $input->readI64($elem487); + if (is_scalar($elem487)) { + $this->nosuch[$elem487] = true; } else { - $this->nosuch []= $elem459; + $this->nosuch []= $elem487; } } $xfer += $input->readSetEnd(); @@ -14446,12 +15503,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter460 => $iter461) + foreach ($this->aborted as $iter488 => $iter489) { - if (is_scalar($iter461)) { - $xfer += $output->writeI64($iter460); + if (is_scalar($iter489)) { + $xfer += $output->writeI64($iter488); } else { - $xfer += $output->writeI64($iter461); + $xfer += $output->writeI64($iter489); } } } @@ -14467,12 +15524,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter462 => $iter463) + foreach ($this->nosuch as $iter490 => $iter491) { - if (is_scalar($iter463)) { - $xfer += $output->writeI64($iter462); + if (is_scalar($iter491)) { + $xfer += $output->writeI64($iter490); } else { - $xfer += $output->writeI64($iter463); + $xfer += $output->writeI64($iter491); } } } @@ -14631,17 +15688,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size464 = 0; - $_ktype465 = 0; - $_vtype466 = 0; - $xfer += $input->readMapBegin($_ktype465, $_vtype466, $_size464); - for ($_i468 = 0; $_i468 < $_size464; ++$_i468) + $_size492 = 0; + $_ktype493 = 0; + $_vtype494 = 0; + $xfer += $input->readMapBegin($_ktype493, $_vtype494, $_size492); + for ($_i496 = 0; $_i496 < $_size492; ++$_i496) { - $key469 = ''; - $val470 = ''; - $xfer += $input->readString($key469); - $xfer += $input->readString($val470); - $this->properties[$key469] = $val470; + $key497 = ''; + $val498 = ''; + $xfer += $input->readString($key497); + $xfer += $input->readString($val498); + $this->properties[$key497] = $val498; } $xfer += $input->readMapEnd(); } else { @@ -14694,10 +15751,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter471 => $viter472) + foreach ($this->properties as $kiter499 => $viter500) { - $xfer += $output->writeString($kiter471); - $xfer += $output->writeString($viter472); + $xfer += $output->writeString($kiter499); + $xfer += $output->writeString($viter500); } } $output->writeMapEnd(); @@ -15284,15 +16341,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size473 = 0; - $_etype476 = 0; - $xfer += $input->readListBegin($_etype476, $_size473); - for ($_i477 = 0; $_i477 < $_size473; ++$_i477) + $_size501 = 0; + $_etype504 = 0; + $xfer += $input->readListBegin($_etype504, $_size501); + for ($_i505 = 0; $_i505 < $_size501; ++$_i505) { - $elem478 = null; - $elem478 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem478->read($input); - $this->compacts []= $elem478; + $elem506 = null; + $elem506 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem506->read($input); + $this->compacts []= $elem506; } $xfer += $input->readListEnd(); } else { @@ -15320,9 +16377,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter479) + foreach ($this->compacts as $iter507) { - $xfer += $iter479->write($output); + $xfer += $iter507->write($output); } } $output->writeListEnd(); @@ -15451,14 +16508,14 @@ class AddDynamicPartitions { case 4: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size480 = 0; - $_etype483 = 0; - $xfer += $input->readListBegin($_etype483, $_size480); - for ($_i484 = 0; $_i484 < $_size480; ++$_i484) + $_size508 = 0; + $_etype511 = 0; + $xfer += $input->readListBegin($_etype511, $_size508); + for ($_i512 = 0; $_i512 < $_size508; ++$_i512) { - $elem485 = null; - $xfer += $input->readString($elem485); - $this->partitionnames []= $elem485; + $elem513 = null; + $xfer += $input->readString($elem513); + $this->partitionnames []= $elem513; } $xfer += $input->readListEnd(); } else { @@ -15508,9 +16565,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter486) + foreach ($this->partitionnames as $iter514) { - $xfer += $output->writeString($iter486); + $xfer += $output->writeString($iter514); } } $output->writeListEnd(); @@ -15891,15 +16948,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size487 = 0; - $_etype490 = 0; - $xfer += $input->readListBegin($_etype490, $_size487); - for ($_i491 = 0; $_i491 < $_size487; ++$_i491) + $_size515 = 0; + $_etype518 = 0; + $xfer += $input->readListBegin($_etype518, $_size515); + for ($_i519 = 0; $_i519 < $_size515; ++$_i519) { - $elem492 = null; - $elem492 = new \metastore\NotificationEvent(); - $xfer += $elem492->read($input); - $this->events []= $elem492; + $elem520 = null; + $elem520 = new \metastore\NotificationEvent(); + $xfer += $elem520->read($input); + $this->events []= $elem520; } $xfer += $input->readListEnd(); } else { @@ -15927,9 +16984,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter493) + foreach ($this->events as $iter521) { - $xfer += $iter493->write($output); + $xfer += $iter521->write($output); } } $output->writeListEnd(); @@ -16101,14 +17158,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size494 = 0; - $_etype497 = 0; - $xfer += $input->readListBegin($_etype497, $_size494); - for ($_i498 = 0; $_i498 < $_size494; ++$_i498) + $_size522 = 0; + $_etype525 = 0; + $xfer += $input->readListBegin($_etype525, $_size522); + for ($_i526 = 0; $_i526 < $_size522; ++$_i526) { - $elem499 = null; - $xfer += $input->readString($elem499); - $this->filesAdded []= $elem499; + $elem527 = null; + $xfer += $input->readString($elem527); + $this->filesAdded []= $elem527; } $xfer += $input->readListEnd(); } else { @@ -16118,14 +17175,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size500 = 0; - $_etype503 = 0; - $xfer += $input->readListBegin($_etype503, $_size500); - for ($_i504 = 0; $_i504 < $_size500; ++$_i504) + $_size528 = 0; + $_etype531 = 0; + $xfer += $input->readListBegin($_etype531, $_size528); + for ($_i532 = 0; $_i532 < $_size528; ++$_i532) { - $elem505 = null; - $xfer += $input->readString($elem505); - $this->filesAddedChecksum []= $elem505; + $elem533 = null; + $xfer += $input->readString($elem533); + $this->filesAddedChecksum []= $elem533; } $xfer += $input->readListEnd(); } else { @@ -16158,9 +17215,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter506) + foreach ($this->filesAdded as $iter534) { - $xfer += $output->writeString($iter506); + $xfer += $output->writeString($iter534); } } $output->writeListEnd(); @@ -16175,9 +17232,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter507) + foreach ($this->filesAddedChecksum as $iter535) { - $xfer += $output->writeString($iter507); + $xfer += $output->writeString($iter535); } } $output->writeListEnd(); @@ -16395,14 +17452,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size508 = 0; - $_etype511 = 0; - $xfer += $input->readListBegin($_etype511, $_size508); - for ($_i512 = 0; $_i512 < $_size508; ++$_i512) + $_size536 = 0; + $_etype539 = 0; + $xfer += $input->readListBegin($_etype539, $_size536); + for ($_i540 = 0; $_i540 < $_size536; ++$_i540) { - $elem513 = null; - $xfer += $input->readString($elem513); - $this->partitionVals []= $elem513; + $elem541 = null; + $xfer += $input->readString($elem541); + $this->partitionVals []= $elem541; } $xfer += $input->readListEnd(); } else { @@ -16453,9 +17510,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter514) + foreach ($this->partitionVals as $iter542) { - $xfer += $output->writeString($iter514); + $xfer += $output->writeString($iter542); } } $output->writeListEnd(); @@ -16683,18 +17740,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size515 = 0; - $_ktype516 = 0; - $_vtype517 = 0; - $xfer += $input->readMapBegin($_ktype516, $_vtype517, $_size515); - for ($_i519 = 0; $_i519 < $_size515; ++$_i519) + $_size543 = 0; + $_ktype544 = 0; + $_vtype545 = 0; + $xfer += $input->readMapBegin($_ktype544, $_vtype545, $_size543); + for ($_i547 = 0; $_i547 < $_size543; ++$_i547) { - $key520 = 0; - $val521 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key520); - $val521 = new \metastore\MetadataPpdResult(); - $xfer += $val521->read($input); - $this->metadata[$key520] = $val521; + $key548 = 0; + $val549 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key548); + $val549 = new \metastore\MetadataPpdResult(); + $xfer += $val549->read($input); + $this->metadata[$key548] = $val549; } $xfer += $input->readMapEnd(); } else { @@ -16729,10 +17786,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter522 => $viter523) + foreach ($this->metadata as $kiter550 => $viter551) { - $xfer += $output->writeI64($kiter522); - $xfer += $viter523->write($output); + $xfer += $output->writeI64($kiter550); + $xfer += $viter551->write($output); } } $output->writeMapEnd(); @@ -16834,14 +17891,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size524 = 0; - $_etype527 = 0; - $xfer += $input->readListBegin($_etype527, $_size524); - for ($_i528 = 0; $_i528 < $_size524; ++$_i528) + $_size552 = 0; + $_etype555 = 0; + $xfer += $input->readListBegin($_etype555, $_size552); + for ($_i556 = 0; $_i556 < $_size552; ++$_i556) { - $elem529 = null; - $xfer += $input->readI64($elem529); - $this->fileIds []= $elem529; + $elem557 = null; + $xfer += $input->readI64($elem557); + $this->fileIds []= $elem557; } $xfer += $input->readListEnd(); } else { @@ -16890,9 +17947,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter530) + foreach ($this->fileIds as $iter558) { - $xfer += $output->writeI64($iter530); + $xfer += $output->writeI64($iter558); } } $output->writeListEnd(); @@ -16986,17 +18043,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size531 = 0; - $_ktype532 = 0; - $_vtype533 = 0; - $xfer += $input->readMapBegin($_ktype532, $_vtype533, $_size531); - for ($_i535 = 0; $_i535 < $_size531; ++$_i535) + $_size559 = 0; + $_ktype560 = 0; + $_vtype561 = 0; + $xfer += $input->readMapBegin($_ktype560, $_vtype561, $_size559); + for ($_i563 = 0; $_i563 < $_size559; ++$_i563) { - $key536 = 0; - $val537 = ''; - $xfer += $input->readI64($key536); - $xfer += $input->readString($val537); - $this->metadata[$key536] = $val537; + $key564 = 0; + $val565 = ''; + $xfer += $input->readI64($key564); + $xfer += $input->readString($val565); + $this->metadata[$key564] = $val565; } $xfer += $input->readMapEnd(); } else { @@ -17031,10 +18088,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter538 => $viter539) + foreach ($this->metadata as $kiter566 => $viter567) { - $xfer += $output->writeI64($kiter538); - $xfer += $output->writeString($viter539); + $xfer += $output->writeI64($kiter566); + $xfer += $output->writeString($viter567); } } $output->writeMapEnd(); @@ -17103,14 +18160,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size540 = 0; - $_etype543 = 0; - $xfer += $input->readListBegin($_etype543, $_size540); - for ($_i544 = 0; $_i544 < $_size540; ++$_i544) + $_size568 = 0; + $_etype571 = 0; + $xfer += $input->readListBegin($_etype571, $_size568); + for ($_i572 = 0; $_i572 < $_size568; ++$_i572) { - $elem545 = null; - $xfer += $input->readI64($elem545); - $this->fileIds []= $elem545; + $elem573 = null; + $xfer += $input->readI64($elem573); + $this->fileIds []= $elem573; } $xfer += $input->readListEnd(); } else { @@ -17138,9 +18195,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter546) + foreach ($this->fileIds as $iter574) { - $xfer += $output->writeI64($iter546); + $xfer += $output->writeI64($iter574); } } $output->writeListEnd(); @@ -17280,14 +18337,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size547 = 0; - $_etype550 = 0; - $xfer += $input->readListBegin($_etype550, $_size547); - for ($_i551 = 0; $_i551 < $_size547; ++$_i551) + $_size575 = 0; + $_etype578 = 0; + $xfer += $input->readListBegin($_etype578, $_size575); + for ($_i579 = 0; $_i579 < $_size575; ++$_i579) { - $elem552 = null; - $xfer += $input->readI64($elem552); - $this->fileIds []= $elem552; + $elem580 = null; + $xfer += $input->readI64($elem580); + $this->fileIds []= $elem580; } $xfer += $input->readListEnd(); } else { @@ -17297,14 +18354,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size553 = 0; - $_etype556 = 0; - $xfer += $input->readListBegin($_etype556, $_size553); - for ($_i557 = 0; $_i557 < $_size553; ++$_i557) + $_size581 = 0; + $_etype584 = 0; + $xfer += $input->readListBegin($_etype584, $_size581); + for ($_i585 = 0; $_i585 < $_size581; ++$_i585) { - $elem558 = null; - $xfer += $input->readString($elem558); - $this->metadata []= $elem558; + $elem586 = null; + $xfer += $input->readString($elem586); + $this->metadata []= $elem586; } $xfer += $input->readListEnd(); } else { @@ -17339,9 +18396,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter559) + foreach ($this->fileIds as $iter587) { - $xfer += $output->writeI64($iter559); + $xfer += $output->writeI64($iter587); } } $output->writeListEnd(); @@ -17356,9 +18413,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter560) + foreach ($this->metadata as $iter588) { - $xfer += $output->writeString($iter560); + $xfer += $output->writeString($iter588); } } $output->writeListEnd(); @@ -17477,14 +18534,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size561 = 0; - $_etype564 = 0; - $xfer += $input->readListBegin($_etype564, $_size561); - for ($_i565 = 0; $_i565 < $_size561; ++$_i565) + $_size589 = 0; + $_etype592 = 0; + $xfer += $input->readListBegin($_etype592, $_size589); + for ($_i593 = 0; $_i593 < $_size589; ++$_i593) { - $elem566 = null; - $xfer += $input->readI64($elem566); - $this->fileIds []= $elem566; + $elem594 = null; + $xfer += $input->readI64($elem594); + $this->fileIds []= $elem594; } $xfer += $input->readListEnd(); } else { @@ -17512,9 +18569,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter567) + foreach ($this->fileIds as $iter595) { - $xfer += $output->writeI64($iter567); + $xfer += $output->writeI64($iter595); } } $output->writeListEnd(); @@ -17798,15 +18855,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size568 = 0; - $_etype571 = 0; - $xfer += $input->readListBegin($_etype571, $_size568); - for ($_i572 = 0; $_i572 < $_size568; ++$_i572) + $_size596 = 0; + $_etype599 = 0; + $xfer += $input->readListBegin($_etype599, $_size596); + for ($_i600 = 0; $_i600 < $_size596; ++$_i600) { - $elem573 = null; - $elem573 = new \metastore\Function(); - $xfer += $elem573->read($input); - $this->functions []= $elem573; + $elem601 = null; + $elem601 = new \metastore\Function(); + $xfer += $elem601->read($input); + $this->functions []= $elem601; } $xfer += $input->readListEnd(); } else { @@ -17834,9 +18891,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter574) + foreach ($this->functions as $iter602) { - $xfer += $iter574->write($output); + $xfer += $iter602->write($output); } } $output->writeListEnd(); @@ -17900,14 +18957,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size575 = 0; - $_etype578 = 0; - $xfer += $input->readListBegin($_etype578, $_size575); - for ($_i579 = 0; $_i579 < $_size575; ++$_i579) + $_size603 = 0; + $_etype606 = 0; + $xfer += $input->readListBegin($_etype606, $_size603); + for ($_i607 = 0; $_i607 < $_size603; ++$_i607) { - $elem580 = null; - $xfer += $input->readI32($elem580); - $this->values []= $elem580; + $elem608 = null; + $xfer += $input->readI32($elem608); + $this->values []= $elem608; } $xfer += $input->readListEnd(); } else { @@ -17935,9 +18992,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter581) + foreach ($this->values as $iter609) { - $xfer += $output->writeI32($iter581); + $xfer += $output->writeI32($iter609); } } $output->writeListEnd(); @@ -18237,14 +19294,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size582 = 0; - $_etype585 = 0; - $xfer += $input->readListBegin($_etype585, $_size582); - for ($_i586 = 0; $_i586 < $_size582; ++$_i586) + $_size610 = 0; + $_etype613 = 0; + $xfer += $input->readListBegin($_etype613, $_size610); + for ($_i614 = 0; $_i614 < $_size610; ++$_i614) { - $elem587 = null; - $xfer += $input->readString($elem587); - $this->tblNames []= $elem587; + $elem615 = null; + $xfer += $input->readString($elem615); + $this->tblNames []= $elem615; } $xfer += $input->readListEnd(); } else { @@ -18285,9 +19342,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter588) + foreach ($this->tblNames as $iter616) { - $xfer += $output->writeString($iter588); + $xfer += $output->writeString($iter616); } } $output->writeListEnd(); @@ -18360,15 +19417,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size589 = 0; - $_etype592 = 0; - $xfer += $input->readListBegin($_etype592, $_size589); - for ($_i593 = 0; $_i593 < $_size589; ++$_i593) + $_size617 = 0; + $_etype620 = 0; + $xfer += $input->readListBegin($_etype620, $_size617); + for ($_i621 = 0; $_i621 < $_size617; ++$_i621) { - $elem594 = null; - $elem594 = new \metastore\Table(); - $xfer += $elem594->read($input); - $this->tables []= $elem594; + $elem622 = null; + $elem622 = new \metastore\Table(); + $xfer += $elem622->read($input); + $this->tables []= $elem622; } $xfer += $input->readListEnd(); } else { @@ -18396,9 +19453,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter595) + foreach ($this->tables as $iter623) { - $xfer += $iter595->write($output); + $xfer += $iter623->write($output); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index f2a9799..29a0973 100755 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -42,10 +42,12 @@ 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)') + print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints)') 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 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)') @@ -111,6 +113,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' get_index_names(string db_name, string tbl_name, i16 max_indexes)') print(' PrimaryKeysResponse get_primary_keys(PrimaryKeysRequest request)') print(' ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request)') + print(' UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request)') + print(' NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest 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)') @@ -356,10 +360,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) != 3: - print('create_table_with_constraints requires 3 args') + if len(args) != 5: + print('create_table_with_constraints requires 5 args') sys.exit(1) - pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),)) + pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),)) elif cmd == 'drop_constraint': if len(args) != 1: @@ -379,6 +383,18 @@ elif cmd == 'add_foreign_key': sys.exit(1) pp.pprint(client.add_foreign_key(eval(args[0]),)) +elif cmd == 'add_unique_constraint': + if len(args) != 1: + print('add_unique_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_unique_constraint(eval(args[0]),)) + +elif cmd == 'add_not_null_constraint': + if len(args) != 1: + print('add_not_null_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_not_null_constraint(eval(args[0]),)) + elif cmd == 'drop_table': if len(args) != 3: print('drop_table requires 3 args') @@ -769,6 +785,18 @@ elif cmd == 'get_foreign_keys': sys.exit(1) pp.pprint(client.get_foreign_keys(eval(args[0]),)) +elif cmd == 'get_unique_constraints': + if len(args) != 1: + print('get_unique_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_unique_constraints(eval(args[0]),)) + +elif cmd == 'get_not_null_constraints': + if len(args) != 1: + print('get_not_null_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_not_null_constraints(eval(args[0]),)) + elif cmd == 'update_table_column_statistics': if len(args) != 1: print('update_table_column_statistics requires 1 args') diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 8ee84af..bc17024 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -156,12 +156,14 @@ def create_table_with_environment_context(self, tbl, environment_context): """ pass - def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): """ Parameters: - tbl - primaryKeys - foreignKeys + - uniqueConstraints + - notNullConstraints """ pass @@ -186,6 +188,20 @@ def add_foreign_key(self, req): """ pass + def add_unique_constraint(self, req): + """ + Parameters: + - req + """ + pass + + def add_not_null_constraint(self, req): + """ + Parameters: + - req + """ + pass + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -771,6 +787,20 @@ def get_foreign_keys(self, request): """ pass + def get_unique_constraints(self, request): + """ + Parameters: + - request + """ + pass + + def get_not_null_constraints(self, request): + """ + Parameters: + - request + """ + pass + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -1894,22 +1924,26 @@ def recv_create_table_with_environment_context(self): raise result.o4 return - def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): """ Parameters: - tbl - primaryKeys - foreignKeys + - uniqueConstraints + - notNullConstraints """ - self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys) + self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) self.recv_create_table_with_constraints() - def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys): + def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid) args = create_table_with_constraints_args() args.tbl = tbl args.primaryKeys = primaryKeys args.foreignKeys = foreignKeys + args.uniqueConstraints = uniqueConstraints + args.notNullConstraints = notNullConstraints args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() @@ -2034,6 +2068,72 @@ def recv_add_foreign_key(self): raise result.o2 return + def add_unique_constraint(self, req): + """ + Parameters: + - req + """ + self.send_add_unique_constraint(req) + self.recv_add_unique_constraint() + + def send_add_unique_constraint(self, req): + self._oprot.writeMessageBegin('add_unique_constraint', TMessageType.CALL, self._seqid) + args = add_unique_constraint_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_unique_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_unique_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 add_not_null_constraint(self, req): + """ + Parameters: + - req + """ + self.send_add_not_null_constraint(req) + self.recv_add_not_null_constraint() + + def send_add_not_null_constraint(self, req): + self._oprot.writeMessageBegin('add_not_null_constraint', TMessageType.CALL, self._seqid) + args = add_not_null_constraint_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_not_null_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_not_null_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: @@ -4565,6 +4665,76 @@ def recv_get_foreign_keys(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result") + def get_unique_constraints(self, request): + """ + Parameters: + - request + """ + self.send_get_unique_constraints(request) + return self.recv_get_unique_constraints() + + def send_get_unique_constraints(self, request): + self._oprot.writeMessageBegin('get_unique_constraints', TMessageType.CALL, self._seqid) + args = get_unique_constraints_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_unique_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_unique_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_unique_constraints failed: unknown result") + + def get_not_null_constraints(self, request): + """ + Parameters: + - request + """ + self.send_get_not_null_constraints(request) + return self.recv_get_not_null_constraints() + + def send_get_not_null_constraints(self, request): + self._oprot.writeMessageBegin('get_not_null_constraints', TMessageType.CALL, self._seqid) + args = get_not_null_constraints_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_not_null_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_not_null_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_not_null_constraints failed: unknown result") + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -6830,6 +7000,8 @@ def __init__(self, handler): self._processMap["drop_constraint"] = Processor.process_drop_constraint self._processMap["add_primary_key"] = Processor.process_add_primary_key self._processMap["add_foreign_key"] = Processor.process_add_foreign_key + self._processMap["add_unique_constraint"] = Processor.process_add_unique_constraint + self._processMap["add_not_null_constraint"] = Processor.process_add_not_null_constraint self._processMap["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 @@ -6895,6 +7067,8 @@ def __init__(self, handler): self._processMap["get_index_names"] = Processor.process_get_index_names self._processMap["get_primary_keys"] = Processor.process_get_primary_keys self._processMap["get_foreign_keys"] = Processor.process_get_foreign_keys + self._processMap["get_unique_constraints"] = Processor.process_get_unique_constraints + self._processMap["get_not_null_constraints"] = Processor.process_get_not_null_constraints self._processMap["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 @@ -7452,7 +7626,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) + self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise @@ -7552,6 +7726,56 @@ def process_add_foreign_key(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_add_unique_constraint(self, seqid, iprot, oprot): + args = add_unique_constraint_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_unique_constraint_result() + try: + self._handler.add_unique_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_unique_constraint", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_add_not_null_constraint(self, seqid, iprot, oprot): + args = add_not_null_constraint_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_not_null_constraint_result() + try: + self._handler.add_not_null_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_not_null_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) @@ -9210,6 +9434,56 @@ def process_get_foreign_keys(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_unique_constraints(self, seqid, iprot, oprot): + args = get_unique_constraints_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_unique_constraints_result() + try: + result.success = self._handler.get_unique_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_unique_constraints", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_get_not_null_constraints(self, seqid, iprot, oprot): + args = get_not_null_constraints_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_not_null_constraints_result() + try: + result.success = self._handler.get_not_null_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_not_null_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) @@ -11618,10 +11892,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = iprot.readString() - self.success.append(_elem599) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in xrange(_size622): + _elem627 = iprot.readString() + self.success.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) @@ -11644,8 +11918,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 iter600 in self.success: - oprot.writeString(iter600) + for iter628 in self.success: + oprot.writeString(iter628) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11750,10 +12024,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readString() - self.success.append(_elem606) + (_etype632, _size629) = iprot.readListBegin() + for _i633 in xrange(_size629): + _elem634 = iprot.readString() + self.success.append(_elem634) iprot.readListEnd() else: iprot.skip(ftype) @@ -11776,8 +12050,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter607 in self.success: - oprot.writeString(iter607) + for iter635 in self.success: + oprot.writeString(iter635) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12547,12 +12821,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype609, _vtype610, _size608 ) = iprot.readMapBegin() - for _i612 in xrange(_size608): - _key613 = iprot.readString() - _val614 = Type() - _val614.read(iprot) - self.success[_key613] = _val614 + (_ktype637, _vtype638, _size636 ) = iprot.readMapBegin() + for _i640 in xrange(_size636): + _key641 = iprot.readString() + _val642 = Type() + _val642.read(iprot) + self.success[_key641] = _val642 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12575,9 +12849,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 kiter615,viter616 in self.success.items(): - oprot.writeString(kiter615) - viter616.write(oprot) + for kiter643,viter644 in self.success.items(): + oprot.writeString(kiter643) + viter644.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -12720,11 +12994,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype620, _size617) = iprot.readListBegin() - for _i621 in xrange(_size617): - _elem622 = FieldSchema() - _elem622.read(iprot) - self.success.append(_elem622) + (_etype648, _size645) = iprot.readListBegin() + for _i649 in xrange(_size645): + _elem650 = FieldSchema() + _elem650.read(iprot) + self.success.append(_elem650) iprot.readListEnd() else: iprot.skip(ftype) @@ -12759,8 +13033,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 iter623 in self.success: - iter623.write(oprot) + for iter651 in self.success: + iter651.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12927,11 +13201,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype627, _size624) = iprot.readListBegin() - for _i628 in xrange(_size624): - _elem629 = FieldSchema() - _elem629.read(iprot) - self.success.append(_elem629) + (_etype655, _size652) = iprot.readListBegin() + for _i656 in xrange(_size652): + _elem657 = FieldSchema() + _elem657.read(iprot) + self.success.append(_elem657) iprot.readListEnd() else: iprot.skip(ftype) @@ -12966,8 +13240,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter630 in self.success: - iter630.write(oprot) + for iter658 in self.success: + iter658.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13120,11 +13394,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype634, _size631) = iprot.readListBegin() - for _i635 in xrange(_size631): - _elem636 = FieldSchema() - _elem636.read(iprot) - self.success.append(_elem636) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = FieldSchema() + _elem664.read(iprot) + self.success.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -13159,8 +13433,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter637 in self.success: - iter637.write(oprot) + for iter665 in self.success: + iter665.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13327,11 +13601,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype641, _size638) = iprot.readListBegin() - for _i642 in xrange(_size638): - _elem643 = FieldSchema() - _elem643.read(iprot) - self.success.append(_elem643) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = FieldSchema() + _elem671.read(iprot) + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -13366,8 +13640,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter644 in self.success: - iter644.write(oprot) + for iter672 in self.success: + iter672.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13776,6 +14050,8 @@ class create_table_with_constraints_args: - tbl - primaryKeys - foreignKeys + - uniqueConstraints + - notNullConstraints """ thrift_spec = ( @@ -13783,12 +14059,16 @@ class create_table_with_constraints_args: (1, TType.STRUCT, 'tbl', (Table, Table.thrift_spec), None, ), # 1 (2, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 2 (3, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 3 + (4, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 4 + (5, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 5 ) - def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None,): + def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None,): self.tbl = tbl self.primaryKeys = primaryKeys self.foreignKeys = foreignKeys + self.uniqueConstraints = uniqueConstraints + self.notNullConstraints = notNullConstraints 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: @@ -13808,22 +14088,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype648, _size645) = iprot.readListBegin() - for _i649 in xrange(_size645): - _elem650 = SQLPrimaryKey() - _elem650.read(iprot) - self.primaryKeys.append(_elem650) + (_etype676, _size673) = iprot.readListBegin() + for _i677 in xrange(_size673): + _elem678 = SQLPrimaryKey() + _elem678.read(iprot) + self.primaryKeys.append(_elem678) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = SQLForeignKey() - _elem656.read(iprot) - self.foreignKeys.append(_elem656) + (_etype682, _size679) = iprot.readListBegin() + for _i683 in xrange(_size679): + _elem684 = SQLForeignKey() + _elem684.read(iprot) + self.foreignKeys.append(_elem684) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.uniqueConstraints = [] + (_etype688, _size685) = iprot.readListBegin() + for _i689 in xrange(_size685): + _elem690 = SQLUniqueConstraint() + _elem690.read(iprot) + self.uniqueConstraints.append(_elem690) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.notNullConstraints = [] + (_etype694, _size691) = iprot.readListBegin() + for _i695 in xrange(_size691): + _elem696 = SQLNotNullConstraint() + _elem696.read(iprot) + self.notNullConstraints.append(_elem696) iprot.readListEnd() else: iprot.skip(ftype) @@ -13844,15 +14146,29 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter657 in self.primaryKeys: - iter657.write(oprot) + for iter697 in self.primaryKeys: + iter697.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 iter658 in self.foreignKeys: - iter658.write(oprot) + for iter698 in self.foreignKeys: + iter698.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 iter699 in self.uniqueConstraints: + iter699.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 iter700 in self.notNullConstraints: + iter700.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13867,6 +14183,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.tbl) value = (value * 31) ^ hash(self.primaryKeys) value = (value * 31) ^ hash(self.foreignKeys) + value = (value * 31) ^ hash(self.uniqueConstraints) + value = (value * 31) ^ hash(self.notNullConstraints) return value def __repr__(self): @@ -14426,6 +14744,298 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class add_unique_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddUniqueConstraintRequest, AddUniqueConstraintRequest.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 = AddUniqueConstraintRequest() + 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_unique_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_unique_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_unique_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 add_not_null_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddNotNullConstraintRequest, AddNotNullConstraintRequest.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 = AddNotNullConstraintRequest() + 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_not_null_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_not_null_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_not_null_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: @@ -14824,10 +15434,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype662, _size659) = iprot.readListBegin() - for _i663 in xrange(_size659): - _elem664 = iprot.readString() - self.partNames.append(_elem664) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString() + self.partNames.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -14852,8 +15462,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 iter665 in self.partNames: - oprot.writeString(iter665) + for iter707 in self.partNames: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15053,10 +15663,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype669, _size666) = iprot.readListBegin() - for _i670 in xrange(_size666): - _elem671 = iprot.readString() - self.success.append(_elem671) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString() + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -15079,8 +15689,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 iter672 in self.success: - oprot.writeString(iter672) + for iter714 in self.success: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15230,10 +15840,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype676, _size673) = iprot.readListBegin() - for _i677 in xrange(_size673): - _elem678 = iprot.readString() - self.success.append(_elem678) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString() + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -15256,8 +15866,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter679 in self.success: - oprot.writeString(iter679) + for iter721 in self.success: + oprot.writeString(iter721) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15330,10 +15940,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = iprot.readString() - self.tbl_types.append(_elem685) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString() + self.tbl_types.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -15358,8 +15968,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 iter686 in self.tbl_types: - oprot.writeString(iter686) + for iter728 in self.tbl_types: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15415,11 +16025,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = TableMeta() - _elem692.read(iprot) - self.success.append(_elem692) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = TableMeta() + _elem734.read(iprot) + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -15442,8 +16052,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 iter693 in self.success: - iter693.write(oprot) + for iter735 in self.success: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15567,10 +16177,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString() - self.success.append(_elem699) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = iprot.readString() + self.success.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -15593,8 +16203,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 iter700 in self.success: - oprot.writeString(iter700) + for iter742 in self.success: + oprot.writeString(iter742) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15830,10 +16440,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString() - self.tbl_names.append(_elem706) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = iprot.readString() + self.tbl_names.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -15854,8 +16464,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 iter707 in self.tbl_names: - oprot.writeString(iter707) + for iter749 in self.tbl_names: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15907,11 +16517,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = Table() - _elem713.read(iprot) - self.success.append(_elem713) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in xrange(_size750): + _elem755 = Table() + _elem755.read(iprot) + self.success.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -15928,8 +16538,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 iter714 in self.success: - iter714.write(oprot) + for iter756 in self.success: + iter756.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16412,10 +17022,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString() - self.success.append(_elem720) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in xrange(_size757): + _elem762 = iprot.readString() + self.success.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -16450,8 +17060,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 iter721 in self.success: - oprot.writeString(iter721) + for iter763 in self.success: + oprot.writeString(iter763) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17421,11 +18031,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = Partition() - _elem727.read(iprot) - self.new_parts.append(_elem727) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in xrange(_size764): + _elem769 = Partition() + _elem769.read(iprot) + self.new_parts.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) @@ -17442,8 +18052,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 iter728 in self.new_parts: - iter728.write(oprot) + for iter770 in self.new_parts: + iter770.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17601,11 +18211,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = PartitionSpec() - _elem734.read(iprot) - self.new_parts.append(_elem734) + (_etype774, _size771) = iprot.readListBegin() + for _i775 in xrange(_size771): + _elem776 = PartitionSpec() + _elem776.read(iprot) + self.new_parts.append(_elem776) iprot.readListEnd() else: iprot.skip(ftype) @@ -17622,8 +18232,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter735 in self.new_parts: - iter735.write(oprot) + for iter777 in self.new_parts: + iter777.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17797,10 +18407,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = iprot.readString() - self.part_vals.append(_elem741) + (_etype781, _size778) = iprot.readListBegin() + for _i782 in xrange(_size778): + _elem783 = iprot.readString() + self.part_vals.append(_elem783) iprot.readListEnd() else: iprot.skip(ftype) @@ -17825,8 +18435,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 iter742 in self.part_vals: - oprot.writeString(iter742) + for iter784 in self.part_vals: + oprot.writeString(iter784) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18179,10 +18789,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype746, _size743) = iprot.readListBegin() - for _i747 in xrange(_size743): - _elem748 = iprot.readString() - self.part_vals.append(_elem748) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in xrange(_size785): + _elem790 = iprot.readString() + self.part_vals.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) @@ -18213,8 +18823,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter749 in self.part_vals: - oprot.writeString(iter749) + for iter791 in self.part_vals: + oprot.writeString(iter791) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -18809,10 +19419,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = iprot.readString() - self.part_vals.append(_elem755) + (_etype795, _size792) = iprot.readListBegin() + for _i796 in xrange(_size792): + _elem797 = iprot.readString() + self.part_vals.append(_elem797) iprot.readListEnd() else: iprot.skip(ftype) @@ -18842,8 +19452,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter756 in self.part_vals: - oprot.writeString(iter756) + for iter798 in self.part_vals: + oprot.writeString(iter798) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -19016,10 +19626,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = iprot.readString() - self.part_vals.append(_elem762) + (_etype802, _size799) = iprot.readListBegin() + for _i803 in xrange(_size799): + _elem804 = iprot.readString() + self.part_vals.append(_elem804) iprot.readListEnd() else: iprot.skip(ftype) @@ -19055,8 +19665,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter763 in self.part_vals: - oprot.writeString(iter763) + for iter805 in self.part_vals: + oprot.writeString(iter805) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -19793,10 +20403,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype767, _size764) = iprot.readListBegin() - for _i768 in xrange(_size764): - _elem769 = iprot.readString() - self.part_vals.append(_elem769) + (_etype809, _size806) = iprot.readListBegin() + for _i810 in xrange(_size806): + _elem811 = iprot.readString() + self.part_vals.append(_elem811) iprot.readListEnd() else: iprot.skip(ftype) @@ -19821,8 +20431,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter770 in self.part_vals: - oprot.writeString(iter770) + for iter812 in self.part_vals: + oprot.writeString(iter812) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19981,11 +20591,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype772, _vtype773, _size771 ) = iprot.readMapBegin() - for _i775 in xrange(_size771): - _key776 = iprot.readString() - _val777 = iprot.readString() - self.partitionSpecs[_key776] = _val777 + (_ktype814, _vtype815, _size813 ) = iprot.readMapBegin() + for _i817 in xrange(_size813): + _key818 = iprot.readString() + _val819 = iprot.readString() + self.partitionSpecs[_key818] = _val819 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20022,9 +20632,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 kiter778,viter779 in self.partitionSpecs.items(): - oprot.writeString(kiter778) - oprot.writeString(viter779) + for kiter820,viter821 in self.partitionSpecs.items(): + oprot.writeString(kiter820) + oprot.writeString(viter821) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -20229,11 +20839,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype781, _vtype782, _size780 ) = iprot.readMapBegin() - for _i784 in xrange(_size780): - _key785 = iprot.readString() - _val786 = iprot.readString() - self.partitionSpecs[_key785] = _val786 + (_ktype823, _vtype824, _size822 ) = iprot.readMapBegin() + for _i826 in xrange(_size822): + _key827 = iprot.readString() + _val828 = iprot.readString() + self.partitionSpecs[_key827] = _val828 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20270,9 +20880,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 kiter787,viter788 in self.partitionSpecs.items(): - oprot.writeString(kiter787) - oprot.writeString(viter788) + for kiter829,viter830 in self.partitionSpecs.items(): + oprot.writeString(kiter829) + oprot.writeString(viter830) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -20355,11 +20965,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype792, _size789) = iprot.readListBegin() - for _i793 in xrange(_size789): - _elem794 = Partition() - _elem794.read(iprot) - self.success.append(_elem794) + (_etype834, _size831) = iprot.readListBegin() + for _i835 in xrange(_size831): + _elem836 = Partition() + _elem836.read(iprot) + self.success.append(_elem836) iprot.readListEnd() else: iprot.skip(ftype) @@ -20400,8 +21010,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 iter795 in self.success: - iter795.write(oprot) + for iter837 in self.success: + iter837.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20495,10 +21105,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype799, _size796) = iprot.readListBegin() - for _i800 in xrange(_size796): - _elem801 = iprot.readString() - self.part_vals.append(_elem801) + (_etype841, _size838) = iprot.readListBegin() + for _i842 in xrange(_size838): + _elem843 = iprot.readString() + self.part_vals.append(_elem843) iprot.readListEnd() else: iprot.skip(ftype) @@ -20510,10 +21120,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in xrange(_size802): - _elem807 = iprot.readString() - self.group_names.append(_elem807) + (_etype847, _size844) = iprot.readListBegin() + for _i848 in xrange(_size844): + _elem849 = iprot.readString() + self.group_names.append(_elem849) iprot.readListEnd() else: iprot.skip(ftype) @@ -20538,8 +21148,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 iter808 in self.part_vals: - oprot.writeString(iter808) + for iter850 in self.part_vals: + oprot.writeString(iter850) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -20549,8 +21159,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 iter809 in self.group_names: - oprot.writeString(iter809) + for iter851 in self.group_names: + oprot.writeString(iter851) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20979,11 +21589,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype813, _size810) = iprot.readListBegin() - for _i814 in xrange(_size810): - _elem815 = Partition() - _elem815.read(iprot) - self.success.append(_elem815) + (_etype855, _size852) = iprot.readListBegin() + for _i856 in xrange(_size852): + _elem857 = Partition() + _elem857.read(iprot) + self.success.append(_elem857) iprot.readListEnd() else: iprot.skip(ftype) @@ -21012,8 +21622,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 iter816 in self.success: - iter816.write(oprot) + for iter858 in self.success: + iter858.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21107,10 +21717,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype820, _size817) = iprot.readListBegin() - for _i821 in xrange(_size817): - _elem822 = iprot.readString() - self.group_names.append(_elem822) + (_etype862, _size859) = iprot.readListBegin() + for _i863 in xrange(_size859): + _elem864 = iprot.readString() + self.group_names.append(_elem864) iprot.readListEnd() else: iprot.skip(ftype) @@ -21143,8 +21753,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 iter823 in self.group_names: - oprot.writeString(iter823) + for iter865 in self.group_names: + oprot.writeString(iter865) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21205,11 +21815,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype827, _size824) = iprot.readListBegin() - for _i828 in xrange(_size824): - _elem829 = Partition() - _elem829.read(iprot) - self.success.append(_elem829) + (_etype869, _size866) = iprot.readListBegin() + for _i870 in xrange(_size866): + _elem871 = Partition() + _elem871.read(iprot) + self.success.append(_elem871) iprot.readListEnd() else: iprot.skip(ftype) @@ -21238,8 +21848,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 iter830 in self.success: - iter830.write(oprot) + for iter872 in self.success: + iter872.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21397,11 +22007,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype834, _size831) = iprot.readListBegin() - for _i835 in xrange(_size831): - _elem836 = PartitionSpec() - _elem836.read(iprot) - self.success.append(_elem836) + (_etype876, _size873) = iprot.readListBegin() + for _i877 in xrange(_size873): + _elem878 = PartitionSpec() + _elem878.read(iprot) + self.success.append(_elem878) iprot.readListEnd() else: iprot.skip(ftype) @@ -21430,8 +22040,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter837 in self.success: - iter837.write(oprot) + for iter879 in self.success: + iter879.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21586,10 +22196,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype841, _size838) = iprot.readListBegin() - for _i842 in xrange(_size838): - _elem843 = iprot.readString() - self.success.append(_elem843) + (_etype883, _size880) = iprot.readListBegin() + for _i884 in xrange(_size880): + _elem885 = iprot.readString() + self.success.append(_elem885) iprot.readListEnd() else: iprot.skip(ftype) @@ -21612,8 +22222,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 iter844 in self.success: - oprot.writeString(iter844) + for iter886 in self.success: + oprot.writeString(iter886) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21689,10 +22299,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype848, _size845) = iprot.readListBegin() - for _i849 in xrange(_size845): - _elem850 = iprot.readString() - self.part_vals.append(_elem850) + (_etype890, _size887) = iprot.readListBegin() + for _i891 in xrange(_size887): + _elem892 = iprot.readString() + self.part_vals.append(_elem892) iprot.readListEnd() else: iprot.skip(ftype) @@ -21722,8 +22332,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 iter851 in self.part_vals: - oprot.writeString(iter851) + for iter893 in self.part_vals: + oprot.writeString(iter893) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21787,11 +22397,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype855, _size852) = iprot.readListBegin() - for _i856 in xrange(_size852): - _elem857 = Partition() - _elem857.read(iprot) - self.success.append(_elem857) + (_etype897, _size894) = iprot.readListBegin() + for _i898 in xrange(_size894): + _elem899 = Partition() + _elem899.read(iprot) + self.success.append(_elem899) iprot.readListEnd() else: iprot.skip(ftype) @@ -21820,8 +22430,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 iter858 in self.success: - iter858.write(oprot) + for iter900 in self.success: + iter900.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21908,10 +22518,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype862, _size859) = iprot.readListBegin() - for _i863 in xrange(_size859): - _elem864 = iprot.readString() - self.part_vals.append(_elem864) + (_etype904, _size901) = iprot.readListBegin() + for _i905 in xrange(_size901): + _elem906 = iprot.readString() + self.part_vals.append(_elem906) iprot.readListEnd() else: iprot.skip(ftype) @@ -21928,10 +22538,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype868, _size865) = iprot.readListBegin() - for _i869 in xrange(_size865): - _elem870 = iprot.readString() - self.group_names.append(_elem870) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in xrange(_size907): + _elem912 = iprot.readString() + self.group_names.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) @@ -21956,8 +22566,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 iter871 in self.part_vals: - oprot.writeString(iter871) + for iter913 in self.part_vals: + oprot.writeString(iter913) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21971,8 +22581,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 iter872 in self.group_names: - oprot.writeString(iter872) + for iter914 in self.group_names: + oprot.writeString(iter914) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22034,11 +22644,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype876, _size873) = iprot.readListBegin() - for _i877 in xrange(_size873): - _elem878 = Partition() - _elem878.read(iprot) - self.success.append(_elem878) + (_etype918, _size915) = iprot.readListBegin() + for _i919 in xrange(_size915): + _elem920 = Partition() + _elem920.read(iprot) + self.success.append(_elem920) iprot.readListEnd() else: iprot.skip(ftype) @@ -22067,8 +22677,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 iter879 in self.success: - iter879.write(oprot) + for iter921 in self.success: + iter921.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22149,10 +22759,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype883, _size880) = iprot.readListBegin() - for _i884 in xrange(_size880): - _elem885 = iprot.readString() - self.part_vals.append(_elem885) + (_etype925, _size922) = iprot.readListBegin() + for _i926 in xrange(_size922): + _elem927 = iprot.readString() + self.part_vals.append(_elem927) iprot.readListEnd() else: iprot.skip(ftype) @@ -22182,8 +22792,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 iter886 in self.part_vals: - oprot.writeString(iter886) + for iter928 in self.part_vals: + oprot.writeString(iter928) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22247,10 +22857,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype890, _size887) = iprot.readListBegin() - for _i891 in xrange(_size887): - _elem892 = iprot.readString() - self.success.append(_elem892) + (_etype932, _size929) = iprot.readListBegin() + for _i933 in xrange(_size929): + _elem934 = iprot.readString() + self.success.append(_elem934) iprot.readListEnd() else: iprot.skip(ftype) @@ -22279,8 +22889,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 iter893 in self.success: - oprot.writeString(iter893) + for iter935 in self.success: + oprot.writeString(iter935) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22451,11 +23061,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype897, _size894) = iprot.readListBegin() - for _i898 in xrange(_size894): - _elem899 = Partition() - _elem899.read(iprot) - self.success.append(_elem899) + (_etype939, _size936) = iprot.readListBegin() + for _i940 in xrange(_size936): + _elem941 = Partition() + _elem941.read(iprot) + self.success.append(_elem941) iprot.readListEnd() else: iprot.skip(ftype) @@ -22484,8 +23094,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 iter900 in self.success: - iter900.write(oprot) + for iter942 in self.success: + iter942.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22656,11 +23266,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype904, _size901) = iprot.readListBegin() - for _i905 in xrange(_size901): - _elem906 = PartitionSpec() - _elem906.read(iprot) - self.success.append(_elem906) + (_etype946, _size943) = iprot.readListBegin() + for _i947 in xrange(_size943): + _elem948 = PartitionSpec() + _elem948.read(iprot) + self.success.append(_elem948) iprot.readListEnd() else: iprot.skip(ftype) @@ -22689,8 +23299,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter907 in self.success: - iter907.write(oprot) + for iter949 in self.success: + iter949.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23110,10 +23720,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype911, _size908) = iprot.readListBegin() - for _i912 in xrange(_size908): - _elem913 = iprot.readString() - self.names.append(_elem913) + (_etype953, _size950) = iprot.readListBegin() + for _i954 in xrange(_size950): + _elem955 = iprot.readString() + self.names.append(_elem955) iprot.readListEnd() else: iprot.skip(ftype) @@ -23138,8 +23748,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 iter914 in self.names: - oprot.writeString(iter914) + for iter956 in self.names: + oprot.writeString(iter956) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23198,11 +23808,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype918, _size915) = iprot.readListBegin() - for _i919 in xrange(_size915): - _elem920 = Partition() - _elem920.read(iprot) - self.success.append(_elem920) + (_etype960, _size957) = iprot.readListBegin() + for _i961 in xrange(_size957): + _elem962 = Partition() + _elem962.read(iprot) + self.success.append(_elem962) iprot.readListEnd() else: iprot.skip(ftype) @@ -23231,8 +23841,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 iter921 in self.success: - iter921.write(oprot) + for iter963 in self.success: + iter963.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23482,11 +24092,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype925, _size922) = iprot.readListBegin() - for _i926 in xrange(_size922): - _elem927 = Partition() - _elem927.read(iprot) - self.new_parts.append(_elem927) + (_etype967, _size964) = iprot.readListBegin() + for _i968 in xrange(_size964): + _elem969 = Partition() + _elem969.read(iprot) + self.new_parts.append(_elem969) iprot.readListEnd() else: iprot.skip(ftype) @@ -23511,8 +24121,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 iter928 in self.new_parts: - iter928.write(oprot) + for iter970 in self.new_parts: + iter970.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23665,11 +24275,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype932, _size929) = iprot.readListBegin() - for _i933 in xrange(_size929): - _elem934 = Partition() - _elem934.read(iprot) - self.new_parts.append(_elem934) + (_etype974, _size971) = iprot.readListBegin() + for _i975 in xrange(_size971): + _elem976 = Partition() + _elem976.read(iprot) + self.new_parts.append(_elem976) iprot.readListEnd() else: iprot.skip(ftype) @@ -23700,8 +24310,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter935 in self.new_parts: - iter935.write(oprot) + for iter977 in self.new_parts: + iter977.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -24045,10 +24655,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype939, _size936) = iprot.readListBegin() - for _i940 in xrange(_size936): - _elem941 = iprot.readString() - self.part_vals.append(_elem941) + (_etype981, _size978) = iprot.readListBegin() + for _i982 in xrange(_size978): + _elem983 = iprot.readString() + self.part_vals.append(_elem983) iprot.readListEnd() else: iprot.skip(ftype) @@ -24079,8 +24689,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 iter942 in self.part_vals: - oprot.writeString(iter942) + for iter984 in self.part_vals: + oprot.writeString(iter984) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -24222,10 +24832,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype946, _size943) = iprot.readListBegin() - for _i947 in xrange(_size943): - _elem948 = iprot.readString() - self.part_vals.append(_elem948) + (_etype988, _size985) = iprot.readListBegin() + for _i989 in xrange(_size985): + _elem990 = iprot.readString() + self.part_vals.append(_elem990) iprot.readListEnd() else: iprot.skip(ftype) @@ -24247,8 +24857,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 iter949 in self.part_vals: - oprot.writeString(iter949) + for iter991 in self.part_vals: + oprot.writeString(iter991) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -24606,10 +25216,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype953, _size950) = iprot.readListBegin() - for _i954 in xrange(_size950): - _elem955 = iprot.readString() - self.success.append(_elem955) + (_etype995, _size992) = iprot.readListBegin() + for _i996 in xrange(_size992): + _elem997 = iprot.readString() + self.success.append(_elem997) iprot.readListEnd() else: iprot.skip(ftype) @@ -24632,8 +25242,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 iter956 in self.success: - oprot.writeString(iter956) + for iter998 in self.success: + oprot.writeString(iter998) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24757,11 +25367,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype958, _vtype959, _size957 ) = iprot.readMapBegin() - for _i961 in xrange(_size957): - _key962 = iprot.readString() - _val963 = iprot.readString() - self.success[_key962] = _val963 + (_ktype1000, _vtype1001, _size999 ) = iprot.readMapBegin() + for _i1003 in xrange(_size999): + _key1004 = iprot.readString() + _val1005 = iprot.readString() + self.success[_key1004] = _val1005 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24784,9 +25394,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 kiter964,viter965 in self.success.items(): - oprot.writeString(kiter964) - oprot.writeString(viter965) + for kiter1006,viter1007 in self.success.items(): + oprot.writeString(kiter1006) + oprot.writeString(viter1007) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24862,11 +25472,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype967, _vtype968, _size966 ) = iprot.readMapBegin() - for _i970 in xrange(_size966): - _key971 = iprot.readString() - _val972 = iprot.readString() - self.part_vals[_key971] = _val972 + (_ktype1009, _vtype1010, _size1008 ) = iprot.readMapBegin() + for _i1012 in xrange(_size1008): + _key1013 = iprot.readString() + _val1014 = iprot.readString() + self.part_vals[_key1013] = _val1014 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24896,9 +25506,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 kiter973,viter974 in self.part_vals.items(): - oprot.writeString(kiter973) - oprot.writeString(viter974) + for kiter1015,viter1016 in self.part_vals.items(): + oprot.writeString(kiter1015) + oprot.writeString(viter1016) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -25112,11 +25722,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype976, _vtype977, _size975 ) = iprot.readMapBegin() - for _i979 in xrange(_size975): - _key980 = iprot.readString() - _val981 = iprot.readString() - self.part_vals[_key980] = _val981 + (_ktype1018, _vtype1019, _size1017 ) = iprot.readMapBegin() + for _i1021 in xrange(_size1017): + _key1022 = iprot.readString() + _val1023 = iprot.readString() + self.part_vals[_key1022] = _val1023 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25146,9 +25756,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 kiter982,viter983 in self.part_vals.items(): - oprot.writeString(kiter982) - oprot.writeString(viter983) + for kiter1024,viter1025 in self.part_vals.items(): + oprot.writeString(kiter1024) + oprot.writeString(viter1025) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -25937,8 +26547,384 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.index_name = iprot.readString() + if ftype == TType.STRING: + self.index_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_index_by_name_args') + 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() + if self.index_name is not None: + oprot.writeFieldBegin('index_name', TType.STRING, 3) + oprot.writeString(self.index_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.index_name) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_index_by_name_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Index, Index.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 = Index() + 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_index_by_name_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 get_indexes_args: + """ + Attributes: + - db_name + - tbl_name + - max_indexes + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.I16, 'max_indexes', None, -1, ), # 3 + ) + + def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],): + self.db_name = db_name + self.tbl_name = tbl_name + self.max_indexes = max_indexes + + 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) + elif fid == 3: + if ftype == TType.I16: + self.max_indexes = iprot.readI16() + 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_indexes_args') + 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() + if self.max_indexes is not None: + oprot.writeFieldBegin('max_indexes', TType.I16, 3) + oprot.writeI16(self.max_indexes) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + value = (value * 31) ^ hash(self.max_indexes) + 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_indexes_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(Index, Index.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, 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.LIST: + self.success = [] + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in xrange(_size1026): + _elem1031 = Index() + _elem1031.read(iprot) + self.success.append(_elem1031) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif 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('get_indexes_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1032 in self.success: + iter1032.write(oprot) + oprot.writeListEnd() + 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 get_index_names_args: + """ + Attributes: + - db_name + - tbl_name + - max_indexes + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.I16, 'max_indexes', None, -1, ), # 3 + ) + + def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],): + self.db_name = db_name + self.tbl_name = tbl_name + self.max_indexes = max_indexes + + 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) + elif fid == 3: + if ftype == TType.I16: + self.max_indexes = iprot.readI16() else: iprot.skip(ftype) else: @@ -25950,7 +26936,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_index_by_name_args') + oprot.writeStructBegin('get_index_names_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -25959,9 +26945,9 @@ def write(self, oprot): oprot.writeFieldBegin('tbl_name', TType.STRING, 2) oprot.writeString(self.tbl_name) oprot.writeFieldEnd() - if self.index_name is not None: - oprot.writeFieldBegin('index_name', TType.STRING, 3) - oprot.writeString(self.index_name) + if self.max_indexes is not None: + oprot.writeFieldBegin('max_indexes', TType.I16, 3) + oprot.writeI16(self.max_indexes) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25974,7 +26960,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.db_name) value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.index_name) + value = (value * 31) ^ hash(self.max_indexes) return value def __repr__(self): @@ -25988,23 +26974,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_index_by_name_result: +class get_index_names_result: """ Attributes: - success - - o1 - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (Index, Index.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1 ) - def __init__(self, success=None, o1=None, o2=None,): + def __init__(self, success=None, o2=None,): self.success = success - self.o1 = o1 self.o2 = o2 def read(self, iprot): @@ -26017,20 +27000,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = Index() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in xrange(_size1033): + _elem1038 = iprot.readString() + self.success.append(_elem1038) + iprot.readListEnd() 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 = MetaException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -26043,17 +27024,16 @@ 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_index_by_name_result') + oprot.writeStructBegin('get_index_names_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.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1039 in self.success: + oprot.writeString(iter1039) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 1) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26066,7 +27046,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) return value @@ -26081,25 +27060,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_indexes_args: +class get_primary_keys_args: """ Attributes: - - db_name - - tbl_name - - max_indexes + - request """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.I16, 'max_indexes', None, -1, ), # 3 + (1, TType.STRUCT, 'request', (PrimaryKeysRequest, PrimaryKeysRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],): - self.db_name = db_name - self.tbl_name = tbl_name - self.max_indexes = max_indexes + 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: @@ -26111,18 +27084,9 @@ def read(self, iprot): 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) - elif fid == 3: - if ftype == TType.I16: - self.max_indexes = iprot.readI16() + if ftype == TType.STRUCT: + self.request = PrimaryKeysRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -26134,18 +27098,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_indexes_args') - 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() - if self.max_indexes is not None: - oprot.writeFieldBegin('max_indexes', TType.I16, 3) - oprot.writeI16(self.max_indexes) + oprot.writeStructBegin('get_primary_keys_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26156,9 +27112,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -26172,7 +27126,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_indexes_result: +class get_primary_keys_result: """ Attributes: - success @@ -26181,9 +27135,9 @@ class get_indexes_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(Index, Index.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (PrimaryKeysResponse, PrimaryKeysResponse.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,): @@ -26201,25 +27155,20 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype987, _size984) = iprot.readListBegin() - for _i988 in xrange(_size984): - _elem989 = Index() - _elem989.read(iprot) - self.success.append(_elem989) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PrimaryKeysResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException() + self.o1 = MetaException() self.o1.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException() + self.o2 = NoSuchObjectException() self.o2.read(iprot) else: iprot.skip(ftype) @@ -26232,13 +27181,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_indexes_result') + oprot.writeStructBegin('get_primary_keys_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter990 in self.success: - iter990.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -26273,25 +27219,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_index_names_args: +class get_foreign_keys_args: """ Attributes: - - db_name - - tbl_name - - max_indexes + - request """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 - (2, TType.STRING, 'tbl_name', None, None, ), # 2 - (3, TType.I16, 'max_indexes', None, -1, ), # 3 + (1, TType.STRUCT, 'request', (ForeignKeysRequest, ForeignKeysRequest.thrift_spec), None, ), # 1 ) - def __init__(self, db_name=None, tbl_name=None, max_indexes=thrift_spec[3][4],): - self.db_name = db_name - self.tbl_name = tbl_name - self.max_indexes = max_indexes + 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: @@ -26303,18 +27243,9 @@ def read(self, iprot): 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) - elif fid == 3: - if ftype == TType.I16: - self.max_indexes = iprot.readI16() + if ftype == TType.STRUCT: + self.request = ForeignKeysRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -26326,18 +27257,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_index_names_args') - 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() - if self.max_indexes is not None: - oprot.writeFieldBegin('max_indexes', TType.I16, 3) - oprot.writeI16(self.max_indexes) + oprot.writeStructBegin('get_foreign_keys_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26348,9 +27271,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) + value = (value * 31) ^ hash(self.request) return value def __repr__(self): @@ -26364,20 +27285,23 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_index_names_result: +class get_foreign_keys_result: """ Attributes: - success + - o1 - o2 """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 - (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1 + (0, TType.STRUCT, 'success', (ForeignKeysResponse, ForeignKeysResponse.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, o2=None,): + def __init__(self, success=None, o1=None, o2=None,): self.success = success + self.o1 = o1 self.o2 = o2 def read(self, iprot): @@ -26390,18 +27314,20 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype994, _size991) = iprot.readListBegin() - for _i995 in xrange(_size991): - _elem996 = iprot.readString() - self.success.append(_elem996) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = ForeignKeysResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o2 = MetaException() + 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) @@ -26414,16 +27340,17 @@ 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_index_names_result') + oprot.writeStructBegin('get_foreign_keys_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter997 in self.success: - oprot.writeString(iter997) - oprot.writeListEnd() + 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, 1) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26436,6 +27363,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) return value @@ -26450,7 +27378,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_primary_keys_args: +class get_unique_constraints_args: """ Attributes: - request @@ -26458,7 +27386,7 @@ class get_primary_keys_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (PrimaryKeysRequest, PrimaryKeysRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (UniqueConstraintsRequest, UniqueConstraintsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -26475,7 +27403,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = PrimaryKeysRequest() + self.request = UniqueConstraintsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -26488,7 +27416,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_primary_keys_args') + oprot.writeStructBegin('get_unique_constraints_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -26516,7 +27444,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_primary_keys_result: +class get_unique_constraints_result: """ Attributes: - success @@ -26525,7 +27453,7 @@ class get_primary_keys_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PrimaryKeysResponse, PrimaryKeysResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (UniqueConstraintsResponse, UniqueConstraintsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -26546,7 +27474,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = PrimaryKeysResponse() + self.success = UniqueConstraintsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -26571,7 +27499,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_primary_keys_result') + oprot.writeStructBegin('get_unique_constraints_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -26609,7 +27537,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_foreign_keys_args: +class get_not_null_constraints_args: """ Attributes: - request @@ -26617,7 +27545,7 @@ class get_foreign_keys_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'request', (ForeignKeysRequest, ForeignKeysRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'request', (NotNullConstraintsRequest, NotNullConstraintsRequest.thrift_spec), None, ), # 1 ) def __init__(self, request=None,): @@ -26634,7 +27562,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = ForeignKeysRequest() + self.request = NotNullConstraintsRequest() self.request.read(iprot) else: iprot.skip(ftype) @@ -26647,7 +27575,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_foreign_keys_args') + oprot.writeStructBegin('get_not_null_constraints_args') if self.request is not None: oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) @@ -26675,7 +27603,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_foreign_keys_result: +class get_not_null_constraints_result: """ Attributes: - success @@ -26684,7 +27612,7 @@ class get_foreign_keys_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ForeignKeysResponse, ForeignKeysResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (NotNullConstraintsResponse, NotNullConstraintsResponse.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -26705,7 +27633,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ForeignKeysResponse() + self.success = NotNullConstraintsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -26730,7 +27658,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('get_foreign_keys_result') + oprot.writeStructBegin('get_not_null_constraints_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -29285,10 +30213,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1001, _size998) = iprot.readListBegin() - for _i1002 in xrange(_size998): - _elem1003 = iprot.readString() - self.success.append(_elem1003) + (_etype1043, _size1040) = iprot.readListBegin() + for _i1044 in xrange(_size1040): + _elem1045 = iprot.readString() + self.success.append(_elem1045) iprot.readListEnd() else: iprot.skip(ftype) @@ -29311,8 +30239,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1004 in self.success: - oprot.writeString(iter1004) + for iter1046 in self.success: + oprot.writeString(iter1046) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30000,10 +30928,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1008, _size1005) = iprot.readListBegin() - for _i1009 in xrange(_size1005): - _elem1010 = iprot.readString() - self.success.append(_elem1010) + (_etype1050, _size1047) = iprot.readListBegin() + for _i1051 in xrange(_size1047): + _elem1052 = iprot.readString() + self.success.append(_elem1052) iprot.readListEnd() else: iprot.skip(ftype) @@ -30026,8 +30954,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1011 in self.success: - oprot.writeString(iter1011) + for iter1053 in self.success: + oprot.writeString(iter1053) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30541,11 +31469,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1015, _size1012) = iprot.readListBegin() - for _i1016 in xrange(_size1012): - _elem1017 = Role() - _elem1017.read(iprot) - self.success.append(_elem1017) + (_etype1057, _size1054) = iprot.readListBegin() + for _i1058 in xrange(_size1054): + _elem1059 = Role() + _elem1059.read(iprot) + self.success.append(_elem1059) iprot.readListEnd() else: iprot.skip(ftype) @@ -30568,8 +31496,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 iter1018 in self.success: - iter1018.write(oprot) + for iter1060 in self.success: + iter1060.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31078,10 +32006,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1022, _size1019) = iprot.readListBegin() - for _i1023 in xrange(_size1019): - _elem1024 = iprot.readString() - self.group_names.append(_elem1024) + (_etype1064, _size1061) = iprot.readListBegin() + for _i1065 in xrange(_size1061): + _elem1066 = iprot.readString() + self.group_names.append(_elem1066) iprot.readListEnd() else: iprot.skip(ftype) @@ -31106,8 +32034,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 iter1025 in self.group_names: - oprot.writeString(iter1025) + for iter1067 in self.group_names: + oprot.writeString(iter1067) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31334,11 +32262,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1029, _size1026) = iprot.readListBegin() - for _i1030 in xrange(_size1026): - _elem1031 = HiveObjectPrivilege() - _elem1031.read(iprot) - self.success.append(_elem1031) + (_etype1071, _size1068) = iprot.readListBegin() + for _i1072 in xrange(_size1068): + _elem1073 = HiveObjectPrivilege() + _elem1073.read(iprot) + self.success.append(_elem1073) iprot.readListEnd() else: iprot.skip(ftype) @@ -31361,8 +32289,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 iter1032 in self.success: - iter1032.write(oprot) + for iter1074 in self.success: + iter1074.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31860,10 +32788,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1036, _size1033) = iprot.readListBegin() - for _i1037 in xrange(_size1033): - _elem1038 = iprot.readString() - self.group_names.append(_elem1038) + (_etype1078, _size1075) = iprot.readListBegin() + for _i1079 in xrange(_size1075): + _elem1080 = iprot.readString() + self.group_names.append(_elem1080) iprot.readListEnd() else: iprot.skip(ftype) @@ -31884,8 +32812,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 iter1039 in self.group_names: - oprot.writeString(iter1039) + for iter1081 in self.group_names: + oprot.writeString(iter1081) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31940,10 +32868,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1043, _size1040) = iprot.readListBegin() - for _i1044 in xrange(_size1040): - _elem1045 = iprot.readString() - self.success.append(_elem1045) + (_etype1085, _size1082) = iprot.readListBegin() + for _i1086 in xrange(_size1082): + _elem1087 = iprot.readString() + self.success.append(_elem1087) iprot.readListEnd() else: iprot.skip(ftype) @@ -31966,8 +32894,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 iter1046 in self.success: - oprot.writeString(iter1046) + for iter1088 in self.success: + oprot.writeString(iter1088) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32899,10 +33827,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1050, _size1047) = iprot.readListBegin() - for _i1051 in xrange(_size1047): - _elem1052 = iprot.readString() - self.success.append(_elem1052) + (_etype1092, _size1089) = iprot.readListBegin() + for _i1093 in xrange(_size1089): + _elem1094 = iprot.readString() + self.success.append(_elem1094) iprot.readListEnd() else: iprot.skip(ftype) @@ -32919,8 +33847,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1053 in self.success: - oprot.writeString(iter1053) + for iter1095 in self.success: + oprot.writeString(iter1095) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33447,10 +34375,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1057, _size1054) = iprot.readListBegin() - for _i1058 in xrange(_size1054): - _elem1059 = iprot.readString() - self.success.append(_elem1059) + (_etype1099, _size1096) = iprot.readListBegin() + for _i1100 in xrange(_size1096): + _elem1101 = iprot.readString() + self.success.append(_elem1101) iprot.readListEnd() else: iprot.skip(ftype) @@ -33467,8 +34395,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1060 in self.success: - oprot.writeString(iter1060) + for iter1102 in self.success: + oprot.writeString(iter1102) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index f26cb5b..1e2b890 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -821,28 +821,40 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Type: +class SQLUniqueConstraint: """ Attributes: - - name - - type1 - - type2 - - fields + - table_db + - table_name + - column_name + - key_seq + - uk_name + - enable_cstr + - validate_cstr + - rely_cstr """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'name', None, None, ), # 1 - (2, TType.STRING, 'type1', None, None, ), # 2 - (3, TType.STRING, 'type2', None, None, ), # 3 - (4, TType.LIST, 'fields', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 4 + (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.I32, 'key_seq', None, None, ), # 4 + (5, TType.STRING, 'uk_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, name=None, type1=None, type2=None, fields=None,): - self.name = name - self.type1 = type1 - self.type2 = type2 - self.fields = fields + def __init__(self, table_db=None, table_name=None, column_name=None, key_seq=None, uk_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.key_seq = key_seq + self.uk_name = uk_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: @@ -855,28 +867,42 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.table_db = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type1 = iprot.readString() + self.table_name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.type2 = iprot.readString() + self.column_name = iprot.readString() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.LIST: - self.fields = [] - (_etype3, _size0) = iprot.readListBegin() - for _i4 in xrange(_size0): - _elem5 = FieldSchema() - _elem5.read(iprot) - self.fields.append(_elem5) - iprot.readListEnd() + if ftype == TType.I32: + self.key_seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.uk_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: @@ -888,25 +914,38 @@ 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('Type') - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 1) - oprot.writeString(self.name) + oprot.writeStructBegin('SQLUniqueConstraint') + if self.table_db is not None: + oprot.writeFieldBegin('table_db', TType.STRING, 1) + oprot.writeString(self.table_db) oprot.writeFieldEnd() - if self.type1 is not None: - oprot.writeFieldBegin('type1', TType.STRING, 2) - oprot.writeString(self.type1) + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) oprot.writeFieldEnd() - if self.type2 is not None: - oprot.writeFieldBegin('type2', TType.STRING, 3) - oprot.writeString(self.type2) + if self.column_name is not None: + oprot.writeFieldBegin('column_name', TType.STRING, 3) + oprot.writeString(self.column_name) oprot.writeFieldEnd() - if self.fields is not None: - oprot.writeFieldBegin('fields', TType.LIST, 4) - oprot.writeListBegin(TType.STRUCT, len(self.fields)) - for iter6 in self.fields: - iter6.write(oprot) - oprot.writeListEnd() + if self.key_seq is not None: + oprot.writeFieldBegin('key_seq', TType.I32, 4) + oprot.writeI32(self.key_seq) + oprot.writeFieldEnd() + if self.uk_name is not None: + oprot.writeFieldBegin('uk_name', TType.STRING, 5) + oprot.writeString(self.uk_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() @@ -917,10 +956,14 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.type1) - value = (value * 31) ^ hash(self.type2) - value = (value * 31) ^ hash(self.fields) + 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.key_seq) + value = (value * 31) ^ hash(self.uk_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): @@ -934,31 +977,37 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class HiveObjectRef: +class SQLNotNullConstraint: """ Attributes: - - objectType - - dbName - - objectName - - partValues - - columnName + - table_db + - table_name + - column_name + - nn_name + - enable_cstr + - validate_cstr + - rely_cstr """ thrift_spec = ( None, # 0 - (1, TType.I32, 'objectType', None, None, ), # 1 - (2, TType.STRING, 'dbName', None, None, ), # 2 - (3, TType.STRING, 'objectName', None, None, ), # 3 - (4, TType.LIST, 'partValues', (TType.STRING,None), None, ), # 4 - (5, TType.STRING, 'columnName', None, None, ), # 5 + (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, 'nn_name', None, None, ), # 4 + (5, TType.BOOL, 'enable_cstr', None, None, ), # 5 + (6, TType.BOOL, 'validate_cstr', None, None, ), # 6 + (7, TType.BOOL, 'rely_cstr', None, None, ), # 7 ) - def __init__(self, objectType=None, dbName=None, objectName=None, partValues=None, columnName=None,): - self.objectType = objectType - self.dbName = dbName - self.objectName = objectName - self.partValues = partValues - self.columnName = columnName + def __init__(self, table_db=None, table_name=None, column_name=None, nn_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.nn_name = nn_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: @@ -970,33 +1019,38 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I32: - self.objectType = iprot.readI32() + if ftype == TType.STRING: + self.table_db = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.table_name = iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.objectName = iprot.readString() + self.column_name = iprot.readString() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.LIST: - self.partValues = [] - (_etype10, _size7) = iprot.readListBegin() - for _i11 in xrange(_size7): - _elem12 = iprot.readString() - self.partValues.append(_elem12) - iprot.readListEnd() + if ftype == TType.STRING: + self.nn_name = iprot.readString() else: iprot.skip(ftype) elif fid == 5: - if ftype == TType.STRING: - self.columnName = iprot.readString() + if ftype == TType.BOOL: + self.enable_cstr = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.validate_cstr = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.rely_cstr = iprot.readBool() else: iprot.skip(ftype) else: @@ -1008,29 +1062,34 @@ 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('HiveObjectRef') - if self.objectType is not None: - oprot.writeFieldBegin('objectType', TType.I32, 1) - oprot.writeI32(self.objectType) + oprot.writeStructBegin('SQLNotNullConstraint') + if self.table_db is not None: + oprot.writeFieldBegin('table_db', TType.STRING, 1) + oprot.writeString(self.table_db) oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 2) - oprot.writeString(self.dbName) + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) oprot.writeFieldEnd() - if self.objectName is not None: - oprot.writeFieldBegin('objectName', TType.STRING, 3) - oprot.writeString(self.objectName) + if self.column_name is not None: + oprot.writeFieldBegin('column_name', TType.STRING, 3) + oprot.writeString(self.column_name) oprot.writeFieldEnd() - if self.partValues is not None: - oprot.writeFieldBegin('partValues', TType.LIST, 4) - oprot.writeListBegin(TType.STRING, len(self.partValues)) - for iter13 in self.partValues: - oprot.writeString(iter13) - oprot.writeListEnd() + if self.nn_name is not None: + oprot.writeFieldBegin('nn_name', TType.STRING, 4) + oprot.writeString(self.nn_name) oprot.writeFieldEnd() - if self.columnName is not None: - oprot.writeFieldBegin('columnName', TType.STRING, 5) - oprot.writeString(self.columnName) + if self.enable_cstr is not None: + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 5) + oprot.writeBool(self.enable_cstr) + oprot.writeFieldEnd() + if self.validate_cstr is not None: + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 6) + oprot.writeBool(self.validate_cstr) + oprot.writeFieldEnd() + if self.rely_cstr is not None: + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 7) + oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1041,11 +1100,13 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.objectType) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.objectName) - value = (value * 31) ^ hash(self.partValues) - value = (value * 31) ^ hash(self.columnName) + 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.nn_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): @@ -1059,30 +1120,268 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class PrivilegeGrantInfo: +class Type: """ Attributes: - - privilege - - createTime - - grantor - - grantorType - - grantOption + - name + - type1 + - type2 + - fields """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'privilege', None, None, ), # 1 - (2, TType.I32, 'createTime', None, None, ), # 2 - (3, TType.STRING, 'grantor', None, None, ), # 3 - (4, TType.I32, 'grantorType', None, None, ), # 4 - (5, TType.BOOL, 'grantOption', None, None, ), # 5 + (1, TType.STRING, 'name', None, None, ), # 1 + (2, TType.STRING, 'type1', None, None, ), # 2 + (3, TType.STRING, 'type2', None, None, ), # 3 + (4, TType.LIST, 'fields', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 4 ) - def __init__(self, privilege=None, createTime=None, grantor=None, grantorType=None, grantOption=None,): - self.privilege = privilege - self.createTime = createTime - self.grantor = grantor - self.grantorType = grantorType + def __init__(self, name=None, type1=None, type2=None, fields=None,): + self.name = name + self.type1 = type1 + self.type2 = type2 + self.fields = fields + + 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.name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.type1 = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.type2 = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.fields = [] + (_etype3, _size0) = iprot.readListBegin() + for _i4 in xrange(_size0): + _elem5 = FieldSchema() + _elem5.read(iprot) + self.fields.append(_elem5) + 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('Type') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name) + oprot.writeFieldEnd() + if self.type1 is not None: + oprot.writeFieldBegin('type1', TType.STRING, 2) + oprot.writeString(self.type1) + oprot.writeFieldEnd() + if self.type2 is not None: + oprot.writeFieldBegin('type2', TType.STRING, 3) + oprot.writeString(self.type2) + oprot.writeFieldEnd() + if self.fields is not None: + oprot.writeFieldBegin('fields', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.fields)) + for iter6 in self.fields: + iter6.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.name) + value = (value * 31) ^ hash(self.type1) + value = (value * 31) ^ hash(self.type2) + value = (value * 31) ^ hash(self.fields) + 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 HiveObjectRef: + """ + Attributes: + - objectType + - dbName + - objectName + - partValues + - columnName + """ + + thrift_spec = ( + None, # 0 + (1, TType.I32, 'objectType', None, None, ), # 1 + (2, TType.STRING, 'dbName', None, None, ), # 2 + (3, TType.STRING, 'objectName', None, None, ), # 3 + (4, TType.LIST, 'partValues', (TType.STRING,None), None, ), # 4 + (5, TType.STRING, 'columnName', None, None, ), # 5 + ) + + def __init__(self, objectType=None, dbName=None, objectName=None, partValues=None, columnName=None,): + self.objectType = objectType + self.dbName = dbName + self.objectName = objectName + self.partValues = partValues + self.columnName = columnName + + 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.I32: + self.objectType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.objectName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.partValues = [] + (_etype10, _size7) = iprot.readListBegin() + for _i11 in xrange(_size7): + _elem12 = iprot.readString() + self.partValues.append(_elem12) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.columnName = 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('HiveObjectRef') + if self.objectType is not None: + oprot.writeFieldBegin('objectType', TType.I32, 1) + oprot.writeI32(self.objectType) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.objectName is not None: + oprot.writeFieldBegin('objectName', TType.STRING, 3) + oprot.writeString(self.objectName) + oprot.writeFieldEnd() + if self.partValues is not None: + oprot.writeFieldBegin('partValues', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.partValues)) + for iter13 in self.partValues: + oprot.writeString(iter13) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.columnName is not None: + oprot.writeFieldBegin('columnName', TType.STRING, 5) + oprot.writeString(self.columnName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.objectType) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.objectName) + value = (value * 31) ^ hash(self.partValues) + value = (value * 31) ^ hash(self.columnName) + 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 PrivilegeGrantInfo: + """ + Attributes: + - privilege + - createTime + - grantor + - grantorType + - grantOption + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'privilege', None, None, ), # 1 + (2, TType.I32, 'createTime', None, None, ), # 2 + (3, TType.STRING, 'grantor', None, None, ), # 3 + (4, TType.I32, 'grantorType', None, None, ), # 4 + (5, TType.BOOL, 'grantOption', None, None, ), # 5 + ) + + def __init__(self, privilege=None, createTime=None, grantor=None, grantorType=None, grantOption=None,): + self.privilege = privilege + self.createTime = createTime + self.grantor = grantor + self.grantorType = grantorType self.grantOption = grantOption def read(self, iprot): @@ -5379,28 +5678,423 @@ def write(self, oprot): oprot.writeFieldBegin('colType', TType.STRING, 2) oprot.writeString(self.colType) oprot.writeFieldEnd() - if self.statsData is not None: - oprot.writeFieldBegin('statsData', TType.STRUCT, 3) - self.statsData.write(oprot) + if self.statsData is not None: + oprot.writeFieldBegin('statsData', TType.STRUCT, 3) + self.statsData.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.colName is None: + raise TProtocol.TProtocolException(message='Required field colName is unset!') + if self.colType is None: + raise TProtocol.TProtocolException(message='Required field colType is unset!') + if self.statsData is None: + raise TProtocol.TProtocolException(message='Required field statsData is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.colName) + value = (value * 31) ^ hash(self.colType) + value = (value * 31) ^ hash(self.statsData) + 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 ColumnStatisticsDesc: + """ + Attributes: + - isTblLevel + - dbName + - tableName + - partName + - lastAnalyzed + """ + + thrift_spec = ( + None, # 0 + (1, TType.BOOL, 'isTblLevel', None, None, ), # 1 + (2, TType.STRING, 'dbName', None, None, ), # 2 + (3, TType.STRING, 'tableName', None, None, ), # 3 + (4, TType.STRING, 'partName', None, None, ), # 4 + (5, TType.I64, 'lastAnalyzed', None, None, ), # 5 + ) + + def __init__(self, isTblLevel=None, dbName=None, tableName=None, partName=None, lastAnalyzed=None,): + self.isTblLevel = isTblLevel + self.dbName = dbName + self.tableName = tableName + self.partName = partName + self.lastAnalyzed = lastAnalyzed + + 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.BOOL: + self.isTblLevel = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.partName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.lastAnalyzed = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('ColumnStatisticsDesc') + if self.isTblLevel is not None: + oprot.writeFieldBegin('isTblLevel', TType.BOOL, 1) + oprot.writeBool(self.isTblLevel) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName) + oprot.writeFieldEnd() + if self.partName is not None: + oprot.writeFieldBegin('partName', TType.STRING, 4) + oprot.writeString(self.partName) + oprot.writeFieldEnd() + if self.lastAnalyzed is not None: + oprot.writeFieldBegin('lastAnalyzed', TType.I64, 5) + oprot.writeI64(self.lastAnalyzed) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.isTblLevel is None: + raise TProtocol.TProtocolException(message='Required field isTblLevel is unset!') + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tableName is None: + raise TProtocol.TProtocolException(message='Required field tableName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.isTblLevel) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.partName) + value = (value * 31) ^ hash(self.lastAnalyzed) + 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 ColumnStatistics: + """ + Attributes: + - statsDesc + - statsObj + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'statsDesc', (ColumnStatisticsDesc, ColumnStatisticsDesc.thrift_spec), None, ), # 1 + (2, TType.LIST, 'statsObj', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 2 + ) + + def __init__(self, statsDesc=None, statsObj=None,): + self.statsDesc = statsDesc + self.statsObj = statsObj + + 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.statsDesc = ColumnStatisticsDesc() + self.statsDesc.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.statsObj = [] + (_etype242, _size239) = iprot.readListBegin() + for _i243 in xrange(_size239): + _elem244 = ColumnStatisticsObj() + _elem244.read(iprot) + self.statsObj.append(_elem244) + 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('ColumnStatistics') + if self.statsDesc is not None: + oprot.writeFieldBegin('statsDesc', TType.STRUCT, 1) + self.statsDesc.write(oprot) + oprot.writeFieldEnd() + if self.statsObj is not None: + oprot.writeFieldBegin('statsObj', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) + for iter245 in self.statsObj: + iter245.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.statsDesc is None: + raise TProtocol.TProtocolException(message='Required field statsDesc is unset!') + if self.statsObj is None: + raise TProtocol.TProtocolException(message='Required field statsObj is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.statsDesc) + value = (value * 31) ^ hash(self.statsObj) + 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 AggrStats: + """ + Attributes: + - colStats + - partsFound + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 1 + (2, TType.I64, 'partsFound', None, None, ), # 2 + ) + + def __init__(self, colStats=None, partsFound=None,): + self.colStats = colStats + self.partsFound = partsFound + + 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.colStats = [] + (_etype249, _size246) = iprot.readListBegin() + for _i250 in xrange(_size246): + _elem251 = ColumnStatisticsObj() + _elem251.read(iprot) + self.colStats.append(_elem251) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.partsFound = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('AggrStats') + if self.colStats is not None: + oprot.writeFieldBegin('colStats', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.colStats)) + for iter252 in self.colStats: + iter252.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partsFound is not None: + oprot.writeFieldBegin('partsFound', TType.I64, 2) + oprot.writeI64(self.partsFound) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.colStats is None: + raise TProtocol.TProtocolException(message='Required field colStats is unset!') + if self.partsFound is None: + raise TProtocol.TProtocolException(message='Required field partsFound is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.colStats) + value = (value * 31) ^ hash(self.partsFound) + 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 SetPartitionsStatsRequest: + """ + Attributes: + - colStats + - needMerge + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatistics, ColumnStatistics.thrift_spec)), None, ), # 1 + (2, TType.BOOL, 'needMerge', None, None, ), # 2 + ) + + def __init__(self, colStats=None, needMerge=None,): + self.colStats = colStats + self.needMerge = needMerge + + 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.colStats = [] + (_etype256, _size253) = iprot.readListBegin() + for _i257 in xrange(_size253): + _elem258 = ColumnStatistics() + _elem258.read(iprot) + self.colStats.append(_elem258) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.needMerge = 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('SetPartitionsStatsRequest') + if self.colStats is not None: + oprot.writeFieldBegin('colStats', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.colStats)) + for iter259 in self.colStats: + iter259.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.needMerge is not None: + oprot.writeFieldBegin('needMerge', TType.BOOL, 2) + oprot.writeBool(self.needMerge) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.colName is None: - raise TProtocol.TProtocolException(message='Required field colName is unset!') - if self.colType is None: - raise TProtocol.TProtocolException(message='Required field colType is unset!') - if self.statsData is None: - raise TProtocol.TProtocolException(message='Required field statsData is unset!') + if self.colStats is None: + raise TProtocol.TProtocolException(message='Required field colStats is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.colName) - value = (value * 31) ^ hash(self.colType) - value = (value * 31) ^ hash(self.statsData) + value = (value * 31) ^ hash(self.colStats) + value = (value * 31) ^ hash(self.needMerge) return value def __repr__(self): @@ -5414,31 +6108,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatisticsDesc: +class Schema: """ Attributes: - - isTblLevel - - dbName - - tableName - - partName - - lastAnalyzed + - fieldSchemas + - properties """ thrift_spec = ( None, # 0 - (1, TType.BOOL, 'isTblLevel', None, None, ), # 1 - (2, TType.STRING, 'dbName', None, None, ), # 2 - (3, TType.STRING, 'tableName', None, None, ), # 3 - (4, TType.STRING, 'partName', None, None, ), # 4 - (5, TType.I64, 'lastAnalyzed', None, None, ), # 5 + (1, TType.LIST, 'fieldSchemas', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 1 + (2, TType.MAP, 'properties', (TType.STRING,None,TType.STRING,None), None, ), # 2 ) - def __init__(self, isTblLevel=None, dbName=None, tableName=None, partName=None, lastAnalyzed=None,): - self.isTblLevel = isTblLevel - self.dbName = dbName - self.tableName = tableName - self.partName = partName - self.lastAnalyzed = lastAnalyzed + def __init__(self, fieldSchemas=None, properties=None,): + self.fieldSchemas = fieldSchemas + self.properties = properties 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: @@ -5450,28 +6135,25 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.BOOL: - self.isTblLevel = iprot.readBool() + if ftype == TType.LIST: + self.fieldSchemas = [] + (_etype263, _size260) = iprot.readListBegin() + for _i264 in xrange(_size260): + _elem265 = FieldSchema() + _elem265.read(iprot) + self.fieldSchemas.append(_elem265) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.tableName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.partName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I64: - self.lastAnalyzed = iprot.readI64() + if ftype == TType.MAP: + self.properties = {} + (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() + for _i270 in xrange(_size266): + _key271 = iprot.readString() + _val272 = iprot.readString() + self.properties[_key271] = _val272 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -5483,47 +6165,33 @@ 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('ColumnStatisticsDesc') - if self.isTblLevel is not None: - oprot.writeFieldBegin('isTblLevel', TType.BOOL, 1) - oprot.writeBool(self.isTblLevel) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 2) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 3) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.partName is not None: - oprot.writeFieldBegin('partName', TType.STRING, 4) - oprot.writeString(self.partName) + oprot.writeStructBegin('Schema') + if self.fieldSchemas is not None: + oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) + for iter273 in self.fieldSchemas: + iter273.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.lastAnalyzed is not None: - oprot.writeFieldBegin('lastAnalyzed', TType.I64, 5) - oprot.writeI64(self.lastAnalyzed) + if self.properties is not None: + oprot.writeFieldBegin('properties', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) + for kiter274,viter275 in self.properties.items(): + oprot.writeString(kiter274) + oprot.writeString(viter275) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.isTblLevel is None: - raise TProtocol.TProtocolException(message='Required field isTblLevel is unset!') - if self.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tableName is None: - raise TProtocol.TProtocolException(message='Required field tableName is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.isTblLevel) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partName) - value = (value * 31) ^ hash(self.lastAnalyzed) + value = (value * 31) ^ hash(self.fieldSchemas) + value = (value * 31) ^ hash(self.properties) return value def __repr__(self): @@ -5537,22 +6205,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatistics: +class EnvironmentContext: """ Attributes: - - statsDesc - - statsObj + - properties """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'statsDesc', (ColumnStatisticsDesc, ColumnStatisticsDesc.thrift_spec), None, ), # 1 - (2, TType.LIST, 'statsObj', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 2 + (1, TType.MAP, 'properties', (TType.STRING,None,TType.STRING,None), None, ), # 1 ) - def __init__(self, statsDesc=None, statsObj=None,): - self.statsDesc = statsDesc - self.statsObj = statsObj + def __init__(self, properties=None,): + self.properties = properties 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: @@ -5564,20 +6229,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.statsDesc = ColumnStatisticsDesc() - self.statsDesc.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.statsObj = [] - (_etype242, _size239) = iprot.readListBegin() - for _i243 in xrange(_size239): - _elem244 = ColumnStatisticsObj() - _elem244.read(iprot) - self.statsObj.append(_elem244) - iprot.readListEnd() + if ftype == TType.MAP: + self.properties = {} + (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() + for _i280 in xrange(_size276): + _key281 = iprot.readString() + _val282 = iprot.readString() + self.properties[_key281] = _val282 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -5589,33 +6248,25 @@ 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('ColumnStatistics') - if self.statsDesc is not None: - oprot.writeFieldBegin('statsDesc', TType.STRUCT, 1) - self.statsDesc.write(oprot) - oprot.writeFieldEnd() - if self.statsObj is not None: - oprot.writeFieldBegin('statsObj', TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter245 in self.statsObj: - iter245.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('EnvironmentContext') + if self.properties is not None: + oprot.writeFieldBegin('properties', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) + for kiter283,viter284 in self.properties.items(): + oprot.writeString(kiter283) + oprot.writeString(viter284) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.statsDesc is None: - raise TProtocol.TProtocolException(message='Required field statsDesc is unset!') - if self.statsObj is None: - raise TProtocol.TProtocolException(message='Required field statsObj is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.statsDesc) - value = (value * 31) ^ hash(self.statsObj) + value = (value * 31) ^ hash(self.properties) return value def __repr__(self): @@ -5629,22 +6280,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class AggrStats: +class PrimaryKeysRequest: """ Attributes: - - colStats - - partsFound + - db_name + - tbl_name """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 1 - (2, TType.I64, 'partsFound', None, None, ), # 2 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 ) - def __init__(self, colStats=None, partsFound=None,): - self.colStats = colStats - self.partsFound = partsFound + 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: @@ -5656,19 +6307,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.colStats = [] - (_etype249, _size246) = iprot.readListBegin() - for _i250 in xrange(_size246): - _elem251 = ColumnStatisticsObj() - _elem251.read(iprot) - self.colStats.append(_elem251) - iprot.readListEnd() + if ftype == TType.STRING: + self.db_name = iprot.readString() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.I64: - self.partsFound = iprot.readI64() + if ftype == TType.STRING: + self.tbl_name = iprot.readString() else: iprot.skip(ftype) else: @@ -5680,33 +6325,30 @@ 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('AggrStats') - if self.colStats is not None: - oprot.writeFieldBegin('colStats', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter252 in self.colStats: - iter252.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('PrimaryKeysRequest') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.partsFound is not None: - oprot.writeFieldBegin('partsFound', TType.I64, 2) - oprot.writeI64(self.partsFound) + 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.colStats is None: - raise TProtocol.TProtocolException(message='Required field colStats is unset!') - if self.partsFound is None: - raise TProtocol.TProtocolException(message='Required field partsFound is unset!') + 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.colStats) - value = (value * 31) ^ hash(self.partsFound) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) return value def __repr__(self): @@ -5720,22 +6362,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class SetPartitionsStatsRequest: +class PrimaryKeysResponse: """ Attributes: - - colStats - - needMerge + - primaryKeys """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatistics, ColumnStatistics.thrift_spec)), None, ), # 1 - (2, TType.BOOL, 'needMerge', None, None, ), # 2 + (1, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 1 ) - def __init__(self, colStats=None, needMerge=None,): - self.colStats = colStats - self.needMerge = needMerge + def __init__(self, primaryKeys=None,): + self.primaryKeys = primaryKeys 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: @@ -5748,20 +6387,15 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.colStats = [] - (_etype256, _size253) = iprot.readListBegin() - for _i257 in xrange(_size253): - _elem258 = ColumnStatistics() - _elem258.read(iprot) - self.colStats.append(_elem258) + self.primaryKeys = [] + (_etype288, _size285) = iprot.readListBegin() + for _i289 in xrange(_size285): + _elem290 = SQLPrimaryKey() + _elem290.read(iprot) + self.primaryKeys.append(_elem290) iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.BOOL: - self.needMerge = iprot.readBool() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -5771,31 +6405,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('SetPartitionsStatsRequest') - if self.colStats is not None: - oprot.writeFieldBegin('colStats', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter259 in self.colStats: - iter259.write(oprot) + oprot.writeStructBegin('PrimaryKeysResponse') + if self.primaryKeys is not None: + oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) + for iter291 in self.primaryKeys: + iter291.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.needMerge is not None: - oprot.writeFieldBegin('needMerge', TType.BOOL, 2) - oprot.writeBool(self.needMerge) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.colStats is None: - raise TProtocol.TProtocolException(message='Required field colStats is unset!') + if self.primaryKeys is None: + raise TProtocol.TProtocolException(message='Required field primaryKeys is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.colStats) - value = (value * 31) ^ hash(self.needMerge) + value = (value * 31) ^ hash(self.primaryKeys) return value def __repr__(self): @@ -5809,22 +6438,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Schema: +class ForeignKeysRequest: """ Attributes: - - fieldSchemas - - properties + - parent_db_name + - parent_tbl_name + - foreign_db_name + - foreign_tbl_name """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'fieldSchemas', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 1 - (2, TType.MAP, 'properties', (TType.STRING,None,TType.STRING,None), None, ), # 2 + (1, TType.STRING, 'parent_db_name', None, None, ), # 1 + (2, TType.STRING, 'parent_tbl_name', None, None, ), # 2 + (3, TType.STRING, 'foreign_db_name', None, None, ), # 3 + (4, TType.STRING, 'foreign_tbl_name', None, None, ), # 4 ) - def __init__(self, fieldSchemas=None, properties=None,): - self.fieldSchemas = fieldSchemas - self.properties = properties + def __init__(self, parent_db_name=None, parent_tbl_name=None, foreign_db_name=None, foreign_tbl_name=None,): + self.parent_db_name = parent_db_name + self.parent_tbl_name = parent_tbl_name + self.foreign_db_name = foreign_db_name + self.foreign_tbl_name = foreign_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: @@ -5836,25 +6471,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.fieldSchemas = [] - (_etype263, _size260) = iprot.readListBegin() - for _i264 in xrange(_size260): - _elem265 = FieldSchema() - _elem265.read(iprot) - self.fieldSchemas.append(_elem265) - iprot.readListEnd() + if ftype == TType.STRING: + self.parent_db_name = iprot.readString() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.MAP: - self.properties = {} - (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() - for _i270 in xrange(_size266): - _key271 = iprot.readString() - _val272 = iprot.readString() - self.properties[_key271] = _val272 - iprot.readMapEnd() + if ftype == TType.STRING: + self.parent_tbl_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.foreign_db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.foreign_tbl_name = iprot.readString() else: iprot.skip(ftype) else: @@ -5866,21 +6499,22 @@ 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('Schema') - if self.fieldSchemas is not None: - oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) - for iter273 in self.fieldSchemas: - iter273.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('ForeignKeysRequest') + if self.parent_db_name is not None: + oprot.writeFieldBegin('parent_db_name', TType.STRING, 1) + oprot.writeString(self.parent_db_name) oprot.writeFieldEnd() - if self.properties is not None: - oprot.writeFieldBegin('properties', TType.MAP, 2) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter274,viter275 in self.properties.items(): - oprot.writeString(kiter274) - oprot.writeString(viter275) - oprot.writeMapEnd() + if self.parent_tbl_name is not None: + oprot.writeFieldBegin('parent_tbl_name', TType.STRING, 2) + oprot.writeString(self.parent_tbl_name) + oprot.writeFieldEnd() + if self.foreign_db_name is not None: + oprot.writeFieldBegin('foreign_db_name', TType.STRING, 3) + oprot.writeString(self.foreign_db_name) + oprot.writeFieldEnd() + if self.foreign_tbl_name is not None: + oprot.writeFieldBegin('foreign_tbl_name', TType.STRING, 4) + oprot.writeString(self.foreign_tbl_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5891,8 +6525,10 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.fieldSchemas) - value = (value * 31) ^ hash(self.properties) + value = (value * 31) ^ hash(self.parent_db_name) + value = (value * 31) ^ hash(self.parent_tbl_name) + value = (value * 31) ^ hash(self.foreign_db_name) + value = (value * 31) ^ hash(self.foreign_tbl_name) return value def __repr__(self): @@ -5906,19 +6542,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class EnvironmentContext: +class ForeignKeysResponse: """ Attributes: - - properties + - foreignKeys """ thrift_spec = ( None, # 0 - (1, TType.MAP, 'properties', (TType.STRING,None,TType.STRING,None), None, ), # 1 + (1, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 1 ) - def __init__(self, properties=None,): - self.properties = properties + def __init__(self, foreignKeys=None,): + self.foreignKeys = foreignKeys 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: @@ -5930,14 +6566,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.MAP: - self.properties = {} - (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() - for _i280 in xrange(_size276): - _key281 = iprot.readString() - _val282 = iprot.readString() - self.properties[_key281] = _val282 - iprot.readMapEnd() + if ftype == TType.LIST: + self.foreignKeys = [] + (_etype295, _size292) = iprot.readListBegin() + for _i296 in xrange(_size292): + _elem297 = SQLForeignKey() + _elem297.read(iprot) + self.foreignKeys.append(_elem297) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -5949,25 +6585,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('EnvironmentContext') - if self.properties is not None: - oprot.writeFieldBegin('properties', TType.MAP, 1) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter283,viter284 in self.properties.items(): - oprot.writeString(kiter283) - oprot.writeString(viter284) - oprot.writeMapEnd() + oprot.writeStructBegin('ForeignKeysResponse') + if self.foreignKeys is not None: + oprot.writeFieldBegin('foreignKeys', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) + for iter298 in self.foreignKeys: + iter298.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.foreignKeys is None: + raise TProtocol.TProtocolException(message='Required field foreignKeys is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.properties) + value = (value * 31) ^ hash(self.foreignKeys) return value def __repr__(self): @@ -5981,7 +6618,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class PrimaryKeysRequest: +class UniqueConstraintsRequest: """ Attributes: - db_name @@ -6026,7 +6663,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('PrimaryKeysRequest') + oprot.writeStructBegin('UniqueConstraintsRequest') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -6063,19 +6700,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class PrimaryKeysResponse: +class UniqueConstraintsResponse: """ Attributes: - - primaryKeys + - uniqueConstraints """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'primaryKeys', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 1 + (1, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 1 ) - def __init__(self, primaryKeys=None,): - self.primaryKeys = primaryKeys + def __init__(self, uniqueConstraints=None,): + self.uniqueConstraints = uniqueConstraints 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: @@ -6088,12 +6725,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.primaryKeys = [] - (_etype288, _size285) = iprot.readListBegin() - for _i289 in xrange(_size285): - _elem290 = SQLPrimaryKey() - _elem290.read(iprot) - self.primaryKeys.append(_elem290) + self.uniqueConstraints = [] + (_etype302, _size299) = iprot.readListBegin() + for _i303 in xrange(_size299): + _elem304 = SQLUniqueConstraint() + _elem304.read(iprot) + self.uniqueConstraints.append(_elem304) iprot.readListEnd() else: iprot.skip(ftype) @@ -6106,26 +6743,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('PrimaryKeysResponse') - if self.primaryKeys is not None: - oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter291 in self.primaryKeys: - iter291.write(oprot) + oprot.writeStructBegin('UniqueConstraintsResponse') + if self.uniqueConstraints is not None: + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) + for iter305 in self.uniqueConstraints: + iter305.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.primaryKeys is None: - raise TProtocol.TProtocolException(message='Required field primaryKeys is unset!') + if self.uniqueConstraints is None: + raise TProtocol.TProtocolException(message='Required field uniqueConstraints is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.primaryKeys) + value = (value * 31) ^ hash(self.uniqueConstraints) return value def __repr__(self): @@ -6139,28 +6776,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ForeignKeysRequest: +class NotNullConstraintsRequest: """ Attributes: - - parent_db_name - - parent_tbl_name - - foreign_db_name - - foreign_tbl_name + - db_name + - tbl_name """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'parent_db_name', None, None, ), # 1 - (2, TType.STRING, 'parent_tbl_name', None, None, ), # 2 - (3, TType.STRING, 'foreign_db_name', None, None, ), # 3 - (4, TType.STRING, 'foreign_tbl_name', None, None, ), # 4 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 ) - def __init__(self, parent_db_name=None, parent_tbl_name=None, foreign_db_name=None, foreign_tbl_name=None,): - self.parent_db_name = parent_db_name - self.parent_tbl_name = parent_tbl_name - self.foreign_db_name = foreign_db_name - self.foreign_tbl_name = foreign_tbl_name + 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: @@ -6173,22 +6804,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.parent_db_name = iprot.readString() + self.db_name = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.parent_tbl_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.foreign_db_name = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.foreign_tbl_name = iprot.readString() + self.tbl_name = iprot.readString() else: iprot.skip(ftype) else: @@ -6200,36 +6821,30 @@ 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('ForeignKeysRequest') - if self.parent_db_name is not None: - oprot.writeFieldBegin('parent_db_name', TType.STRING, 1) - oprot.writeString(self.parent_db_name) - oprot.writeFieldEnd() - if self.parent_tbl_name is not None: - oprot.writeFieldBegin('parent_tbl_name', TType.STRING, 2) - oprot.writeString(self.parent_tbl_name) - oprot.writeFieldEnd() - if self.foreign_db_name is not None: - oprot.writeFieldBegin('foreign_db_name', TType.STRING, 3) - oprot.writeString(self.foreign_db_name) + oprot.writeStructBegin('NotNullConstraintsRequest') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) oprot.writeFieldEnd() - if self.foreign_tbl_name is not None: - oprot.writeFieldBegin('foreign_tbl_name', TType.STRING, 4) - oprot.writeString(self.foreign_tbl_name) + 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.parent_db_name) - value = (value * 31) ^ hash(self.parent_tbl_name) - value = (value * 31) ^ hash(self.foreign_db_name) - value = (value * 31) ^ hash(self.foreign_tbl_name) + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) return value def __repr__(self): @@ -6243,19 +6858,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ForeignKeysResponse: +class NotNullConstraintsResponse: """ Attributes: - - foreignKeys + - notNullConstraints """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 1 + (1, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 1 ) - def __init__(self, foreignKeys=None,): - self.foreignKeys = foreignKeys + def __init__(self, notNullConstraints=None,): + self.notNullConstraints = notNullConstraints 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: @@ -6268,12 +6883,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.foreignKeys = [] - (_etype295, _size292) = iprot.readListBegin() - for _i296 in xrange(_size292): - _elem297 = SQLForeignKey() - _elem297.read(iprot) - self.foreignKeys.append(_elem297) + self.notNullConstraints = [] + (_etype309, _size306) = iprot.readListBegin() + for _i310 in xrange(_size306): + _elem311 = SQLNotNullConstraint() + _elem311.read(iprot) + self.notNullConstraints.append(_elem311) iprot.readListEnd() else: iprot.skip(ftype) @@ -6286,26 +6901,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('ForeignKeysResponse') - if self.foreignKeys is not None: - oprot.writeFieldBegin('foreignKeys', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter298 in self.foreignKeys: - iter298.write(oprot) + oprot.writeStructBegin('NotNullConstraintsResponse') + if self.notNullConstraints is not None: + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) + for iter312 in self.notNullConstraints: + iter312.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.foreignKeys is None: - raise TProtocol.TProtocolException(message='Required field foreignKeys is unset!') + if self.notNullConstraints is None: + raise TProtocol.TProtocolException(message='Required field notNullConstraints is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.foreignKeys) + value = (value * 31) ^ hash(self.notNullConstraints) return value def __repr__(self): @@ -6442,11 +7057,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeyCols = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = SQLPrimaryKey() - _elem304.read(iprot) - self.primaryKeyCols.append(_elem304) + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = SQLPrimaryKey() + _elem318.read(iprot) + self.primaryKeyCols.append(_elem318) iprot.readListEnd() else: iprot.skip(ftype) @@ -6463,8 +7078,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 iter305 in self.primaryKeyCols: - iter305.write(oprot) + for iter319 in self.primaryKeyCols: + iter319.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6518,11 +7133,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeyCols = [] - (_etype309, _size306) = iprot.readListBegin() - for _i310 in xrange(_size306): - _elem311 = SQLForeignKey() - _elem311.read(iprot) - self.foreignKeyCols.append(_elem311) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = SQLForeignKey() + _elem325.read(iprot) + self.foreignKeyCols.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) @@ -6539,8 +7154,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 iter312 in self.foreignKeyCols: - iter312.write(oprot) + for iter326 in self.foreignKeyCols: + iter326.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6568,6 +7183,158 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class AddUniqueConstraintRequest: + """ + Attributes: + - uniqueConstraintCols + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'uniqueConstraintCols', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 1 + ) + + def __init__(self, uniqueConstraintCols=None,): + self.uniqueConstraintCols = uniqueConstraintCols + + 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.uniqueConstraintCols = [] + (_etype330, _size327) = iprot.readListBegin() + for _i331 in xrange(_size327): + _elem332 = SQLUniqueConstraint() + _elem332.read(iprot) + self.uniqueConstraintCols.append(_elem332) + 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('AddUniqueConstraintRequest') + if self.uniqueConstraintCols is not None: + oprot.writeFieldBegin('uniqueConstraintCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraintCols)) + for iter333 in self.uniqueConstraintCols: + iter333.write(oprot) + 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 = [] + (_etype337, _size334) = iprot.readListBegin() + for _i338 in xrange(_size334): + _elem339 = SQLNotNullConstraint() + _elem339.read(iprot) + self.notNullConstraintCols.append(_elem339) + 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 iter340 in self.notNullConstraintCols: + iter340.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!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.notNullConstraintCols) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class PartitionsByExprResult: """ Attributes: @@ -6597,11 +7364,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype316, _size313) = iprot.readListBegin() - for _i317 in xrange(_size313): - _elem318 = Partition() - _elem318.read(iprot) - self.partitions.append(_elem318) + (_etype344, _size341) = iprot.readListBegin() + for _i345 in xrange(_size341): + _elem346 = Partition() + _elem346.read(iprot) + self.partitions.append(_elem346) iprot.readListEnd() else: iprot.skip(ftype) @@ -6623,8 +7390,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 iter319 in self.partitions: - iter319.write(oprot) + for iter347 in self.partitions: + iter347.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -6808,11 +7575,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = ColumnStatisticsObj() - _elem325.read(iprot) - self.tableStats.append(_elem325) + (_etype351, _size348) = iprot.readListBegin() + for _i352 in xrange(_size348): + _elem353 = ColumnStatisticsObj() + _elem353.read(iprot) + self.tableStats.append(_elem353) iprot.readListEnd() else: iprot.skip(ftype) @@ -6829,8 +7596,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 iter326 in self.tableStats: - iter326.write(oprot) + for iter354 in self.tableStats: + iter354.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6884,17 +7651,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype328, _vtype329, _size327 ) = iprot.readMapBegin() - for _i331 in xrange(_size327): - _key332 = iprot.readString() - _val333 = [] - (_etype337, _size334) = iprot.readListBegin() - for _i338 in xrange(_size334): - _elem339 = ColumnStatisticsObj() - _elem339.read(iprot) - _val333.append(_elem339) + (_ktype356, _vtype357, _size355 ) = iprot.readMapBegin() + for _i359 in xrange(_size355): + _key360 = iprot.readString() + _val361 = [] + (_etype365, _size362) = iprot.readListBegin() + for _i366 in xrange(_size362): + _elem367 = ColumnStatisticsObj() + _elem367.read(iprot) + _val361.append(_elem367) iprot.readListEnd() - self.partStats[_key332] = _val333 + self.partStats[_key360] = _val361 iprot.readMapEnd() else: iprot.skip(ftype) @@ -6911,11 +7678,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 kiter340,viter341 in self.partStats.items(): - oprot.writeString(kiter340) - oprot.writeListBegin(TType.STRUCT, len(viter341)) - for iter342 in viter341: - iter342.write(oprot) + for kiter368,viter369 in self.partStats.items(): + oprot.writeString(kiter368) + oprot.writeListBegin(TType.STRUCT, len(viter369)) + for iter370 in viter369: + iter370.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -6986,10 +7753,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype346, _size343) = iprot.readListBegin() - for _i347 in xrange(_size343): - _elem348 = iprot.readString() - self.colNames.append(_elem348) + (_etype374, _size371) = iprot.readListBegin() + for _i375 in xrange(_size371): + _elem376 = iprot.readString() + self.colNames.append(_elem376) iprot.readListEnd() else: iprot.skip(ftype) @@ -7014,8 +7781,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 iter349 in self.colNames: - oprot.writeString(iter349) + for iter377 in self.colNames: + oprot.writeString(iter377) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7094,20 +7861,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype353, _size350) = iprot.readListBegin() - for _i354 in xrange(_size350): - _elem355 = iprot.readString() - self.colNames.append(_elem355) + (_etype381, _size378) = iprot.readListBegin() + for _i382 in xrange(_size378): + _elem383 = iprot.readString() + self.colNames.append(_elem383) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype359, _size356) = iprot.readListBegin() - for _i360 in xrange(_size356): - _elem361 = iprot.readString() - self.partNames.append(_elem361) + (_etype387, _size384) = iprot.readListBegin() + for _i388 in xrange(_size384): + _elem389 = iprot.readString() + self.partNames.append(_elem389) iprot.readListEnd() else: iprot.skip(ftype) @@ -7132,15 +7899,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 iter362 in self.colNames: - oprot.writeString(iter362) + for iter390 in self.colNames: + oprot.writeString(iter390) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter363 in self.partNames: - oprot.writeString(iter363) + for iter391 in self.partNames: + oprot.writeString(iter391) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7203,11 +7970,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype367, _size364) = iprot.readListBegin() - for _i368 in xrange(_size364): - _elem369 = Partition() - _elem369.read(iprot) - self.partitions.append(_elem369) + (_etype395, _size392) = iprot.readListBegin() + for _i396 in xrange(_size392): + _elem397 = Partition() + _elem397.read(iprot) + self.partitions.append(_elem397) iprot.readListEnd() else: iprot.skip(ftype) @@ -7224,8 +7991,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 iter370 in self.partitions: - iter370.write(oprot) + for iter398 in self.partitions: + iter398.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7299,11 +8066,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype374, _size371) = iprot.readListBegin() - for _i375 in xrange(_size371): - _elem376 = Partition() - _elem376.read(iprot) - self.parts.append(_elem376) + (_etype402, _size399) = iprot.readListBegin() + for _i403 in xrange(_size399): + _elem404 = Partition() + _elem404.read(iprot) + self.parts.append(_elem404) iprot.readListEnd() else: iprot.skip(ftype) @@ -7338,8 +8105,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 iter377 in self.parts: - iter377.write(oprot) + for iter405 in self.parts: + iter405.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -7411,11 +8178,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype381, _size378) = iprot.readListBegin() - for _i382 in xrange(_size378): - _elem383 = Partition() - _elem383.read(iprot) - self.partitions.append(_elem383) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = Partition() + _elem411.read(iprot) + self.partitions.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -7432,8 +8199,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 iter384 in self.partitions: - iter384.write(oprot) + for iter412 in self.partitions: + iter412.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7568,21 +8335,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype388, _size385) = iprot.readListBegin() - for _i389 in xrange(_size385): - _elem390 = iprot.readString() - self.names.append(_elem390) + (_etype416, _size413) = iprot.readListBegin() + for _i417 in xrange(_size413): + _elem418 = iprot.readString() + self.names.append(_elem418) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype394, _size391) = iprot.readListBegin() - for _i395 in xrange(_size391): - _elem396 = DropPartitionsExpr() - _elem396.read(iprot) - self.exprs.append(_elem396) + (_etype422, _size419) = iprot.readListBegin() + for _i423 in xrange(_size419): + _elem424 = DropPartitionsExpr() + _elem424.read(iprot) + self.exprs.append(_elem424) iprot.readListEnd() else: iprot.skip(ftype) @@ -7599,15 +8366,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 iter397 in self.names: - oprot.writeString(iter397) + for iter425 in self.names: + oprot.writeString(iter425) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter398 in self.exprs: - iter398.write(oprot) + for iter426 in self.exprs: + iter426.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7958,11 +8725,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = ResourceUri() - _elem404.read(iprot) - self.resourceUris.append(_elem404) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = ResourceUri() + _elem432.read(iprot) + self.resourceUris.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -8007,8 +8774,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 iter405 in self.resourceUris: - iter405.write(oprot) + for iter433 in self.resourceUris: + iter433.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8252,11 +9019,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = TxnInfo() - _elem411.read(iprot) - self.open_txns.append(_elem411) + (_etype437, _size434) = iprot.readListBegin() + for _i438 in xrange(_size434): + _elem439 = TxnInfo() + _elem439.read(iprot) + self.open_txns.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) @@ -8277,8 +9044,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 iter412 in self.open_txns: - iter412.write(oprot) + for iter440 in self.open_txns: + iter440.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8349,10 +9116,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readI64() - self.open_txns.append(_elem418) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = iprot.readI64() + self.open_txns.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -8383,8 +9150,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 iter419 in self.open_txns: - oprot.writeI64(iter419) + for iter447 in self.open_txns: + oprot.writeI64(iter447) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -8563,10 +9330,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = iprot.readI64() - self.txn_ids.append(_elem425) + (_etype451, _size448) = iprot.readListBegin() + for _i452 in xrange(_size448): + _elem453 = iprot.readI64() + self.txn_ids.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -8583,8 +9350,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 iter426 in self.txn_ids: - oprot.writeI64(iter426) + for iter454 in self.txn_ids: + oprot.writeI64(iter454) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8705,10 +9472,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = iprot.readI64() - self.txn_ids.append(_elem432) + (_etype458, _size455) = iprot.readListBegin() + for _i459 in xrange(_size455): + _elem460 = iprot.readI64() + self.txn_ids.append(_elem460) iprot.readListEnd() else: iprot.skip(ftype) @@ -8725,8 +9492,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 iter433 in self.txn_ids: - oprot.writeI64(iter433) + for iter461 in self.txn_ids: + oprot.writeI64(iter461) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9021,11 +9788,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype437, _size434) = iprot.readListBegin() - for _i438 in xrange(_size434): - _elem439 = LockComponent() - _elem439.read(iprot) - self.component.append(_elem439) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = LockComponent() + _elem467.read(iprot) + self.component.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -9062,8 +9829,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 iter440 in self.component: - iter440.write(oprot) + for iter468 in self.component: + iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -9761,11 +10528,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = ShowLocksResponseElement() - _elem446.read(iprot) - self.locks.append(_elem446) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = ShowLocksResponseElement() + _elem474.read(iprot) + self.locks.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -9782,8 +10549,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 iter447 in self.locks: - iter447.write(oprot) + for iter475 in self.locks: + iter475.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9998,20 +10765,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype451, _size448) = iprot.readSetBegin() - for _i452 in xrange(_size448): - _elem453 = iprot.readI64() - self.aborted.add(_elem453) + (_etype479, _size476) = iprot.readSetBegin() + for _i480 in xrange(_size476): + _elem481 = iprot.readI64() + self.aborted.add(_elem481) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype457, _size454) = iprot.readSetBegin() - for _i458 in xrange(_size454): - _elem459 = iprot.readI64() - self.nosuch.add(_elem459) + (_etype485, _size482) = iprot.readSetBegin() + for _i486 in xrange(_size482): + _elem487 = iprot.readI64() + self.nosuch.add(_elem487) iprot.readSetEnd() else: iprot.skip(ftype) @@ -10028,15 +10795,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 iter460 in self.aborted: - oprot.writeI64(iter460) + for iter488 in self.aborted: + oprot.writeI64(iter488) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter461 in self.nosuch: - oprot.writeI64(iter461) + for iter489 in self.nosuch: + oprot.writeI64(iter489) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10133,11 +10900,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype463, _vtype464, _size462 ) = iprot.readMapBegin() - for _i466 in xrange(_size462): - _key467 = iprot.readString() - _val468 = iprot.readString() - self.properties[_key467] = _val468 + (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() + for _i494 in xrange(_size490): + _key495 = iprot.readString() + _val496 = iprot.readString() + self.properties[_key495] = _val496 iprot.readMapEnd() else: iprot.skip(ftype) @@ -10174,9 +10941,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 kiter469,viter470 in self.properties.items(): - oprot.writeString(kiter469) - oprot.writeString(viter470) + for kiter497,viter498 in self.properties.items(): + oprot.writeString(kiter497) + oprot.writeString(viter498) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10611,11 +11378,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype474, _size471) = iprot.readListBegin() - for _i475 in xrange(_size471): - _elem476 = ShowCompactResponseElement() - _elem476.read(iprot) - self.compacts.append(_elem476) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = ShowCompactResponseElement() + _elem504.read(iprot) + self.compacts.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -10632,8 +11399,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 iter477 in self.compacts: - iter477.write(oprot) + for iter505 in self.compacts: + iter505.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10714,10 +11481,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitionnames = [] - (_etype481, _size478) = iprot.readListBegin() - for _i482 in xrange(_size478): - _elem483 = iprot.readString() - self.partitionnames.append(_elem483) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = iprot.readString() + self.partitionnames.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -10751,8 +11518,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter484 in self.partitionnames: - oprot.writeString(iter484) + for iter512 in self.partitionnames: + oprot.writeString(iter512) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -11051,11 +11818,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = NotificationEvent() - _elem490.read(iprot) - self.events.append(_elem490) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = NotificationEvent() + _elem518.read(iprot) + self.events.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -11072,8 +11839,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 iter491 in self.events: - iter491.write(oprot) + for iter519 in self.events: + iter519.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11205,20 +11972,20 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = iprot.readString() - self.filesAdded.append(_elem497) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = iprot.readString() + self.filesAdded.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype501, _size498) = iprot.readListBegin() - for _i502 in xrange(_size498): - _elem503 = iprot.readString() - self.filesAddedChecksum.append(_elem503) + (_etype529, _size526) = iprot.readListBegin() + for _i530 in xrange(_size526): + _elem531 = iprot.readString() + self.filesAddedChecksum.append(_elem531) iprot.readListEnd() else: iprot.skip(ftype) @@ -11239,15 +12006,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 iter504 in self.filesAdded: - oprot.writeString(iter504) + for iter532 in self.filesAdded: + oprot.writeString(iter532) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter505 in self.filesAddedChecksum: - oprot.writeString(iter505) + for iter533 in self.filesAddedChecksum: + oprot.writeString(iter533) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11402,10 +12169,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = iprot.readString() - self.partitionVals.append(_elem511) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = iprot.readString() + self.partitionVals.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -11438,8 +12205,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 iter512 in self.partitionVals: - oprot.writeString(iter512) + for iter540 in self.partitionVals: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11626,12 +12393,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() - for _i517 in xrange(_size513): - _key518 = iprot.readI64() - _val519 = MetadataPpdResult() - _val519.read(iprot) - self.metadata[_key518] = _val519 + (_ktype542, _vtype543, _size541 ) = iprot.readMapBegin() + for _i545 in xrange(_size541): + _key546 = iprot.readI64() + _val547 = MetadataPpdResult() + _val547.read(iprot) + self.metadata[_key546] = _val547 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11653,9 +12420,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 kiter520,viter521 in self.metadata.items(): - oprot.writeI64(kiter520) - viter521.write(oprot) + for kiter548,viter549 in self.metadata.items(): + oprot.writeI64(kiter548) + viter549.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11725,10 +12492,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype525, _size522) = iprot.readListBegin() - for _i526 in xrange(_size522): - _elem527 = iprot.readI64() - self.fileIds.append(_elem527) + (_etype553, _size550) = iprot.readListBegin() + for _i554 in xrange(_size550): + _elem555 = iprot.readI64() + self.fileIds.append(_elem555) iprot.readListEnd() else: iprot.skip(ftype) @@ -11760,8 +12527,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 iter528 in self.fileIds: - oprot.writeI64(iter528) + for iter556 in self.fileIds: + oprot.writeI64(iter556) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -11835,11 +12602,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype530, _vtype531, _size529 ) = iprot.readMapBegin() - for _i533 in xrange(_size529): - _key534 = iprot.readI64() - _val535 = iprot.readString() - self.metadata[_key534] = _val535 + (_ktype558, _vtype559, _size557 ) = iprot.readMapBegin() + for _i561 in xrange(_size557): + _key562 = iprot.readI64() + _val563 = iprot.readString() + self.metadata[_key562] = _val563 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11861,9 +12628,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 kiter536,viter537 in self.metadata.items(): - oprot.writeI64(kiter536) - oprot.writeString(viter537) + for kiter564,viter565 in self.metadata.items(): + oprot.writeI64(kiter564) + oprot.writeString(viter565) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11924,10 +12691,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype541, _size538) = iprot.readListBegin() - for _i542 in xrange(_size538): - _elem543 = iprot.readI64() - self.fileIds.append(_elem543) + (_etype569, _size566) = iprot.readListBegin() + for _i570 in xrange(_size566): + _elem571 = iprot.readI64() + self.fileIds.append(_elem571) iprot.readListEnd() else: iprot.skip(ftype) @@ -11944,8 +12711,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 iter544 in self.fileIds: - oprot.writeI64(iter544) + for iter572 in self.fileIds: + oprot.writeI64(iter572) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12051,20 +12818,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype548, _size545) = iprot.readListBegin() - for _i549 in xrange(_size545): - _elem550 = iprot.readI64() - self.fileIds.append(_elem550) + (_etype576, _size573) = iprot.readListBegin() + for _i577 in xrange(_size573): + _elem578 = iprot.readI64() + self.fileIds.append(_elem578) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype554, _size551) = iprot.readListBegin() - for _i555 in xrange(_size551): - _elem556 = iprot.readString() - self.metadata.append(_elem556) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = iprot.readString() + self.metadata.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -12086,15 +12853,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 iter557 in self.fileIds: - oprot.writeI64(iter557) + for iter585 in self.fileIds: + oprot.writeI64(iter585) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter558 in self.metadata: - oprot.writeString(iter558) + for iter586 in self.metadata: + oprot.writeString(iter586) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -12202,10 +12969,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype562, _size559) = iprot.readListBegin() - for _i563 in xrange(_size559): - _elem564 = iprot.readI64() - self.fileIds.append(_elem564) + (_etype590, _size587) = iprot.readListBegin() + for _i591 in xrange(_size587): + _elem592 = iprot.readI64() + self.fileIds.append(_elem592) iprot.readListEnd() else: iprot.skip(ftype) @@ -12222,8 +12989,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 iter565 in self.fileIds: - oprot.writeI64(iter565) + for iter593 in self.fileIds: + oprot.writeI64(iter593) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12452,11 +13219,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype569, _size566) = iprot.readListBegin() - for _i570 in xrange(_size566): - _elem571 = Function() - _elem571.read(iprot) - self.functions.append(_elem571) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = Function() + _elem599.read(iprot) + self.functions.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -12473,8 +13240,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 iter572 in self.functions: - iter572.write(oprot) + for iter600 in self.functions: + iter600.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12526,10 +13293,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype576, _size573) = iprot.readListBegin() - for _i577 in xrange(_size573): - _elem578 = iprot.readI32() - self.values.append(_elem578) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in xrange(_size601): + _elem606 = iprot.readI32() + self.values.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) @@ -12546,8 +13313,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 iter579 in self.values: - oprot.writeI32(iter579) + for iter607 in self.values: + oprot.writeI32(iter607) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12776,10 +13543,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype583, _size580) = iprot.readListBegin() - for _i584 in xrange(_size580): - _elem585 = iprot.readString() - self.tblNames.append(_elem585) + (_etype611, _size608) = iprot.readListBegin() + for _i612 in xrange(_size608): + _elem613 = iprot.readString() + self.tblNames.append(_elem613) iprot.readListEnd() else: iprot.skip(ftype) @@ -12806,8 +13573,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 iter586 in self.tblNames: - oprot.writeString(iter586) + for iter614 in self.tblNames: + oprot.writeString(iter614) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -12867,11 +13634,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype590, _size587) = iprot.readListBegin() - for _i591 in xrange(_size587): - _elem592 = Table() - _elem592.read(iprot) - self.tables.append(_elem592) + (_etype618, _size615) = iprot.readListBegin() + for _i619 in xrange(_size615): + _elem620 = Table() + _elem620.read(iprot) + self.tables.append(_elem620) iprot.readListEnd() else: iprot.skip(ftype) @@ -12888,8 +13655,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 iter593 in self.tables: - iter593.write(oprot) + for iter621 in self.tables: + iter621.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index f1aa9a6..2cf38b5 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -234,6 +234,64 @@ class SQLForeignKey ::Thrift::Struct.generate_accessors self end +class SQLUniqueConstraint + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE_DB = 1 + TABLE_NAME = 2 + COLUMN_NAME = 3 + KEY_SEQ = 4 + UK_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'}, + KEY_SEQ => {:type => ::Thrift::Types::I32, :name => 'key_seq'}, + UK_NAME => {:type => ::Thrift::Types::STRING, :name => 'uk_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 SQLNotNullConstraint + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE_DB = 1 + TABLE_NAME = 2 + COLUMN_NAME = 3 + NN_NAME = 4 + ENABLE_CSTR = 5 + VALIDATE_CSTR = 6 + RELY_CSTR = 7 + + 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'}, + NN_NAME => {:type => ::Thrift::Types::STRING, :name => 'nn_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 @@ -1407,6 +1465,80 @@ class ForeignKeysResponse ::Thrift::Struct.generate_accessors self end +class UniqueConstraintsRequest + 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 UniqueConstraintsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + UNIQUECONSTRAINTS = 1 + + FIELDS = { + UNIQUECONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'uniqueConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLUniqueConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uniqueConstraints is unset!') unless @uniqueConstraints + end + + ::Thrift::Struct.generate_accessors self +end + +class NotNullConstraintsRequest + 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 NotNullConstraintsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + NOTNULLCONSTRAINTS = 1 + + FIELDS = { + NOTNULLCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'notNullConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLNotNullConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notNullConstraints is unset!') unless @notNullConstraints + end + + ::Thrift::Struct.generate_accessors self +end + class DropConstraintRequest include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 @@ -1464,6 +1596,40 @@ class AddForeignKeyRequest ::Thrift::Struct.generate_accessors self end +class AddUniqueConstraintRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + UNIQUECONSTRAINTCOLS = 1 + + FIELDS = { + UNIQUECONSTRAINTCOLS => {:type => ::Thrift::Types::LIST, :name => 'uniqueConstraintCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLUniqueConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uniqueConstraintCols is unset!') unless @uniqueConstraintCols + end + + ::Thrift::Struct.generate_accessors self +end + +class AddNotNullConstraintRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + NOTNULLCONSTRAINTCOLS = 1 + + FIELDS = { + NOTNULLCONSTRAINTCOLS => {:type => ::Thrift::Types::LIST, :name => 'notNullConstraintCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLNotNullConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notNullConstraintCols is unset!') unless @notNullConstraintCols + end + + ::Thrift::Struct.generate_accessors self +end + class PartitionsByExprResult include ::Thrift::Struct, ::Thrift::Struct_Union PARTITIONS = 1 diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 04e63f3..9978bc1 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ 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) - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys) + def create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) recv_create_table_with_constraints() end - def send_create_table_with_constraints(tbl, primaryKeys, foreignKeys) - send_message('create_table_with_constraints', Create_table_with_constraints_args, :tbl => tbl, :primaryKeys => primaryKeys, :foreignKeys => foreignKeys) + def send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) + send_message('create_table_with_constraints', Create_table_with_constraints_args, :tbl => tbl, :primaryKeys => primaryKeys, :foreignKeys => foreignKeys, :uniqueConstraints => uniqueConstraints, :notNullConstraints => notNullConstraints) end def recv_create_table_with_constraints() @@ -384,6 +384,38 @@ module ThriftHiveMetastore return end + def add_unique_constraint(req) + send_add_unique_constraint(req) + recv_add_unique_constraint() + end + + def send_add_unique_constraint(req) + send_message('add_unique_constraint', Add_unique_constraint_args, :req => req) + end + + def recv_add_unique_constraint() + result = receive_message(Add_unique_constraint_result) + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + return + end + + def add_not_null_constraint(req) + send_add_not_null_constraint(req) + recv_add_not_null_constraint() + end + + def send_add_not_null_constraint(req) + send_message('add_not_null_constraint', Add_not_null_constraint_args, :req => req) + end + + def recv_add_not_null_constraint() + result = receive_message(Add_not_null_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() @@ -1487,6 +1519,40 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_foreign_keys failed: unknown result') end + def get_unique_constraints(request) + send_get_unique_constraints(request) + return recv_get_unique_constraints() + end + + def send_get_unique_constraints(request) + send_message('get_unique_constraints', Get_unique_constraints_args, :request => request) + end + + def recv_get_unique_constraints() + result = receive_message(Get_unique_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_unique_constraints failed: unknown result') + end + + def get_not_null_constraints(request) + send_get_not_null_constraints(request) + return recv_get_not_null_constraints() + end + + def send_get_not_null_constraints(request) + send_message('get_not_null_constraints', Get_not_null_constraints_args, :request => request) + end + + def recv_get_not_null_constraints() + result = receive_message(Get_not_null_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_not_null_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() @@ -2817,7 +2883,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) + @handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints) rescue ::AlreadyExistsException => o1 result.o1 = o1 rescue ::InvalidObjectException => o2 @@ -2869,6 +2935,32 @@ module ThriftHiveMetastore write_result(result, oprot, 'add_foreign_key', seqid) end + def process_add_unique_constraint(seqid, iprot, oprot) + args = read_args(iprot, Add_unique_constraint_args) + result = Add_unique_constraint_result.new() + begin + @handler.add_unique_constraint(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_unique_constraint', seqid) + end + + def process_add_not_null_constraint(seqid, iprot, oprot) + args = read_args(iprot, Add_not_null_constraint_args) + result = Add_not_null_constraint_result.new() + begin + @handler.add_not_null_constraint(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_not_null_constraint', seqid) + end + def process_drop_table(seqid, iprot, oprot) args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() @@ -3734,6 +3826,32 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_foreign_keys', seqid) end + def process_get_unique_constraints(seqid, iprot, oprot) + args = read_args(iprot, Get_unique_constraints_args) + result = Get_unique_constraints_result.new() + begin + result.success = @handler.get_unique_constraints(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_unique_constraints', seqid) + end + + def process_get_not_null_constraints(seqid, iprot, oprot) + args = read_args(iprot, Get_not_null_constraints_args) + result = Get_not_null_constraints_result.new() + begin + result.success = @handler.get_not_null_constraints(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_not_null_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() @@ -5135,11 +5253,15 @@ module ThriftHiveMetastore TBL = 1 PRIMARYKEYS = 2 FOREIGNKEYS = 3 + UNIQUECONSTRAINTS = 4 + NOTNULLCONSTRAINTS = 5 FIELDS = { TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Table}, PRIMARYKEYS => {:type => ::Thrift::Types::LIST, :name => 'primaryKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLPrimaryKey}}, - FOREIGNKEYS => {:type => ::Thrift::Types::LIST, :name => 'foreignKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLForeignKey}} + 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}} } def struct_fields; FIELDS; end @@ -5274,6 +5396,74 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Add_unique_constraint_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddUniqueConstraintRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_unique_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 Add_not_null_constraint_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddNotNullConstraintRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_not_null_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 @@ -7876,6 +8066,78 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_unique_constraints_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::UniqueConstraintsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_unique_constraints_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::UniqueConstraintsResponse}, + 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 Get_not_null_constraints_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::NotNullConstraintsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_not_null_constraints_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::NotNullConstraintsResponse}, + 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 metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index cbcfc72..b5ba382 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -1367,8 +1367,16 @@ public boolean drop_type(final String name) throws MetaException, NoSuchObjectEx } 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); + } + + private void create_table_core(final RawStore ms, final Table tbl, final EnvironmentContext envContext, List primaryKeys, - List foreignKeys) + List foreignKeys, List uniqueConstraints, + List notNullConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName(), hiveConf)) { @@ -1453,10 +1461,12 @@ private void create_table_core(final RawStore ms, final Table tbl, tbl.getParameters().get(hive_metastoreConstants.DDL_TIME) == null) { tbl.putToParameters(hive_metastoreConstants.DDL_TIME, Long.toString(time)); } - if (primaryKeys == null && foreignKeys == null) { + if (primaryKeys == null && foreignKeys == null + && uniqueConstraints == null && notNullConstraints == null) { ms.createTable(tbl); } else { - ms.createTableWithConstraints(tbl, primaryKeys, foreignKeys); + ms.createTableWithConstraints(tbl, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); } if (!transactionalListeners.isEmpty()) { @@ -1500,7 +1510,7 @@ public void create_table_with_environment_context(final Table tbl, boolean success = false; Exception ex = null; try { - create_table_core(getMS(), tbl, envContext, null, null); + create_table_core(getMS(), tbl, envContext); success = true; } catch (NoSuchObjectException e) { ex = e; @@ -1523,13 +1533,16 @@ public void create_table_with_environment_context(final Table tbl, @Override public void create_table_with_constraints(final Table tbl, - final List primaryKeys, final List foreignKeys) + final List primaryKeys, final List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException { startFunction("create_table", ": " + tbl.toString()); boolean success = false; Exception ex = null; try { - create_table_core(getMS(), tbl, null, primaryKeys, foreignKeys); + create_table_core(getMS(), tbl, null, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); success = true; } catch (NoSuchObjectException e) { ex = e; @@ -1631,6 +1644,58 @@ public void add_foreign_key(AddForeignKeyRequest req) } } + @Override + public void add_unique_constraint(AddUniqueConstraintRequest req) + throws MetaException, InvalidObjectException { + List uniqueConstraintCols = req.getUniqueConstraintCols(); + String constraintName = (uniqueConstraintCols != null && uniqueConstraintCols.size() > 0) ? + uniqueConstraintCols.get(0).getUk_name() : "null"; + startFunction("add_unique_constraint", ": " + constraintName); + boolean success = false; + Exception ex = null; + try { + getMS().addUniqueConstraints(uniqueConstraintCols); + success = true; + } 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 { + endFunction("add_unique_constraint", success, ex, constraintName); + } + } + + @Override + public void add_not_null_constraint(AddNotNullConstraintRequest req) + throws MetaException, InvalidObjectException { + List notNullConstraintCols = req.getNotNullConstraintCols(); + String constraintName = (notNullConstraintCols != null && notNullConstraintCols.size() > 0) ? + notNullConstraintCols.get(0).getNn_name() : "null"; + startFunction("add_not_null_constraint", ": " + constraintName); + boolean success = false; + Exception ex = null; + try { + getMS().addNotNullConstraints(notNullConstraintCols); + success = true; + } 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 { + endFunction("add_not_null_constraint", success, ex, constraintName); + } + } + private boolean is_table_exists(RawStore ms, String dbname, String name) throws MetaException { return (ms.getTable(dbname, name) != null); @@ -6970,8 +7035,57 @@ public ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request) throws M } return new ForeignKeysResponse(ret); } - } + @Override + public UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request) + throws MetaException, NoSuchObjectException, TException { + String db_name = request.getDb_name(); + String tbl_name = request.getTbl_name(); + startTableFunction("get_unique_constraints", db_name, tbl_name); + List ret = null; + Exception ex = null; + try { + ret = getMS().getUniqueConstraints(db_name, tbl_name); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else if (e instanceof NoSuchObjectException) { + throw (NoSuchObjectException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("get_unique_constraints", ret != null, ex, tbl_name); + } + return new UniqueConstraintsResponse(ret); + } + + @Override + public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request) + throws MetaException, NoSuchObjectException, TException { + String db_name = request.getDb_name(); + String tbl_name = request.getTbl_name(); + startTableFunction("get_not_null_constraints", db_name, tbl_name); + List ret = null; + Exception ex = null; + try { + ret = getMS().getNotNullConstraints(db_name, tbl_name); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else if (e instanceof NoSuchObjectException) { + throw (NoSuchObjectException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("get_not_null_constraints", ret != null, ex, tbl_name); + } + return new NotNullConstraintsResponse(ret); + } + } public static IHMSHandler newRetryingHMSHandler(IHMSHandler baseHandler, HiveConf hiveConf) throws MetaException { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 53f8118..28ced23 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -752,9 +752,11 @@ public void createTable(Table tbl, EnvironmentContext envContext) throws Already @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) - throws AlreadyExistsException, InvalidObjectException, - MetaException, NoSuchObjectException, TException { + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) + throws AlreadyExistsException, InvalidObjectException, + MetaException, NoSuchObjectException, TException { HiveMetaHook hook = getHook(tbl); if (hook != null) { hook.preCreateTable(tbl); @@ -762,7 +764,8 @@ public void createTableWithConstraints(Table tbl, boolean success = false; try { // Subclasses can override this step (for example, for temporary tables) - client.create_table_with_constraints(tbl, primaryKeys, foreignKeys); + client.create_table_with_constraints(tbl, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); if (hook != null) { hook.commitCreateTable(tbl); } @@ -792,7 +795,19 @@ public void addForeignKey(List foreignKeyCols) throws client.add_foreign_key(new AddForeignKeyRequest(foreignKeyCols)); } -/** + @Override + public void addUniqueConstraint(List uniqueConstraintCols) throws + NoSuchObjectException, MetaException, TException { + client.add_unique_constraint(new AddUniqueConstraintRequest(uniqueConstraintCols)); + } + + @Override + public void addNotNullConstraint(List notNullConstraintCols) throws + NoSuchObjectException, MetaException, TException { + client.add_not_null_constraint(new AddNotNullConstraintRequest(notNullConstraintCols)); + } + + /** * @param type * @return true or false * @throws AlreadyExistsException @@ -1632,6 +1647,18 @@ public Index getIndex(String dbName, String tblName, String indexName) return client.get_foreign_keys(req).getForeignKeys(); } + @Override + public List getUniqueConstraints(UniqueConstraintsRequest req) + throws MetaException, NoSuchObjectException, TException { + return client.get_unique_constraints(req).getUniqueConstraints(); + } + + @Override + public List getNotNullConstraints(NotNullConstraintsRequest req) + throws MetaException, NoSuchObjectException, TException { + return client.get_not_null_constraints(req).getNotNullConstraints(); + } + /** {@inheritDoc} */ @Override diff --git metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 023a289..3d034fc 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -71,6 +71,7 @@ import org.apache.hadoop.hive.metastore.api.NoSuchLockException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; +import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; @@ -82,7 +83,9 @@ import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; 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.SetPartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; @@ -91,6 +94,7 @@ import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; import org.apache.hadoop.hive.metastore.api.TxnOpenException; +import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; @@ -1651,9 +1655,17 @@ boolean cacheFileMetadata(String dbName, String tableName, String partName, List getForeignKeys(ForeignKeysRequest request) throws MetaException, NoSuchObjectException, TException; + List getUniqueConstraints(UniqueConstraintsRequest request) throws MetaException, + NoSuchObjectException, TException; + + List getNotNullConstraints(NotNullConstraintsRequest request) throws MetaException, + NoSuchObjectException, TException; + void createTableWithConstraints( org.apache.hadoop.hive.metastore.api.Table tTbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException; void dropConstraint(String dbName, String tableName, String constraintName) throws @@ -1664,4 +1676,10 @@ void addPrimaryKey(List primaryKeyCols) throws void addForeignKey(List foreignKeyCols) throws MetaException, NoSuchObjectException, TException; + + void addUniqueConstraint(List uniqueConstraintCols) throws + MetaException, NoSuchObjectException, TException; + + void addNotNullConstraint(List notNullConstraintCols) throws + MetaException, NoSuchObjectException, TException; } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java index b96c27e..cb25de7 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java @@ -56,7 +56,9 @@ import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PrincipalType; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -2018,4 +2020,113 @@ public void closeAllQueries() { } return ret; } + + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + List ret = new ArrayList(); + String queryText = + "SELECT \"DBS\".\"NAME\", \"TBLS\".\"TBL_NAME\", \"COLUMNS_V2\".\"COLUMN_NAME\"," + + "\"KEY_CONSTRAINTS\".\"POSITION\", " + + "\"KEY_CONSTRAINTS\".\"CONSTRAINT_NAME\", \"KEY_CONSTRAINTS\".\"ENABLE_VALIDATE_RELY\" " + + " 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\" " + + " INNER JOIN \"COLUMNS_V2\" ON \"COLUMNS_V2\".\"CD_ID\" = \"KEY_CONSTRAINTS\".\"PARENT_CD_ID\" AND " + + " \"COLUMNS_V2\".\"INTEGER_IDX\" = \"KEY_CONSTRAINTS\".\"PARENT_INTEGER_IDX\" " + + " WHERE \"KEY_CONSTRAINTS\".\"CONSTRAINT_TYPE\" = "+ MConstraint.UNIQUE_CONSTRAINT + " AND " + + (db_name == null ? "" : "\"DBS\".\"NAME\" = ? AND") + + (tbl_name == null ? "" : " \"TBLS\".\"TBL_NAME\" = ? ") ; + + queryText = queryText.trim(); + if (queryText.endsWith("WHERE")) { + queryText = queryText.substring(0, queryText.length()-5); + } + if (queryText.endsWith("AND")) { + queryText = queryText.substring(0, queryText.length()-3); + } + List pms = new ArrayList(); + if (db_name != null) { + pms.add(db_name); + } + if (tbl_name != null) { + pms.add(tbl_name); + } + + Query queryParams = pm.newQuery("javax.jdo.query.SQL", queryText); + List sqlResult = ensureList(executeWithArray( + queryParams, pms.toArray(), queryText)); + + if (!sqlResult.isEmpty()) { + for (Object[] line : sqlResult) { + int enableValidateRely = extractSqlInt(line[5]); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + SQLUniqueConstraint currConstraint = new SQLUniqueConstraint( + extractSqlString(line[0]), + extractSqlString(line[1]), + extractSqlString(line[2]), + extractSqlInt(line[3]), extractSqlString(line[4]), + enable, + validate, + rely); + ret.add(currConstraint); + } + } + return ret; + } + + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + List ret = new ArrayList(); + String queryText = + "SELECT \"DBS\".\"NAME\", \"TBLS\".\"TBL_NAME\", \"COLUMNS_V2\".\"COLUMN_NAME\"," + + "\"KEY_CONSTRAINTS\".\"CONSTRAINT_NAME\", \"KEY_CONSTRAINTS\".\"ENABLE_VALIDATE_RELY\" " + + " 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\" " + + " INNER JOIN \"COLUMNS_V2\" ON \"COLUMNS_V2\".\"CD_ID\" = \"KEY_CONSTRAINTS\".\"PARENT_CD_ID\" AND " + + " \"COLUMNS_V2\".\"INTEGER_IDX\" = \"KEY_CONSTRAINTS\".\"PARENT_INTEGER_IDX\" " + + " WHERE \"KEY_CONSTRAINTS\".\"CONSTRAINT_TYPE\" = "+ MConstraint.NOT_NULL_CONSTRAINT + " AND " + + (db_name == null ? "" : "\"DBS\".\"NAME\" = ? AND") + + (tbl_name == null ? "" : " \"TBLS\".\"TBL_NAME\" = ? ") ; + + queryText = queryText.trim(); + if (queryText.endsWith("WHERE")) { + queryText = queryText.substring(0, queryText.length()-5); + } + if (queryText.endsWith("AND")) { + queryText = queryText.substring(0, queryText.length()-3); + } + List pms = new ArrayList(); + if (db_name != null) { + pms.add(db_name); + } + if (tbl_name != null) { + pms.add(tbl_name); + } + + Query queryParams = pm.newQuery("javax.jdo.query.SQL", queryText); + List sqlResult = ensureList(executeWithArray( + queryParams, pms.toArray(), queryText)); + + if (!sqlResult.isEmpty()) { + for (Object[] line : sqlResult) { + int enableValidateRely = extractSqlInt(line[4]); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + SQLNotNullConstraint currConstraint = new SQLNotNullConstraint( + extractSqlString(line[0]), + extractSqlString(line[1]), + extractSqlString(line[2]), + extractSqlString(line[3]), + enable, + validate, + rely); + ret.add(currConstraint); + } + } + return ret; + } } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 29aa642..a355ca6 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -105,7 +105,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -965,7 +967,9 @@ public boolean dropType(String typeName) { @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException { boolean success = false; try { @@ -976,6 +980,8 @@ public void createTableWithConstraints(Table tbl, // since this transaction involving create table is not yet committed. addPrimaryKeys(primaryKeys, false); addForeignKeys(foreignKeys, false); + addUniqueConstraints(uniqueConstraints, false); + addNotNullConstraints(notNullConstraints, false); success = commitTransaction(); } finally { if (!success) { @@ -3648,6 +3654,114 @@ private void addPrimaryKeys(List pks, boolean retrieveCD) throws } @Override + public void addUniqueConstraints(List uks) + throws InvalidObjectException, MetaException { + addUniqueConstraints(uks, true); + } + + private void addUniqueConstraints(List uks, boolean retrieveCD) + throws InvalidObjectException, MetaException { + List cstrs = new ArrayList(); + String constraintName = null; + + for (int i = 0; i < uks.size(); i++) { + AttachedMTableInfo nParentTable = + getMTable(uks.get(i).getTable_db(), uks.get(i).getTable_name(), retrieveCD); + MTable parentTable = nParentTable.mtbl; + if (parentTable == null) { + throw new InvalidObjectException("Parent table not found: " + uks.get(i).getTable_name()); + } + + MColumnDescriptor parentCD = retrieveCD ? nParentTable.mcd : parentTable.getSd().getCD(); + int parentIntegerIndex = + getColumnIndexFromTableColumns(parentCD == null ? + null : parentCD.getCols(), uks.get(i).getColumn_name()); + if (parentIntegerIndex == -1) { + throw new InvalidObjectException("Parent column not found: " + uks.get(i).getColumn_name()); + } + if (uks.get(i).getUk_name() == null) { + if (uks.get(i).getKey_seq() == 1) { + constraintName = generateConstraintName(uks.get(i).getTable_db(), uks.get(i).getTable_name(), + uks.get(i).getColumn_name(), "uk"); + } + } else { + constraintName = uks.get(i).getUk_name(); + } + + int enableValidateRely = (uks.get(i).isEnable_cstr() ? 4 : 0) + + (uks.get(i).isValidate_cstr() ? 2 : 0) + (uks.get(i).isRely_cstr() ? 1 : 0); + MConstraint muk = new MConstraint( + constraintName, + MConstraint.UNIQUE_CONSTRAINT, + uks.get(i).getKey_seq(), + null, + null, + enableValidateRely, + parentTable, + null, + parentCD, + null, + null, + parentIntegerIndex); + cstrs.add(muk); + } + pm.makePersistentAll(cstrs); + } + + @Override + public void addNotNullConstraints(List nns) + throws InvalidObjectException, MetaException { + addNotNullConstraints(nns, true); + } + + private void addNotNullConstraints(List nns, boolean retrieveCD) + throws InvalidObjectException, MetaException { + List cstrs = new ArrayList(); + String constraintName = null; + + for (int i = 0; i < nns.size(); i++) { + AttachedMTableInfo nParentTable = + getMTable(nns.get(i).getTable_db(), nns.get(i).getTable_name(), retrieveCD); + MTable parentTable = nParentTable.mtbl; + if (parentTable == null) { + throw new InvalidObjectException("Parent table not found: " + nns.get(i).getTable_name()); + } + + MColumnDescriptor parentCD = retrieveCD ? nParentTable.mcd : parentTable.getSd().getCD(); + int parentIntegerIndex = + getColumnIndexFromTableColumns(parentCD == null ? + null : parentCD.getCols(), nns.get(i).getColumn_name()); + if (parentIntegerIndex == -1) { + throw new InvalidObjectException("Parent column not found: " + nns.get(i).getColumn_name()); + } + if (nns.get(i).getNn_name() == null) { + constraintName = generateConstraintName(nns.get(i).getTable_db(), nns.get(i).getTable_name(), + nns.get(i).getColumn_name(), "nn"); + } else { + constraintName = nns.get(i).getNn_name(); + } + + int enableValidateRely = (nns.get(i).isEnable_cstr() ? 4 : 0) + + (nns.get(i).isValidate_cstr() ? 2 : 0) + (nns.get(i).isRely_cstr() ? 1 : 0); + MConstraint muk = new MConstraint( + constraintName, + MConstraint.NOT_NULL_CONSTRAINT, + 1, // Not null constraint should reference a single column + null, + null, + enableValidateRely, + parentTable, + null, + parentCD, + null, + null, + parentIntegerIndex); + cstrs.add(muk); + } + pm.makePersistentAll(cstrs); + } + + @Override public boolean addIndex(Index index) throws InvalidObjectException, MetaException { boolean commited = false; @@ -8444,6 +8558,143 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + try { + return getUniqueConstraintsInternal(db_name, tbl_name, true, true); + } catch (NoSuchObjectException e) { + throw new MetaException(e.getMessage()); + } + } + + protected List getUniqueConstraintsInternal(final String db_name_input, + final String tbl_name_input, boolean allowSql, boolean allowJdo) + throws MetaException, NoSuchObjectException { + final String db_name = HiveStringUtils.normalizeIdentifier(db_name_input); + final String tbl_name = HiveStringUtils.normalizeIdentifier(tbl_name_input); + return new GetListHelper(db_name, tbl_name, allowSql, allowJdo) { + + @Override + protected List getSqlResult(GetHelper> ctx) + throws MetaException { + return directSql.getUniqueConstraints(db_name, tbl_name); + } + + @Override + protected List getJdoResult(GetHelper> ctx) + throws MetaException, NoSuchObjectException { + return getUniqueConstraintsViaJdo(db_name, tbl_name); + } + }.run(false); + } + + private List getUniqueConstraintsViaJdo(String db_name, String tbl_name) + throws MetaException { + boolean commited = false; + List uniqueConstraints = null; + Query query = null; + try { + openTransaction(); + query = pm.newQuery(MConstraint.class, + "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" + + " constraintType == MConstraint.UNIQUE_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); + uniqueConstraints = new ArrayList(); + for (Iterator i = constraints.iterator(); i.hasNext();) { + MConstraint currPK = (MConstraint) i.next(); + int enableValidateRely = currPK.getEnableValidateRely(); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + uniqueConstraints.add(new SQLUniqueConstraint(db_name, + tbl_name, + currPK.getParentColumn().getCols().get(currPK.getParentIntegerIndex()).getName(), + currPK.getPosition(), + currPK.getConstraintName(), enable, validate, rely)); + } + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + return uniqueConstraints; + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + try { + return getNotNullConstraintsInternal(db_name, tbl_name, true, true); + } catch (NoSuchObjectException e) { + throw new MetaException(e.getMessage()); + } + } + + protected List getNotNullConstraintsInternal(final String db_name_input, + final String tbl_name_input, boolean allowSql, boolean allowJdo) + throws MetaException, NoSuchObjectException { + final String db_name = HiveStringUtils.normalizeIdentifier(db_name_input); + final String tbl_name = HiveStringUtils.normalizeIdentifier(tbl_name_input); + return new GetListHelper(db_name, tbl_name, allowSql, allowJdo) { + + @Override + protected List getSqlResult(GetHelper> ctx) + throws MetaException { + return directSql.getNotNullConstraints(db_name, tbl_name); + } + + @Override + protected List getJdoResult(GetHelper> ctx) + throws MetaException, NoSuchObjectException { + return getNotNullConstraintsViaJdo(db_name, tbl_name); + } + }.run(false); + } + + private List getNotNullConstraintsViaJdo(String db_name, String tbl_name) + throws MetaException { + boolean commited = false; + List notNullConstraints = null; + Query query = null; + try { + openTransaction(); + query = pm.newQuery(MConstraint.class, + "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" + + " constraintType == MConstraint.NOT_NULL_CONSTRAINT"); + query.declareParameters("java.lang.String tbl_name, java.lang.String db_name"); + Collection constraints = (Collection) query.execute(tbl_name, db_name); + pm.retrieveAll(constraints); + notNullConstraints = new ArrayList(); + for (Iterator i = constraints.iterator(); i.hasNext();) { + MConstraint currPK = (MConstraint) i.next(); + int enableValidateRely = currPK.getEnableValidateRely(); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + notNullConstraints.add(new SQLNotNullConstraint(db_name, + tbl_name, + currPK.getParentColumn().getCols().get(currPK.getParentIntegerIndex()).getName(), + currPK.getConstraintName(), enable, validate, rely)); + } + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + return notNullConstraints; + } + + @Override public void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException { boolean success = false; diff --git metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index c22a1db..7b2ac95 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -54,7 +54,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.Table; import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; @@ -700,12 +702,24 @@ void getFileMetadataByExpr(List fileIds, FileMetadataExprType type, byte[] String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws MetaException; + public abstract List getUniqueConstraints(String db_name, + String tbl_name) throws MetaException; + + public abstract List getNotNullConstraints(String db_name, + String tbl_name) throws MetaException; + void createTableWithConstraints(Table tbl, List primaryKeys, - List foreignKeys) throws InvalidObjectException, MetaException; + List foreignKeys, List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException; void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException; void addPrimaryKeys(List pks) throws InvalidObjectException, MetaException; void addForeignKeys(List fks) throws InvalidObjectException, MetaException; + + void addUniqueConstraints(List uks) throws InvalidObjectException, MetaException; + + void addNotNullConstraints(List nns) throws InvalidObjectException, MetaException; + } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index 39b1676..cbbe08a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -75,7 +75,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.StringColumnStatsData; import org.apache.hadoop.hive.metastore.api.Table; @@ -1531,11 +1533,28 @@ public int getDatabaseCount() throws MetaException { } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO constraintCache + return rawStore.getUniqueConstraints(db_name, tbl_name); + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO constraintCache + return rawStore.getNotNullConstraints(db_name, tbl_name); + } + + @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException { // TODO constraintCache - rawStore.createTableWithConstraints(tbl, primaryKeys, foreignKeys); + rawStore.createTableWithConstraints(tbl, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); SharedCache.addTableToCache(HiveStringUtils.normalizeIdentifier(tbl.getDbName()), HiveStringUtils.normalizeIdentifier(tbl.getTableName()), tbl); } @@ -1562,6 +1581,20 @@ public void addForeignKeys(List fks) } @Override + public void addUniqueConstraints(List uks) + throws InvalidObjectException, MetaException { + // TODO constraintCache + rawStore.addUniqueConstraints(uks); + } + + @Override + public void addNotNullConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO constraintCache + rawStore.addNotNullConstraints(nns); + } + + @Override public Map getAggrColStatsForTablePartitions( String dbName, String tableName) throws MetaException, NoSuchObjectException { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseReadWrite.java metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseReadWrite.java index e687a69..d711805 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseReadWrite.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseReadWrite.java @@ -24,7 +24,9 @@ import org.apache.commons.lang.StringUtils; import org.apache.hadoop.hbase.filter.FirstKeyOnlyFilter; 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.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -147,6 +149,8 @@ private final static byte[] MASTER_KEY_COL = "mk".getBytes(HBaseUtils.ENCODING); private final static byte[] PRIMARY_KEY_COL = "pk".getBytes(HBaseUtils.ENCODING); private final static byte[] FOREIGN_KEY_COL = "fk".getBytes(HBaseUtils.ENCODING); + private final static byte[] UNIQUE_CONSTRAINT_COL = "uk".getBytes(HBaseUtils.ENCODING); + private final static byte[] NOT_NULL_CONSTRAINT_COL = "nn".getBytes(HBaseUtils.ENCODING); private final static byte[] GLOBAL_PRIVS_KEY = "gp".getBytes(HBaseUtils.ENCODING); private final static byte[] SEQUENCES_KEY = "seq".getBytes(HBaseUtils.ENCODING); private final static int TABLES_TO_CACHE = 10; @@ -2550,7 +2554,7 @@ long getNextSequence(byte[] sequence) throws IOException { } /********************************************************************************************** - * Constraints (pk/fk) related methods + * Constraints related methods *********************************************************************************************/ /** @@ -2582,6 +2586,34 @@ long getNextSequence(byte[] sequence) throws IOException { } /** + * Fetch a unique constraint + * @param dbName database the table is in + * @param tableName table name + * @return List of unique constraints objects + * @throws IOException if there's a read error + */ + List getUniqueConstraint(String dbName, String tableName) throws IOException { + byte[] key = HBaseUtils.buildKey(dbName, tableName); + byte[] serialized = read(TABLE_TABLE, key, CATALOG_CF, UNIQUE_CONSTRAINT_COL); + if (serialized == null) return null; + return HBaseUtils.deserializeUniqueConstraint(dbName, tableName, serialized); + } + + /** + * Fetch a not null constraint + * @param dbName database the table is in + * @param tableName table name + * @return List of not null constraints objects + * @throws IOException if there's a read error + */ + List getNotNullConstraint(String dbName, String tableName) throws IOException { + byte[] key = HBaseUtils.buildKey(dbName, tableName); + byte[] serialized = read(TABLE_TABLE, key, CATALOG_CF, NOT_NULL_CONSTRAINT_COL); + if (serialized == null) return null; + return HBaseUtils.deserializeNotNullConstraint(dbName, tableName, serialized); + } + + /** * Create a primary key on a table. * @param pk Primary key for this table * @throws IOException if unable to write the data to the store. @@ -2605,6 +2637,26 @@ void putForeignKeys(List fks) throws IOException { } /** + * Create one or more unique constraints on a table. + * @param uks Unique constraints for this table + * @throws IOException if unable to write the data to the store. + */ + void putUniqueConstraints(List uks) throws IOException { + byte[][] serialized = HBaseUtils.serializeUniqueConstraints(uks); + store(TABLE_TABLE, serialized[0], CATALOG_CF, UNIQUE_CONSTRAINT_COL, serialized[1]); + } + + /** + * Create one or more not null constraints on a table. + * @param nns Not null constraints for this table + * @throws IOException if unable to write the data to the store. + */ + void putNotNullConstraints(List nns) throws IOException { + byte[][] serialized = HBaseUtils.serializeNotNullConstraints(nns); + store(TABLE_TABLE, serialized[0], CATALOG_CF, NOT_NULL_CONSTRAINT_COL, serialized[1]); + } + + /** * Drop the primary key from a table. * @param dbName database the table is in * @param tableName table name @@ -2629,6 +2681,28 @@ void deleteForeignKeys(String dbName, String tableName) throws IOException { delete(TABLE_TABLE, key, CATALOG_CF, FOREIGN_KEY_COL); } + /** + * Drop the unique constraint from a table. + * @param dbName database the table is in + * @param tableName table name + * @throws IOException if unable to delete from the store + */ + void deleteUniqueConstraint(String dbName, String tableName) throws IOException { + byte[] key = HBaseUtils.buildKey(dbName, tableName); + delete(TABLE_TABLE, key, CATALOG_CF, UNIQUE_CONSTRAINT_COL); + } + + /** + * Drop the not null constraint from a table. + * @param dbName database the table is in + * @param tableName table name + * @throws IOException if unable to delete from the store + */ + void deleteNotNullConstraint(String dbName, String tableName) throws IOException { + byte[] key = HBaseUtils.buildKey(dbName, tableName); + delete(TABLE_TABLE, key, CATALOG_CF, NOT_NULL_CONSTRAINT_COL); + } + /********************************************************************************************** * Cache methods *********************************************************************************************/ diff --git metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java index f6420f5..c9f6d59 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java @@ -22,7 +22,6 @@ import com.google.common.cache.CacheLoader; import org.apache.commons.lang.StringUtils; -import org.apache.hadoop.hive.common.ObjectPair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -65,7 +64,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.Table; import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; @@ -2739,15 +2740,56 @@ public void putFileMetadata(List fileIds, List metadata, } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + db_name = HiveStringUtils.normalizeIdentifier(db_name); + tbl_name = HiveStringUtils.normalizeIdentifier(tbl_name); + boolean commit = false; + openTransaction(); + try { + List uk = getHBase().getUniqueConstraint(db_name, tbl_name); + commit = true; + return uk; + } catch (IOException e) { + LOG.error("Unable to get unique constraint", e); + throw new MetaException("Error reading db " + e.getMessage()); + } finally { + commitOrRoleBack(commit); + } + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + db_name = HiveStringUtils.normalizeIdentifier(db_name); + tbl_name = HiveStringUtils.normalizeIdentifier(tbl_name); + boolean commit = false; + openTransaction(); + try { + List nn = getHBase().getNotNullConstraint(db_name, tbl_name); + commit = true; + return nn; + } catch (IOException e) { + LOG.error("Unable to get not null constraint", e); + throw new MetaException("Error reading db " + e.getMessage()); + } finally { + commitOrRoleBack(commit); + } + } + + @Override public void createTableWithConstraints(Table tbl, List primaryKeys, - List foreignKeys) - throws InvalidObjectException, MetaException { + List foreignKeys, List uniqueConstraints, + List notNullConstraints) + throws InvalidObjectException, MetaException { boolean commit = false; openTransaction(); try { createTable(tbl); if (primaryKeys != null) addPrimaryKeys(primaryKeys); if (foreignKeys != null) addForeignKeys(foreignKeys); + if (uniqueConstraints != null) addUniqueConstraints(uniqueConstraints); + if (notNullConstraints != null) addNotNullConstraints(notNullConstraints); commit = true; } finally { commitOrRoleBack(commit); @@ -2787,6 +2829,20 @@ public void dropConstraint(String dbName, String tableName, String constraintNam return; } + List uk = getHBase().getUniqueConstraint(dbName, tableName); + if (uk != null && uk.size() > 0 && uk.get(0).getUk_name().equals(constraintName)) { + getHBase().deleteUniqueConstraint(dbName, tableName); + commit = true; + return; + } + + List nn = getHBase().getNotNullConstraint(dbName, tableName); + if (nn != null && nn.size() > 0 && nn.get(0).getNn_name().equals(constraintName)) { + getHBase().deleteNotNullConstraint(dbName, tableName); + commit = true; + return; + } + commit = true; throw new NoSuchObjectException("Unable to find constraint named " + constraintName + " on table " + tableNameForErrorMsg(dbName, tableName)); @@ -2854,6 +2910,48 @@ public void addForeignKeys(List fks) throws InvalidObjectExceptio } @Override + public void addUniqueConstraints(List uks) throws InvalidObjectException, MetaException { + boolean commit = false; + for (SQLUniqueConstraint uk : uks) { + uk.setTable_db(HiveStringUtils.normalizeIdentifier(uk.getTable_db())); + uk.setTable_name(HiveStringUtils.normalizeIdentifier(uk.getTable_name())); + uk.setColumn_name(HiveStringUtils.normalizeIdentifier(uk.getColumn_name())); + uk.setUk_name(HiveStringUtils.normalizeIdentifier(uk.getUk_name())); + } + openTransaction(); + try { + getHBase().putUniqueConstraints(uks); + commit = true; + } catch (IOException e) { + LOG.error("Error writing unique constraints", e); + throw new MetaException("Error writing unique constraints: " + e.getMessage()); + } finally { + commitOrRoleBack(commit); + } + } + + @Override + public void addNotNullConstraints(List nns) throws InvalidObjectException, MetaException { + boolean commit = false; + for (SQLNotNullConstraint nn : nns) { + nn.setTable_db(HiveStringUtils.normalizeIdentifier(nn.getTable_db())); + nn.setTable_name(HiveStringUtils.normalizeIdentifier(nn.getTable_name())); + nn.setColumn_name(HiveStringUtils.normalizeIdentifier(nn.getColumn_name())); + nn.setNn_name(HiveStringUtils.normalizeIdentifier(nn.getNn_name())); + } + openTransaction(); + try { + getHBase().putNotNullConstraints(nns); + commit = true; + } catch (IOException e) { + LOG.error("Error writing not null constraints", e); + throw new MetaException("Error writing not null constraints: " + e.getMessage()); + } finally { + commitOrRoleBack(commit); + } + } + + @Override public Map getAggrColStatsForTablePartitions(String dbName, String tableName) throws MetaException, NoSuchObjectException { // TODO: see if it makes sense to implement this here diff --git metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseUtils.java index 3172f92..79118f4 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseUtils.java @@ -37,7 +37,6 @@ import org.apache.commons.lang.StringUtils; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.BinaryColumnStatsData; @@ -63,7 +62,9 @@ import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.metastore.api.Role; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -1585,6 +1586,99 @@ static String deserializeMasterKey(byte[] value) throws InvalidProtocolBufferExc return result; } + /** + * Serialize the unique constraint(s) for a table. + * @param uks Unique constraint columns. These may belong to multiple unique constraints. + * @return two byte arrays, first contains the key, the second the serialized value. + */ + static byte[][] serializeUniqueConstraints(List uks) { + // First, figure out the dbName and tableName. We expect this to match for all list entries. + byte[][] result = new byte[2][]; + String dbName = uks.get(0).getTable_db(); + String tableName = uks.get(0).getTable_name(); + result[0] = buildKey(HiveStringUtils.normalizeIdentifier(dbName), + HiveStringUtils.normalizeIdentifier(tableName)); + + HbaseMetastoreProto.UniqueConstraints.Builder builder = + HbaseMetastoreProto.UniqueConstraints.newBuilder(); + + // Encode any foreign keys we find. This can be complex because there may be more than + // one foreign key in here, so we need to detect that. + Map ukBuilders = new HashMap<>(); + + for (SQLUniqueConstraint ukcol : uks) { + HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder ukBuilder = + ukBuilders.get(ukcol.getUk_name()); + if (ukBuilder == null) { + // We haven't seen this key before, so add it + ukBuilder = HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.newBuilder(); + ukBuilder.setUkName(ukcol.getUk_name()); + ukBuilder.setEnableConstraint(ukcol.isEnable_cstr()); + ukBuilder.setValidateConstraint(ukcol.isValidate_cstr()); + ukBuilder.setRelyConstraint(ukcol.isRely_cstr()); + ukBuilders.put(ukcol.getUk_name(), ukBuilder); + } + assert dbName.equals(ukcol.getTable_db()) : "You switched databases on me!"; + assert tableName.equals(ukcol.getTable_name()) : "You switched tables on me!"; + HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.Builder ukColBuilder = + HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn.newBuilder(); + ukColBuilder.setColumnName(ukcol.getColumn_name()); + ukColBuilder.setKeySeq(ukcol.getKey_seq()); + ukBuilder.addCols(ukColBuilder); + } + for (HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.Builder ukBuilder : ukBuilders.values()) { + builder.addUks(ukBuilder); + } + result[1] = builder.build().toByteArray(); + return result; + } + + /** + * Serialize the not null constraint(s) for a table. + * @param nns Not null constraint columns. These may belong to multiple constraints. + * @return two byte arrays, first contains the constraint, the second the serialized value. + */ + static byte[][] serializeNotNullConstraints(List nns) { + // First, figure out the dbName and tableName. We expect this to match for all list entries. + byte[][] result = new byte[2][]; + String dbName = nns.get(0).getTable_db(); + String tableName = nns.get(0).getTable_name(); + result[0] = buildKey(HiveStringUtils.normalizeIdentifier(dbName), + HiveStringUtils.normalizeIdentifier(tableName)); + + HbaseMetastoreProto.NotNullConstraints.Builder builder = + HbaseMetastoreProto.NotNullConstraints.newBuilder(); + + // Encode any foreign keys we find. This can be complex because there may be more than + // one foreign key in here, so we need to detect that. + Map nnBuilders = new HashMap<>(); + + for (SQLNotNullConstraint nncol : nns) { + HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder nnBuilder = + nnBuilders.get(nncol.getNn_name()); + if (nnBuilder == null) { + // We haven't seen this key before, so add it + nnBuilder = HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.newBuilder(); + nnBuilder.setNnName(nncol.getNn_name()); + nnBuilder.setEnableConstraint(nncol.isEnable_cstr()); + nnBuilder.setValidateConstraint(nncol.isValidate_cstr()); + nnBuilder.setRelyConstraint(nncol.isRely_cstr()); + nnBuilders.put(nncol.getNn_name(), nnBuilder); + } + assert dbName.equals(nncol.getTable_db()) : "You switched databases on me!"; + assert tableName.equals(nncol.getTable_name()) : "You switched tables on me!"; + HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.Builder nnColBuilder = + HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn.newBuilder(); + nnColBuilder.setColumnName(nncol.getColumn_name()); + nnBuilder.addCols(nnColBuilder); + } + for (HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.Builder nnBuilder : nnBuilders.values()) { + builder.addNns(nnBuilder); + } + result[1] = builder.build().toByteArray(); + return result; + } + static List deserializePrimaryKey(String dbName, String tableName, byte[] value) throws InvalidProtocolBufferException { HbaseMetastoreProto.PrimaryKey proto = HbaseMetastoreProto.PrimaryKey.parseFrom(value); @@ -1598,6 +1692,41 @@ static String deserializeMasterKey(byte[] value) throws InvalidProtocolBufferExc return result; } + static List deserializeUniqueConstraint(String dbName, String tableName, byte[] value) + throws InvalidProtocolBufferException { + List result = new ArrayList<>(); + HbaseMetastoreProto.UniqueConstraints protoConstraints = + HbaseMetastoreProto.UniqueConstraints.parseFrom(value); + + for (HbaseMetastoreProto.UniqueConstraints.UniqueConstraint proto : protoConstraints.getUksList()) { + for (HbaseMetastoreProto.UniqueConstraints.UniqueConstraint.UniqueConstraintColumn protoUkCol : + proto.getColsList()) { + result.add(new SQLUniqueConstraint(dbName, tableName, protoUkCol.getColumnName(), + protoUkCol.getKeySeq(), + proto.getUkName(), proto.getEnableConstraint(), + proto.getValidateConstraint(), proto.getRelyConstraint())); + } + } + return result; + } + + static List deserializeNotNullConstraint(String dbName, String tableName, byte[] value) + throws InvalidProtocolBufferException { + List result = new ArrayList<>(); + HbaseMetastoreProto.NotNullConstraints protoConstraints = + HbaseMetastoreProto.NotNullConstraints.parseFrom(value); + + for (HbaseMetastoreProto.NotNullConstraints.NotNullConstraint proto : protoConstraints.getNnsList()) { + for (HbaseMetastoreProto.NotNullConstraints.NotNullConstraint.NotNullConstraintColumn protoNnCol : + proto.getColsList()) { + result.add(new SQLNotNullConstraint(dbName, tableName, protoNnCol.getColumnName(), + proto.getNnName(), proto.getEnableConstraint(), + proto.getValidateConstraint(), proto.getRelyConstraint())); + } + } + return result; + } + static List deserializeForeignKeys(String dbName, String tableName, byte[] value) throws InvalidProtocolBufferException { List result = new ArrayList<>(); diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java index 6da40ac..3fcb048 100644 --- metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java +++ metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java @@ -36,8 +36,12 @@ // 0 - Primary Key // 1 - PK-FK relationship + // 2 - Unique Constraint + // 3 - Not Null Constraint public final static int PRIMARY_KEY_CONSTRAINT = 0; public final static int FOREIGN_KEY_CONSTRAINT = 1; + public final static int UNIQUE_CONSTRAINT = 2; + public final static int NOT_NULL_CONSTRAINT = 3; @SuppressWarnings("serial") public static class PK implements Serializable { diff --git metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto index 6499ac6..53c381b 100644 --- metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto +++ metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto @@ -332,3 +332,37 @@ message ForeignKeys { repeated ForeignKey fks = 1; } + +message UniqueConstraints { + message UniqueConstraint { + message UniqueConstraintColumn { + required string column_name = 1; + required sint32 key_seq = 2; + } + + required string uk_name = 1; + repeated UniqueConstraintColumn cols = 2; + optional bool enable_constraint = 3; + optional bool validate_constraint = 4; + optional bool rely_constraint = 5; + } + + repeated UniqueConstraint uks = 1; +} + +message NotNullConstraints { + message NotNullConstraint { + message NotNullConstraintColumn { + required string column_name = 1; + } + + required string nn_name = 1; + repeated NotNullConstraintColumn cols = 2; + optional bool enable_constraint = 3; + optional bool validate_constraint = 4; + optional bool rely_constraint = 5; + } + + repeated NotNullConstraint nns = 1; +} + diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 3e3fd20..8d69aac 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -52,7 +52,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.Table; import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; @@ -847,8 +849,24 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + + @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub } @@ -872,6 +890,18 @@ public void addForeignKeys(List fks) } @Override + public void addUniqueConstraints(List uks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override + public void addNotNullConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override public Map getAggrColStatsForTablePartitions(String dbName, String tableName) throws MetaException, NoSuchObjectException { // TODO Auto-generated method stub diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 91d8c2a..27a0ef8 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -53,7 +53,9 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.Table; import org.apache.hadoop.hive.metastore.api.TableMeta; import org.apache.hadoop.hive.metastore.api.Type; @@ -863,8 +865,24 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { } @Override + public List getUniqueConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + + @Override + public List getNotNullConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + + @Override public void createTableWithConstraints(Table tbl, - List primaryKeys, List foreignKeys) + List primaryKeys, List foreignKeys, + List uniqueConstraints, + List notNullConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub } @@ -888,6 +906,18 @@ public void addForeignKeys(List fks) } @Override + public void addUniqueConstraints(List uks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override + public void addNotNullConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override public Map getAggrColStatsForTablePartitions(String dbName, String tableName) throws MetaException, NoSuchObjectException { // TODO Auto-generated method stub diff --git metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java index 0cf56e5..4aa8c34 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java @@ -56,7 +56,9 @@ import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.metastore.api.Role; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; @@ -1405,7 +1407,7 @@ public void createTableWithPrimaryKey() throws Exception { List pk = Arrays.asList( new SQLPrimaryKey(DB, tableName, pkColNames[0], 0, pkName, true, false, true)); - store.createTableWithConstraints(table, pk, null); + store.createTableWithConstraints(table, pk, null, null, null); pk = store.getPrimaryKeys(DB, tableName); @@ -1441,7 +1443,7 @@ public void createTableWithForeignKey() throws Exception { new SQLForeignKey(DB, pkTable, pkColNames[0], DB, tableName, fkColNames[0], 0, 1, 2, fkName, pkName, true, false, false)); - store.createTableWithConstraints(table, null, fk); + store.createTableWithConstraints(table, null, fk, null, null); fk = store.getForeignKeys(DB, pkTable, DB, tableName); @@ -1760,12 +1762,142 @@ public void doublePrimaryKey() throws Exception { List pk = Arrays.asList( new SQLPrimaryKey(DB, tableName, pkColNames[0], 0, pkName, true, false, true)); - store.createTableWithConstraints(table, pk, null); + store.createTableWithConstraints(table, pk, null, null, null); store.addPrimaryKeys(pk); } + @Test + public void createTableWithUniqueConstraint() throws Exception { + String tableName = "uktable"; + String ukName = "test_uk"; + String ukColNames[] = { "col0" }; + Table table = createMultiColumnTable(tableName, "int"); + + List uk = Arrays.asList( + new SQLUniqueConstraint(DB, tableName, ukColNames[0], 0, ukName, true, false, true)); + + store.createTableWithConstraints(table, null, null, uk, null); + + uk = store.getUniqueConstraints(DB, tableName); + + Assert.assertNotNull(uk); + Assert.assertEquals(1, uk.size()); + Assert.assertEquals(DB, uk.get(0).getTable_db()); + Assert.assertEquals(tableName, uk.get(0).getTable_name()); + Assert.assertEquals(ukColNames[0], uk.get(0).getColumn_name()); + Assert.assertEquals(0, uk.get(0).getKey_seq()); + Assert.assertEquals(ukName, uk.get(0).getUk_name()); + Assert.assertTrue(uk.get(0).isEnable_cstr()); + Assert.assertFalse(uk.get(0).isValidate_cstr()); + Assert.assertTrue(uk.get(0).isRely_cstr()); + + // Drop the unique constraint + store.dropConstraint(DB, tableName, ukName); + + uk = store.getUniqueConstraints(DB, tableName); + Assert.assertNull(uk); + } + + @Test + public void addMultiUniqueConstraints() throws Exception { + String tableName = "mcuktable"; + String ukName = "test_uk"; + String ukName2 = "test_uk2"; + String ukColNames[] = { "col0", "col1" }; + Table table = createMultiColumnTable(tableName, "int", "double", "timestamp"); + + List uks = Arrays.asList( + new SQLUniqueConstraint(DB, tableName, ukColNames[0], 0, ukName, true, false, true), + new SQLUniqueConstraint(DB, tableName, ukColNames[1], 0, ukName2, true, false, true) + ); + + store.createTable(table); + store.addUniqueConstraints(uks); + + uks = store.getUniqueConstraints(DB, tableName); + + Assert.assertNotNull(uks); + Assert.assertEquals(2, uks.size()); + SQLUniqueConstraint[] sorted = uks.toArray(new SQLUniqueConstraint[2]); + Arrays.sort(sorted, new Comparator() { + @Override + public int compare(SQLUniqueConstraint o1, SQLUniqueConstraint o2) { + if (o1.getUk_name().equals(o2.getUk_name())) { + return o1.getColumn_name().compareTo(o2.getColumn_name()); + } else { + return o1.getUk_name().compareTo(o2.getUk_name()); + } + } + }); + + Assert.assertEquals(DB, sorted[0].getTable_db()); + Assert.assertEquals(tableName, sorted[0].getTable_name()); + Assert.assertEquals(ukColNames[0], sorted[0].getColumn_name()); + Assert.assertEquals(0, sorted[0].getKey_seq()); + Assert.assertEquals(ukName, sorted[0].getUk_name()); + Assert.assertTrue(sorted[0].isEnable_cstr()); + Assert.assertFalse(sorted[0].isValidate_cstr()); + Assert.assertTrue(sorted[0].isRely_cstr()); + + Assert.assertEquals(DB, sorted[1].getTable_db()); + Assert.assertEquals(tableName, sorted[1].getTable_name()); + Assert.assertEquals(ukColNames[1], sorted[1].getColumn_name()); + Assert.assertEquals(0, sorted[1].getKey_seq()); + Assert.assertEquals(ukName2, sorted[1].getUk_name()); + Assert.assertTrue(sorted[1].isEnable_cstr()); + Assert.assertFalse(sorted[1].isValidate_cstr()); + Assert.assertTrue(sorted[1].isRely_cstr()); + } + + @Test + public void addMultiNotNullConstraints() throws Exception { + String tableName = "mcnntable"; + String nnName = "test_nn"; + String nnName2 = "test_nn2"; + String nnColNames[] = { "col0", "col1" }; + Table table = createMultiColumnTable(tableName, "int", "double", "timestamp"); + + List nns = Arrays.asList( + new SQLNotNullConstraint(DB, tableName, nnColNames[0], nnName, true, false, true), + new SQLNotNullConstraint(DB, tableName, nnColNames[1], nnName2, true, false, true) + ); + store.createTable(table); + store.addNotNullConstraints(nns); + + nns = store.getNotNullConstraints(DB, tableName); + + Assert.assertNotNull(nns); + Assert.assertEquals(2, nns.size()); + SQLNotNullConstraint[] sorted = nns.toArray(new SQLNotNullConstraint[2]); + Arrays.sort(sorted, new Comparator() { + @Override + public int compare(SQLNotNullConstraint o1, SQLNotNullConstraint o2) { + if (o1.getNn_name().equals(o2.getNn_name())) { + return o1.getColumn_name().compareTo(o2.getColumn_name()); + } else { + return o1.getNn_name().compareTo(o2.getNn_name()); + } + } + }); + + Assert.assertEquals(DB, sorted[0].getTable_db()); + Assert.assertEquals(tableName, sorted[0].getTable_name()); + Assert.assertEquals(nnColNames[0], sorted[0].getColumn_name()); + Assert.assertEquals(nnName, sorted[0].getNn_name()); + Assert.assertTrue(sorted[0].isEnable_cstr()); + Assert.assertFalse(sorted[0].isValidate_cstr()); + Assert.assertTrue(sorted[0].isRely_cstr()); + + Assert.assertEquals(DB, sorted[1].getTable_db()); + Assert.assertEquals(tableName, sorted[1].getTable_name()); + Assert.assertEquals(nnColNames[1], sorted[1].getColumn_name()); + Assert.assertEquals(nnName2, sorted[1].getNn_name()); + Assert.assertTrue(sorted[1].isEnable_cstr()); + Assert.assertFalse(sorted[1].isValidate_cstr()); + Assert.assertTrue(sorted[1].isRely_cstr()); + } private Table createMockTableAndPartition(String partType, String partVal) throws Exception { List cols = new ArrayList(); diff --git ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java index d01a203..6651900 100644 --- ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java +++ ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java @@ -452,12 +452,14 @@ CLASSPATH_ERROR(10323, "Classpath error"), IMPORT_SEMANTIC_ERROR(10324, "Import Semantic Analyzer Error"), INVALID_FK_SYNTAX(10325, "Invalid Foreign Key syntax"), - INVALID_PK_SYNTAX(10326, "Invalid Primary Key syntax"), + INVALID_CSTR_SYNTAX(10326, "Invalid Constraint syntax"), ACID_NOT_ENOUGH_HISTORY(10327, "Not enough history available for ({0},{1}). " + "Oldest available base: {2}", true), INVALID_COLUMN_NAME(10328, "Invalid column name"), UNSUPPORTED_SET_OPERATOR(10329, "Unsupported set operator"), LOCK_ACQUIRE_CANCELLED(10330, "Query was cancelled while acquiring locks on the underlying objects. "), + NOT_RECOGNIZED_CONSTRAINT(10331, "Constraint not recognized"), + INVALID_CONSTRAINT(10332, "Invalid constraint definition"), REPLACE_VIEW_WITH_MATERIALIZED(10400, "Attempt to replace view {0} with materialized view", true), REPLACE_MATERIALIZED_WITH_VIEW(10401, "Attempt to replace materialized view {0} with view", true), UPDATE_DELETE_VIEW(10402, "You cannot update or delete records in a view"), diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 757b7fc..2d75a39 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -62,9 +62,8 @@ import org.apache.hadoop.hive.conf.Constants; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; -import org.apache.hadoop.hive.io.HdfsUtils; -import org.apache.hadoop.hive.metastore.HiveMetaHook; import org.apache.hadoop.hive.metastore.DefaultHiveMetaHook; +import org.apache.hadoop.hive.metastore.HiveMetaHook; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.PartitionDropOptions; import org.apache.hadoop.hive.metastore.StatObjectConverter; @@ -87,7 +86,9 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowCompactResponseElement; @@ -135,10 +136,12 @@ import org.apache.hadoop.hive.ql.metadata.HiveMetaStoreChecker; import org.apache.hadoop.hive.ql.metadata.HiveUtils; import org.apache.hadoop.hive.ql.metadata.InvalidTableException; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraintInfo; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PartitionIterable; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo; import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatUtils; import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter; import org.apache.hadoop.hive.ql.parse.AlterTablePartMergeFilesDesc; @@ -239,8 +242,6 @@ import org.apache.hadoop.hive.serde2.typeinfo.TypeInfo; import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory; import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoUtils; -import org.apache.hadoop.hive.shims.HadoopShims; -import org.apache.hadoop.hive.shims.ShimLoader; import org.apache.hadoop.io.IOUtils; import org.apache.hadoop.mapreduce.MRJobConfig; import org.apache.hadoop.tools.HadoopArchives; @@ -386,7 +387,7 @@ public int execute(DriverContext driverContext) { if (alterTbl.getOp() == AlterTableTypes.DROPCONSTRAINT ) { return dropConstraint(db, alterTbl); } else if (alterTbl.getOp() == AlterTableTypes.ADDCONSTRAINT) { - return addConstraint(db, alterTbl); + return addConstraints(db, alterTbl); } else { return alterTable(db, alterTbl); } @@ -3403,9 +3404,13 @@ private int describeTable(Hive db, DescTableDesc descTbl) throws HiveException, } PrimaryKeyInfo pkInfo = null; ForeignKeyInfo fkInfo = null; + UniqueConstraintInfo ukInfo = null; + NotNullConstraintInfo nnInfo = 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()); } fixDecimalColumnTypeName(cols); // In case the query is served by HiveServer2, don't pad it with spaces, @@ -3413,7 +3418,8 @@ private int describeTable(Hive db, DescTableDesc descTbl) throws HiveException, boolean isOutputPadded = !SessionState.get().isHiveServerQuery(); formatter.describeTable(outStream, colPath, tableName, tbl, part, cols, descTbl.isFormatted(), descTbl.isExt(), - descTbl.isPretty(), isOutputPadded, colStats, pkInfo, fkInfo); + descTbl.isPretty(), isOutputPadded, colStats, + pkInfo, fkInfo, ukInfo, nnInfo); LOG.debug("DDLTask: written data for " + tbl.getTableName()); @@ -3592,6 +3598,8 @@ private int alterTable(Hive db, AlterTableDesc alterTbl) throws HiveException { } else { db.alterPartitions(tbl.getTableName(), allPartitions, alterTbl.getEnvironmentContext()); } + // Add constraints if necessary + addConstraints(db, alterTbl); } catch (InvalidOperationException e) { LOG.error("alter table: " + stringifyException(e)); throw new HiveException(e, ErrorMsg.GENERIC_ERROR); @@ -3988,27 +3996,38 @@ private int alterTableOrSinglePartition(AlterTableDesc alterTbl, Table tbl, Part return 0; } - private int dropConstraint(Hive db, AlterTableDesc alterTbl) - throws SemanticException, HiveException { - try { - db.dropConstraint(Utilities.getDatabaseName(alterTbl.getOldName()), - Utilities.getTableName(alterTbl.getOldName()), - alterTbl.getConstraintName()); - } catch (NoSuchObjectException e) { - throw new HiveException(e); - } - return 0; - } - - private int addConstraint(Hive db, AlterTableDesc alterTbl) - throws SemanticException, HiveException { + private int dropConstraint(Hive db, AlterTableDesc alterTbl) + throws SemanticException, HiveException { try { - // This is either an alter table add foreign key or add primary key command. - if (!alterTbl.getForeignKeyCols().isEmpty()) { - db.addForeignKey(alterTbl.getForeignKeyCols()); - } else if (!alterTbl.getPrimaryKeyCols().isEmpty()) { - db.addPrimaryKey(alterTbl.getPrimaryKeyCols()); + db.dropConstraint(Utilities.getDatabaseName(alterTbl.getOldName()), + Utilities.getTableName(alterTbl.getOldName()), + alterTbl.getConstraintName()); + } catch (NoSuchObjectException e) { + throw new HiveException(e); } + return 0; + } + + private int addConstraints(Hive db, AlterTableDesc alterTbl) + throws SemanticException, HiveException { + try { + // This is either an alter table add foreign key or add primary key command. + if (alterTbl.getForeignKeyCols() != null + && !alterTbl.getForeignKeyCols().isEmpty()) { + db.addForeignKey(alterTbl.getForeignKeyCols()); + } + if (alterTbl.getPrimaryKeyCols() != null + && !alterTbl.getPrimaryKeyCols().isEmpty()) { + db.addPrimaryKey(alterTbl.getPrimaryKeyCols()); + } + if (alterTbl.getUniqueConstraintCols() != null + && !alterTbl.getUniqueConstraintCols().isEmpty()) { + db.addUniqueConstraint(alterTbl.getUniqueConstraintCols()); + } + if (alterTbl.getNotNullConstraintCols() != null + && !alterTbl.getNotNullConstraintCols().isEmpty()) { + db.addNotNullConstraint(alterTbl.getNotNullConstraintCols()); + } } catch (NoSuchObjectException e) { throw new HiveException(e); } @@ -4322,6 +4341,8 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { Table tbl = crtTbl.toTable(conf); List primaryKeys = crtTbl.getPrimaryKeys(); List foreignKeys = crtTbl.getForeignKeys(); + List uniqueConstraints = crtTbl.getUniqueConstraints(); + List notNullConstraints = crtTbl.getNotNullConstraints(); LOG.info("creating table " + tbl.getDbName() + "." + tbl.getTableName() + " on " + tbl.getDataLocation()); @@ -4363,8 +4384,11 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { } } else { if ((foreignKeys != null && foreignKeys.size() > 0 ) || - (primaryKeys != null && primaryKeys.size() > 0)) { - db.createTable(tbl, crtTbl.getIfNotExists(), primaryKeys, foreignKeys); + (primaryKeys != null && primaryKeys.size() > 0) || + (uniqueConstraints != null && uniqueConstraints.size() > 0) || + (notNullConstraints != null && notNullConstraints.size() > 0)) { + db.createTable(tbl, crtTbl.getIfNotExists(), primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); } else { db.createTable(tbl, crtTbl.getIfNotExists()); } diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 5b49dfd..75c3922 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -62,7 +62,6 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.PathFilter; -import org.apache.hadoop.hive.common.BlobStorageUtils; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; import org.apache.hadoop.hive.common.ObjectPair; @@ -107,6 +106,7 @@ import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; +import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -115,12 +115,15 @@ import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; 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.SerDeInfo; import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; +import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.exec.FunctionRegistry; @@ -833,7 +836,11 @@ public void createTable(Table tbl) throws HiveException { * @throws HiveException */ public void createTable(Table tbl, boolean ifNotExists, - List primaryKeys, List foreignKeys) throws HiveException { + List primaryKeys, + List foreignKeys, + List uniqueConstraints, + List notNullConstraints) + throws HiveException { try { if (tbl.getDbName() == null || "".equals(tbl.getDbName().trim())) { tbl.setDbName(SessionState.get().getCurrentDatabase()); @@ -858,10 +865,12 @@ public void createTable(Table tbl, boolean ifNotExists, tTbl.setPrivileges(principalPrivs); } } - if (primaryKeys == null && foreignKeys == null) { + if (primaryKeys == null && foreignKeys == null + && uniqueConstraints == null && notNullConstraints == null) { getMSC().createTable(tTbl); } else { - getMSC().createTableWithConstraints(tTbl, primaryKeys, foreignKeys); + getMSC().createTableWithConstraints(tTbl, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); } } catch (AlreadyExistsException e) { @@ -874,7 +883,7 @@ public void createTable(Table tbl, boolean ifNotExists, } public void createTable(Table tbl, boolean ifNotExists) throws HiveException { - createTable(tbl, ifNotExists, null, null); + createTable(tbl, ifNotExists, null, null, null, null); } public static List getFieldsFromDeserializerForMsStorage( @@ -4115,6 +4124,42 @@ public ForeignKeyInfo getForeignKeys(String dbName, String tblName) throws HiveE } } + /** + * Get all unique constraints associated with the table. + * + * @param dbName Database Name + * @param tblName Table Name + * @return Unique constraints associated with the table. + * @throws HiveException + */ + public UniqueConstraintInfo getUniqueConstraints(String dbName, String tblName) throws HiveException { + try { + List uniqueConstraints = getMSC().getUniqueConstraints( + new UniqueConstraintsRequest(dbName, tblName)); + return new UniqueConstraintInfo(uniqueConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + + /** + * Get all not null constraints associated with the table. + * + * @param dbName Database Name + * @param tblName Table Name + * @return Not null constraints associated with the table. + * @throws HiveException + */ + public NotNullConstraintInfo getNotNullConstraints(String dbName, String tblName) throws HiveException { + try { + List notNullConstraints = getMSC().getNotNullConstraints( + new NotNullConstraintsRequest(dbName, tblName)); + return new NotNullConstraintInfo(notNullConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + public void addPrimaryKey(List primaryKeyCols) throws HiveException, NoSuchObjectException { try { @@ -4132,4 +4177,22 @@ public void addForeignKey(List foreignKeyCols) throw new HiveException(e); } } + + public void addUniqueConstraint(List uniqueConstraintCols) + throws HiveException, NoSuchObjectException { + try { + getMSC().addUniqueConstraint(uniqueConstraintCols); + } catch (Exception e) { + throw new HiveException(e); + } + } + + public void addNotNullConstraint(List notNullConstraintCols) + throws HiveException, NoSuchObjectException { + try { + getMSC().addNotNullConstraint(notNullConstraintCols); + } catch (Exception e) { + throw new HiveException(e); + } + } }; diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/NotNullConstraintInfo.java ql/src/java/org/apache/hadoop/hive/ql/metadata/NotNullConstraintInfo.java new file mode 100644 index 0000000..4999525 --- /dev/null +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/NotNullConstraintInfo.java @@ -0,0 +1,86 @@ +/** + * 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.List; +import java.util.Map; +import java.util.TreeMap; + +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; + +/** + * NotNullConstraintInfo is a metadata structure containing the not null constraints + * associated with a table. + */ +@SuppressWarnings("serial") +public class NotNullConstraintInfo implements Serializable { + + // Mapping from constraint name to list of not null columns + Map notNullConstraints; + String databaseName; + String tableName; + + public NotNullConstraintInfo() {} + + public NotNullConstraintInfo(List nns, String tableName, String databaseName) { + this.databaseName = databaseName; + this.tableName = tableName; + this.notNullConstraints = new TreeMap(); + if (nns ==null) { + return; + } + for (SQLNotNullConstraint pk : nns) { + if (pk.getTable_db().equalsIgnoreCase(databaseName) && + pk.getTable_name().equalsIgnoreCase(tableName)) { + notNullConstraints.put(pk.getNn_name(), pk.getColumn_name()); + } + } + } + + public String getTableName() { + return tableName; + } + + public String getDatabaseName() { + return databaseName; + } + + public Map getNotNullConstraints() { + return notNullConstraints; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("Not Null Constraints for " + databaseName + "." + tableName + ":"); + sb.append("["); + if (notNullConstraints != null && notNullConstraints.size() > 0) { + for (Map.Entry me : notNullConstraints.entrySet()) { + sb.append(" {Constraint Name: " + me.getKey()); + sb.append(", Column Name: " + me.getValue()); + sb.append("},"); + } + sb.setLength(sb.length()-1); + } + sb.append("]"); + return sb.toString(); + } + +} diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/UniqueConstraintInfo.java ql/src/java/org/apache/hadoop/hive/ql/metadata/UniqueConstraintInfo.java new file mode 100644 index 0000000..3bf26cd --- /dev/null +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/UniqueConstraintInfo.java @@ -0,0 +1,111 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.ql.metadata; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; + +/** + * UniqueConstraintInfo is a metadata structure containing the unique constraints + * associated with a table. + */ +@SuppressWarnings("serial") +public class UniqueConstraintInfo implements Serializable { + + public class UniqueConstraintCol { + public String colName; + public Integer position; + + public UniqueConstraintCol(String colName, Integer position) { + this.colName = colName; + this.position = position; + } + } + + // Mapping from constraint name to list of unique constraints + Map> uniqueConstraints; + String tableName; + String databaseName; + + public UniqueConstraintInfo() {} + + public UniqueConstraintInfo(List uks, String tableName, String databaseName) { + this.tableName = tableName; + this.databaseName = databaseName; + uniqueConstraints = new TreeMap>(); + if (uks == null) { + return; + } + for (SQLUniqueConstraint uk : uks) { + if (uk.getTable_db().equalsIgnoreCase(databaseName) && + uk.getTable_name().equalsIgnoreCase(tableName)) { + UniqueConstraintCol currCol = new UniqueConstraintCol( + uk.getColumn_name(), uk.getKey_seq()); + String constraintName = uk.getUk_name(); + if (uniqueConstraints.containsKey(constraintName)) { + uniqueConstraints.get(constraintName).add(currCol); + } else { + List currList = new ArrayList(); + currList.add(currCol); + uniqueConstraints.put(constraintName, currList); + } + } + } + } + + public String getTableName() { + return tableName; + } + + public String getDatabaseName() { + return databaseName; + } + + public Map> getUniqueConstraints() { + return uniqueConstraints; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("Unique Constraints for " + databaseName + "." + tableName + ":"); + sb.append("["); + if (uniqueConstraints != null && uniqueConstraints.size() > 0) { + for (Map.Entry> me : uniqueConstraints.entrySet()) { + sb.append(" {Constraint Name: " + me.getKey() + ","); + List currCol = me.getValue(); + if (currCol != null && currCol.size() > 0) { + for (UniqueConstraintCol ukc : currCol) { + sb.append (" (Column Name: " + ukc.colName + ", Key Sequence: " + ukc.position+ "),"); + } + sb.setLength(sb.length()-1); + } + sb.append("},"); + } + sb.setLength(sb.length()-1); + } + sb.append("]"); + return sb.toString(); + } +} diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java index 3315806..21c02aa 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java @@ -41,9 +41,11 @@ import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraintInfo; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo; import org.codehaus.jackson.map.ObjectMapper; /** @@ -104,7 +106,9 @@ public void showTables(DataOutputStream out, Set tables) public void describeTable(DataOutputStream out, String colPath, String tableName, Table tbl, Partition part, List cols, boolean isFormatted, boolean isExt, boolean isPretty, - boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo) throws HiveException { + boolean isOutputPadded, List colStats, + PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, + UniqueConstraintInfo ukInfo, NotNullConstraintInfo nnInfo) throws HiveException { MapBuilder builder = MapBuilder.create(); builder.put("columns", makeColsUnformatted(cols)); @@ -121,6 +125,12 @@ public void describeTable(DataOutputStream out, String colPath, if (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) { builder.put("foreignKeyInfo", fkInfo); } + if (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) { + builder.put("uniqueConstraintInfo", ukInfo); + } + if (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) { + builder.put("notNullConstraintInfo", nnInfo); + } } asJson(out, builder.build()); diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java index f73c610..1fc0f2b 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java @@ -42,7 +42,10 @@ import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo.UniqueConstraintCol; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo.ForeignKeyCol; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraintInfo; import org.apache.hadoop.hive.ql.plan.DescTableDesc; import org.apache.hadoop.hive.ql.plan.PlanUtils; import org.apache.hadoop.hive.ql.plan.ShowIndexesDesc; @@ -275,7 +278,8 @@ public static String getIndexInformation(Index index, boolean isOutputPadded) { return indexInfo.toString(); } - public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo) { + public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, + UniqueConstraintInfo ukInfo, NotNullConstraintInfo nnInfo) { StringBuilder constraintsInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); constraintsInfo.append(LINE_DELIM).append("# Constraints").append(LINE_DELIM); @@ -287,6 +291,14 @@ public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKey constraintsInfo.append(LINE_DELIM).append("# Foreign Keys").append(LINE_DELIM); getForeignKeysInformation(constraintsInfo, fkInfo); } + if (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) { + constraintsInfo.append(LINE_DELIM).append("# Unique Constraints").append(LINE_DELIM); + getUniqueConstraintsInformation(constraintsInfo, ukInfo); + } + if (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) { + constraintsInfo.append(LINE_DELIM).append("# Not Null Constraints").append(LINE_DELIM); + getNotNullConstraintsInformation(constraintsInfo, nnInfo); + } return constraintsInfo.toString(); } @@ -338,6 +350,55 @@ private static void getForeignKeysInformation(StringBuilder constraintsInfo, } } + private static void getUniqueConstraintColInformation(StringBuilder constraintsInfo, + UniqueConstraintCol ukCol) { + String[] fkcFields = new String[2]; + fkcFields[0] = "Column Name:" + ukCol.colName; + fkcFields[1] = "Key Sequence:" + ukCol.position; + formatOutput(fkcFields, constraintsInfo); + } + + private static void getUniqueConstraintRelInformation( + StringBuilder constraintsInfo, + String constraintName, + List ukRel) { + formatOutput("Constraint Name:", constraintName, constraintsInfo); + if (ukRel != null && ukRel.size() > 0) { + for (UniqueConstraintCol ukc : ukRel) { + getUniqueConstraintColInformation(constraintsInfo, ukc); + } + } + constraintsInfo.append(LINE_DELIM); + } + + private static void getUniqueConstraintsInformation(StringBuilder constraintsInfo, + UniqueConstraintInfo ukInfo) { + formatOutput("Table:", + ukInfo.getDatabaseName() + "." + ukInfo.getTableName(), + constraintsInfo); + Map> uniqueConstraints = ukInfo.getUniqueConstraints(); + if (uniqueConstraints != null && uniqueConstraints.size() > 0) { + for (Map.Entry> me : uniqueConstraints.entrySet()) { + getUniqueConstraintRelInformation(constraintsInfo, me.getKey(), me.getValue()); + } + } + } + + private static void getNotNullConstraintsInformation(StringBuilder constraintsInfo, + NotNullConstraintInfo nnInfo) { + formatOutput("Table:", + nnInfo.getDatabaseName() + "." + nnInfo.getTableName(), + constraintsInfo); + Map notNullConstraints = nnInfo.getNotNullConstraints(); + if (notNullConstraints != null && notNullConstraints.size() > 0) { + for (Map.Entry me : notNullConstraints.entrySet()) { + formatOutput("Constraint Name:", me.getKey(), constraintsInfo); + formatOutput("Column Name:", me.getValue(), constraintsInfo); + constraintsInfo.append(LINE_DELIM); + } + } + } + public static String getPartitionInformation(Partition part) { StringBuilder tableInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java index 71b7ebf..6037e51 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java @@ -30,9 +30,11 @@ import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraintInfo; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo; /** * Interface to format table and index information. We can format it @@ -75,12 +77,16 @@ public void showTables(DataOutputStream out, Set tables) * @param colStats * @param fkInfo foreign keys information * @param pkInfo primary key information + * @param ukInfo unique constraint information + * @param nnInfo not null constraint information * @throws HiveException */ public void describeTable(DataOutputStream out, String colPath, String tableName, Table tbl, Partition part, List cols, boolean isFormatted, boolean isExt, boolean isPretty, - boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo) + boolean isOutputPadded, List colStats, + PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, + UniqueConstraintInfo ukInfo, NotNullConstraintInfo nnInfo) throws HiveException; /** diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java index 39a327d..49569c0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java @@ -44,9 +44,11 @@ import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraintInfo; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.metadata.UniqueConstraintInfo; import org.apache.hadoop.hive.ql.session.SessionState; /** @@ -122,7 +124,9 @@ public void showTables(DataOutputStream out, Set tables) public void describeTable(DataOutputStream outStream, String colPath, String tableName, Table tbl, Partition part, List cols, boolean isFormatted, boolean isExt, boolean isPretty, - boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo) throws HiveException { + boolean isOutputPadded, List colStats, + PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, + UniqueConstraintInfo ukInfo, NotNullConstraintInfo nnInfo) throws HiveException { try { String output; if (colPath.equals(tableName)) { @@ -155,8 +159,10 @@ public void describeTable(DataOutputStream outStream, String colPath, outStream.write(output.getBytes("UTF-8")); if ((pkInfo != null && !pkInfo.getColNames().isEmpty()) || - (fkInfo != null && !fkInfo.getForeignKeys().isEmpty())) { - output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo); + (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) || + (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) || + (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty())) { + output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo, ukInfo, nnInfo); outStream.write(output.getBytes("UTF-8")); } } @@ -182,17 +188,27 @@ public void describeTable(DataOutputStream outStream, String colPath, outStream.write(terminator); } if ((pkInfo != null && !pkInfo.getColNames().isEmpty()) || - (fkInfo != null && !fkInfo.getForeignKeys().isEmpty())) { - outStream.write(("Constraints").getBytes("UTF-8")); - outStream.write(separator); - if (pkInfo != null && !pkInfo.getColNames().isEmpty()) { - outStream.write(pkInfo.toString().getBytes("UTF-8")); - outStream.write(terminator); - } - if (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) { - outStream.write(fkInfo.toString().getBytes("UTF-8")); - outStream.write(terminator); - } + (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) || + (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) || + (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty())) { + outStream.write(("Constraints").getBytes("UTF-8")); + outStream.write(separator); + if (pkInfo != null && !pkInfo.getColNames().isEmpty()) { + outStream.write(pkInfo.toString().getBytes("UTF-8")); + outStream.write(terminator); + } + if (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) { + outStream.write(fkInfo.toString().getBytes("UTF-8")); + outStream.write(terminator); + } + if (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) { + outStream.write(ukInfo.toString().getBytes("UTF-8")); + outStream.write(terminator); + } + if (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) { + outStream.write(nnInfo.toString().getBytes("UTF-8")); + outStream.write(terminator); + } } } } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java index 41245c8..c6d2c2d 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java @@ -46,7 +46,9 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.ql.CompilationOpContext; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -88,6 +90,7 @@ import org.slf4j.LoggerFactory; import com.google.common.annotations.VisibleForTesting; +import com.google.common.collect.ImmutableList; /** * BaseSemanticAnalyzer. @@ -627,127 +630,173 @@ 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, new ArrayList(), new ArrayList(), + new ArrayList(), new ArrayList()); } - static class PKInfo { - public String colName; - public String constraintName; - public boolean rely; + private static class SimpleConstraintInfo { + final String colName; + final String constraintName; + final boolean enable; + final boolean validate; + final boolean rely; - public PKInfo(String colName, String constraintName, boolean rely) { - this.colName = colName; - this.constraintName = constraintName; - this.rely = rely; - } + SimpleConstraintInfo(String colName, String constraintName, + boolean enable, boolean validate, boolean rely) { + this.colName = colName; + this.constraintName = constraintName; + this.enable = enable; + this.validate = validate; + this.rely = rely; + } } /** - * Get the primary keys from the AST and populate the pkInfos with the required - * information. - * @param child The node with primary key token - * @param pkInfos Primary Key information structure - * @throws SemanticException + * Process the primary keys from the ast node and populate the SQLPrimaryKey list. */ - private static void processPrimaryKeyInfos( - ASTNode child, List pkInfos) throws SemanticException { - if (child.getChildCount() < 4) { - throw new SemanticException(ErrorMsg.INVALID_PK_SYNTAX.getMsg()); + protected static void processPrimaryKeys(String databaseName, String tableName, + ASTNode child, List primaryKeys) throws SemanticException { + List primaryKeyInfos = new ArrayList(); + generateConstraintInfos(child, primaryKeyInfos); + constraintInfosToPrimaryKeys(databaseName, tableName, primaryKeyInfos, primaryKeys); + } + + protected static void processPrimaryKeys(String databaseName, String tableName, + ASTNode child, List columnNames, List primaryKeys) + throws SemanticException { + List primaryKeyInfos = new ArrayList(); + generateConstraintInfos(child, columnNames, primaryKeyInfos); + constraintInfosToPrimaryKeys(databaseName, tableName, primaryKeyInfos, primaryKeys); + } + + private static void constraintInfosToPrimaryKeys(String databaseName, String tableName, + List primaryKeyInfos, List primaryKeys) { + int i = 1; + for (SimpleConstraintInfo primaryKeyInfo : primaryKeyInfos) { + primaryKeys.add(new SQLPrimaryKey(databaseName, tableName, primaryKeyInfo.colName, + i++, primaryKeyInfo.constraintName, primaryKeyInfo.enable, + primaryKeyInfo.validate, primaryKeyInfo.rely)); } - // The ANTLR grammar looks like : - // 1. KW_CONSTRAINT idfr=identifier KW_PRIMARY KW_KEY pkCols=columnParenthesesList - // enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - // -> ^(TOK_PRIMARY_KEY $pkCols $idfr $relySpec $enableSpec $validateSpec) - // when the user specifies the constraint name (i.e. child.getChildCount() == 5) - // 2. KW_PRIMARY KW_KEY columnParenthesesList - // enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - // -> ^(TOK_PRIMARY_KEY columnParenthesesList $relySpec $enableSpec $validateSpec) - // when the user does not specify the constraint name (i.e. child.getChildCount() == 4) - boolean userSpecifiedConstraintName = child.getChildCount() == 5; - int relyIndex = child.getChildCount() == 5 ? 2 : 1; - for (int j = 0; j < child.getChild(0).getChildCount(); j++) { - Tree grandChild = child.getChild(0).getChild(j); - boolean rely = child.getChild(relyIndex).getType() == HiveParser.TOK_VALIDATE; - boolean enable = child.getChild(relyIndex+1).getType() == HiveParser.TOK_ENABLE; - boolean validate = child.getChild(relyIndex+2).getType() == HiveParser.TOK_VALIDATE; - if (enable) { - throw new SemanticException( - ErrorMsg.INVALID_PK_SYNTAX.getMsg(" ENABLE feature not supported yet")); - } - if (validate) { - throw new SemanticException( - ErrorMsg.INVALID_PK_SYNTAX.getMsg(" VALIDATE feature not supported yet")); - } - checkColumnName(grandChild.getText()); - pkInfos.add( - new PKInfo( - unescapeIdentifier(grandChild.getText().toLowerCase()), - (userSpecifiedConstraintName ? - unescapeIdentifier(child.getChild(1).getText().toLowerCase()) : null), - rely)); + } + + /** + * Process the unique constraints from the ast node and populate the SQLUniqueConstraint list. + */ + protected static void processUniqueConstraints(String databaseName, String tableName, + ASTNode child, List uniqueConstraints) throws SemanticException { + List uniqueInfos = new ArrayList(); + generateConstraintInfos(child, uniqueInfos); + constraintInfosToUniqueConstraints(databaseName, tableName, uniqueInfos, uniqueConstraints); + } + + protected static void processUniqueConstraints(String databaseName, String tableName, + ASTNode child, List columnNames, List uniqueConstraints) + throws SemanticException { + List uniqueInfos = new ArrayList(); + generateConstraintInfos(child, columnNames, uniqueInfos); + constraintInfosToUniqueConstraints(databaseName, tableName, uniqueInfos, uniqueConstraints); + } + + private static void constraintInfosToUniqueConstraints(String databaseName, String tableName, + List uniqueInfos, List uniqueConstraints) { + int i = 1; + for (SimpleConstraintInfo uniqueInfo : uniqueInfos) { + uniqueConstraints.add(new SQLUniqueConstraint(databaseName, tableName, uniqueInfo.colName, + i++, uniqueInfo.constraintName, uniqueInfo.enable, uniqueInfo.validate, uniqueInfo.rely)); + } + } + + protected static void processNotNullConstraints(String databaseName, String tableName, + ASTNode child, List columnNames, List notNullConstraints) + throws SemanticException { + List notNullInfos = new ArrayList(); + generateConstraintInfos(child, columnNames, notNullInfos); + constraintInfosToNotNullConstraints(databaseName, tableName, notNullInfos, notNullConstraints); + } + + private static void constraintInfosToNotNullConstraints(String databaseName, String tableName, + List notNullInfos, List notNullConstraints) { + for (SimpleConstraintInfo notNullInfo : notNullInfos) { + notNullConstraints.add(new SQLNotNullConstraint(databaseName, tableName, notNullInfo.colName, + notNullInfo.constraintName, notNullInfo.enable, notNullInfo.validate, notNullInfo.rely)); } } /** - * Process the primary keys from the pkInfos structure and populate the SQLPrimaryKey list - * @param parent Parent of the primary key token node - * @param pkInfos primary key information - * @param primaryKeys SQLPrimaryKey list - * @param nametoFS Mapping from column name to field schema for the current table + * Get the constraint from the AST and populate the cstrInfos with the required + * information. + * @param child The node with the constraint token + * @param cstrInfos Constraint information * @throws SemanticException */ - private static void processPrimaryKeys(ASTNode parent, List pkInfos, - List primaryKeys, Map nametoFS) throws SemanticException { - int cnt = 1; - String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); - - for (int i = 0; i < pkInfos.size(); i++) { - String pk = pkInfos.get(i).colName; - if (nametoFS.containsKey(pk)) { - SQLPrimaryKey currPrimaryKey = new SQLPrimaryKey( - qualifiedTabName[0], qualifiedTabName[1], pk, cnt++, pkInfos.get(i).constraintName, - false, false, pkInfos.get(i).rely); - primaryKeys.add(currPrimaryKey); - } else { - throw new SemanticException(ErrorMsg.INVALID_COLUMN.getMsg(pk)); - } + private static void generateConstraintInfos(ASTNode child, + List cstrInfos) throws SemanticException { + ImmutableList.Builder columnNames = ImmutableList.builder(); + for (int j = 0; j < child.getChild(0).getChildCount(); j++) { + Tree columnName = child.getChild(0).getChild(j); + checkColumnName(columnName.getText()); + columnNames.add(unescapeIdentifier(columnName.getText().toLowerCase())); } + generateConstraintInfos(child, columnNames.build(), cstrInfos); } /** - * Process the primary keys from the ast nodes and populate the SQLPrimaryKey list. - * As of now, this is used by 'alter table add constraint' command. We expect constraint - * name to be user specified. - * @param parent Parent of the primary key token node - * @param child Child of the primary key token node containing the primary key columns details - * @param primaryKeys SQLPrimaryKey list to be populated by this function + * Get the constraint from the AST and populate the cstrInfos with the required + * information. + * @param child The node with the constraint token + * @param columnNames The name of the columns for the primary key + * @param cstrInfos Constraint information * @throws SemanticException */ - protected static void processPrimaryKeys(ASTNode parent, ASTNode child, List primaryKeys) - throws SemanticException { - int relyIndex = 2; - int cnt = 1; - String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); - for (int j = 0; j < child.getChild(0).getChildCount(); j++) { - Tree grandChild = child.getChild(0).getChild(j); - boolean rely = child.getChild(relyIndex).getType() == HiveParser.TOK_VALIDATE; - boolean enable = child.getChild(relyIndex+1).getType() == HiveParser.TOK_ENABLE; - boolean validate = child.getChild(relyIndex+2).getType() == HiveParser.TOK_VALIDATE; - if (enable) { - throw new SemanticException( - ErrorMsg.INVALID_PK_SYNTAX.getMsg(" ENABLE feature not supported yet")); - } - if (validate) { - throw new SemanticException( - ErrorMsg.INVALID_PK_SYNTAX.getMsg(" VALIDATE feature not supported yet")); - } - primaryKeys.add( - new SQLPrimaryKey( - qualifiedTabName[0], qualifiedTabName[1], - unescapeIdentifier(grandChild.getText().toLowerCase()), - cnt++, - unescapeIdentifier(child.getChild(1).getText().toLowerCase()), false, false, - rely)); + private static void generateConstraintInfos(ASTNode child, List columnNames, + List cstrInfos) throws SemanticException { + // The ANTLR grammar looks like : + // 1. KW_CONSTRAINT idfr=identifier KW_PRIMARY KW_KEY pkCols=columnParenthesesList + // constraintOptsCreate? + // -> ^(TOK_PRIMARY_KEY $pkCols $idfr constraintOptsCreate?) + // when the user specifies the constraint name. + // 2. KW_PRIMARY KW_KEY columnParenthesesList + // constraintOptsCreate? + // -> ^(TOK_PRIMARY_KEY columnParenthesesList constraintOptsCreate?) + // when the user does not specify the constraint name. + // Default values + String constraintName = null; + boolean enable = true; + boolean validate = true; + boolean rely = false; + for (int i = 0; i < child.getChildCount(); i++) { + ASTNode grandChild = (ASTNode) child.getChild(i); + int type = grandChild.getToken().getType(); + if (type == HiveParser.TOK_CONSTRAINT_NAME) { + constraintName = unescapeIdentifier(grandChild.getChild(0).getText().toLowerCase()); + } else if (type == HiveParser.TOK_ENABLE) { + enable = true; + validate = true; + } else if (type == HiveParser.TOK_DISABLE) { + enable = false; + validate = false; + } else if (type == HiveParser.TOK_VALIDATE) { + validate = true; + } else if (type == HiveParser.TOK_NOVALIDATE) { + validate = false; + } else if (type == HiveParser.TOK_RELY) { + rely = true; + } + } + if (enable) { + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("ENABLE feature not supported yet. " + + "Please use DISABLE instead.")); + } + if (validate) { + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("VALIDATE feature not supported yet. " + + "Please use NOVALIDATE instead.")); + } + + for (String columnName : columnNames) { + cstrInfos.add(new SimpleConstraintInfo(columnName, constraintName, + enable, validate, rely)); } } @@ -758,9 +807,8 @@ protected static void processPrimaryKeys(ASTNode parent, ASTNode child, List foreignKeys) throws SemanticException { - String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + protected static void processForeignKeys(String databaseName, String tableName, + ASTNode child, List foreignKeys) throws SemanticException { // The ANTLR grammar looks like : // 1. KW_CONSTRAINT idfr=identifier KW_FOREIGN KW_KEY fkCols=columnParenthesesList // KW_REFERENCES tabName=tableName parCols=columnParenthesesList @@ -772,50 +820,67 @@ protected static void processForeignKeys( // enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification // -> ^(TOK_FOREIGN_KEY $fkCols $tabName $parCols $relySpec $enableSpec $validateSpec) // when the user does not specify the constraint name (i.e. child.getChildCount() == 6) - boolean userSpecifiedConstraintName = child.getChildCount() == 7; - int fkIndex = userSpecifiedConstraintName ? 1 : 0; - int ptIndex = fkIndex + 1; - int pkIndex = ptIndex + 1; - int relyIndex = pkIndex + 1; - - if (child.getChildCount() <= fkIndex ||child.getChildCount() <= pkIndex || - child.getChildCount() <= ptIndex) { - throw new SemanticException(ErrorMsg.INVALID_FK_SYNTAX.getMsg()); + String constraintName = null; + boolean enable = true; + boolean validate = true; + boolean rely = false; + int fkIndex = -1; + for (int i = 0; i < child.getChildCount(); i++) { + ASTNode grandChild = (ASTNode) child.getChild(i); + int type = grandChild.getToken().getType(); + if (type == HiveParser.TOK_CONSTRAINT_NAME) { + constraintName = unescapeIdentifier(grandChild.getChild(0).getText().toLowerCase()); + } else if (type == HiveParser.TOK_ENABLE) { + enable = true; + validate = true; + } else if (type == HiveParser.TOK_DISABLE) { + enable = false; + validate = false; + } else if (type == HiveParser.TOK_VALIDATE) { + validate = true; + } else if (type == HiveParser.TOK_NOVALIDATE) { + validate = false; + } else if (type == HiveParser.TOK_RELY) { + rely = true; + } else if (type == HiveParser.TOK_TABCOLNAME && fkIndex == -1) { + fkIndex = i; + } + } + if (enable) { + throw new SemanticException( + ErrorMsg.INVALID_FK_SYNTAX.getMsg("ENABLE feature not supported yet. " + + "Please use DISABLE instead.")); + } + if (validate) { + throw new SemanticException( + ErrorMsg.INVALID_FK_SYNTAX.getMsg("VALIDATE feature not supported yet. " + + "Please use NOVALIDATE instead.")); } - String[] parentDBTbl = getQualifiedTableName((ASTNode) child.getChild(ptIndex)); - + int ptIndex = fkIndex + 1; + int pkIndex = ptIndex + 1; if (child.getChild(fkIndex).getChildCount() != child.getChild(pkIndex).getChildCount()) { throw new SemanticException(ErrorMsg.INVALID_FK_SYNTAX.getMsg( " The number of foreign key columns should be same as number of parent key columns ")); } + + String[] parentDBTbl = getQualifiedTableName((ASTNode) child.getChild(ptIndex)); for (int j = 0; j < child.getChild(fkIndex).getChildCount(); j++) { SQLForeignKey sqlForeignKey = new SQLForeignKey(); + sqlForeignKey.setFktable_db(databaseName); + sqlForeignKey.setFktable_name(tableName); Tree fkgrandChild = child.getChild(fkIndex).getChild(j); checkColumnName(fkgrandChild.getText()); - boolean rely = child.getChild(relyIndex).getType() == HiveParser.TOK_VALIDATE; - boolean enable = child.getChild(relyIndex+1).getType() == HiveParser.TOK_ENABLE; - boolean validate = child.getChild(relyIndex+2).getType() == HiveParser.TOK_VALIDATE; - if (enable) { - throw new SemanticException( - ErrorMsg.INVALID_FK_SYNTAX.getMsg(" ENABLE feature not supported yet")); - } - if (validate) { - throw new SemanticException( - ErrorMsg.INVALID_FK_SYNTAX.getMsg(" VALIDATE feature not supported yet")); - } - sqlForeignKey.setRely_cstr(rely); + sqlForeignKey.setFkcolumn_name(unescapeIdentifier(fkgrandChild.getText().toLowerCase())); sqlForeignKey.setPktable_db(parentDBTbl[0]); sqlForeignKey.setPktable_name(parentDBTbl[1]); - sqlForeignKey.setFktable_db(qualifiedTabName[0]); - sqlForeignKey.setFktable_name(qualifiedTabName[1]); - sqlForeignKey.setFkcolumn_name(unescapeIdentifier(fkgrandChild.getText().toLowerCase())); Tree pkgrandChild = child.getChild(pkIndex).getChild(j); sqlForeignKey.setPkcolumn_name(unescapeIdentifier(pkgrandChild.getText().toLowerCase())); sqlForeignKey.setKey_seq(j+1); - if (userSpecifiedConstraintName) { - sqlForeignKey.setFk_name(unescapeIdentifier(child.getChild(0).getText().toLowerCase())); - } + sqlForeignKey.setFk_name(constraintName); + sqlForeignKey.setEnable_cstr(enable); + sqlForeignKey.setValidate_cstr(validate); + sqlForeignKey.setRely_cstr(rely); foreignKeys.add(sqlForeignKey); } } @@ -831,47 +896,95 @@ private static void checkColumnName(String columnName) throws SemanticException * Additionally, populate the primaryKeys and foreignKeys if any. */ public static List getColumns(ASTNode ast, boolean lowerCase, - List primaryKeys, List foreignKeys) throws SemanticException { + List primaryKeys, List foreignKeys, + List uniqueConstraints, List notNullConstraints) + throws SemanticException { List colList = new ArrayList(); - int numCh = ast.getChildCount(); - List pkInfos = new ArrayList(); - Map nametoFS = new HashMap(); Tree parent = ast.getParent(); - for (int i = 0; i < numCh; i++) { + for (int i = 0; i < ast.getChildCount(); i++) { FieldSchema col = new FieldSchema(); ASTNode child = (ASTNode) ast.getChild(i); - if (child.getToken().getType() == HiveParser.TOK_PRIMARY_KEY) { - processPrimaryKeyInfos(child, pkInfos); - } else if (child.getToken().getType() == HiveParser.TOK_FOREIGN_KEY) { - processForeignKeys((ASTNode)parent, child, foreignKeys); - } - else { - Tree grandChild = child.getChild(0); - if(grandChild != null) { - String name = grandChild.getText(); - if(lowerCase) { - name = name.toLowerCase(); + switch (child.getToken().getType()) { + case HiveParser.TOK_UNIQUE: { + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + processUniqueConstraints(qualifiedTabName[0], qualifiedTabName[1], child, uniqueConstraints); } - checkColumnName(name); - // child 0 is the name of the column - col.setName(unescapeIdentifier(name)); - // child 1 is the type of the column - ASTNode typeChild = (ASTNode) (child.getChild(1)); - col.setType(getTypeStringFromAST(typeChild)); - - // child 2 is the optional comment of the column - if (child.getChildCount() == 3) { - col.setComment(unescapeSQLString(child.getChild(2).getText())); + break; + case HiveParser.TOK_PRIMARY_KEY: { + if (!primaryKeys.isEmpty()) { + throw new SemanticException(ErrorMsg.INVALID_CONSTRAINT.getMsg( + "Cannot exist more than one primary key definition for the same table")); + } + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + processPrimaryKeys(qualifiedTabName[0], qualifiedTabName[1], child, primaryKeys); } - } - nametoFS.put(col.getName(), col); - colList.add(col); + break; + case HiveParser.TOK_FOREIGN_KEY: { + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + processForeignKeys(qualifiedTabName[0], qualifiedTabName[1], child, foreignKeys); + } + break; + default: + Tree grandChild = child.getChild(0); + if(grandChild != null) { + String name = grandChild.getText(); + if(lowerCase) { + name = name.toLowerCase(); + } + checkColumnName(name); + // child 0 is the name of the column + col.setName(unescapeIdentifier(name)); + // child 1 is the type of the column + ASTNode typeChild = (ASTNode) (child.getChild(1)); + col.setType(getTypeStringFromAST(typeChild)); + + // child 2 is the optional comment of the column + // child 3 is the optional constraint + ASTNode constraintChild = null; + if (child.getChildCount() == 4) { + col.setComment(unescapeSQLString(child.getChild(2).getText())); + constraintChild = (ASTNode) child.getChild(3); + } else if (child.getChildCount() == 3 + && ((ASTNode) child.getChild(2)).getToken().getType() == HiveParser.StringLiteral) { + col.setComment(unescapeSQLString(child.getChild(2).getText())); + } else if (child.getChildCount() == 3) { + constraintChild = (ASTNode) child.getChild(2); + } + if (constraintChild != null) { + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + // Process column constraint + switch (constraintChild.getToken().getType()) { + case HiveParser.TOK_NOT_NULL: + processNotNullConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + ImmutableList.of(col.getName()), notNullConstraints); + break; + case HiveParser.TOK_UNIQUE: + processUniqueConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + ImmutableList.of(col.getName()), uniqueConstraints); + break; + case HiveParser.TOK_PRIMARY_KEY: + if (!primaryKeys.isEmpty()) { + throw new SemanticException(ErrorMsg.INVALID_CONSTRAINT.getMsg( + "Cannot exist more than one primary key definition for the same table")); + } + processPrimaryKeys(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + ImmutableList.of(col.getName()), primaryKeys); + break; + case HiveParser.TOK_FOREIGN_KEY: + processForeignKeys(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + foreignKeys); + break; + default: + throw new SemanticException(ErrorMsg.NOT_RECOGNIZED_CONSTRAINT.getMsg( + constraintChild.getToken().getText())); + } + } + } + colList.add(col); + break; } } - if (!pkInfos.isEmpty()) { - processPrimaryKeys((ASTNode) parent, pkInfos, primaryKeys, nametoFS); - } return colList; } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index 0cf9205..615b108 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -18,6 +18,7 @@ package org.apache.hadoop.hive.ql.parse; +import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import org.antlr.runtime.tree.CommonTree; @@ -41,7 +42,9 @@ import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.ql.Driver; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -1781,16 +1784,31 @@ private void analyzeAlterTableDropConstraint(ASTNode ast, String tableName) private void analyzeAlterTableAddConstraint(ASTNode ast, String tableName) throws SemanticException { ASTNode parent = (ASTNode) ast.getParent(); + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); ASTNode child = (ASTNode) ast.getChild(0); - List primaryKeys = new ArrayList(); - List foreignKeys = new ArrayList(); - - if (child.getToken().getType() == HiveParser.TOK_PRIMARY_KEY) { - BaseSemanticAnalyzer.processPrimaryKeys(parent, child, primaryKeys); - } else if (child.getToken().getType() == HiveParser.TOK_FOREIGN_KEY) { - BaseSemanticAnalyzer.processForeignKeys(parent, child, foreignKeys); + List primaryKeys = new ArrayList<>(); + List foreignKeys = new ArrayList<>(); + List uniqueConstraints = new ArrayList<>(); + + switch (child.getToken().getType()) { + case HiveParser.TOK_UNIQUE: + BaseSemanticAnalyzer.processUniqueConstraints(qualifiedTabName[0], qualifiedTabName[1], + child, uniqueConstraints); + break; + case HiveParser.TOK_PRIMARY_KEY: + BaseSemanticAnalyzer.processPrimaryKeys(qualifiedTabName[0], qualifiedTabName[1], + child, primaryKeys); + break; + case HiveParser.TOK_FOREIGN_KEY: + BaseSemanticAnalyzer.processForeignKeys(qualifiedTabName[0], qualifiedTabName[1], + child, foreignKeys); + break; + default: + throw new SemanticException(ErrorMsg.NOT_RECOGNIZED_CONSTRAINT.getMsg( + child.getToken().getText())); } - AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, primaryKeys, foreignKeys); + AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, primaryKeys, foreignKeys, + uniqueConstraints); rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), alterTblDesc), conf)); @@ -2619,6 +2637,7 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, String oldColName = ast.getChild(0).getText(); String newColName = ast.getChild(1).getText(); String newType = getTypeStringFromAST((ASTNode) ast.getChild(2)); + ASTNode constraintChild = null; int childCount = ast.getChildCount(); for (int i = 3; i < childCount; i++) { ASTNode child = (ASTNode)ast.getChild(i); @@ -2638,8 +2657,39 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, case HiveParser.TOK_RESTRICT: break; default: - throw new SemanticException("Unsupported token: " + child.getToken() - + " for alter table"); + constraintChild = (ASTNode) child; + } + } + List primaryKeys = null; + List foreignKeys = null; + List uniqueConstraints = null; + List notNullConstraints = null; + if (constraintChild != null) { + // Process column constraint + switch (constraintChild.getToken().getType()) { + case HiveParser.TOK_NOT_NULL: + notNullConstraints = new ArrayList<>(); + processNotNullConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), notNullConstraints); + break; + case HiveParser.TOK_UNIQUE: + uniqueConstraints = new ArrayList<>(); + processUniqueConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), uniqueConstraints); + break; + case HiveParser.TOK_PRIMARY_KEY: + primaryKeys = new ArrayList<>(); + processPrimaryKeys(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), primaryKeys); + break; + case HiveParser.TOK_FOREIGN_KEY: + foreignKeys = new ArrayList<>(); + processForeignKeys(qualified[0], qualified[1], constraintChild, + foreignKeys); + break; + default: + throw new SemanticException(ErrorMsg.NOT_RECOGNIZED_CONSTRAINT.getMsg( + constraintChild.getToken().getText())); } } @@ -2655,9 +2705,18 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, } String tblName = getDotName(qualified); - AlterTableDesc alterTblDesc = new AlterTableDesc(tblName, partSpec, - unescapeIdentifier(oldColName), unescapeIdentifier(newColName), - newType, newComment, first, flagCol, isCascade); + AlterTableDesc alterTblDesc; + if (primaryKeys == null && foreignKeys == null + && uniqueConstraints == null && notNullConstraints == null) { + alterTblDesc = new AlterTableDesc(tblName, partSpec, + unescapeIdentifier(oldColName), unescapeIdentifier(newColName), + newType, newComment, first, flagCol, isCascade); + } else { + alterTblDesc = new AlterTableDesc(tblName, partSpec, + unescapeIdentifier(oldColName), unescapeIdentifier(newColName), + newType, newComment, first, flagCol, isCascade, + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + } addInputsOutputsAlterTable(tblName, partSpec, alterTblDesc); rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g index 0721b92..dffe541 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g +++ ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g @@ -332,6 +332,7 @@ KW_VALIDATE: 'VALIDATE'; KW_NOVALIDATE: 'NOVALIDATE'; KW_RELY: 'RELY'; KW_NORELY: 'NORELY'; +KW_UNIQUE: 'UNIQUE'; KW_KEY: 'KEY'; KW_ABORT: 'ABORT'; KW_EXTRACT: 'EXTRACT'; diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g index d98a663..96577a5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g +++ ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g @@ -107,12 +107,15 @@ TOK_METADATA; TOK_NULL; TOK_ISNULL; TOK_ISNOTNULL; +TOK_NOT_NULL; +TOK_UNIQUE; TOK_PRIMARY_KEY; TOK_FOREIGN_KEY; TOK_VALIDATE; TOK_NOVALIDATE; TOK_RELY; TOK_NORELY; +TOK_CONSTRAINT_NAME; TOK_TINYINT; TOK_SMALLINT; TOK_INT; @@ -547,6 +550,7 @@ import org.apache.hadoop.hive.conf.HiveConf; xlateMap.put("KW_UPDATE", "UPDATE"); xlateMap.put("KW_VALUES", "VALUES"); xlateMap.put("KW_PURGE", "PURGE"); + xlateMap.put("KW_UNIQUE", "UNIQUE"); xlateMap.put("KW_PRIMARY", "PRIMARY"); xlateMap.put("KW_FOREIGN", "FOREIGN"); xlateMap.put("KW_KEY", "KEY"); @@ -1002,7 +1006,7 @@ createTableStatement tableFileFormat? tableLocation? tablePropertiesPrefixed? - | (LPAREN columnNameTypeOrPKOrFKList RPAREN)? + | (LPAREN columnNameTypeOrConstraintList RPAREN)? tableComment? tablePartition? tableBuckets? @@ -1015,7 +1019,7 @@ createTableStatement ) -> ^(TOK_CREATETABLE $name $temp? $ext? ifNotExists? ^(TOK_LIKETABLE $likeName?) - columnNameTypeOrPKOrFKList? + columnNameTypeOrConstraintList? tableComment? tablePartition? tableBuckets? @@ -1230,9 +1234,9 @@ alterStatementSuffixAddCol alterStatementSuffixAddConstraint @init { pushMsg("add constraint statement", state); } @after { popMsg(state); } - : KW_ADD (fk=foreignKeyWithName | primaryKeyWithName) - -> {fk != null}? ^(TOK_ALTERTABLE_ADDCONSTRAINT foreignKeyWithName) - -> ^(TOK_ALTERTABLE_ADDCONSTRAINT primaryKeyWithName) + : KW_ADD (fk=alterForeignKeyWithName | alterSimpleConstraintWithName) + -> {fk != null}? ^(TOK_ALTERTABLE_ADDCONSTRAINT alterForeignKeyWithName) + -> ^(TOK_ALTERTABLE_ADDCONSTRAINT alterSimpleConstraintWithName) ; alterStatementSuffixDropConstraint @@ -1245,8 +1249,8 @@ alterStatementSuffixDropConstraint alterStatementSuffixRenameCol @init { pushMsg("rename column name", state); } @after { popMsg(state); } - : KW_CHANGE KW_COLUMN? oldName=identifier newName=identifier colType (KW_COMMENT comment=StringLiteral)? alterStatementChangeColPosition? restrictOrCascade? - ->^(TOK_ALTERTABLE_RENAMECOL $oldName $newName colType $comment? alterStatementChangeColPosition? restrictOrCascade?) + : KW_CHANGE KW_COLUMN? oldName=identifier newName=identifier colType alterColumnConstraint[$newName.tree]? (KW_COMMENT comment=StringLiteral)? alterStatementChangeColPosition? restrictOrCascade? + ->^(TOK_ALTERTABLE_RENAMECOL $oldName $newName colType $comment? alterColumnConstraint? alterStatementChangeColPosition? restrictOrCascade?) ; alterStatementSuffixUpdateStatsCol @@ -2104,10 +2108,10 @@ columnNameTypeList @after { popMsg(state); } : columnNameType (COMMA columnNameType)* -> ^(TOK_TABCOLLIST columnNameType+) ; -columnNameTypeOrPKOrFKList +columnNameTypeOrConstraintList @init { pushMsg("column name type list with PK and FK", state); } @after { popMsg(state); } - : columnNameTypeOrPKOrFK (COMMA columnNameTypeOrPKOrFK)* -> ^(TOK_TABCOLLIST columnNameTypeOrPKOrFK+) + : columnNameTypeOrConstraint (COMMA columnNameTypeOrConstraint)* -> ^(TOK_TABCOLLIST columnNameTypeOrConstraint+) ; columnNameColonTypeList @@ -2148,6 +2152,12 @@ columnParenthesesList : LPAREN! columnNameList RPAREN! ; +enableValidateSpecification +@init { pushMsg("enable specification", state); } +@after { popMsg(state); } + : enableSpecification validateSpecification? + ; + enableSpecification @init { pushMsg("enable specification", state); } @after { popMsg(state); } @@ -2169,32 +2179,36 @@ relySpecification | (KW_NORELY)? -> ^(TOK_NORELY) ; -primaryKeyWithoutName -@init { pushMsg("primary key without key name", state); } +createSimpleConstraint +@init { pushMsg("simple constraint", state); } @after { popMsg(state); } - : KW_PRIMARY KW_KEY columnParenthesesList enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - -> ^(TOK_PRIMARY_KEY columnParenthesesList $relySpec $enableSpec $validateSpec) + : (KW_CONSTRAINT idfr=identifier)? simpleTableConstraintType pkCols=columnParenthesesList constraintOptsCreate? + -> {$idfr.tree != null}? + ^(simpleTableConstraintType $pkCols ^(TOK_CONSTRAINT_NAME $idfr) constraintOptsCreate?) + -> ^(simpleTableConstraintType $pkCols constraintOptsCreate?) ; -primaryKeyWithName -@init { pushMsg("primary key with key name", state); } +alterSimpleConstraintWithName +@init { pushMsg("simple constraint with key name", state); } @after { popMsg(state); } - : KW_CONSTRAINT idfr=identifier KW_PRIMARY KW_KEY pkCols=columnParenthesesList enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - -> ^(TOK_PRIMARY_KEY $pkCols $idfr $relySpec $enableSpec $validateSpec) + : KW_CONSTRAINT idfr=identifier simpleTableConstraintType pkCols=columnParenthesesList constraintOptsAlter? + -> ^(simpleTableConstraintType $pkCols ^(TOK_CONSTRAINT_NAME $idfr) constraintOptsAlter?) ; -foreignKeyWithName -@init { pushMsg("foreign key with key name", state); } +createForeignKey +@init { pushMsg("foreign key", state); } @after { popMsg(state); } - : KW_CONSTRAINT idfr=identifier KW_FOREIGN KW_KEY fkCols=columnParenthesesList KW_REFERENCES tabName=tableName parCols=columnParenthesesList enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - -> ^(TOK_FOREIGN_KEY $idfr $fkCols $tabName $parCols $relySpec $enableSpec $validateSpec) + : (KW_CONSTRAINT idfr=identifier)? KW_FOREIGN KW_KEY fkCols=columnParenthesesList KW_REFERENCES tabName=tableName parCols=columnParenthesesList constraintOptsCreate? + -> {$idfr.tree != null}? + ^(TOK_FOREIGN_KEY ^(TOK_CONSTRAINT_NAME $idfr) $fkCols $tabName $parCols constraintOptsCreate?) + -> ^(TOK_FOREIGN_KEY $fkCols $tabName $parCols constraintOptsCreate?) ; -foreignKeyWithoutName -@init { pushMsg("foreign key without key name", state); } +alterForeignKeyWithName +@init { pushMsg("foreign key with key name", state); } @after { popMsg(state); } - : KW_FOREIGN KW_KEY fkCols=columnParenthesesList KW_REFERENCES tabName=tableName parCols=columnParenthesesList enableSpec=enableSpecification validateSpec=validateSpecification relySpec=relySpecification - -> ^(TOK_FOREIGN_KEY $fkCols $tabName $parCols $relySpec $enableSpec $validateSpec) + : KW_CONSTRAINT idfr=identifier KW_FOREIGN KW_KEY fkCols=columnParenthesesList KW_REFERENCES tabName=tableName parCols=columnParenthesesList constraintOptsAlter? + -> ^(TOK_FOREIGN_KEY ^(TOK_CONSTRAINT_NAME $idfr) $fkCols $tabName $parCols constraintOptsAlter?) ; skewedValueElement @@ -2308,14 +2322,94 @@ columnNameType -> ^(TOK_TABCOL $colName colType $comment) ; -columnNameTypeOrPKOrFK -@init { pushMsg("column name or primary key or foreign key", state); } +columnNameTypeOrConstraint +@init { pushMsg("column name or constraint", state); } +@after { popMsg(state); } + : ( tableConstraint ) + | ( columnNameTypeConstraint ) + ; + +tableConstraint +@init { pushMsg("table constraint", state); } +@after { popMsg(state); } + : ( createForeignKey ) + | ( createSimpleConstraint ) + ; + +columnNameTypeConstraint +@init { pushMsg("column specification", state); } +@after { popMsg(state); } + : colName=identifier colType columnConstraint[$colName.tree]? (KW_COMMENT comment=StringLiteral)? + -> {containExcludedCharForCreateTableColumnName($colName.text)}? {throwColumnNameException()} + -> ^(TOK_TABCOL $colName colType $comment? columnConstraint?) + ; + +columnConstraint[CommonTree fkColName] +@init { pushMsg("column constraint", state); } +@after { popMsg(state); } + : ( foreignKeyConstraint[$fkColName] ) + | ( simpleColConstraint ) + ; + +foreignKeyConstraint[CommonTree fkColName] +@init { pushMsg("column constraint", state); } @after { popMsg(state); } - : ( foreignKeyWithName ) - | ( primaryKeyWithName ) - | ( primaryKeyWithoutName ) - | ( foreignKeyWithoutName ) - | ( columnNameType ) + : (KW_CONSTRAINT idfr=identifier)? KW_REFERENCES tabName=tableName LPAREN colName=columnName RPAREN constraintOptsCreate? + -> {$idfr.tree != null}? + ^(TOK_FOREIGN_KEY ^(TOK_CONSTRAINT_NAME $idfr) ^(TOK_TABCOLNAME {$fkColName}) $tabName ^(TOK_TABCOLNAME $colName) constraintOptsCreate?) + -> ^(TOK_FOREIGN_KEY ^(TOK_TABCOLNAME {$fkColName}) $tabName ^(TOK_TABCOLNAME $colName) constraintOptsCreate?) + ; + +simpleColConstraint +@init { pushMsg("column constraint", state); } +@after { popMsg(state); } + : (KW_CONSTRAINT idfr=identifier)? simpleColumnConstraintType constraintOptsCreate? + -> {$idfr.tree != null}? + ^(simpleColumnConstraintType ^(TOK_CONSTRAINT_NAME $idfr) constraintOptsCreate?) + -> ^(simpleColumnConstraintType constraintOptsCreate?) + ; + +alterColumnConstraint[CommonTree fkColName] +@init { pushMsg("alter column constraint", state); } +@after { popMsg(state); } + : ( alterForeignKeyConstraint[$fkColName] ) + | ( alterSimpleColConstraint ) + ; + +alterForeignKeyConstraint[CommonTree fkColName] +@init { pushMsg("alter column constraint", state); } +@after { popMsg(state); } + : (KW_CONSTRAINT idfr=identifier)? KW_REFERENCES tabName=tableName LPAREN colName=columnName RPAREN constraintOptsAlter? + -> {$idfr.tree != null}? + ^(TOK_FOREIGN_KEY ^(TOK_CONSTRAINT_NAME $idfr) ^(TOK_TABCOLNAME {$fkColName}) $tabName ^(TOK_TABCOLNAME $colName) constraintOptsAlter?) + -> ^(TOK_FOREIGN_KEY ^(TOK_TABCOLNAME {$fkColName}) $tabName ^(TOK_TABCOLNAME $colName) constraintOptsAlter?) + ; + +alterSimpleColConstraint +@init { pushMsg("alter column constraint", state); } +@after { popMsg(state); } + : (KW_CONSTRAINT idfr=identifier)? simpleColumnConstraintType constraintOptsAlter? + -> {$idfr.tree != null}? + ^(simpleColumnConstraintType ^(TOK_CONSTRAINT_NAME $idfr) constraintOptsAlter?) + -> ^(simpleColumnConstraintType constraintOptsAlter?) + ; + +simpleColumnConstraintType + : KW_NOT KW_NULL -> TOK_NOT_NULL + | simpleTableConstraintType + ; + +simpleTableConstraintType + : KW_PRIMARY KW_KEY -> TOK_PRIMARY_KEY + | KW_UNIQUE -> TOK_UNIQUE + ; + +constraintOptsCreate + : enableSpecification relySpecification + ; + +constraintOptsAlter + : enableValidateSpecification relySpecification ; columnNameColonType diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index cbbb7d0..3ae2173 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -73,7 +73,9 @@ import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.ql.CompilationOpContext; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -11912,6 +11914,8 @@ ASTNode analyzeCreateTable( List bucketCols = new ArrayList(); List primaryKeys = new ArrayList(); List foreignKeys = new ArrayList(); + List uniqueConstraints = new ArrayList<>(); + List notNullConstraints = new ArrayList<>(); List sortCols = new ArrayList(); int numBuckets = -1; String comment = null; @@ -12004,7 +12008,8 @@ ASTNode analyzeCreateTable( selectStmt = child; break; case HiveParser.TOK_TABCOLLIST: - cols = getColumns(child, true, primaryKeys, foreignKeys); + cols = getColumns(child, true, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); break; case HiveParser.TOK_TABLECOMMENT: comment = unescapeSQLString(child.getChild(0).getText()); @@ -12118,7 +12123,7 @@ ASTNode analyzeCreateTable( comment, storageFormat.getInputFormat(), storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, skewedColNames, - skewedValues, primaryKeys, foreignKeys); + skewedValues, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); crtTblDesc.setStoredAsSubDirectories(storedAsDirs); crtTblDesc.setNullFormat(rowFormatParams.nullFormat); @@ -12215,7 +12220,8 @@ ASTNode analyzeCreateTable( rowFormatParams.lineDelim, comment, storageFormat.getInputFormat(), storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, - skewedColNames, skewedValues, true, primaryKeys, foreignKeys); + skewedColNames, skewedValues, true, primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints); tableDesc.setMaterialization(isMaterialization); tableDesc.setStoredAsSubDirectories(storedAsDirs); tableDesc.setNullFormat(rowFormatParams.nullFormat); diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java index d5a6679..6cfde18 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java @@ -22,7 +22,9 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.ParseUtils; @@ -127,6 +129,8 @@ String dropConstraintName; List primaryKeyCols; List foreignKeyCols; + List uniqueConstraintCols; + List notNullConstraintCols; public AlterTableDesc() { } @@ -157,6 +161,28 @@ public AlterTableDesc(String tblName, HashMap partSpec, this.isCascade = isCascade; } + public AlterTableDesc(String tblName, HashMap partSpec, + String oldColName, String newColName, String newType, String newComment, + boolean first, String afterCol, boolean isCascade, List primaryKeyCols, + List foreignKeyCols, List uniqueConstraintCols, + List notNullConstraintCols) { + super(); + oldName = tblName; + this.partSpec = partSpec; + this.oldColName = oldColName; + this.newColName = newColName; + newColType = newType; + newColComment = newComment; + this.first = first; + this.afterCol = afterCol; + op = AlterTableTypes.RENAMECOLUMN; + this.isCascade = isCascade; + this.primaryKeyCols = primaryKeyCols; + this.foreignKeyCols = foreignKeyCols; + this.uniqueConstraintCols = uniqueConstraintCols; + this.notNullConstraintCols = notNullConstraintCols; + } + /** * @param oldName * old name of the table @@ -280,10 +306,12 @@ public AlterTableDesc(String tableName, String dropConstraintName) { op = AlterTableTypes.DROPCONSTRAINT; } - public AlterTableDesc(String tableName, List primaryKeyCols, List foreignKeyCols) { + public AlterTableDesc(String tableName, List primaryKeyCols, + List foreignKeyCols, List uniqueConstraintCols) { this.oldName = tableName; this.primaryKeyCols = primaryKeyCols; this.foreignKeyCols = foreignKeyCols; + this.uniqueConstraintCols = uniqueConstraintCols; op = AlterTableTypes.ADDCONSTRAINT; } @@ -462,6 +490,20 @@ public void setForeignKeyCols(List foreignKeyCols) { } /** + * @return the unique constraint cols + */ + public List getUniqueConstraintCols() { + return uniqueConstraintCols; + } + + /** + * @return the not null constraint cols + */ + public List getNotNullConstraintCols() { + return notNullConstraintCols; + } + + /** * @return the drop constraint name of the table */ @Explain(displayName = "drop constraint name", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java index d971c73..7b46fcd 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java @@ -32,7 +32,9 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; +import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.exec.DDLTask; import org.apache.hadoop.hive.ql.exec.Utilities; @@ -96,6 +98,8 @@ private boolean isCTAS = false; List primaryKeys; List foreignKeys; + List uniqueConstraints; + List notNullConstraints; public CreateTableDesc() { } @@ -110,13 +114,15 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal Map serdeProps, Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, - List primaryKeys, List foreignKeys) { + List primaryKeys, List foreignKeys, + List uniqueConstraints, List notNullConstraints) { 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); + tblProps, ifNotExists, skewedColNames, skewedColValues, + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); this.databaseName = databaseName; } @@ -131,12 +137,14 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal Map serdeProps, Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, - boolean isCTAS, List primaryKeys, List foreignKeys) { + boolean isCTAS, List primaryKeys, List foreignKeys, + List uniqueConstraints, List notNullConstraints) { 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); + tblProps, ifNotExists, skewedColNames, skewedColValues, + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); this.isCTAS = isCTAS; } @@ -152,7 +160,8 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary Map serdeProps, Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, - List primaryKeys, List foreignKeys) { + List primaryKeys, List foreignKeys, + List uniqueConstraints, List notNullConstraints) { this.tableName = tableName; this.isExternal = isExternal; this.isTemporary = isTemporary; @@ -177,16 +186,10 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary this.ifNotExists = ifNotExists; this.skewedColNames = copyList(skewedColNames); this.skewedColValues = copyList(skewedColValues); - if (primaryKeys == null) { - this.primaryKeys = new ArrayList(); - } else { - this.primaryKeys = new ArrayList(primaryKeys); - } - if (foreignKeys == null) { - this.foreignKeys = new ArrayList(); - } else { - this.foreignKeys = new ArrayList(foreignKeys); - } + this.primaryKeys = copyList(primaryKeys); + this.foreignKeys = copyList(foreignKeys); + this.uniqueConstraints = copyList(uniqueConstraints); + this.notNullConstraints = copyList(notNullConstraints); } private static List copyList(List copy) { @@ -257,6 +260,14 @@ public void setForeignKeys(ArrayList foreignKeys) { this.foreignKeys = foreignKeys; } + public List getUniqueConstraints() { + return uniqueConstraints; + } + + public List getNotNullConstraints() { + return notNullConstraints; + } + @Explain(displayName = "bucket columns") public List getBucketCols() { return bucketCols; diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java index f43627d..bb02c26 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java @@ -74,7 +74,11 @@ public ImportTableDesc(String dbName, Table table) throws Exception { (null == table.getSd().getSkewedInfo()) ? null : table.getSd().getSkewedInfo() .getSkewedColNames(), (null == table.getSd().getSkewedInfo()) ? null : table.getSd().getSkewedInfo() - .getSkewedColValues(), null, null); + .getSkewedColValues(), + null, + null, + null, + null); this.createTblDesc.setStoredAsSubDirectories(table.getSd().isStoredAsSubDirectories()); break; case VIEW: diff --git ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q index f77eb29..82de06d 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q @@ -1,2 +1,2 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); alter table table1 add constraint pk4 primary key (b) disable novalidate rely; diff --git ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q index e12808d..88be76a 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely); alter table table2 add constraint fk1 foreign key (c) references table1(a) disable novalidate; diff --git ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q index 97703de..cfc0757 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely); alter table table2 add constraint fk1 foreign key (b) references table1(c) disable novalidate; diff --git ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q index dcd7839..0cc7c87 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely); alter table table3 add constraint fk1 foreign key (c) references table1(a) disable novalidate; diff --git ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q index c18247b..f019eb5 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely); alter table table2 add constraint fk1 foreign key (b) references table3(a) disable novalidate; diff --git ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q index b6850fa..ced99f5 100644 --- ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q +++ ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable); CREATE TABLE table2 (a STRING, b STRING); alter table table3 add constraint pk3 primary key (a) disable novalidate rely; diff --git ql/src/test/queries/clientnegative/create_with_constraints_duplicate_name.q ql/src/test/queries/clientnegative/create_with_constraints_duplicate_name.q index b6b30c5..a0bc7f6 100644 --- ql/src/test/queries/clientnegative/create_with_constraints_duplicate_name.q +++ ql/src/test/queries/clientnegative/create_with_constraints_duplicate_name.q @@ -1,2 +1,2 @@ -create table t1(x int, constraint pk1 primary key (x) disable novalidate); -create table t2(x int, constraint pk1 primary key (x) disable novalidate); +create table t1(x int, constraint pk1 primary key (x) disable); +create table t2(x int, constraint pk1 primary key (x) disable); diff --git ql/src/test/queries/clientnegative/create_with_constraints_enable.q ql/src/test/queries/clientnegative/create_with_constraints_enable.q index 4ce3cbc..59ebb1e 100644 --- ql/src/test/queries/clientnegative/create_with_constraints_enable.q +++ ql/src/test/queries/clientnegative/create_with_constraints_enable.q @@ -1 +1 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) enable novalidate); +CREATE TABLE table1 (a STRING, b STRING, primary key (a) enable); diff --git ql/src/test/queries/clientnegative/create_with_fk_constraint.q ql/src/test/queries/clientnegative/create_with_fk_constraint.q new file mode 100644 index 0000000..ea77d84 --- /dev/null +++ ql/src/test/queries/clientnegative/create_with_fk_constraint.q @@ -0,0 +1,2 @@ +CREATE TABLE table2 (a STRING PRIMARY KEY DISABLE, b STRING); +CREATE TABLE table1 (a STRING, b STRING, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE); diff --git ql/src/test/queries/clientnegative/create_with_multi_pk_constraint.q ql/src/test/queries/clientnegative/create_with_multi_pk_constraint.q new file mode 100644 index 0000000..46306fc --- /dev/null +++ ql/src/test/queries/clientnegative/create_with_multi_pk_constraint.q @@ -0,0 +1 @@ +CREATE TABLE table1 (a STRING PRIMARY KEY DISABLE, b STRING PRIMARY KEY DISABLE); diff --git ql/src/test/queries/clientnegative/drop_invalid_constraint1.q ql/src/test/queries/clientnegative/drop_invalid_constraint1.q index 2055f9e..128eb2c 100644 --- ql/src/test/queries/clientnegative/drop_invalid_constraint1.q +++ ql/src/test/queries/clientnegative/drop_invalid_constraint1.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); +CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable); ALTER TABLE table1 DROP CONSTRAINT pk1; ALTER TABLE table1 DROP CONSTRAINT pk1; diff --git ql/src/test/queries/clientnegative/drop_invalid_constraint2.q ql/src/test/queries/clientnegative/drop_invalid_constraint2.q index d253617..871bd3e 100644 --- ql/src/test/queries/clientnegative/drop_invalid_constraint2.q +++ ql/src/test/queries/clientnegative/drop_invalid_constraint2.q @@ -1,2 +1,2 @@ -CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable); ALTER TABLE table1 DROP CONSTRAINT pk1; diff --git ql/src/test/queries/clientnegative/drop_invalid_constraint3.q ql/src/test/queries/clientnegative/drop_invalid_constraint3.q index 04eb1fb..ca1f599 100644 --- ql/src/test/queries/clientnegative/drop_invalid_constraint3.q +++ ql/src/test/queries/clientnegative/drop_invalid_constraint3.q @@ -1,2 +1,2 @@ -CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable); ALTER TABLE table2 DROP CONSTRAINT pk2; diff --git ql/src/test/queries/clientnegative/drop_invalid_constraint4.q ql/src/test/queries/clientnegative/drop_invalid_constraint4.q index 3cf2d2a..25026b0 100644 --- ql/src/test/queries/clientnegative/drop_invalid_constraint4.q +++ ql/src/test/queries/clientnegative/drop_invalid_constraint4.q @@ -1,3 +1,3 @@ -CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable novalidate); +CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable); +CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable); ALTER TABLE table1 DROP CONSTRAINT pk2; \ No newline at end of file diff --git ql/src/test/queries/clientpositive/create_with_constraints.q ql/src/test/queries/clientpositive/create_with_constraints.q index 7dc15c1..6aa850b 100644 --- ql/src/test/queries/clientpositive/create_with_constraints.q +++ ql/src/test/queries/clientpositive/create_with_constraints.q @@ -1,17 +1,22 @@ -CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); -CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); -CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE); -CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE); -CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE); -CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE); -CREATE TABLE table7 (a STRING, b STRING, primary key (a) disable novalidate rely); -CREATE TABLE table8 (a STRING, b STRING, constraint pk8 primary key (a) disable novalidate norely); -CREATE TABLE table9 (a STRING, b STRING, primary key (a, b) disable novalidate rely); -CREATE TABLE table10 (a STRING, b STRING, constraint pk10 primary key (a) disable novalidate norely, foreign key (a, b) references table9(a, b) disable novalidate); -CREATE TABLE table11 (a STRING, b STRING, c STRING, constraint pk11 primary key (a) disable novalidate rely, constraint fk11_1 foreign key (a, b) references table9(a, b) disable novalidate, -constraint fk11_2 foreign key (c) references table4(x) disable novalidate); +CREATE TABLE table1 (a STRING, b STRING, PRIMARY KEY (a) DISABLE); +CREATE TABLE table2 (a STRING, b STRING, CONSTRAINT pk1 PRIMARY KEY (a) DISABLE); +CREATE TABLE table3 (x string NOT NULL DISABLE, PRIMARY KEY (x) DISABLE, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE); +CREATE TABLE table4 (x string CONSTRAINT nn4_1 NOT NULL DISABLE, y string CONSTRAINT nn4_2 NOT NULL DISABLE, UNIQUE (x) DISABLE, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE); +CREATE TABLE table5 (x string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE); +CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE); +CREATE TABLE table7 (a STRING, b STRING, PRIMARY KEY (a) DISABLE RELY); +CREATE TABLE table8 (a STRING, b STRING, CONSTRAINT pk8 PRIMARY KEY (a) DISABLE NORELY); +CREATE TABLE table9 (a STRING, b STRING, PRIMARY KEY (a, b) DISABLE RELY); +CREATE TABLE table10 (a STRING, b STRING, CONSTRAINT pk10 PRIMARY KEY (a) DISABLE NORELY, FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE); +CREATE TABLE table11 (a STRING, b STRING, c STRING, CONSTRAINT pk11 PRIMARY KEY (a) DISABLE RELY, CONSTRAINT fk11_1 FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE, +CONSTRAINT fk11_2 FOREIGN KEY (c) REFERENCES table4(x) DISABLE); +CREATE TABLE table12 (a STRING CONSTRAINT nn12_1 NOT NULL DISABLE NORELY, b STRING); +CREATE TABLE table13 (a STRING NOT NULL DISABLE RELY, b STRING); +CREATE TABLE table14 (a STRING CONSTRAINT nn14_1 NOT NULL DISABLE RELY, b STRING); +CREATE TABLE table15 (a STRING REFERENCES table4(x) DISABLE, b STRING); +CREATE TABLE table16 (a STRING CONSTRAINT nn16_1 REFERENCES table4(x) DISABLE RELY, b STRING); DESCRIBE EXTENDED table1; DESCRIBE EXTENDED table2; @@ -24,6 +29,9 @@ DESCRIBE EXTENDED table8; DESCRIBE EXTENDED table9; DESCRIBE EXTENDED table10; DESCRIBE EXTENDED table11; +DESCRIBE EXTENDED table12; +DESCRIBE EXTENDED table13; +DESCRIBE EXTENDED table14; DESCRIBE FORMATTED table1; DESCRIBE FORMATTED table2; @@ -36,30 +44,51 @@ DESCRIBE FORMATTED table8; DESCRIBE FORMATTED table9; DESCRIBE FORMATTED table10; DESCRIBE FORMATTED table11; +DESCRIBE FORMATTED table12; +DESCRIBE FORMATTED table13; +DESCRIBE FORMATTED table14; ALTER TABLE table2 DROP CONSTRAINT pk1; ALTER TABLE table3 DROP CONSTRAINT fk1; +ALTER TABLE table4 DROP CONSTRAINT nn4_1; ALTER TABLE table6 DROP CONSTRAINT fk4; +ALTER TABLE table16 DROP CONSTRAINT nn16_1; DESCRIBE EXTENDED table2; DESCRIBE EXTENDED table3; +DESCRIBE EXTENDED table4; DESCRIBE EXTENDED table6; +DESCRIBE EXTENDED table16; DESCRIBE FORMATTED table2; DESCRIBE FORMATTED table3; +DESCRIBE FORMATTED table4; DESCRIBE FORMATTED table6; +DESCRIBE FORMATTED table16; -ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate; -ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY; -ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE; +ALTER TABLE table2 ADD CONSTRAINT pkt2 PRIMARY KEY (a) DISABLE NOVALIDATE; +ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY; +ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE; +ALTER TABLE table16 CHANGE a a STRING REFERENCES table4(x) DISABLE NOVALIDATE; DESCRIBE FORMATTED table2; DESCRIBE FORMATTED table3; DESCRIBE FORMATTED table6; +DESCRIBE FORMATTED table16; + +ALTER TABLE table12 CHANGE COLUMN b b STRING CONSTRAINT nn12_2 NOT NULL DISABLE NOVALIDATE; +ALTER TABLE table13 CHANGE b b STRING NOT NULL DISABLE NOVALIDATE; + +DESCRIBE FORMATTED table12; +DESCRIBE FORMATTED table13; + +ALTER TABLE table12 DROP CONSTRAINT nn12_2; + +DESCRIBE FORMATTED table12; CREATE DATABASE DbConstraint; USE DbConstraint; -CREATE TABLE Table2 (a STRING, b STRING, constraint Pk1 primary key (a) disable novalidate); +CREATE TABLE Table2 (a STRING, b STRING NOT NULL DISABLE, CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE); USE default; DESCRIBE EXTENDED DbConstraint.Table2; @@ -70,7 +99,7 @@ ALTER TABLE DbConstraint.Table2 DROP CONSTRAINT Pk1; DESCRIBE EXTENDED DbConstraint.Table2; DESCRIBE FORMATTED DbConstraint.Table2; -ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 primary key (a) disable novalidate; +ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE NOVALIDATE; DESCRIBE FORMATTED DbConstraint.Table2; -ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE; +ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE; DESCRIBE FORMATTED DbConstraint.Table2; diff --git ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out index d1bb637..30ad841 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 diff --git ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out index 2cd85c4..1617609 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out @@ -1,16 +1,16 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out index 86c38c1..47166ac 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out @@ -1,16 +1,16 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out index 16edd44..49bc928 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out @@ -1,16 +1,16 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out index 31dfcd1..f5ac4ac 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out @@ -1,16 +1,16 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable rely) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out index 0207d8c..792134c 100644 --- ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out +++ ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 diff --git ql/src/test/results/clientnegative/create_with_constraints_duplicate_name.q.out ql/src/test/results/clientnegative/create_with_constraints_duplicate_name.q.out index 989ff38..e4747d4 100644 --- ql/src/test/results/clientnegative/create_with_constraints_duplicate_name.q.out +++ ql/src/test/results/clientnegative/create_with_constraints_duplicate_name.q.out @@ -1,12 +1,12 @@ -PREHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable novalidate) +PREHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@t1 -POSTHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable novalidate) +POSTHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@t1 -PREHOOK: query: create table t2(x int, constraint pk1 primary key (x) disable novalidate) +PREHOOK: query: create table t2(x int, constraint pk1 primary key (x) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@t2 diff --git ql/src/test/results/clientnegative/create_with_constraints_enable.q.out ql/src/test/results/clientnegative/create_with_constraints_enable.q.out index f5dcf85..65d3bfe 100644 --- ql/src/test/results/clientnegative/create_with_constraints_enable.q.out +++ ql/src/test/results/clientnegative/create_with_constraints_enable.q.out @@ -1 +1 @@ -FAILED: SemanticException [Error 10326]: Invalid Primary Key syntax ENABLE feature not supported yet +FAILED: SemanticException [Error 10326]: Invalid Constraint syntax ENABLE feature not supported yet. Please use DISABLE instead. diff --git ql/src/test/results/clientnegative/create_with_constraints_validate.q.out ql/src/test/results/clientnegative/create_with_constraints_validate.q.out index 307e8ec..e81b1b9 100644 --- ql/src/test/results/clientnegative/create_with_constraints_validate.q.out +++ ql/src/test/results/clientnegative/create_with_constraints_validate.q.out @@ -1 +1 @@ -FAILED: SemanticException [Error 10326]: Invalid Primary Key syntax VALIDATE feature not supported yet +FAILED: ParseException line 1:65 cannot recognize input near 'validate' ')' '' in rely specification diff --git ql/src/test/results/clientnegative/create_with_fk_constraint.q.out ql/src/test/results/clientnegative/create_with_fk_constraint.q.out new file mode 100644 index 0000000..6598d6c --- /dev/null +++ ql/src/test/results/clientnegative/create_with_fk_constraint.q.out @@ -0,0 +1,13 @@ +PREHOOK: query: CREATE TABLE table2 (a STRING PRIMARY KEY DISABLE, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING PRIMARY KEY DISABLE, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Child column not found: x) diff --git ql/src/test/results/clientnegative/create_with_multi_pk_constraint.q.out ql/src/test/results/clientnegative/create_with_multi_pk_constraint.q.out new file mode 100644 index 0000000..5ad3fd1 --- /dev/null +++ ql/src/test/results/clientnegative/create_with_multi_pk_constraint.q.out @@ -0,0 +1 @@ +FAILED: SemanticException [Error 10331]: Invalid constraint definition Cannot exist more than one primary key definition for the same table diff --git ql/src/test/results/clientnegative/drop_invalid_constraint1.q.out ql/src/test/results/clientnegative/drop_invalid_constraint1.q.out index 4568ccb..2cb3996 100644 --- ql/src/test/results/clientnegative/drop_invalid_constraint1.q.out +++ ql/src/test/results/clientnegative/drop_invalid_constraint1.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 diff --git ql/src/test/results/clientnegative/drop_invalid_constraint2.q.out ql/src/test/results/clientnegative/drop_invalid_constraint2.q.out index 0051131..04352b4 100644 --- ql/src/test/results/clientnegative/drop_invalid_constraint2.q.out +++ ql/src/test/results/clientnegative/drop_invalid_constraint2.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/drop_invalid_constraint3.q.out ql/src/test/results/clientnegative/drop_invalid_constraint3.q.out index 9c60e94..03e4bd6 100644 --- ql/src/test/results/clientnegative/drop_invalid_constraint3.q.out +++ ql/src/test/results/clientnegative/drop_invalid_constraint3.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientnegative/drop_invalid_constraint4.q.out ql/src/test/results/clientnegative/drop_invalid_constraint4.q.out index 1d93c42..473dec7 100644 --- ql/src/test/results/clientnegative/drop_invalid_constraint4.q.out +++ ql/src/test/results/clientnegative/drop_invalid_constraint4.q.out @@ -1,16 +1,16 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, constraint pk1 primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk2 primary key (a) disable) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 diff --git ql/src/test/results/clientpositive/create_with_constraints.q.out ql/src/test/results/clientpositive/create_with_constraints.q.out index 64c3ec6..ea69a0a 100644 --- ql/src/test/results/clientpositive/create_with_constraints.q.out +++ ql/src/test/results/clientpositive/create_with_constraints.q.out @@ -1,97 +1,137 @@ -PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, PRIMARY KEY (a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table1 -POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, PRIMARY KEY (a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table1 -PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, CONSTRAINT pk1 PRIMARY KEY (a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table2 -POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, CONSTRAINT pk1 PRIMARY KEY (a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 -PREHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table3 (x string NOT NULL DISABLE, PRIMARY KEY (x) DISABLE, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table3 -POSTHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table3 (x string NOT NULL DISABLE, PRIMARY KEY (x) DISABLE, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table3 -PREHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table4 (x string CONSTRAINT nn4_1 NOT NULL DISABLE, y string CONSTRAINT nn4_2 NOT NULL DISABLE, UNIQUE (x) DISABLE, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table4 -POSTHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table4 (x string CONSTRAINT nn4_1 NOT NULL DISABLE, y string CONSTRAINT nn4_2 NOT NULL DISABLE, UNIQUE (x) DISABLE, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table4 -PREHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table5 -POSTHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table5 -PREHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table6 -POSTHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, -CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) DISABLE, FOREIGN KEY (x) REFERENCES table2(a) DISABLE, +CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table6 -PREHOOK: query: CREATE TABLE table7 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: query: CREATE TABLE table7 (a STRING, b STRING, PRIMARY KEY (a) DISABLE RELY) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table7 -POSTHOOK: query: CREATE TABLE table7 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table7 (a STRING, b STRING, PRIMARY KEY (a) DISABLE RELY) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table7 -PREHOOK: query: CREATE TABLE table8 (a STRING, b STRING, constraint pk8 primary key (a) disable novalidate norely) +PREHOOK: query: CREATE TABLE table8 (a STRING, b STRING, CONSTRAINT pk8 PRIMARY KEY (a) DISABLE NORELY) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table8 -POSTHOOK: query: CREATE TABLE table8 (a STRING, b STRING, constraint pk8 primary key (a) disable novalidate norely) +POSTHOOK: query: CREATE TABLE table8 (a STRING, b STRING, CONSTRAINT pk8 PRIMARY KEY (a) DISABLE NORELY) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table8 -PREHOOK: query: CREATE TABLE table9 (a STRING, b STRING, primary key (a, b) disable novalidate rely) +PREHOOK: query: CREATE TABLE table9 (a STRING, b STRING, PRIMARY KEY (a, b) DISABLE RELY) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table9 -POSTHOOK: query: CREATE TABLE table9 (a STRING, b STRING, primary key (a, b) disable novalidate rely) +POSTHOOK: query: CREATE TABLE table9 (a STRING, b STRING, PRIMARY KEY (a, b) DISABLE RELY) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table9 -PREHOOK: query: CREATE TABLE table10 (a STRING, b STRING, constraint pk10 primary key (a) disable novalidate norely, foreign key (a, b) references table9(a, b) disable novalidate) +PREHOOK: query: CREATE TABLE table10 (a STRING, b STRING, CONSTRAINT pk10 PRIMARY KEY (a) DISABLE NORELY, FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table10 -POSTHOOK: query: CREATE TABLE table10 (a STRING, b STRING, constraint pk10 primary key (a) disable novalidate norely, foreign key (a, b) references table9(a, b) disable novalidate) +POSTHOOK: query: CREATE TABLE table10 (a STRING, b STRING, CONSTRAINT pk10 PRIMARY KEY (a) DISABLE NORELY, FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table10 -PREHOOK: query: CREATE TABLE table11 (a STRING, b STRING, c STRING, constraint pk11 primary key (a) disable novalidate rely, constraint fk11_1 foreign key (a, b) references table9(a, b) disable novalidate, -constraint fk11_2 foreign key (c) references table4(x) disable novalidate) +PREHOOK: query: CREATE TABLE table11 (a STRING, b STRING, c STRING, CONSTRAINT pk11 PRIMARY KEY (a) DISABLE RELY, CONSTRAINT fk11_1 FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE, +CONSTRAINT fk11_2 FOREIGN KEY (c) REFERENCES table4(x) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table11 -POSTHOOK: query: CREATE TABLE table11 (a STRING, b STRING, c STRING, constraint pk11 primary key (a) disable novalidate rely, constraint fk11_1 foreign key (a, b) references table9(a, b) disable novalidate, -constraint fk11_2 foreign key (c) references table4(x) disable novalidate) +POSTHOOK: query: CREATE TABLE table11 (a STRING, b STRING, c STRING, CONSTRAINT pk11 PRIMARY KEY (a) DISABLE RELY, CONSTRAINT fk11_1 FOREIGN KEY (a, b) REFERENCES table9(a, b) DISABLE, +CONSTRAINT fk11_2 FOREIGN KEY (c) REFERENCES table4(x) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table11 +PREHOOK: query: CREATE TABLE table12 (a STRING CONSTRAINT nn12_1 NOT NULL DISABLE NORELY, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table12 +POSTHOOK: query: CREATE TABLE table12 (a STRING CONSTRAINT nn12_1 NOT NULL DISABLE NORELY, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table12 +PREHOOK: query: CREATE TABLE table13 (a STRING NOT NULL DISABLE RELY, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table13 +POSTHOOK: query: CREATE TABLE table13 (a STRING NOT NULL DISABLE RELY, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table13 +PREHOOK: query: CREATE TABLE table14 (a STRING CONSTRAINT nn14_1 NOT NULL DISABLE RELY, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table14 +POSTHOOK: query: CREATE TABLE table14 (a STRING CONSTRAINT nn14_1 NOT NULL DISABLE RELY, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table14 +PREHOOK: query: CREATE TABLE table15 (a STRING REFERENCES table4(x) DISABLE, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table15 +POSTHOOK: query: CREATE TABLE table15 (a STRING REFERENCES table4(x) DISABLE, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table15 +PREHOOK: query: CREATE TABLE table16 (a STRING CONSTRAINT nn16_1 REFERENCES table4(x) DISABLE RELY, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table16 +POSTHOOK: query: CREATE TABLE table16 (a STRING CONSTRAINT nn16_1 REFERENCES table4(x) DISABLE RELY, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table16 PREHOOK: query: DESCRIBE EXTENDED table1 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table1 @@ -125,6 +165,7 @@ x string #### A masked pattern was here #### Constraints Primary Key for default.table3:[x], Constraint Name: #### A masked pattern was here #### Foreign Keys for default.table3:[ {Constraint Name: fk1, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}] +Not Null Constraints for default.table3:[ {Constraint Name: #### A masked pattern was here ####, Column Name: x}] PREHOOK: query: DESCRIBE EXTENDED table4 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table4 @@ -135,8 +176,9 @@ x string y string #### A masked pattern was here #### -Constraints Primary Key for default.table4:[x], Constraint Name: #### A masked pattern was here #### -Foreign Keys for default.table4:[ {Constraint Name: fk2, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}, {Constraint Name: fk3, (Parent Column Name: default.table2.a, Column Name: y, Key Sequence: 1)}] +Constraints Foreign Keys for default.table4:[ {Constraint Name: fk2, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}, {Constraint Name: fk3, (Parent Column Name: default.table2.a, Column Name: y, Key Sequence: 1)}] +Unique Constraints for default.table4:[ {Constraint Name: #### A masked pattern was here ####, (Column Name: x, Key Sequence: 1)}] +Not Null Constraints for default.table4:[ {Constraint Name: nn4_1, Column Name: x}, {Constraint Name: nn4_2, Column Name: y}] PREHOOK: query: DESCRIBE EXTENDED table5 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table5 @@ -217,7 +259,40 @@ c string #### A masked pattern was here #### Constraints Primary Key for default.table11:[a], Constraint Name: pk11 -Foreign Keys for default.table11:[ {Constraint Name: fk11_1, (Parent Column Name: default.table9.a, Column Name: a, Key Sequence: 1), (Parent Column Name: default.table9.b, Column Name: b, Key Sequence: 2)}, {Constraint Name: fk11_2, (Parent Column Name: default.table4.x, Column Name: c, Key Sequence: 1)}] +Foreign Keys for default.table11:[ {Constraint Name: fk11_1, (Parent Column Name: default.table9.a, Column Name: a, Key Sequence: 1), (Parent Column Name: default.table9.b, Column Name: b, Key Sequence: 2)}] +PREHOOK: query: DESCRIBE EXTENDED table12 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table12 +POSTHOOK: query: DESCRIBE EXTENDED table12 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table12 +a string +b string + +#### A masked pattern was here #### +Constraints Not Null Constraints for default.table12:[ {Constraint Name: nn12_1, Column Name: a}] +PREHOOK: query: DESCRIBE EXTENDED table13 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table13 +POSTHOOK: query: DESCRIBE EXTENDED table13 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table13 +a string +b string + +#### A masked pattern was here #### +Constraints Not Null Constraints for default.table13:[ {Constraint Name: #### A masked pattern was here ####, Column Name: a}] +PREHOOK: query: DESCRIBE EXTENDED table14 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table14 +POSTHOOK: query: DESCRIBE EXTENDED table14 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table14 +a string +b string + +#### A masked pattern was here #### +Constraints Not Null Constraints for default.table14:[ {Constraint Name: nn14_1, Column Name: a}] PREHOOK: query: DESCRIBE FORMATTED table1 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table1 @@ -349,6 +424,12 @@ Table: default.table3 Constraint Name: fk1 Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + +# Not Null Constraints +Table: default.table3 +Constraint Name: #### A masked pattern was here #### +Column Name: x + PREHOOK: query: DESCRIBE FORMATTED table4 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table4 @@ -387,11 +468,6 @@ Storage Desc Params: # Constraints -# Primary Key -Table: default.table4 -Constraint Name: #### A masked pattern was here #### -Column Names: x - # Foreign Keys Table: default.table4 Constraint Name: fk2 @@ -400,6 +476,21 @@ Parent Column Name:default.table2.a Column Name:x Key Sequence:1 Constraint Name: fk3 Parent Column Name:default.table2.a Column Name:y Key Sequence:1 + +# Unique Constraints +Table: default.table4 +Constraint Name: #### A masked pattern was here #### +Column Name:x Key Sequence:1 + + +# Not Null Constraints +Table: default.table4 +Constraint Name: nn4_1 +Column Name: x + +Constraint Name: nn4_2 +Column Name: y + PREHOOK: query: DESCRIBE FORMATTED table5 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table5 @@ -723,8 +814,134 @@ Constraint Name: fk11_1 Parent Column Name:default.table9.a Column Name:a Key Sequence:1 Parent Column Name:default.table9.b Column Name:b Key Sequence:2 -Constraint Name: fk11_2 -Parent Column Name:default.table4.x Column Name:c Key Sequence:1 +PREHOOK: query: DESCRIBE FORMATTED table12 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table12 +POSTHOOK: query: DESCRIBE FORMATTED table12 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table12 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table12 +Constraint Name: nn12_1 +Column Name: a + +PREHOOK: query: DESCRIBE FORMATTED table13 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table13 +POSTHOOK: query: DESCRIBE FORMATTED table13 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table13 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table13 +Constraint Name: #### A masked pattern was here #### +Column Name: a + +PREHOOK: query: DESCRIBE FORMATTED table14 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table14 +POSTHOOK: query: DESCRIBE FORMATTED table14 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table14 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table14 +Constraint Name: nn14_1 +Column Name: a PREHOOK: query: ALTER TABLE table2 DROP CONSTRAINT pk1 PREHOOK: type: ALTERTABLE_DROPCONSTRAINT @@ -734,10 +951,18 @@ PREHOOK: query: ALTER TABLE table3 DROP CONSTRAINT fk1 PREHOOK: type: ALTERTABLE_DROPCONSTRAINT POSTHOOK: query: ALTER TABLE table3 DROP CONSTRAINT fk1 POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT +PREHOOK: query: ALTER TABLE table4 DROP CONSTRAINT nn4_1 +PREHOOK: type: ALTERTABLE_DROPCONSTRAINT +POSTHOOK: query: ALTER TABLE table4 DROP CONSTRAINT nn4_1 +POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT PREHOOK: query: ALTER TABLE table6 DROP CONSTRAINT fk4 PREHOOK: type: ALTERTABLE_DROPCONSTRAINT POSTHOOK: query: ALTER TABLE table6 DROP CONSTRAINT fk4 POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT +PREHOOK: query: ALTER TABLE table16 DROP CONSTRAINT nn16_1 +PREHOOK: type: ALTERTABLE_DROPCONSTRAINT +POSTHOOK: query: ALTER TABLE table16 DROP CONSTRAINT nn16_1 +POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT PREHOOK: query: DESCRIBE EXTENDED table2 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table2 @@ -758,6 +983,19 @@ x string #### A masked pattern was here #### Constraints Primary Key for default.table3:[x], Constraint Name: #### A masked pattern was here #### +Not Null Constraints for default.table3:[ {Constraint Name: #### A masked pattern was here ####, Column Name: x}] +PREHOOK: query: DESCRIBE EXTENDED table4 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table4 +POSTHOOK: query: DESCRIBE EXTENDED table4 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table4 +x string +y string + +#### A masked pattern was here #### +Constraints Unique Constraints for default.table4:[ {Constraint Name: #### A masked pattern was here ####, (Column Name: x, Key Sequence: 1)}] +Not Null Constraints for default.table4:[ {Constraint Name: nn4_2, Column Name: y}] PREHOOK: query: DESCRIBE EXTENDED table6 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table6 @@ -769,6 +1007,16 @@ y string #### A masked pattern was here #### Constraints Primary Key for default.table6:[x], Constraint Name: #### A masked pattern was here #### +PREHOOK: query: DESCRIBE EXTENDED table16 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table16 +POSTHOOK: query: DESCRIBE EXTENDED table16 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table16 +a string +b string + +#### A masked pattern was here #### PREHOOK: query: DESCRIBE FORMATTED table2 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table2 @@ -845,6 +1093,61 @@ Storage Desc Params: Table: default.table3 Constraint Name: #### A masked pattern was here #### Column Names: x + +# Not Null Constraints +Table: default.table3 +Constraint Name: #### A masked pattern was here #### +Column Name: x + +PREHOOK: query: DESCRIBE FORMATTED table4 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table4 +POSTHOOK: query: DESCRIBE FORMATTED table4 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table4 +# col_name data_type comment + +x string +y string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Unique Constraints +Table: default.table4 +Constraint Name: #### A masked pattern was here #### +Column Name:x Key Sequence:1 + + +# Not Null Constraints +Table: default.table4 +Constraint Name: nn4_2 +Column Name: y + PREHOOK: query: DESCRIBE FORMATTED table6 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table6 @@ -887,18 +1190,61 @@ Storage Desc Params: Table: default.table6 Constraint Name: #### A masked pattern was here #### Column Names: x -PREHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate +PREHOOK: query: DESCRIBE FORMATTED table16 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table16 +POSTHOOK: query: DESCRIBE FORMATTED table16 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table16 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 +PREHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 PRIMARY KEY (a) DISABLE NOVALIDATE PREHOOK: type: ALTERTABLE_ADDCONSTRAINT -POSTHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate +POSTHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 PRIMARY KEY (a) DISABLE NOVALIDATE POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT -PREHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY +PREHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY PREHOOK: type: ALTERTABLE_ADDCONSTRAINT -POSTHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY +POSTHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT -PREHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE +PREHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE PREHOOK: type: ALTERTABLE_ADDCONSTRAINT -POSTHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE +POSTHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: ALTER TABLE table16 CHANGE a a STRING REFERENCES table4(x) DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_RENAMECOL +PREHOOK: Input: default@table16 +PREHOOK: Output: default@table16 +POSTHOOK: query: ALTER TABLE table16 CHANGE a a STRING REFERENCES table4(x) DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_RENAMECOL +POSTHOOK: Input: default@table16 +POSTHOOK: Output: default@table16 PREHOOK: query: DESCRIBE FORMATTED table2 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table2 @@ -988,6 +1334,12 @@ Table: default.table3 Constraint Name: fk1 Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + +# Not Null Constraints +Table: default.table3 +Constraint Name: #### A masked pattern was here #### +Column Name: x + PREHOOK: query: DESCRIBE FORMATTED table6 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table6 @@ -1039,6 +1391,200 @@ Parent Column Name:default.table1.a Column Name:y Key Sequence:1 Constraint Name: #### A masked pattern was here #### Parent Column Name:default.table2.a Column Name:x Key Sequence:1 +PREHOOK: query: DESCRIBE FORMATTED table16 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table16 +POSTHOOK: query: DESCRIBE FORMATTED table16 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table16 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} +#### A masked pattern was here #### + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 +PREHOOK: query: ALTER TABLE table12 CHANGE COLUMN b b STRING CONSTRAINT nn12_2 NOT NULL DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_RENAMECOL +PREHOOK: Input: default@table12 +PREHOOK: Output: default@table12 +POSTHOOK: query: ALTER TABLE table12 CHANGE COLUMN b b STRING CONSTRAINT nn12_2 NOT NULL DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_RENAMECOL +POSTHOOK: Input: default@table12 +POSTHOOK: Output: default@table12 +PREHOOK: query: ALTER TABLE table13 CHANGE b b STRING NOT NULL DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_RENAMECOL +PREHOOK: Input: default@table13 +PREHOOK: Output: default@table13 +POSTHOOK: query: ALTER TABLE table13 CHANGE b b STRING NOT NULL DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_RENAMECOL +POSTHOOK: Input: default@table13 +POSTHOOK: Output: default@table13 +PREHOOK: query: DESCRIBE FORMATTED table12 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table12 +POSTHOOK: query: DESCRIBE FORMATTED table12 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table12 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} +#### A masked pattern was here #### + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table12 +Constraint Name: nn12_1 +Column Name: a + +Constraint Name: nn12_2 +Column Name: b + +PREHOOK: query: DESCRIBE FORMATTED table13 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table13 +POSTHOOK: query: DESCRIBE FORMATTED table13 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table13 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} +#### A masked pattern was here #### + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table13 +Constraint Name: #### A masked pattern was here #### +Column Name: a + +Constraint Name: #### A masked pattern was here #### +Column Name: b + +PREHOOK: query: ALTER TABLE table12 DROP CONSTRAINT nn12_2 +PREHOOK: type: ALTERTABLE_DROPCONSTRAINT +POSTHOOK: query: ALTER TABLE table12 DROP CONSTRAINT nn12_2 +POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT +PREHOOK: query: DESCRIBE FORMATTED table12 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table12 +POSTHOOK: query: DESCRIBE FORMATTED table12 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table12 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} +#### A masked pattern was here #### + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### 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 + +# Not Null Constraints +Table: default.table12 +Constraint Name: nn12_1 +Column Name: a + PREHOOK: query: CREATE DATABASE DbConstraint PREHOOK: type: CREATEDATABASE PREHOOK: Output: database:DbConstraint @@ -1051,11 +1597,11 @@ PREHOOK: Input: database:dbconstraint POSTHOOK: query: USE DbConstraint POSTHOOK: type: SWITCHDATABASE POSTHOOK: Input: database:dbconstraint -PREHOOK: query: CREATE TABLE Table2 (a STRING, b STRING, constraint Pk1 primary key (a) disable novalidate) +PREHOOK: query: CREATE TABLE Table2 (a STRING, b STRING NOT NULL DISABLE, CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE) PREHOOK: type: CREATETABLE PREHOOK: Output: DbConstraint@Table2 PREHOOK: Output: database:dbconstraint -POSTHOOK: query: CREATE TABLE Table2 (a STRING, b STRING, constraint Pk1 primary key (a) disable novalidate) +POSTHOOK: query: CREATE TABLE Table2 (a STRING, b STRING NOT NULL DISABLE, CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: DbConstraint@Table2 POSTHOOK: Output: database:dbconstraint @@ -1076,6 +1622,7 @@ b string #### A masked pattern was here #### Constraints Primary Key for dbconstraint.table2:[a], Constraint Name: pk1 +Not Null Constraints for dbconstraint.table2:[ {Constraint Name: #### A masked pattern was here ####, Column Name: b}] PREHOOK: query: DESCRIBE FORMATTED DbConstraint.Table2 PREHOOK: type: DESCTABLE PREHOOK: Input: dbconstraint@table2 @@ -1118,6 +1665,12 @@ Storage Desc Params: Table: dbconstraint.table2 Constraint Name: pk1 Column Names: a + +# Not Null Constraints +Table: dbconstraint.table2 +Constraint Name: #### A masked pattern was here #### +Column Name: b + PREHOOK: query: ALTER TABLE DbConstraint.Table2 DROP CONSTRAINT Pk1 PREHOOK: type: ALTERTABLE_DROPCONSTRAINT POSTHOOK: query: ALTER TABLE DbConstraint.Table2 DROP CONSTRAINT Pk1 @@ -1132,6 +1685,7 @@ a string b string #### A masked pattern was here #### +Constraints Not Null Constraints for dbconstraint.table2:[ {Constraint Name: #### A masked pattern was here ####, Column Name: b}] PREHOOK: query: DESCRIBE FORMATTED DbConstraint.Table2 PREHOOK: type: DESCTABLE PREHOOK: Input: dbconstraint@table2 @@ -1167,9 +1721,17 @@ Bucket Columns: [] Sort Columns: [] Storage Desc Params: serialization.format 1 -PREHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 primary key (a) disable novalidate + +# Constraints + +# Not Null Constraints +Table: dbconstraint.table2 +Constraint Name: #### A masked pattern was here #### +Column Name: b + +PREHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE NOVALIDATE PREHOOK: type: ALTERTABLE_ADDCONSTRAINT -POSTHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 primary key (a) disable novalidate +POSTHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT Pk1 PRIMARY KEY (a) DISABLE NOVALIDATE POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT PREHOOK: query: DESCRIBE FORMATTED DbConstraint.Table2 PREHOOK: type: DESCTABLE @@ -1213,9 +1775,15 @@ Storage Desc Params: Table: dbconstraint.table2 Constraint Name: pk1 Column Names: a -PREHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE + +# Not Null Constraints +Table: dbconstraint.table2 +Constraint Name: #### A masked pattern was here #### +Column Name: b + +PREHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE PREHOOK: type: ALTERTABLE_ADDCONSTRAINT -POSTHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE +POSTHOOK: query: ALTER TABLE DbConstraint.Table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT PREHOOK: query: DESCRIBE FORMATTED DbConstraint.Table2 PREHOOK: type: DESCTABLE @@ -1265,3 +1833,9 @@ Table: dbconstraint.table2 Constraint Name: fkx Parent Column Name:default.table1.a Column Name:b Key Sequence:1 + +# Not Null Constraints +Table: dbconstraint.table2 +Constraint Name: #### A masked pattern was here #### +Column Name: b +