diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index 9661778cd0..a028a3a11e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ standalone-metastore/metastore-common/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 _list610 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list610.size); - long _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list618.size); + long _elem619; + for (int _i620 = 0; _i620 < _list618.size; ++_i620) { - _elem611 = iprot.readI64(); - struct.txn_ids.add(_elem611); + _elem619 = iprot.readI64(); + struct.txn_ids.add(_elem619); } 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 _iter613 : struct.txn_ids) + for (long _iter621 : struct.txn_ids) { - oprot.writeI64(_iter613); + oprot.writeI64(_iter621); } 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 _iter614 : struct.txn_ids) + for (long _iter622 : struct.txn_ids) { - oprot.writeI64(_iter614); + oprot.writeI64(_iter622); } } } @@ -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 _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list615.size); - long _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list623.size); + long _elem624; + for (int _i625 = 0; _i625 < _list623.size; ++_i625) { - _elem616 = iprot.readI64(); - struct.txn_ids.add(_elem616); + _elem624 = iprot.readI64(); + struct.txn_ids.add(_elem624); } } struct.setTxn_idsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index d678c0249b..9f4b4be756 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -816,13 +816,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 5: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list740.size); - String _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list748.size); + String _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem741 = iprot.readString(); - struct.partitionnames.add(_elem741); + _elem749 = iprot.readString(); + struct.partitionnames.add(_elem749); } iprot.readListEnd(); } @@ -872,9 +872,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter743 : struct.partitionnames) + for (String _iter751 : struct.partitionnames) { - oprot.writeString(_iter743); + oprot.writeString(_iter751); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter744 : struct.partitionnames) + for (String _iter752 : struct.partitionnames) { - oprot.writeString(_iter744); + oprot.writeString(_iter752); } } BitSet optionals = new BitSet(); @@ -937,13 +937,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list745.size); - String _elem746; - for (int _i747 = 0; _i747 < _list745.size; ++_i747) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list753.size); + String _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem746 = iprot.readString(); - struct.partitionnames.add(_elem746); + _elem754 = iprot.readString(); + struct.partitionnames.add(_elem754); } } struct.setPartitionnamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java index 3dd36dabc1..86fb687623 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java @@ -716,13 +716,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 3: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list666.size); - long _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list674.size); + long _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem667 = iprot.readI64(); - struct.txnIds.add(_elem667); + _elem675 = iprot.readI64(); + struct.txnIds.add(_elem675); } iprot.readListEnd(); } @@ -742,14 +742,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 5: // SRC_TXN_TO_WRITE_ID_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list669 = iprot.readListBegin(); - struct.srcTxnToWriteIdList = new ArrayList(_list669.size); - TxnToWriteId _elem670; - for (int _i671 = 0; _i671 < _list669.size; ++_i671) + org.apache.thrift.protocol.TList _list677 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list677.size); + TxnToWriteId _elem678; + for (int _i679 = 0; _i679 < _list677.size; ++_i679) { - _elem670 = new TxnToWriteId(); - _elem670.read(iprot); - struct.srcTxnToWriteIdList.add(_elem670); + _elem678 = new TxnToWriteId(); + _elem678.read(iprot); + struct.srcTxnToWriteIdList.add(_elem678); } iprot.readListEnd(); } @@ -786,9 +786,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txnIds.size())); - for (long _iter672 : struct.txnIds) + for (long _iter680 : struct.txnIds) { - oprot.writeI64(_iter672); + oprot.writeI64(_iter680); } oprot.writeListEnd(); } @@ -807,9 +807,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(SRC_TXN_TO_WRITE_ID_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.srcTxnToWriteIdList.size())); - for (TxnToWriteId _iter673 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter681 : struct.srcTxnToWriteIdList) { - _iter673.write(oprot); + _iter681.write(oprot); } oprot.writeListEnd(); } @@ -849,9 +849,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetTxnIds()) { { oprot.writeI32(struct.txnIds.size()); - for (long _iter674 : struct.txnIds) + for (long _iter682 : struct.txnIds) { - oprot.writeI64(_iter674); + oprot.writeI64(_iter682); } } } @@ -861,9 +861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { { oprot.writeI32(struct.srcTxnToWriteIdList.size()); - for (TxnToWriteId _iter675 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter683 : struct.srcTxnToWriteIdList) { - _iter675.write(oprot); + _iter683.write(oprot); } } } @@ -879,13 +879,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list676 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txnIds = new ArrayList(_list676.size); - long _elem677; - for (int _i678 = 0; _i678 < _list676.size; ++_i678) + org.apache.thrift.protocol.TList _list684 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list684.size); + long _elem685; + for (int _i686 = 0; _i686 < _list684.size; ++_i686) { - _elem677 = iprot.readI64(); - struct.txnIds.add(_elem677); + _elem685 = iprot.readI64(); + struct.txnIds.add(_elem685); } } struct.setTxnIdsIsSet(true); @@ -896,14 +896,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.srcTxnToWriteIdList = new ArrayList(_list679.size); - TxnToWriteId _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.srcTxnToWriteIdList = new ArrayList(_list687.size); + TxnToWriteId _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem680 = new TxnToWriteId(); - _elem680.read(iprot); - struct.srcTxnToWriteIdList.add(_elem680); + _elem688 = new TxnToWriteId(); + _elem688.read(iprot); + struct.srcTxnToWriteIdList.add(_elem688); } } struct.setSrcTxnToWriteIdListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java index dd73a6986b..bb04c0b974 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 1: // TXN_TO_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list682.size); - TxnToWriteId _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list690.size); + TxnToWriteId _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem683 = new TxnToWriteId(); - _elem683.read(iprot); - struct.txnToWriteIds.add(_elem683); + _elem691 = new TxnToWriteId(); + _elem691.read(iprot); + struct.txnToWriteIds.add(_elem691); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_TO_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.txnToWriteIds.size())); - for (TxnToWriteId _iter685 : struct.txnToWriteIds) + for (TxnToWriteId _iter693 : struct.txnToWriteIds) { - _iter685.write(oprot); + _iter693.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txnToWriteIds.size()); - for (TxnToWriteId _iter686 : struct.txnToWriteIds) + for (TxnToWriteId _iter694 : struct.txnToWriteIds) { - _iter686.write(oprot); + _iter694.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.txnToWriteIds = new ArrayList(_list687.size); - TxnToWriteId _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list695.size); + TxnToWriteId _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem688 = new TxnToWriteId(); - _elem688.read(iprot); - struct.txnToWriteIds.add(_elem688); + _elem696 = new TxnToWriteId(); + _elem696.read(iprot); + struct.txnToWriteIds.add(_elem696); } } struct.setTxnToWriteIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java index 70b6e92d36..eeeae54dd2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterPartitionsRequest.java @@ -877,14 +877,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AlterPartitionsRequ case 4: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list984.size); - Partition _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list1024.size); + Partition _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem985 = new Partition(); - _elem985.read(iprot); - struct.partitions.add(_elem985); + _elem1025 = new Partition(); + _elem1025.read(iprot); + struct.partitions.add(_elem1025); } iprot.readListEnd(); } @@ -952,9 +952,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AlterPartitionsReq oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter987 : struct.partitions) + for (Partition _iter1027 : struct.partitions) { - _iter987.write(oprot); + _iter1027.write(oprot); } oprot.writeListEnd(); } @@ -1000,9 +1000,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partitions.size()); - for (Partition _iter988 : struct.partitions) + for (Partition _iter1028 : struct.partitions) { - _iter988.write(oprot); + _iter1028.write(oprot); } } BitSet optionals = new BitSet(); @@ -1041,14 +1041,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list989.size); - Partition _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) + org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list1029.size); + Partition _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem990 = new Partition(); - _elem990.read(iprot); - struct.partitions.add(_elem990); + _elem1030 = new Partition(); + _elem1030.read(iprot); + struct.partitions.add(_elem1030); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 1447bb489c..ca7628866a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ standalone-metastore/metastore-common/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 _list864 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list864.size); - long _elem865; - for (int _i866 = 0; _i866 < _list864.size; ++_i866) + org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list872.size); + long _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem865 = iprot.readI64(); - struct.fileIds.add(_elem865); + _elem873 = iprot.readI64(); + struct.fileIds.add(_elem873); } 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 _iter867 : struct.fileIds) + for (long _iter875 : struct.fileIds) { - oprot.writeI64(_iter867); + oprot.writeI64(_iter875); } 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 _iter868 : struct.fileIds) + for (long _iter876 : struct.fileIds) { - oprot.writeI64(_iter868); + oprot.writeI64(_iter876); } } } @@ -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 _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list869.size); - long _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list877.size); + long _elem878; + for (int _i879 = 0; _i879 < _list877.size; ++_i879) { - _elem870 = iprot.readI64(); - struct.fileIds.add(_elem870); + _elem878 = iprot.readI64(); + struct.fileIds.add(_elem878); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index 89c12d90cd..c3cb11e14c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ standalone-metastore/metastore-common/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 _list880 = iprot.readListBegin(); - struct.values = new ArrayList(_list880.size); - ClientCapability _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.values = new ArrayList(_list888.size); + ClientCapability _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) { - _elem881 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem881); + _elem889 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem889); } 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 _iter883 : struct.values) + for (ClientCapability _iter891 : struct.values) { - oprot.writeI32(_iter883.getValue()); + oprot.writeI32(_iter891.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 _iter884 : struct.values) + for (ClientCapability _iter892 : struct.values) { - oprot.writeI32(_iter884.getValue()); + oprot.writeI32(_iter892.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 _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list885.size); - ClientCapability _elem886; - for (int _i887 = 0; _i887 < _list885.size; ++_i887) + org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list893.size); + ClientCapability _elem894; + for (int _i895 = 0; _i895 < _list893.size; ++_i895) { - _elem886 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem886); + _elem894 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem894); } } struct.setValuesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java index 71a3001f7f..524ff6dd92 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java @@ -698,14 +698,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CommitTxnRequest st case 3: // WRITE_EVENT_INFOS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); - struct.writeEventInfos = new ArrayList(_list618.size); - WriteEventInfo _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.writeEventInfos = new ArrayList(_list626.size); + WriteEventInfo _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem619 = new WriteEventInfo(); - _elem619.read(iprot); - struct.writeEventInfos.add(_elem619); + _elem627 = new WriteEventInfo(); + _elem627.read(iprot); + struct.writeEventInfos.add(_elem627); } iprot.readListEnd(); } @@ -760,9 +760,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CommitTxnRequest s oprot.writeFieldBegin(WRITE_EVENT_INFOS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.writeEventInfos.size())); - for (WriteEventInfo _iter621 : struct.writeEventInfos) + for (WriteEventInfo _iter629 : struct.writeEventInfos) { - _iter621.write(oprot); + _iter629.write(oprot); } oprot.writeListEnd(); } @@ -821,9 +821,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest st if (struct.isSetWriteEventInfos()) { { oprot.writeI32(struct.writeEventInfos.size()); - for (WriteEventInfo _iter622 : struct.writeEventInfos) + for (WriteEventInfo _iter630 : struct.writeEventInfos) { - _iter622.write(oprot); + _iter630.write(oprot); } } } @@ -847,14 +847,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest str } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.writeEventInfos = new ArrayList(_list623.size); - WriteEventInfo _elem624; - for (int _i625 = 0; _i625 < _list623.size; ++_i625) + org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.writeEventInfos = new ArrayList(_list631.size); + WriteEventInfo _elem632; + for (int _i633 = 0; _i633 < _list631.size; ++_i633) { - _elem624 = new WriteEventInfo(); - _elem624.read(iprot); - struct.writeEventInfos.add(_elem624); + _elem632 = new WriteEventInfo(); + _elem632.read(iprot); + struct.writeEventInfos.add(_elem632); } } struct.setWriteEventInfosIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 214d65e4e5..7d73a1ea7a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ standalone-metastore/metastore-common/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 _map722 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map722.size); - String _key723; - String _val724; - for (int _i725 = 0; _i725 < _map722.size; ++_i725) + org.apache.thrift.protocol.TMap _map730 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map730.size); + String _key731; + String _val732; + for (int _i733 = 0; _i733 < _map730.size; ++_i733) { - _key723 = iprot.readString(); - _val724 = iprot.readString(); - struct.properties.put(_key723, _val724); + _key731 = iprot.readString(); + _val732 = iprot.readString(); + struct.properties.put(_key731, _val732); } 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 _iter726 : struct.properties.entrySet()) + for (Map.Entry _iter734 : struct.properties.entrySet()) { - oprot.writeString(_iter726.getKey()); - oprot.writeString(_iter726.getValue()); + oprot.writeString(_iter734.getKey()); + oprot.writeString(_iter734.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 _iter727 : struct.properties.entrySet()) + for (Map.Entry _iter735 : struct.properties.entrySet()) { - oprot.writeString(_iter727.getKey()); - oprot.writeString(_iter727.getValue()); + oprot.writeString(_iter735.getKey()); + oprot.writeString(_iter735.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 _map728 = 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*_map728.size); - String _key729; - String _val730; - for (int _i731 = 0; _i731 < _map728.size; ++_i731) + org.apache.thrift.protocol.TMap _map736 = 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*_map736.size); + String _key737; + String _val738; + for (int _i739 = 0; _i739 < _map736.size; ++_i739) { - _key729 = iprot.readString(); - _val730 = iprot.readString(); - struct.properties.put(_key729, _val730); + _key737 = iprot.readString(); + _val738 = iprot.readString(); + struct.properties.put(_key737, _val738); } } struct.setPropertiesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java index 2baea57a5c..a4fe79f5d2 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java @@ -792,13 +792,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreationMetadata st case 4: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set748 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set748.size); - String _elem749; - for (int _i750 = 0; _i750 < _set748.size; ++_i750) + org.apache.thrift.protocol.TSet _set756 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set756.size); + String _elem757; + for (int _i758 = 0; _i758 < _set756.size; ++_i758) { - _elem749 = iprot.readString(); - struct.tablesUsed.add(_elem749); + _elem757 = iprot.readString(); + struct.tablesUsed.add(_elem757); } iprot.readSetEnd(); } @@ -855,9 +855,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreationMetadata s oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter751 : struct.tablesUsed) + for (String _iter759 : struct.tablesUsed) { - oprot.writeString(_iter751); + oprot.writeString(_iter759); } oprot.writeSetEnd(); } @@ -897,9 +897,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CreationMetadata st oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter752 : struct.tablesUsed) + for (String _iter760 : struct.tablesUsed) { - oprot.writeString(_iter752); + oprot.writeString(_iter760); } } BitSet optionals = new BitSet(); @@ -928,13 +928,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CreationMetadata str struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TSet _set753 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set753.size); - String _elem754; - for (int _i755 = 0; _i755 < _set753.size; ++_i755) + org.apache.thrift.protocol.TSet _set761 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set761.size); + String _elem762; + for (int _i763 = 0; _i763 < _set761.size; ++_i763) { - _elem754 = iprot.readString(); - struct.tablesUsed.add(_elem754); + _elem762 = iprot.readString(); + struct.tablesUsed.add(_elem762); } } struct.setTablesUsedIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java new file mode 100644 index 0000000000..f75a180800 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ExtendedTableInfo.java @@ -0,0 +1,651 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class ExtendedTableInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExtendedTableInfo"); + + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ACCESS_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("accessType", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ExtendedTableInfoStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ExtendedTableInfoTupleSchemeFactory()); + } + + private String tblName; // required + private int accessType; // optional + private List processorCapabilities; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + TBL_NAME((short)1, "tblName"), + ACCESS_TYPE((short)2, "accessType"), + PROCESSOR_CAPABILITIES((short)3, "processorCapabilities"); + + 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: // TBL_NAME + return TBL_NAME; + case 2: // ACCESS_TYPE + return ACCESS_TYPE; + case 3: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + 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 __ACCESSTYPE_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.ACCESS_TYPE,_Fields.PROCESSOR_CAPABILITIES}; + 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.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ACCESS_TYPE, new org.apache.thrift.meta_data.FieldMetaData("accessType", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExtendedTableInfo.class, metaDataMap); + } + + public ExtendedTableInfo() { + } + + public ExtendedTableInfo( + String tblName) + { + this(); + this.tblName = tblName; + } + + /** + * Performs a deep copy on other. + */ + public ExtendedTableInfo(ExtendedTableInfo other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + this.accessType = other.accessType; + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + } + + public ExtendedTableInfo deepCopy() { + return new ExtendedTableInfo(this); + } + + @Override + public void clear() { + this.tblName = null; + setAccessTypeIsSet(false); + this.accessType = 0; + this.processorCapabilities = null; + } + + public String getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public int getAccessType() { + return this.accessType; + } + + public void setAccessType(int accessType) { + this.accessType = accessType; + setAccessTypeIsSet(true); + } + + public void unsetAccessType() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID); + } + + /** Returns true if field accessType is set (has been assigned a value) and false otherwise */ + public boolean isSetAccessType() { + return EncodingUtils.testBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID); + } + + public void setAccessTypeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID, value); + } + + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case ACCESS_TYPE: + if (value == null) { + unsetAccessType(); + } else { + setAccessType((Integer)value); + } + break; + + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TBL_NAME: + return getTblName(); + + case ACCESS_TYPE: + return getAccessType(); + + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + } + 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 TBL_NAME: + return isSetTblName(); + case ACCESS_TYPE: + return isSetAccessType(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ExtendedTableInfo) + return this.equals((ExtendedTableInfo)that); + return false; + } + + public boolean equals(ExtendedTableInfo that) { + if (that == null) + return false; + + boolean this_present_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_accessType = true && this.isSetAccessType(); + boolean that_present_accessType = true && that.isSetAccessType(); + if (this_present_accessType || that_present_accessType) { + if (!(this_present_accessType && that_present_accessType)) + return false; + if (this.accessType != that.accessType) + return false; + } + + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_accessType = true && (isSetAccessType()); + list.add(present_accessType); + if (present_accessType) + list.add(accessType); + + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + return list.hashCode(); + } + + @Override + public int compareTo(ExtendedTableInfo other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAccessType()).compareTo(other.isSetAccessType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAccessType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.accessType, other.accessType); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + 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("ExtendedTableInfo("); + boolean first = true; + + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (isSetAccessType()) { + if (!first) sb.append(", "); + sb.append("accessType:"); + sb.append(this.accessType); + first = false; + } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // 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 ExtendedTableInfoStandardSchemeFactory implements SchemeFactory { + public ExtendedTableInfoStandardScheme getScheme() { + return new ExtendedTableInfoStandardScheme(); + } + } + + private static class ExtendedTableInfoStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ExtendedTableInfo 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: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ACCESS_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.accessType = iprot.readI32(); + struct.setAccessTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list936.size); + String _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) + { + _elem937 = iprot.readString(); + struct.processorCapabilities.add(_elem937); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(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, ExtendedTableInfo struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.isSetAccessType()) { + oprot.writeFieldBegin(ACCESS_TYPE_FIELD_DESC); + oprot.writeI32(struct.accessType); + oprot.writeFieldEnd(); + } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter939 : struct.processorCapabilities) + { + oprot.writeString(_iter939); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ExtendedTableInfoTupleSchemeFactory implements SchemeFactory { + public ExtendedTableInfoTupleScheme getScheme() { + return new ExtendedTableInfoTupleScheme(); + } + } + + private static class ExtendedTableInfoTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ExtendedTableInfo struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.tblName); + BitSet optionals = new BitSet(); + if (struct.isSetAccessType()) { + optionals.set(0); + } + if (struct.isSetProcessorCapabilities()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetAccessType()) { + oprot.writeI32(struct.accessType); + } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter940 : struct.processorCapabilities) + { + oprot.writeString(_iter940); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ExtendedTableInfo struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.accessType = iprot.readI32(); + struct.setAccessTypeIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list941.size); + String _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) + { + _elem942 = iprot.readString(); + struct.processorCapabilities.add(_elem942); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java index f2fffc6cc3..407398663b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FindSchemasByColsRe case 1: // SCHEMA_VERSIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list976.size); - SchemaVersionDescriptor _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list1016.size); + SchemaVersionDescriptor _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem977 = new SchemaVersionDescriptor(); - _elem977.read(iprot); - struct.schemaVersions.add(_elem977); + _elem1017 = new SchemaVersionDescriptor(); + _elem1017.read(iprot); + struct.schemaVersions.add(_elem1017); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FindSchemasByColsR oprot.writeFieldBegin(SCHEMA_VERSIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.schemaVersions.size())); - for (SchemaVersionDescriptor _iter979 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1019 : struct.schemaVersions) { - _iter979.write(oprot); + _iter1019.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRe if (struct.isSetSchemaVersions()) { { oprot.writeI32(struct.schemaVersions.size()); - for (SchemaVersionDescriptor _iter980 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter1020 : struct.schemaVersions) { - _iter980.write(oprot); + _iter1020.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRes BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list981.size); - SchemaVersionDescriptor _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list1021.size); + SchemaVersionDescriptor _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem982 = new SchemaVersionDescriptor(); - _elem982.read(iprot); - struct.schemaVersions.add(_elem982); + _elem1022 = new SchemaVersionDescriptor(); + _elem1022.read(iprot); + struct.schemaVersions.add(_elem1022); } } struct.setSchemaVersionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 8eb03ad0d7..dd3097d35d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -794,13 +794,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 _list796 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list796.size); - String _elem797; - for (int _i798 = 0; _i798 < _list796.size; ++_i798) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list804.size); + String _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem797 = iprot.readString(); - struct.partitionVals.add(_elem797); + _elem805 = iprot.readString(); + struct.partitionVals.add(_elem805); } iprot.readListEnd(); } @@ -857,9 +857,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 _iter799 : struct.partitionVals) + for (String _iter807 : struct.partitionVals) { - oprot.writeString(_iter799); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -915,9 +915,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter800 : struct.partitionVals) + for (String _iter808 : struct.partitionVals) { - oprot.writeString(_iter800); + oprot.writeString(_iter808); } } } @@ -945,13 +945,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list801.size); - String _elem802; - for (int _i803 = 0; _i803 < _list801.size; ++_i803) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list809.size); + String _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem802 = iprot.readString(); - struct.partitionVals.add(_elem802); + _elem810 = iprot.readString(); + struct.partitionVals.add(_elem810); } } struct.setPartitionValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 6d4aaf1ade..56779b8082 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -1079,14 +1079,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 _list570 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list570.size); - ResourceUri _elem571; - for (int _i572 = 0; _i572 < _list570.size; ++_i572) + org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list578.size); + ResourceUri _elem579; + for (int _i580 = 0; _i580 < _list578.size; ++_i580) { - _elem571 = new ResourceUri(); - _elem571.read(iprot); - struct.resourceUris.add(_elem571); + _elem579 = new ResourceUri(); + _elem579.read(iprot); + struct.resourceUris.add(_elem579); } iprot.readListEnd(); } @@ -1153,9 +1153,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 _iter573 : struct.resourceUris) + for (ResourceUri _iter581 : struct.resourceUris) { - _iter573.write(oprot); + _iter581.write(oprot); } oprot.writeListEnd(); } @@ -1238,9 +1238,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter574 : struct.resourceUris) + for (ResourceUri _iter582 : struct.resourceUris) { - _iter574.write(oprot); + _iter582.write(oprot); } } } @@ -1283,14 +1283,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list575.size); - ResourceUri _elem576; - for (int _i577 = 0; _i577 < _list575.size; ++_i577) + org.apache.thrift.protocol.TList _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list583.size); + ResourceUri _elem584; + for (int _i585 = 0; _i585 < _list583.size; ++_i585) { - _elem576 = new ResourceUri(); - _elem576.read(iprot); - struct.resourceUris.add(_elem576); + _elem584 = new ResourceUri(); + _elem584.read(iprot); + struct.resourceUris.add(_elem584); } } struct.setResourceUrisIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 80ade2246d..d35f5f2c20 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ standalone-metastore/metastore-common/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 _list872 = iprot.readListBegin(); - struct.functions = new ArrayList(_list872.size); - Function _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list880 = iprot.readListBegin(); + struct.functions = new ArrayList(_list880.size); + Function _elem881; + for (int _i882 = 0; _i882 < _list880.size; ++_i882) { - _elem873 = new Function(); - _elem873.read(iprot); - struct.functions.add(_elem873); + _elem881 = new Function(); + _elem881.read(iprot); + struct.functions.add(_elem881); } 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 _iter875 : struct.functions) + for (Function _iter883 : struct.functions) { - _iter875.write(oprot); + _iter883.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 _iter876 : struct.functions) + for (Function _iter884 : struct.functions) { - _iter876.write(oprot); + _iter884.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 _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list877.size); - Function _elem878; - for (int _i879 = 0; _i879 < _list877.size; ++_i879) + org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list885.size); + Function _elem886; + for (int _i887 = 0; _i887 < _list885.size; ++_i887) { - _elem878 = new Function(); - _elem878.read(iprot); - struct.functions.add(_elem878); + _elem886 = new Function(); + _elem886.read(iprot); + struct.functions.add(_elem886); } } struct.setFunctionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 8392709d45..1fa7a22371 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ standalone-metastore/metastore-common/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 _list822 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list822.size); - long _elem823; - for (int _i824 = 0; _i824 < _list822.size; ++_i824) + org.apache.thrift.protocol.TList _list830 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list830.size); + long _elem831; + for (int _i832 = 0; _i832 < _list830.size; ++_i832) { - _elem823 = iprot.readI64(); - struct.fileIds.add(_elem823); + _elem831 = iprot.readI64(); + struct.fileIds.add(_elem831); } 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 _iter825 : struct.fileIds) + for (long _iter833 : struct.fileIds) { - oprot.writeI64(_iter825); + oprot.writeI64(_iter833); } 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 _iter826 : struct.fileIds) + for (long _iter834 : struct.fileIds) { - oprot.writeI64(_iter826); + oprot.writeI64(_iter834); } } 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 _list827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list827.size); - long _elem828; - for (int _i829 = 0; _i829 < _list827.size; ++_i829) + org.apache.thrift.protocol.TList _list835 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list835.size); + long _elem836; + for (int _i837 = 0; _i837 < _list835.size; ++_i837) { - _elem828 = iprot.readI64(); - struct.fileIds.add(_elem828); + _elem836 = iprot.readI64(); + struct.fileIds.add(_elem836); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index bf2c38419b..a316b47d6f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ standalone-metastore/metastore-common/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 _map812 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map812.size); - long _key813; - MetadataPpdResult _val814; - for (int _i815 = 0; _i815 < _map812.size; ++_i815) + org.apache.thrift.protocol.TMap _map820 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map820.size); + long _key821; + MetadataPpdResult _val822; + for (int _i823 = 0; _i823 < _map820.size; ++_i823) { - _key813 = iprot.readI64(); - _val814 = new MetadataPpdResult(); - _val814.read(iprot); - struct.metadata.put(_key813, _val814); + _key821 = iprot.readI64(); + _val822 = new MetadataPpdResult(); + _val822.read(iprot); + struct.metadata.put(_key821, _val822); } 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 _iter816 : struct.metadata.entrySet()) + for (Map.Entry _iter824 : struct.metadata.entrySet()) { - oprot.writeI64(_iter816.getKey()); - _iter816.getValue().write(oprot); + oprot.writeI64(_iter824.getKey()); + _iter824.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 _iter817 : struct.metadata.entrySet()) + for (Map.Entry _iter825 : struct.metadata.entrySet()) { - oprot.writeI64(_iter817.getKey()); - _iter817.getValue().write(oprot); + oprot.writeI64(_iter825.getKey()); + _iter825.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 _map818 = 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*_map818.size); - long _key819; - MetadataPpdResult _val820; - for (int _i821 = 0; _i821 < _map818.size; ++_i821) + org.apache.thrift.protocol.TMap _map826 = 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*_map826.size); + long _key827; + MetadataPpdResult _val828; + for (int _i829 = 0; _i829 < _map826.size; ++_i829) { - _key819 = iprot.readI64(); - _val820 = new MetadataPpdResult(); - _val820.read(iprot); - struct.metadata.put(_key819, _val820); + _key827 = iprot.readI64(); + _val828 = new MetadataPpdResult(); + _val828.read(iprot); + struct.metadata.put(_key827, _val828); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 2719d51f8c..571727807d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ standalone-metastore/metastore-common/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 _list840 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list840.size); - long _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list848.size); + long _elem849; + for (int _i850 = 0; _i850 < _list848.size; ++_i850) { - _elem841 = iprot.readI64(); - struct.fileIds.add(_elem841); + _elem849 = iprot.readI64(); + struct.fileIds.add(_elem849); } 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 _iter843 : struct.fileIds) + for (long _iter851 : struct.fileIds) { - oprot.writeI64(_iter843); + oprot.writeI64(_iter851); } 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 _iter844 : struct.fileIds) + for (long _iter852 : struct.fileIds) { - oprot.writeI64(_iter844); + oprot.writeI64(_iter852); } } } @@ -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 _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list845.size); - long _elem846; - for (int _i847 = 0; _i847 < _list845.size; ++_i847) + org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list853.size); + long _elem854; + for (int _i855 = 0; _i855 < _list853.size; ++_i855) { - _elem846 = iprot.readI64(); - struct.fileIds.add(_elem846); + _elem854 = iprot.readI64(); + struct.fileIds.add(_elem854); } } struct.setFileIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index 798b536ab8..0820509d1b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ standalone-metastore/metastore-common/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 _map830 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map830.size); - long _key831; - ByteBuffer _val832; - for (int _i833 = 0; _i833 < _map830.size; ++_i833) + org.apache.thrift.protocol.TMap _map838 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map838.size); + long _key839; + ByteBuffer _val840; + for (int _i841 = 0; _i841 < _map838.size; ++_i841) { - _key831 = iprot.readI64(); - _val832 = iprot.readBinary(); - struct.metadata.put(_key831, _val832); + _key839 = iprot.readI64(); + _val840 = iprot.readBinary(); + struct.metadata.put(_key839, _val840); } 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 _iter834 : struct.metadata.entrySet()) + for (Map.Entry _iter842 : struct.metadata.entrySet()) { - oprot.writeI64(_iter834.getKey()); - oprot.writeBinary(_iter834.getValue()); + oprot.writeI64(_iter842.getKey()); + oprot.writeBinary(_iter842.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 _iter835 : struct.metadata.entrySet()) + for (Map.Entry _iter843 : struct.metadata.entrySet()) { - oprot.writeI64(_iter835.getKey()); - oprot.writeBinary(_iter835.getValue()); + oprot.writeI64(_iter843.getKey()); + oprot.writeBinary(_iter843.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 _map836 = 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*_map836.size); - long _key837; - ByteBuffer _val838; - for (int _i839 = 0; _i839 < _map836.size; ++_i839) + org.apache.thrift.protocol.TMap _map844 = 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*_map844.size); + long _key845; + ByteBuffer _val846; + for (int _i847 = 0; _i847 < _map844.size; ++_i847) { - _key837 = iprot.readI64(); - _val838 = iprot.readBinary(); - struct.metadata.put(_key837, _val838); + _key845 = iprot.readI64(); + _val846 = iprot.readBinary(); + struct.metadata.put(_key845, _val846); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index 68f7112fd7..9f48dbf760 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ standalone-metastore/metastore-common/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 _list578 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list578.size); - TxnInfo _elem579; - for (int _i580 = 0; _i580 < _list578.size; ++_i580) + org.apache.thrift.protocol.TList _list586 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list586.size); + TxnInfo _elem587; + for (int _i588 = 0; _i588 < _list586.size; ++_i588) { - _elem579 = new TxnInfo(); - _elem579.read(iprot); - struct.open_txns.add(_elem579); + _elem587 = new TxnInfo(); + _elem587.read(iprot); + struct.open_txns.add(_elem587); } 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 _iter581 : struct.open_txns) + for (TxnInfo _iter589 : struct.open_txns) { - _iter581.write(oprot); + _iter589.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 _iter582 : struct.open_txns) + for (TxnInfo _iter590 : struct.open_txns) { - _iter582.write(oprot); + _iter590.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 _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list583.size); - TxnInfo _elem584; - for (int _i585 = 0; _i585 < _list583.size; ++_i585) + org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list591.size); + TxnInfo _elem592; + for (int _i593 = 0; _i593 < _list591.size; ++_i593) { - _elem584 = new TxnInfo(); - _elem584.read(iprot); - struct.open_txns.add(_elem584); + _elem592 = new TxnInfo(); + _elem592.read(iprot); + struct.open_txns.add(_elem592); } } struct.setOpen_txnsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index a4284a0eef..a2c19c236f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ standalone-metastore/metastore-common/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 _list586 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list586.size); - long _elem587; - for (int _i588 = 0; _i588 < _list586.size; ++_i588) + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list594.size); + long _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) { - _elem587 = iprot.readI64(); - struct.open_txns.add(_elem587); + _elem595 = iprot.readI64(); + struct.open_txns.add(_elem595); } 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 _iter589 : struct.open_txns) + for (long _iter597 : struct.open_txns) { - oprot.writeI64(_iter589); + oprot.writeI64(_iter597); } 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 _iter590 : struct.open_txns) + for (long _iter598 : struct.open_txns) { - oprot.writeI64(_iter590); + oprot.writeI64(_iter598); } } 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 _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new ArrayList(_list591.size); - long _elem592; - for (int _i593 = 0; _i593 < _list591.size; ++_i593) + org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list599.size); + long _elem600; + for (int _i601 = 0; _i601 < _list599.size; ++_i601) { - _elem592 = iprot.readI64(); - struct.open_txns.add(_elem592); + _elem600 = iprot.readI64(); + struct.open_txns.add(_elem600); } } struct.setOpen_txnsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java index 91199e53b5..b4a551041f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesRequest.java @@ -42,6 +42,8 @@ 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 GET_COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("get_col_stats", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +55,17 @@ private String tbl_name; // required private List names; // optional private boolean get_col_stats; // optional + private List processorCapabilities; // optional + private String processorIdentifier; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), NAMES((short)3, "names"), - GET_COL_STATS((short)4, "get_col_stats"); + GET_COL_STATS((short)4, "get_col_stats"), + PROCESSOR_CAPABILITIES((short)5, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)6, "processorIdentifier"); private static final Map byName = new HashMap(); @@ -82,6 +88,10 @@ public static _Fields findByThriftId(int fieldId) { return NAMES; case 4: // GET_COL_STATS return GET_COL_STATS; + case 5: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 6: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; default: return null; } @@ -124,7 +134,7 @@ public String getFieldName() { // isset id assignments private static final int __GET_COL_STATS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.NAMES,_Fields.GET_COL_STATS}; + private static final _Fields optionals[] = {_Fields.NAMES,_Fields.GET_COL_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; 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); @@ -137,6 +147,11 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.GET_COL_STATS, new org.apache.thrift.meta_data.FieldMetaData("get_col_stats", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsByNamesRequest.class, metaDataMap); } @@ -169,6 +184,13 @@ public GetPartitionsByNamesRequest(GetPartitionsByNamesRequest other) { this.names = __this__names; } this.get_col_stats = other.get_col_stats; + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } } public GetPartitionsByNamesRequest deepCopy() { @@ -182,6 +204,8 @@ public void clear() { this.names = null; setGet_col_statsIsSet(false); this.get_col_stats = false; + this.processorCapabilities = null; + this.processorIdentifier = null; } public String getDb_name() { @@ -290,6 +314,67 @@ public void setGet_col_statsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GET_COL_STATS_ISSET_ID, value); } + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -324,6 +409,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + } } @@ -341,6 +442,12 @@ public Object getFieldValue(_Fields field) { case GET_COL_STATS: return isGet_col_stats(); + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + } throw new IllegalStateException(); } @@ -360,6 +467,10 @@ public boolean isSet(_Fields field) { return isSetNames(); case GET_COL_STATS: return isSetGet_col_stats(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); } throw new IllegalStateException(); } @@ -413,6 +524,24 @@ public boolean equals(GetPartitionsByNamesRequest that) { return false; } + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + return true; } @@ -440,6 +569,16 @@ public int hashCode() { if (present_get_col_stats) list.add(get_col_stats); + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + return list.hashCode(); } @@ -491,6 +630,26 @@ public int compareTo(GetPartitionsByNamesRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -542,6 +701,26 @@ public String toString() { sb.append(this.get_col_stats); first = false; } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -637,6 +816,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list557 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list557.size); + String _elem558; + for (int _i559 = 0; _i559 < _list557.size; ++_i559) + { + _elem558 = iprot.readString(); + struct.processorCapabilities.add(_elem558); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -665,9 +870,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter557 : struct.names) + for (String _iter560 : struct.names) { - oprot.writeString(_iter557); + oprot.writeString(_iter560); } oprot.writeListEnd(); } @@ -679,6 +884,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeBool(struct.get_col_stats); oprot.writeFieldEnd(); } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter561 : struct.processorCapabilities) + { + oprot.writeString(_iter561); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -705,19 +931,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName if (struct.isSetGet_col_stats()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetProcessorCapabilities()) { + optionals.set(2); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter558 : struct.names) + for (String _iter562 : struct.names) { - oprot.writeString(_iter558); + oprot.writeString(_iter562); } } } if (struct.isSetGet_col_stats()) { oprot.writeBool(struct.get_col_stats); } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter563 : struct.processorCapabilities) + { + oprot.writeString(_iter563); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } } @Override @@ -727,16 +971,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames struct.setDb_nameIsSet(true); struct.tbl_name = iprot.readString(); struct.setTbl_nameIsSet(true); - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list559.size); - String _elem560; - for (int _i561 = 0; _i561 < _list559.size; ++_i561) + org.apache.thrift.protocol.TList _list564 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list564.size); + String _elem565; + for (int _i566 = 0; _i566 < _list564.size; ++_i566) { - _elem560 = iprot.readString(); - struct.names.add(_elem560); + _elem565 = iprot.readString(); + struct.names.add(_elem565); } } struct.setNamesIsSet(true); @@ -745,6 +989,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNames struct.get_col_stats = iprot.readBool(); struct.setGet_col_statsIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list567.size); + String _elem568; + for (int _i569 = 0; _i569 < _list567.size; ++_i569) + { + _elem568 = iprot.readString(); + struct.processorCapabilities.add(_elem568); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(3)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java index d32e4c22a5..afc29eef2a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsByNamesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsByName case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list562 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list562.size); - Partition _elem563; - for (int _i564 = 0; _i564 < _list562.size; ++_i564) + org.apache.thrift.protocol.TList _list570 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list570.size); + Partition _elem571; + for (int _i572 = 0; _i572 < _list570.size; ++_i572) { - _elem563 = new Partition(); - _elem563.read(iprot); - struct.partitions.add(_elem563); + _elem571 = new Partition(); + _elem571.read(iprot); + struct.partitions.add(_elem571); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsByNam oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter565 : struct.partitions) + for (Partition _iter573 : struct.partitions) { - _iter565.write(oprot); + _iter573.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter566 : struct.partitions) + for (Partition _iter574 : struct.partitions) { - _iter566.write(oprot); + _iter574.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByName public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNamesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list567.size); - Partition _elem568; - for (int _i569 = 0; _i569 < _list567.size; ++_i569) + org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list575.size); + Partition _elem576; + for (int _i577 = 0; _i577 < _list575.size; ++_i577) { - _elem568 = new Partition(); - _elem568.read(iprot); - struct.partitions.add(_elem568); + _elem576 = new Partition(); + _elem576.read(iprot); + struct.partitions.add(_elem576); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java index 27c81f7b11..2f2c3c83c5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsFilterSpec.java @@ -444,13 +444,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsFilter case 8: // FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); - struct.filters = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); + struct.filters = new ArrayList(_list1048.size); + String _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem1009 = iprot.readString(); - struct.filters.add(_elem1009); + _elem1049 = iprot.readString(); + struct.filters.add(_elem1049); } iprot.readListEnd(); } @@ -484,9 +484,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsFilte oprot.writeFieldBegin(FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filters.size())); - for (String _iter1011 : struct.filters) + for (String _iter1051 : struct.filters) { - oprot.writeString(_iter1011); + oprot.writeString(_iter1051); } oprot.writeListEnd(); } @@ -524,9 +524,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilter if (struct.isSetFilters()) { { oprot.writeI32(struct.filters.size()); - for (String _iter1012 : struct.filters) + for (String _iter1052 : struct.filters) { - oprot.writeString(_iter1012); + oprot.writeString(_iter1052); } } } @@ -542,13 +542,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsFilterS } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new ArrayList(_list1013.size); - String _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filters = new ArrayList(_list1053.size); + String _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem1014 = iprot.readString(); - struct.filters.add(_elem1014); + _elem1054 = iprot.readString(); + struct.filters.add(_elem1054); } } struct.setFiltersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java index 30bae47815..8483633de3 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsProjectionSpec.java @@ -509,13 +509,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsProjec case 1: // FIELD_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); - struct.fieldList = new ArrayList(_list1000.size); - String _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.fieldList = new ArrayList(_list1040.size); + String _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1001 = iprot.readString(); - struct.fieldList.add(_elem1001); + _elem1041 = iprot.readString(); + struct.fieldList.add(_elem1041); } iprot.readListEnd(); } @@ -557,9 +557,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsProje oprot.writeFieldBegin(FIELD_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fieldList.size())); - for (String _iter1003 : struct.fieldList) + for (String _iter1043 : struct.fieldList) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1043); } oprot.writeListEnd(); } @@ -606,9 +606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProjec if (struct.isSetFieldList()) { { oprot.writeI32(struct.fieldList.size()); - for (String _iter1004 : struct.fieldList) + for (String _iter1044 : struct.fieldList) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1044); } } } @@ -626,13 +626,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsProject BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fieldList = new ArrayList(_list1005.size); - String _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fieldList = new ArrayList(_list1045.size); + String _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem1006 = iprot.readString(); - struct.fieldList.add(_elem1006); + _elem1046 = iprot.readString(); + struct.fieldList.add(_elem1046); } } struct.setFieldListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java index 97e24f8187..256d4f54f6 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsRequest.java @@ -46,6 +46,8 @@ private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("groupNames", org.apache.thrift.protocol.TType.LIST, (short)6); private static final org.apache.thrift.protocol.TField PROJECTION_SPEC_FIELD_DESC = new org.apache.thrift.protocol.TField("projectionSpec", org.apache.thrift.protocol.TType.STRUCT, (short)7); private static final org.apache.thrift.protocol.TField FILTER_SPEC_FIELD_DESC = new org.apache.thrift.protocol.TField("filterSpec", org.apache.thrift.protocol.TType.STRUCT, (short)8); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)9); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)10); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -61,6 +63,8 @@ private List groupNames; // optional private GetPartitionsProjectionSpec projectionSpec; // required private GetPartitionsFilterSpec filterSpec; // required + private List processorCapabilities; // optional + private String processorIdentifier; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -71,7 +75,9 @@ USER((short)5, "user"), GROUP_NAMES((short)6, "groupNames"), PROJECTION_SPEC((short)7, "projectionSpec"), - FILTER_SPEC((short)8, "filterSpec"); + FILTER_SPEC((short)8, "filterSpec"), + PROCESSOR_CAPABILITIES((short)9, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)10, "processorIdentifier"); private static final Map byName = new HashMap(); @@ -102,6 +108,10 @@ public static _Fields findByThriftId(int fieldId) { return PROJECTION_SPEC; case 8: // FILTER_SPEC return FILTER_SPEC; + case 9: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 10: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; default: return null; } @@ -144,7 +154,7 @@ public String getFieldName() { // isset id assignments private static final int __WITHAUTH_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WITH_AUTH,_Fields.USER,_Fields.GROUP_NAMES}; + private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WITH_AUTH,_Fields.USER,_Fields.GROUP_NAMES,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; 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); @@ -165,6 +175,11 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsProjectionSpec.class))); tmpMap.put(_Fields.FILTER_SPEC, new org.apache.thrift.meta_data.FieldMetaData("filterSpec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPartitionsFilterSpec.class))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPartitionsRequest.class, metaDataMap); } @@ -213,6 +228,13 @@ public GetPartitionsRequest(GetPartitionsRequest other) { if (other.isSetFilterSpec()) { this.filterSpec = new GetPartitionsFilterSpec(other.filterSpec); } + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } } public GetPartitionsRequest deepCopy() { @@ -230,6 +252,8 @@ public void clear() { this.groupNames = null; this.projectionSpec = null; this.filterSpec = null; + this.processorCapabilities = null; + this.processorIdentifier = null; } public String getCatName() { @@ -430,6 +454,67 @@ public void setFilterSpecIsSet(boolean value) { } } + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case CAT_NAME: @@ -496,6 +581,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + } } @@ -525,6 +626,12 @@ public Object getFieldValue(_Fields field) { case FILTER_SPEC: return getFilterSpec(); + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + } throw new IllegalStateException(); } @@ -552,6 +659,10 @@ public boolean isSet(_Fields field) { return isSetProjectionSpec(); case FILTER_SPEC: return isSetFilterSpec(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); } throw new IllegalStateException(); } @@ -641,6 +752,24 @@ public boolean equals(GetPartitionsRequest that) { return false; } + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + return true; } @@ -688,6 +817,16 @@ public int hashCode() { if (present_filterSpec) list.add(filterSpec); + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + return list.hashCode(); } @@ -779,6 +918,26 @@ public int compareTo(GetPartitionsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -866,6 +1025,26 @@ public String toString() { sb.append(this.filterSpec); } first = false; + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -960,13 +1139,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); - struct.groupNames = new ArrayList(_list1024.size); - String _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); + struct.groupNames = new ArrayList(_list1064.size); + String _elem1065; + for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) { - _elem1025 = iprot.readString(); - struct.groupNames.add(_elem1025); + _elem1065 = iprot.readString(); + struct.groupNames.add(_elem1065); } iprot.readListEnd(); } @@ -993,6 +1172,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsReques org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 9: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1067 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list1067.size); + String _elem1068; + for (int _i1069 = 0; _i1069 < _list1067.size; ++_i1069) + { + _elem1068 = iprot.readString(); + struct.processorCapabilities.add(_elem1068); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1040,9 +1245,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.groupNames.size())); - for (String _iter1027 : struct.groupNames) + for (String _iter1070 : struct.groupNames) { - oprot.writeString(_iter1027); + oprot.writeString(_iter1070); } oprot.writeListEnd(); } @@ -1059,6 +1264,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsReque struct.filterSpec.write(oprot); oprot.writeFieldEnd(); } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter1071 : struct.processorCapabilities) + { + oprot.writeString(_iter1071); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1101,7 +1327,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetFilterSpec()) { optionals.set(7); } - oprot.writeBitSet(optionals, 8); + if (struct.isSetProcessorCapabilities()) { + optionals.set(8); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(9); + } + oprot.writeBitSet(optionals, 10); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } @@ -1120,9 +1352,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetGroupNames()) { { oprot.writeI32(struct.groupNames.size()); - for (String _iter1028 : struct.groupNames) + for (String _iter1072 : struct.groupNames) { - oprot.writeString(_iter1028); + oprot.writeString(_iter1072); } } } @@ -1132,12 +1364,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsReques if (struct.isSetFilterSpec()) { struct.filterSpec.write(oprot); } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter1073 : struct.processorCapabilities) + { + oprot.writeString(_iter1073); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(8); + BitSet incoming = iprot.readBitSet(10); if (incoming.get(0)) { struct.catName = iprot.readString(); struct.setCatNameIsSet(true); @@ -1160,13 +1404,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.groupNames = new ArrayList(_list1029.size); - String _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + org.apache.thrift.protocol.TList _list1074 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.groupNames = new ArrayList(_list1074.size); + String _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1030 = iprot.readString(); - struct.groupNames.add(_elem1030); + _elem1075 = iprot.readString(); + struct.groupNames.add(_elem1075); } } struct.setGroupNamesIsSet(true); @@ -1181,6 +1425,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRequest struct.filterSpec.read(iprot); struct.setFilterSpecIsSet(true); } + if (incoming.get(8)) { + { + org.apache.thrift.protocol.TList _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list1077.size); + String _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + { + _elem1078 = iprot.readString(); + struct.processorCapabilities.add(_elem1078); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(9)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java index b8216c8ee3..ad1987b11b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPartitionsResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPartitionsRespon case 1: // PARTITION_SPEC if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); - struct.partitionSpec = new ArrayList(_list1016.size); - PartitionSpec _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); + struct.partitionSpec = new ArrayList(_list1056.size); + PartitionSpec _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1017 = new PartitionSpec(); - _elem1017.read(iprot); - struct.partitionSpec.add(_elem1017); + _elem1057 = new PartitionSpec(); + _elem1057.read(iprot); + struct.partitionSpec.add(_elem1057); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPartitionsRespo oprot.writeFieldBegin(PARTITION_SPEC_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionSpec.size())); - for (PartitionSpec _iter1019 : struct.partitionSpec) + for (PartitionSpec _iter1059 : struct.partitionSpec) { - _iter1019.write(oprot); + _iter1059.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespon if (struct.isSetPartitionSpec()) { { oprot.writeI32(struct.partitionSpec.size()); - for (PartitionSpec _iter1020 : struct.partitionSpec) + for (PartitionSpec _iter1060 : struct.partitionSpec) { - _iter1020.write(oprot); + _iter1060.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPartitionsRespons BitSet incoming = iprot.readBitSet(1); 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.partitionSpec = new ArrayList(_list1021.size); - PartitionSpec _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionSpec = new ArrayList(_list1061.size); + PartitionSpec _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem1022 = new PartitionSpec(); - _elem1022.read(iprot); - struct.partitionSpec.add(_elem1022); + _elem1062 = new PartitionSpec(); + _elem1062.read(iprot); + struct.partitionSpec.add(_elem1062); } } struct.setPartitionSpecIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java index 3b606957a6..f751e397f5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java @@ -44,6 +44,8 @@ private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)6); private static final org.apache.thrift.protocol.TField GET_COLUMN_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("getColumnStats", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)8); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)9); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -57,6 +59,8 @@ private String catName; // optional private String validWriteIdList; // optional private boolean getColumnStats; // optional + private List processorCapabilities; // optional + private String processorIdentifier; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -65,7 +69,9 @@ CAPABILITIES((short)3, "capabilities"), CAT_NAME((short)4, "catName"), VALID_WRITE_ID_LIST((short)6, "validWriteIdList"), - GET_COLUMN_STATS((short)7, "getColumnStats"); + GET_COLUMN_STATS((short)7, "getColumnStats"), + PROCESSOR_CAPABILITIES((short)8, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)9, "processorIdentifier"); private static final Map byName = new HashMap(); @@ -92,6 +98,10 @@ public static _Fields findByThriftId(int fieldId) { return VALID_WRITE_ID_LIST; case 7: // GET_COLUMN_STATS return GET_COLUMN_STATS; + case 8: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 9: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; default: return null; } @@ -134,7 +144,7 @@ public String getFieldName() { // isset id assignments private static final int __GETCOLUMNSTATS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST,_Fields.GET_COLUMN_STATS}; + private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.VALID_WRITE_ID_LIST,_Fields.GET_COLUMN_STATS,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; 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); @@ -150,6 +160,11 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.GET_COLUMN_STATS, new org.apache.thrift.meta_data.FieldMetaData("getColumnStats", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableRequest.class, metaDataMap); } @@ -187,6 +202,13 @@ public GetTableRequest(GetTableRequest other) { this.validWriteIdList = other.validWriteIdList; } this.getColumnStats = other.getColumnStats; + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } } public GetTableRequest deepCopy() { @@ -202,6 +224,8 @@ public void clear() { this.validWriteIdList = null; setGetColumnStatsIsSet(false); this.getColumnStats = false; + this.processorCapabilities = null; + this.processorIdentifier = null; } public String getDbName() { @@ -341,6 +365,67 @@ public void setGetColumnStatsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GETCOLUMNSTATS_ISSET_ID, value); } + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -391,6 +476,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + } } @@ -414,6 +515,12 @@ public Object getFieldValue(_Fields field) { case GET_COLUMN_STATS: return isGetColumnStats(); + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + } throw new IllegalStateException(); } @@ -437,6 +544,10 @@ public boolean isSet(_Fields field) { return isSetValidWriteIdList(); case GET_COLUMN_STATS: return isSetGetColumnStats(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); } throw new IllegalStateException(); } @@ -508,6 +619,24 @@ public boolean equals(GetTableRequest that) { return false; } + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + return true; } @@ -545,6 +674,16 @@ public int hashCode() { if (present_getColumnStats) list.add(getColumnStats); + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + return list.hashCode(); } @@ -616,6 +755,26 @@ public int compareTo(GetTableRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -687,6 +846,26 @@ public String toString() { sb.append(this.getColumnStats); first = false; } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -792,6 +971,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableRequest str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 8: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list896.size); + String _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) + { + _elem897 = iprot.readString(); + struct.processorCapabilities.add(_elem897); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -841,6 +1046,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableRequest st oprot.writeBool(struct.getColumnStats); oprot.writeFieldEnd(); } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter899 : struct.processorCapabilities) + { + oprot.writeString(_iter899); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -873,7 +1099,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetGetColumnStats()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetProcessorCapabilities()) { + optionals.set(4); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetCapabilities()) { struct.capabilities.write(oprot); } @@ -886,6 +1118,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetGetColumnStats()) { oprot.writeBool(struct.getColumnStats); } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter900 : struct.processorCapabilities) + { + oprot.writeString(_iter900); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } } @Override @@ -895,7 +1139,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.setDbNameIsSet(true); struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.capabilities = new ClientCapabilities(); struct.capabilities.read(iprot); @@ -913,6 +1157,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.getColumnStats = iprot.readBool(); struct.setGetColumnStatsIsSet(true); } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list901.size); + String _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) + { + _elem902 = iprot.readString(); + struct.processorCapabilities.add(_elem902); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(5)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java new file mode 100644 index 0000000000..3bb90e9817 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequest.java @@ -0,0 +1,1054 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class GetTablesExtRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTablesExtRequest"); + + private static final org.apache.thrift.protocol.TField CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLE_NAME_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNamePattern", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField REQUESTED_FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("requestedFields", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)7); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetTablesExtRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetTablesExtRequestTupleSchemeFactory()); + } + + private String catalog; // required + private String database; // required + private String tableNamePattern; // required + private int requestedFields; // required + private int limit; // optional + private List processorCapabilities; // optional + private String processorIdentifier; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + CATALOG((short)1, "catalog"), + DATABASE((short)2, "database"), + TABLE_NAME_PATTERN((short)3, "tableNamePattern"), + REQUESTED_FIELDS((short)4, "requestedFields"), + LIMIT((short)5, "limit"), + PROCESSOR_CAPABILITIES((short)6, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)7, "processorIdentifier"); + + 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: // CATALOG + return CATALOG; + case 2: // DATABASE + return DATABASE; + case 3: // TABLE_NAME_PATTERN + return TABLE_NAME_PATTERN; + case 4: // REQUESTED_FIELDS + return REQUESTED_FIELDS; + case 5: // LIMIT + return LIMIT; + case 6: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 7: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; + 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 __REQUESTEDFIELDS_ISSET_ID = 0; + private static final int __LIMIT_ISSET_ID = 1; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.LIMIT,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; + 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.CATALOG, new org.apache.thrift.meta_data.FieldMetaData("catalog", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("tableNamePattern", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.REQUESTED_FIELDS, new org.apache.thrift.meta_data.FieldMetaData("requestedFields", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTablesExtRequest.class, metaDataMap); + } + + public GetTablesExtRequest() { + } + + public GetTablesExtRequest( + String catalog, + String database, + String tableNamePattern, + int requestedFields) + { + this(); + this.catalog = catalog; + this.database = database; + this.tableNamePattern = tableNamePattern; + this.requestedFields = requestedFields; + setRequestedFieldsIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public GetTablesExtRequest(GetTablesExtRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetCatalog()) { + this.catalog = other.catalog; + } + if (other.isSetDatabase()) { + this.database = other.database; + } + if (other.isSetTableNamePattern()) { + this.tableNamePattern = other.tableNamePattern; + } + this.requestedFields = other.requestedFields; + this.limit = other.limit; + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } + } + + public GetTablesExtRequest deepCopy() { + return new GetTablesExtRequest(this); + } + + @Override + public void clear() { + this.catalog = null; + this.database = null; + this.tableNamePattern = null; + setRequestedFieldsIsSet(false); + this.requestedFields = 0; + setLimitIsSet(false); + this.limit = 0; + this.processorCapabilities = null; + this.processorIdentifier = null; + } + + public String getCatalog() { + return this.catalog; + } + + public void setCatalog(String catalog) { + this.catalog = catalog; + } + + public void unsetCatalog() { + this.catalog = null; + } + + /** Returns true if field catalog is set (has been assigned a value) and false otherwise */ + public boolean isSetCatalog() { + return this.catalog != null; + } + + public void setCatalogIsSet(boolean value) { + if (!value) { + this.catalog = null; + } + } + + public String getDatabase() { + return this.database; + } + + public void setDatabase(String database) { + this.database = database; + } + + public void unsetDatabase() { + this.database = null; + } + + /** Returns true if field database is set (has been assigned a value) and false otherwise */ + public boolean isSetDatabase() { + return this.database != null; + } + + public void setDatabaseIsSet(boolean value) { + if (!value) { + this.database = null; + } + } + + public String getTableNamePattern() { + return this.tableNamePattern; + } + + public void setTableNamePattern(String tableNamePattern) { + this.tableNamePattern = tableNamePattern; + } + + public void unsetTableNamePattern() { + this.tableNamePattern = null; + } + + /** Returns true if field tableNamePattern is set (has been assigned a value) and false otherwise */ + public boolean isSetTableNamePattern() { + return this.tableNamePattern != null; + } + + public void setTableNamePatternIsSet(boolean value) { + if (!value) { + this.tableNamePattern = null; + } + } + + public int getRequestedFields() { + return this.requestedFields; + } + + public void setRequestedFields(int requestedFields) { + this.requestedFields = requestedFields; + setRequestedFieldsIsSet(true); + } + + public void unsetRequestedFields() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REQUESTEDFIELDS_ISSET_ID); + } + + /** Returns true if field requestedFields is set (has been assigned a value) and false otherwise */ + public boolean isSetRequestedFields() { + return EncodingUtils.testBit(__isset_bitfield, __REQUESTEDFIELDS_ISSET_ID); + } + + public void setRequestedFieldsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REQUESTEDFIELDS_ISSET_ID, value); + } + + public int getLimit() { + return this.limit; + } + + public void setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CATALOG: + if (value == null) { + unsetCatalog(); + } else { + setCatalog((String)value); + } + break; + + case DATABASE: + if (value == null) { + unsetDatabase(); + } else { + setDatabase((String)value); + } + break; + + case TABLE_NAME_PATTERN: + if (value == null) { + unsetTableNamePattern(); + } else { + setTableNamePattern((String)value); + } + break; + + case REQUESTED_FIELDS: + if (value == null) { + unsetRequestedFields(); + } else { + setRequestedFields((Integer)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CATALOG: + return getCatalog(); + + case DATABASE: + return getDatabase(); + + case TABLE_NAME_PATTERN: + return getTableNamePattern(); + + case REQUESTED_FIELDS: + return getRequestedFields(); + + case LIMIT: + return getLimit(); + + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + + } + 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 CATALOG: + return isSetCatalog(); + case DATABASE: + return isSetDatabase(); + case TABLE_NAME_PATTERN: + return isSetTableNamePattern(); + case REQUESTED_FIELDS: + return isSetRequestedFields(); + case LIMIT: + return isSetLimit(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetTablesExtRequest) + return this.equals((GetTablesExtRequest)that); + return false; + } + + public boolean equals(GetTablesExtRequest that) { + if (that == null) + return false; + + boolean this_present_catalog = true && this.isSetCatalog(); + boolean that_present_catalog = true && that.isSetCatalog(); + if (this_present_catalog || that_present_catalog) { + if (!(this_present_catalog && that_present_catalog)) + return false; + if (!this.catalog.equals(that.catalog)) + return false; + } + + boolean this_present_database = true && this.isSetDatabase(); + boolean that_present_database = true && that.isSetDatabase(); + if (this_present_database || that_present_database) { + if (!(this_present_database && that_present_database)) + return false; + if (!this.database.equals(that.database)) + return false; + } + + boolean this_present_tableNamePattern = true && this.isSetTableNamePattern(); + boolean that_present_tableNamePattern = true && that.isSetTableNamePattern(); + if (this_present_tableNamePattern || that_present_tableNamePattern) { + if (!(this_present_tableNamePattern && that_present_tableNamePattern)) + return false; + if (!this.tableNamePattern.equals(that.tableNamePattern)) + return false; + } + + boolean this_present_requestedFields = true; + boolean that_present_requestedFields = true; + if (this_present_requestedFields || that_present_requestedFields) { + if (!(this_present_requestedFields && that_present_requestedFields)) + return false; + if (this.requestedFields != that.requestedFields) + return false; + } + + boolean this_present_limit = true && this.isSetLimit(); + boolean that_present_limit = true && that.isSetLimit(); + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_catalog = true && (isSetCatalog()); + list.add(present_catalog); + if (present_catalog) + list.add(catalog); + + boolean present_database = true && (isSetDatabase()); + list.add(present_database); + if (present_database) + list.add(database); + + boolean present_tableNamePattern = true && (isSetTableNamePattern()); + list.add(present_tableNamePattern); + if (present_tableNamePattern) + list.add(tableNamePattern); + + boolean present_requestedFields = true; + list.add(present_requestedFields); + if (present_requestedFields) + list.add(requestedFields); + + boolean present_limit = true && (isSetLimit()); + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + + return list.hashCode(); + } + + @Override + public int compareTo(GetTablesExtRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCatalog()).compareTo(other.isSetCatalog()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCatalog()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog, other.catalog); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(other.isSetDatabase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDatabase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, other.database); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableNamePattern()).compareTo(other.isSetTableNamePattern()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableNamePattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNamePattern, other.tableNamePattern); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRequestedFields()).compareTo(other.isSetRequestedFields()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequestedFields()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestedFields, other.requestedFields); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + 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("GetTablesExtRequest("); + boolean first = true; + + sb.append("catalog:"); + if (this.catalog == null) { + sb.append("null"); + } else { + sb.append(this.catalog); + } + first = false; + if (!first) sb.append(", "); + sb.append("database:"); + if (this.database == null) { + sb.append("null"); + } else { + sb.append(this.database); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableNamePattern:"); + if (this.tableNamePattern == null) { + sb.append("null"); + } else { + sb.append(this.tableNamePattern); + } + first = false; + if (!first) sb.append(", "); + sb.append("requestedFields:"); + sb.append(this.requestedFields); + first = false; + if (isSetLimit()) { + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetCatalog()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'catalog' is unset! Struct:" + toString()); + } + + if (!isSetDatabase()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'database' is unset! Struct:" + toString()); + } + + if (!isSetTableNamePattern()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableNamePattern' is unset! Struct:" + toString()); + } + + if (!isSetRequestedFields()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestedFields' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetTablesExtRequestStandardSchemeFactory implements SchemeFactory { + public GetTablesExtRequestStandardScheme getScheme() { + return new GetTablesExtRequestStandardScheme(); + } + } + + private static class GetTablesExtRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesExtRequest 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: // CATALOG + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.catalog = iprot.readString(); + struct.setCatalogIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DATABASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.database = iprot.readString(); + struct.setDatabaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_NAME_PATTERN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableNamePattern = iprot.readString(); + struct.setTableNamePatternIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // REQUESTED_FIELDS + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.requestedFields = iprot.readI32(); + struct.setRequestedFieldsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list928.size); + String _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) + { + _elem929 = iprot.readString(); + struct.processorCapabilities.add(_elem929); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(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, GetTablesExtRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.catalog != null) { + oprot.writeFieldBegin(CATALOG_FIELD_DESC); + oprot.writeString(struct.catalog); + oprot.writeFieldEnd(); + } + if (struct.database != null) { + oprot.writeFieldBegin(DATABASE_FIELD_DESC); + oprot.writeString(struct.database); + oprot.writeFieldEnd(); + } + if (struct.tableNamePattern != null) { + oprot.writeFieldBegin(TABLE_NAME_PATTERN_FIELD_DESC); + oprot.writeString(struct.tableNamePattern); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(REQUESTED_FIELDS_FIELD_DESC); + oprot.writeI32(struct.requestedFields); + oprot.writeFieldEnd(); + if (struct.isSetLimit()) { + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter931 : struct.processorCapabilities) + { + oprot.writeString(_iter931); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetTablesExtRequestTupleSchemeFactory implements SchemeFactory { + public GetTablesExtRequestTupleScheme getScheme() { + return new GetTablesExtRequestTupleScheme(); + } + } + + private static class GetTablesExtRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesExtRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.catalog); + oprot.writeString(struct.database); + oprot.writeString(struct.tableNamePattern); + oprot.writeI32(struct.requestedFields); + BitSet optionals = new BitSet(); + if (struct.isSetLimit()) { + optionals.set(0); + } + if (struct.isSetProcessorCapabilities()) { + optionals.set(1); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetLimit()) { + oprot.writeI32(struct.limit); + } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter932 : struct.processorCapabilities) + { + oprot.writeString(_iter932); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesExtRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.catalog = iprot.readString(); + struct.setCatalogIsSet(true); + struct.database = iprot.readString(); + struct.setDatabaseIsSet(true); + struct.tableNamePattern = iprot.readString(); + struct.setTableNamePatternIsSet(true); + struct.requestedFields = iprot.readI32(); + struct.setRequestedFieldsIsSet(true); + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list933.size); + String _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) + { + _elem934 = iprot.readString(); + struct.processorCapabilities.add(_elem934); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(2)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } + } + } + +} + diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequestFields.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequestFields.java new file mode 100644 index 0000000000..ce57999299 --- /dev/null +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesExtRequestFields.java @@ -0,0 +1,48 @@ +/** + * 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 java.util.Map; +import java.util.HashMap; +import org.apache.thrift.TEnum; + +public enum GetTablesExtRequestFields implements org.apache.thrift.TEnum { + ACCESS_TYPE(1), + PROCESSOR_CAPABILITIES(2), + ALL(2147483647); + + private final int value; + + private GetTablesExtRequestFields(int value) { + this.value = value; + } + + /** + * Get the integer value of this enum value, as defined in the Thrift IDL. + */ + public int getValue() { + return value; + } + + /** + * Find a the enum type by its integer value, as defined in the Thrift IDL. + * @return null if the value is not found. + */ + public static GetTablesExtRequestFields findByValue(int value) { + switch (value) { + case 1: + return ACCESS_TYPE; + case 2: + return PROCESSOR_CAPABILITIES; + case 2147483647: + return ALL; + default: + return null; + } + } +} diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index ed9b709f65..c764543282 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -42,6 +42,8 @@ private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tblNames", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("capabilities", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField PROCESSOR_CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("processorCapabilities", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField PROCESSOR_IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("processorIdentifier", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +55,17 @@ private List tblNames; // optional private ClientCapabilities capabilities; // optional private String catName; // optional + private List processorCapabilities; // optional + private String processorIdentifier; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "dbName"), TBL_NAMES((short)2, "tblNames"), CAPABILITIES((short)3, "capabilities"), - CAT_NAME((short)4, "catName"); + CAT_NAME((short)4, "catName"), + PROCESSOR_CAPABILITIES((short)5, "processorCapabilities"), + PROCESSOR_IDENTIFIER((short)6, "processorIdentifier"); private static final Map byName = new HashMap(); @@ -82,6 +88,10 @@ public static _Fields findByThriftId(int fieldId) { return CAPABILITIES; case 4: // CAT_NAME return CAT_NAME; + case 5: // PROCESSOR_CAPABILITIES + return PROCESSOR_CAPABILITIES; + case 6: // PROCESSOR_IDENTIFIER + return PROCESSOR_IDENTIFIER; default: return null; } @@ -122,7 +132,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TBL_NAMES,_Fields.CAPABILITIES,_Fields.CAT_NAME}; + private static final _Fields optionals[] = {_Fields.TBL_NAMES,_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.PROCESSOR_CAPABILITIES,_Fields.PROCESSOR_IDENTIFIER}; 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); @@ -135,6 +145,11 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientCapabilities.class))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PROCESSOR_CAPABILITIES, new org.apache.thrift.meta_data.FieldMetaData("processorCapabilities", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PROCESSOR_IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("processorIdentifier", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTablesRequest.class, metaDataMap); } @@ -166,6 +181,13 @@ public GetTablesRequest(GetTablesRequest other) { if (other.isSetCatName()) { this.catName = other.catName; } + if (other.isSetProcessorCapabilities()) { + List __this__processorCapabilities = new ArrayList(other.processorCapabilities); + this.processorCapabilities = __this__processorCapabilities; + } + if (other.isSetProcessorIdentifier()) { + this.processorIdentifier = other.processorIdentifier; + } } public GetTablesRequest deepCopy() { @@ -178,6 +200,8 @@ public void clear() { this.tblNames = null; this.capabilities = null; this.catName = null; + this.processorCapabilities = null; + this.processorIdentifier = null; } public String getDbName() { @@ -287,6 +311,67 @@ public void setCatNameIsSet(boolean value) { } } + public int getProcessorCapabilitiesSize() { + return (this.processorCapabilities == null) ? 0 : this.processorCapabilities.size(); + } + + public java.util.Iterator getProcessorCapabilitiesIterator() { + return (this.processorCapabilities == null) ? null : this.processorCapabilities.iterator(); + } + + public void addToProcessorCapabilities(String elem) { + if (this.processorCapabilities == null) { + this.processorCapabilities = new ArrayList(); + } + this.processorCapabilities.add(elem); + } + + public List getProcessorCapabilities() { + return this.processorCapabilities; + } + + public void setProcessorCapabilities(List processorCapabilities) { + this.processorCapabilities = processorCapabilities; + } + + public void unsetProcessorCapabilities() { + this.processorCapabilities = null; + } + + /** Returns true if field processorCapabilities is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorCapabilities() { + return this.processorCapabilities != null; + } + + public void setProcessorCapabilitiesIsSet(boolean value) { + if (!value) { + this.processorCapabilities = null; + } + } + + public String getProcessorIdentifier() { + return this.processorIdentifier; + } + + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + public void unsetProcessorIdentifier() { + this.processorIdentifier = null; + } + + /** Returns true if field processorIdentifier is set (has been assigned a value) and false otherwise */ + public boolean isSetProcessorIdentifier() { + return this.processorIdentifier != null; + } + + public void setProcessorIdentifierIsSet(boolean value) { + if (!value) { + this.processorIdentifier = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -321,6 +406,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PROCESSOR_CAPABILITIES: + if (value == null) { + unsetProcessorCapabilities(); + } else { + setProcessorCapabilities((List)value); + } + break; + + case PROCESSOR_IDENTIFIER: + if (value == null) { + unsetProcessorIdentifier(); + } else { + setProcessorIdentifier((String)value); + } + break; + } } @@ -338,6 +439,12 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case PROCESSOR_CAPABILITIES: + return getProcessorCapabilities(); + + case PROCESSOR_IDENTIFIER: + return getProcessorIdentifier(); + } throw new IllegalStateException(); } @@ -357,6 +464,10 @@ public boolean isSet(_Fields field) { return isSetCapabilities(); case CAT_NAME: return isSetCatName(); + case PROCESSOR_CAPABILITIES: + return isSetProcessorCapabilities(); + case PROCESSOR_IDENTIFIER: + return isSetProcessorIdentifier(); } throw new IllegalStateException(); } @@ -410,6 +521,24 @@ public boolean equals(GetTablesRequest that) { return false; } + boolean this_present_processorCapabilities = true && this.isSetProcessorCapabilities(); + boolean that_present_processorCapabilities = true && that.isSetProcessorCapabilities(); + if (this_present_processorCapabilities || that_present_processorCapabilities) { + if (!(this_present_processorCapabilities && that_present_processorCapabilities)) + return false; + if (!this.processorCapabilities.equals(that.processorCapabilities)) + return false; + } + + boolean this_present_processorIdentifier = true && this.isSetProcessorIdentifier(); + boolean that_present_processorIdentifier = true && that.isSetProcessorIdentifier(); + if (this_present_processorIdentifier || that_present_processorIdentifier) { + if (!(this_present_processorIdentifier && that_present_processorIdentifier)) + return false; + if (!this.processorIdentifier.equals(that.processorIdentifier)) + return false; + } + return true; } @@ -437,6 +566,16 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_processorCapabilities = true && (isSetProcessorCapabilities()); + list.add(present_processorCapabilities); + if (present_processorCapabilities) + list.add(processorCapabilities); + + boolean present_processorIdentifier = true && (isSetProcessorIdentifier()); + list.add(present_processorIdentifier); + if (present_processorIdentifier) + list.add(processorIdentifier); + return list.hashCode(); } @@ -488,6 +627,26 @@ public int compareTo(GetTablesRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetProcessorCapabilities()).compareTo(other.isSetProcessorCapabilities()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorCapabilities()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorCapabilities, other.processorCapabilities); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetProcessorIdentifier()).compareTo(other.isSetProcessorIdentifier()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProcessorIdentifier()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processorIdentifier, other.processorIdentifier); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -545,6 +704,26 @@ public String toString() { } first = false; } + if (isSetProcessorCapabilities()) { + if (!first) sb.append(", "); + sb.append("processorCapabilities:"); + if (this.processorCapabilities == null) { + sb.append("null"); + } else { + sb.append(this.processorCapabilities); + } + first = false; + } + if (isSetProcessorIdentifier()) { + if (!first) sb.append(", "); + sb.append("processorIdentifier:"); + if (this.processorIdentifier == null) { + sb.append("null"); + } else { + sb.append(this.processorIdentifier); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -606,13 +785,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 _list888 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list888.size); - String _elem889; - for (int _i890 = 0; _i890 < _list888.size; ++_i890) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list904.size); + String _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem889 = iprot.readString(); - struct.tblNames.add(_elem889); + _elem905 = iprot.readString(); + struct.tblNames.add(_elem905); } iprot.readListEnd(); } @@ -638,6 +817,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // PROCESSOR_CAPABILITIES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list907.size); + String _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) + { + _elem908 = iprot.readString(); + struct.processorCapabilities.add(_elem908); + } + iprot.readListEnd(); + } + struct.setProcessorCapabilitiesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PROCESSOR_IDENTIFIER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -661,9 +866,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 _iter891 : struct.tblNames) + for (String _iter910 : struct.tblNames) { - oprot.writeString(_iter891); + oprot.writeString(_iter910); } oprot.writeListEnd(); } @@ -684,6 +889,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s oprot.writeFieldEnd(); } } + if (struct.processorCapabilities != null) { + if (struct.isSetProcessorCapabilities()) { + oprot.writeFieldBegin(PROCESSOR_CAPABILITIES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.processorCapabilities.size())); + for (String _iter911 : struct.processorCapabilities) + { + oprot.writeString(_iter911); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.processorIdentifier != null) { + if (struct.isSetProcessorIdentifier()) { + oprot.writeFieldBegin(PROCESSOR_IDENTIFIER_FIELD_DESC); + oprot.writeString(struct.processorIdentifier); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -712,13 +938,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetCatName()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetProcessorCapabilities()) { + optionals.set(3); + } + if (struct.isSetProcessorIdentifier()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter892 : struct.tblNames) + for (String _iter912 : struct.tblNames) { - oprot.writeString(_iter892); + oprot.writeString(_iter912); } } } @@ -728,6 +960,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter913 : struct.processorCapabilities) + { + oprot.writeString(_iter913); + } + } + } + if (struct.isSetProcessorIdentifier()) { + oprot.writeString(struct.processorIdentifier); + } } @Override @@ -735,16 +979,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str TTupleProtocol iprot = (TTupleProtocol) prot; struct.dbName = iprot.readString(); struct.setDbNameIsSet(true); - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list893.size); - String _elem894; - for (int _i895 = 0; _i895 < _list893.size; ++_i895) + org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list914.size); + String _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem894 = iprot.readString(); - struct.tblNames.add(_elem894); + _elem915 = iprot.readString(); + struct.tblNames.add(_elem915); } } struct.setTblNamesIsSet(true); @@ -758,6 +1002,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list917.size); + String _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) + { + _elem918 = iprot.readString(); + struct.processorCapabilities.add(_elem918); + } + } + struct.setProcessorCapabilitiesIsSet(true); + } + if (incoming.get(4)) { + struct.processorIdentifier = iprot.readString(); + struct.setProcessorIdentifierIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 31584b09ca..7d1aff00e5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ standalone-metastore/metastore-common/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 _list896 = iprot.readListBegin(); - struct.tables = new ArrayList(_list896.size); - Table _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) + org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list920.size); + Table _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem897 = new Table(); - _elem897.read(iprot); - struct.tables.add(_elem897); + _elem921 = new Table(); + _elem921.read(iprot); + struct.tables.add(_elem921); } 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 _iter899 : struct.tables) + for (Table _iter923 : struct.tables) { - _iter899.write(oprot); + _iter923.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 _iter900 : struct.tables) + for (Table _iter924 : struct.tables) { - _iter900.write(oprot); + _iter924.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 _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list901.size); - Table _elem902; - for (int _i903 = 0; _i903 < _list901.size; ++_i903) + org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list925.size); + Table _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem902 = new Table(); - _elem902.read(iprot); - struct.tables.add(_elem902); + _elem926 = new Table(); + _elem926.read(iprot); + struct.tables.add(_elem926); } } struct.setTablesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java index 70bfbd25cd..7771bdcf5f 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java @@ -513,13 +513,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsReq case 1: // FULL_TABLE_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list642.size); - String _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem643 = iprot.readString(); - struct.fullTableNames.add(_elem643); + _elem651 = iprot.readString(); + struct.fullTableNames.add(_elem651); } iprot.readListEnd(); } @@ -561,9 +561,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(FULL_TABLE_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fullTableNames.size())); - for (String _iter645 : struct.fullTableNames) + for (String _iter653 : struct.fullTableNames) { - oprot.writeString(_iter645); + oprot.writeString(_iter653); } oprot.writeListEnd(); } @@ -600,9 +600,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fullTableNames.size()); - for (String _iter646 : struct.fullTableNames) + for (String _iter654 : struct.fullTableNames) { - oprot.writeString(_iter646); + oprot.writeString(_iter654); } } BitSet optionals = new BitSet(); @@ -625,13 +625,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fullTableNames = new ArrayList(_list647.size); - String _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list655.size); + String _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem648 = iprot.readString(); - struct.fullTableNames.add(_elem648); + _elem656 = iprot.readString(); + struct.fullTableNames.add(_elem656); } } struct.setFullTableNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java index fc941837c2..8996f8bf02 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsRes case 1: // TBL_VALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list658.size); - TableValidWriteIds _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list666.size); + TableValidWriteIds _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem659 = new TableValidWriteIds(); - _elem659.read(iprot); - struct.tblValidWriteIds.add(_elem659); + _elem667 = new TableValidWriteIds(); + _elem667.read(iprot); + struct.tblValidWriteIds.add(_elem667); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(TBL_VALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tblValidWriteIds.size())); - for (TableValidWriteIds _iter661 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter669 : struct.tblValidWriteIds) { - _iter661.write(oprot); + _iter669.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tblValidWriteIds.size()); - for (TableValidWriteIds _iter662 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter670 : struct.tblValidWriteIds) { - _iter662.write(oprot); + _iter670.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tblValidWriteIds = new ArrayList(_list663.size); - TableValidWriteIds _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list671.size); + TableValidWriteIds _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem664 = new TableValidWriteIds(); - _elem664.read(iprot); - struct.tblValidWriteIds.add(_elem664); + _elem672 = new TableValidWriteIds(); + _elem672.read(iprot); + struct.tblValidWriteIds.add(_elem672); } } struct.setTblValidWriteIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index cfc8740a1c..70ec20c638 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ standalone-metastore/metastore-common/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 _set706 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set706.size); - long _elem707; - for (int _i708 = 0; _i708 < _set706.size; ++_i708) + org.apache.thrift.protocol.TSet _set714 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set714.size); + long _elem715; + for (int _i716 = 0; _i716 < _set714.size; ++_i716) { - _elem707 = iprot.readI64(); - struct.aborted.add(_elem707); + _elem715 = iprot.readI64(); + struct.aborted.add(_elem715); } 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 _set709 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set709.size); - long _elem710; - for (int _i711 = 0; _i711 < _set709.size; ++_i711) + org.apache.thrift.protocol.TSet _set717 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set717.size); + long _elem718; + for (int _i719 = 0; _i719 < _set717.size; ++_i719) { - _elem710 = iprot.readI64(); - struct.nosuch.add(_elem710); + _elem718 = iprot.readI64(); + struct.nosuch.add(_elem718); } 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 _iter712 : struct.aborted) + for (long _iter720 : struct.aborted) { - oprot.writeI64(_iter712); + oprot.writeI64(_iter720); } 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 _iter713 : struct.nosuch) + for (long _iter721 : struct.nosuch) { - oprot.writeI64(_iter713); + oprot.writeI64(_iter721); } 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 _iter714 : struct.aborted) + for (long _iter722 : struct.aborted) { - oprot.writeI64(_iter714); + oprot.writeI64(_iter722); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter715 : struct.nosuch) + for (long _iter723 : struct.nosuch) { - oprot.writeI64(_iter715); + oprot.writeI64(_iter723); } } } @@ -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 _set716 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set716.size); - long _elem717; - for (int _i718 = 0; _i718 < _set716.size; ++_i718) + org.apache.thrift.protocol.TSet _set724 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set724.size); + long _elem725; + for (int _i726 = 0; _i726 < _set724.size; ++_i726) { - _elem717 = iprot.readI64(); - struct.aborted.add(_elem717); + _elem725 = iprot.readI64(); + struct.aborted.add(_elem725); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set719 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set719.size); - long _elem720; - for (int _i721 = 0; _i721 < _set719.size; ++_i721) + org.apache.thrift.protocol.TSet _set727 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set727.size); + long _elem728; + for (int _i729 = 0; _i729 < _set727.size; ++_i729) { - _elem720 = iprot.readI64(); - struct.nosuch.add(_elem720); + _elem728 = iprot.readI64(); + struct.nosuch.add(_elem728); } } struct.setNosuchIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 0279ee1e69..85049745dd 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -636,13 +636,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 _list772 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list772.size); - String _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list780.size); + String _elem781; + for (int _i782 = 0; _i782 < _list780.size; ++_i782) { - _elem773 = iprot.readString(); - struct.filesAdded.add(_elem773); + _elem781 = iprot.readString(); + struct.filesAdded.add(_elem781); } iprot.readListEnd(); } @@ -654,13 +654,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 _list775 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list775.size); - String _elem776; - for (int _i777 = 0; _i777 < _list775.size; ++_i777) + org.apache.thrift.protocol.TList _list783 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list783.size); + String _elem784; + for (int _i785 = 0; _i785 < _list783.size; ++_i785) { - _elem776 = iprot.readString(); - struct.filesAddedChecksum.add(_elem776); + _elem784 = iprot.readString(); + struct.filesAddedChecksum.add(_elem784); } iprot.readListEnd(); } @@ -672,13 +672,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 4: // SUB_DIRECTORY_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list778 = iprot.readListBegin(); - struct.subDirectoryList = new ArrayList(_list778.size); - String _elem779; - for (int _i780 = 0; _i780 < _list778.size; ++_i780) + org.apache.thrift.protocol.TList _list786 = iprot.readListBegin(); + struct.subDirectoryList = new ArrayList(_list786.size); + String _elem787; + for (int _i788 = 0; _i788 < _list786.size; ++_i788) { - _elem779 = iprot.readString(); - struct.subDirectoryList.add(_elem779); + _elem787 = iprot.readString(); + struct.subDirectoryList.add(_elem787); } iprot.readListEnd(); } @@ -709,9 +709,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 _iter781 : struct.filesAdded) + for (String _iter789 : struct.filesAdded) { - oprot.writeString(_iter781); + oprot.writeString(_iter789); } oprot.writeListEnd(); } @@ -722,9 +722,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 _iter782 : struct.filesAddedChecksum) + for (String _iter790 : struct.filesAddedChecksum) { - oprot.writeString(_iter782); + oprot.writeString(_iter790); } oprot.writeListEnd(); } @@ -736,9 +736,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(SUB_DIRECTORY_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.subDirectoryList.size())); - for (String _iter783 : struct.subDirectoryList) + for (String _iter791 : struct.subDirectoryList) { - oprot.writeString(_iter783); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter784 : struct.filesAdded) + for (String _iter792 : struct.filesAdded) { - oprot.writeString(_iter784); + oprot.writeString(_iter792); } } BitSet optionals = new BitSet(); @@ -786,18 +786,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter785 : struct.filesAddedChecksum) + for (String _iter793 : struct.filesAddedChecksum) { - oprot.writeString(_iter785); + oprot.writeString(_iter793); } } } if (struct.isSetSubDirectoryList()) { { oprot.writeI32(struct.subDirectoryList.size()); - for (String _iter786 : struct.subDirectoryList) + for (String _iter794 : struct.subDirectoryList) { - oprot.writeString(_iter786); + oprot.writeString(_iter794); } } } @@ -807,13 +807,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 _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list787.size); - String _elem788; - for (int _i789 = 0; _i789 < _list787.size; ++_i789) + org.apache.thrift.protocol.TList _list795 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list795.size); + String _elem796; + for (int _i797 = 0; _i797 < _list795.size; ++_i797) { - _elem788 = iprot.readString(); - struct.filesAdded.add(_elem788); + _elem796 = iprot.readString(); + struct.filesAdded.add(_elem796); } } struct.setFilesAddedIsSet(true); @@ -824,26 +824,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list790 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list790.size); - String _elem791; - for (int _i792 = 0; _i792 < _list790.size; ++_i792) + org.apache.thrift.protocol.TList _list798 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list798.size); + String _elem799; + for (int _i800 = 0; _i800 < _list798.size; ++_i800) { - _elem791 = iprot.readString(); - struct.filesAddedChecksum.add(_elem791); + _elem799 = iprot.readString(); + struct.filesAddedChecksum.add(_elem799); } } struct.setFilesAddedChecksumIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.subDirectoryList = new ArrayList(_list793.size); - String _elem794; - for (int _i795 = 0; _i795 < _list793.size; ++_i795) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.subDirectoryList = new ArrayList(_list801.size); + String _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) { - _elem794 = iprot.readString(); - struct.subDirectoryList.add(_elem794); + _elem802 = iprot.readString(); + struct.subDirectoryList.add(_elem802); } } struct.setSubDirectoryListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index acac74744a..f9b5e3dbc7 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ standalone-metastore/metastore-common/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 _list690 = iprot.readListBegin(); - struct.component = new ArrayList(_list690.size); - LockComponent _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.component = new ArrayList(_list698.size); + LockComponent _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem691 = new LockComponent(); - _elem691.read(iprot); - struct.component.add(_elem691); + _elem699 = new LockComponent(); + _elem699.read(iprot); + struct.component.add(_elem699); } 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 _iter693 : struct.component) + for (LockComponent _iter701 : struct.component) { - _iter693.write(oprot); + _iter701.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 _iter694 : struct.component) + for (LockComponent _iter702 : struct.component) { - _iter694.write(oprot); + _iter702.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 _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list695.size); - LockComponent _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list703.size); + LockComponent _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem696 = new LockComponent(); - _elem696.read(iprot); - struct.component.add(_elem696); + _elem704 = new LockComponent(); + _elem704.read(iprot); + struct.component.add(_elem704); } } struct.setComponentIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java index d5c19e14ae..32b9654d14 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 3: // EVENT_TYPE_SKIP_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); - struct.eventTypeSkipList = new ArrayList(_list756.size); - String _elem757; - for (int _i758 = 0; _i758 < _list756.size; ++_i758) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.eventTypeSkipList = new ArrayList(_list764.size); + String _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem757 = iprot.readString(); - struct.eventTypeSkipList.add(_elem757); + _elem765 = iprot.readString(); + struct.eventTypeSkipList.add(_elem765); } iprot.readListEnd(); } @@ -566,9 +566,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENT_TYPE_SKIP_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.eventTypeSkipList.size())); - for (String _iter759 : struct.eventTypeSkipList) + for (String _iter767 : struct.eventTypeSkipList) { - oprot.writeString(_iter759); + oprot.writeString(_iter767); } oprot.writeListEnd(); } @@ -607,9 +607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe if (struct.isSetEventTypeSkipList()) { { oprot.writeI32(struct.eventTypeSkipList.size()); - for (String _iter760 : struct.eventTypeSkipList) + for (String _iter768 : struct.eventTypeSkipList) { - oprot.writeString(_iter760); + oprot.writeString(_iter768); } } } @@ -627,13 +627,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventReq } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.eventTypeSkipList = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.eventTypeSkipList = new ArrayList(_list769.size); + String _elem770; + for (int _i771 = 0; _i771 < _list769.size; ++_i771) { - _elem762 = iprot.readString(); - struct.eventTypeSkipList.add(_elem762); + _elem770 = iprot.readString(); + struct.eventTypeSkipList.add(_elem770); } } struct.setEventTypeSkipListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 1f2776b7d1..580edf8a1d 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ standalone-metastore/metastore-common/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 _list764 = iprot.readListBegin(); - struct.events = new ArrayList(_list764.size); - NotificationEvent _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); + struct.events = new ArrayList(_list772.size); + NotificationEvent _elem773; + for (int _i774 = 0; _i774 < _list772.size; ++_i774) { - _elem765 = new NotificationEvent(); - _elem765.read(iprot); - struct.events.add(_elem765); + _elem773 = new NotificationEvent(); + _elem773.read(iprot); + struct.events.add(_elem773); } 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 _iter767 : struct.events) + for (NotificationEvent _iter775 : struct.events) { - _iter767.write(oprot); + _iter775.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 _iter768 : struct.events) + for (NotificationEvent _iter776 : struct.events) { - _iter768.write(oprot); + _iter776.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 _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list769.size); - NotificationEvent _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list777.size); + NotificationEvent _elem778; + for (int _i779 = 0; _i779 < _list777.size; ++_i779) { - _elem770 = new NotificationEvent(); - _elem770.read(iprot); - struct.events.add(_elem770); + _elem778 = new NotificationEvent(); + _elem778.read(iprot); + struct.events.add(_elem778); } } struct.setEventsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java index a8fd4b7cb8..e4f49080df 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java @@ -904,13 +904,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnRequest stru case 6: // REPL_SRC_TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); - struct.replSrcTxnIds = new ArrayList(_list594.size); - long _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.replSrcTxnIds = new ArrayList(_list602.size); + long _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem595 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem595); + _elem603 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem603); } iprot.readListEnd(); } @@ -972,9 +972,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnRequest str oprot.writeFieldBegin(REPL_SRC_TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.replSrcTxnIds.size())); - for (long _iter597 : struct.replSrcTxnIds) + for (long _iter605 : struct.replSrcTxnIds) { - oprot.writeI64(_iter597); + oprot.writeI64(_iter605); } oprot.writeListEnd(); } @@ -1031,9 +1031,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnRequest stru if (struct.isSetReplSrcTxnIds()) { { oprot.writeI32(struct.replSrcTxnIds.size()); - for (long _iter598 : struct.replSrcTxnIds) + for (long _iter606 : struct.replSrcTxnIds) { - oprot.writeI64(_iter598); + oprot.writeI64(_iter606); } } } @@ -1062,13 +1062,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnRequest struc } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.replSrcTxnIds = new ArrayList(_list599.size); - long _elem600; - for (int _i601 = 0; _i601 < _list599.size; ++_i601) + org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.replSrcTxnIds = new ArrayList(_list607.size); + long _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem600 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem600); + _elem608 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem608); } } struct.setReplSrcTxnIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index f0e6bdb966..6534dc5d05 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ standalone-metastore/metastore-common/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 _list602 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list602.size); - long _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list610.size); + long _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem603 = iprot.readI64(); - struct.txn_ids.add(_elem603); + _elem611 = iprot.readI64(); + struct.txn_ids.add(_elem611); } 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 _iter605 : struct.txn_ids) + for (long _iter613 : struct.txn_ids) { - oprot.writeI64(_iter605); + oprot.writeI64(_iter613); } 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 _iter606 : struct.txn_ids) + for (long _iter614 : struct.txn_ids) { - oprot.writeI64(_iter606); + oprot.writeI64(_iter614); } } } @@ -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 _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list607.size); - long _elem608; - for (int _i609 = 0; _i609 < _list607.size; ++_i609) + org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list615.size); + long _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem608 = iprot.readI64(); - struct.txn_ids.add(_elem608); + _elem616 = iprot.readI64(); + struct.txn_ids.add(_elem616); } } struct.setTxn_idsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 8518e44182..0cc9a69748 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ standalone-metastore/metastore-common/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 _list848 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list848.size); - long _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list856.size); + long _elem857; + for (int _i858 = 0; _i858 < _list856.size; ++_i858) { - _elem849 = iprot.readI64(); - struct.fileIds.add(_elem849); + _elem857 = iprot.readI64(); + struct.fileIds.add(_elem857); } 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 _list851 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list851.size); - ByteBuffer _elem852; - for (int _i853 = 0; _i853 < _list851.size; ++_i853) + org.apache.thrift.protocol.TList _list859 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list859.size); + ByteBuffer _elem860; + for (int _i861 = 0; _i861 < _list859.size; ++_i861) { - _elem852 = iprot.readBinary(); - struct.metadata.add(_elem852); + _elem860 = iprot.readBinary(); + struct.metadata.add(_elem860); } 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 _iter854 : struct.fileIds) + for (long _iter862 : struct.fileIds) { - oprot.writeI64(_iter854); + oprot.writeI64(_iter862); } 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 _iter855 : struct.metadata) + for (ByteBuffer _iter863 : struct.metadata) { - oprot.writeBinary(_iter855); + oprot.writeBinary(_iter863); } 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 _iter856 : struct.fileIds) + for (long _iter864 : struct.fileIds) { - oprot.writeI64(_iter856); + oprot.writeI64(_iter864); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter857 : struct.metadata) + for (ByteBuffer _iter865 : struct.metadata) { - oprot.writeBinary(_iter857); + oprot.writeBinary(_iter865); } } 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 _list858 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list858.size); - long _elem859; - for (int _i860 = 0; _i860 < _list858.size; ++_i860) + org.apache.thrift.protocol.TList _list866 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list866.size); + long _elem867; + for (int _i868 = 0; _i868 < _list866.size; ++_i868) { - _elem859 = iprot.readI64(); - struct.fileIds.add(_elem859); + _elem867 = iprot.readI64(); + struct.fileIds.add(_elem867); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list861.size); - ByteBuffer _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list869.size); + ByteBuffer _elem870; + for (int _i871 = 0; _i871 < _list869.size; ++_i871) { - _elem862 = iprot.readBinary(); - struct.metadata.add(_elem862); + _elem870 = iprot.readBinary(); + struct.metadata.add(_elem870); } } struct.setMetadataIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java index 6851625eb4..dd509a4bc5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RenamePartitionRequest.java @@ -796,13 +796,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RenamePartitionRequ case 4: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list992 = iprot.readListBegin(); - struct.partVals = new ArrayList(_list992.size); - String _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); + struct.partVals = new ArrayList(_list1032.size); + String _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem993 = iprot.readString(); - struct.partVals.add(_elem993); + _elem1033 = iprot.readString(); + struct.partVals.add(_elem1033); } iprot.readListEnd(); } @@ -862,9 +862,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, RenamePartitionReq oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partVals.size())); - for (String _iter995 : struct.partVals) + for (String _iter1035 : struct.partVals) { - oprot.writeString(_iter995); + oprot.writeString(_iter1035); } oprot.writeListEnd(); } @@ -903,9 +903,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, RenamePartitionRequ oprot.writeString(struct.tableName); { oprot.writeI32(struct.partVals.size()); - for (String _iter996 : struct.partVals) + for (String _iter1036 : struct.partVals) { - oprot.writeString(_iter996); + oprot.writeString(_iter1036); } } struct.newPart.write(oprot); @@ -933,13 +933,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RenamePartitionReque struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partVals = new ArrayList(_list997.size); - String _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partVals = new ArrayList(_list1037.size); + String _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem998 = iprot.readString(); - struct.partVals.add(_elem998); + _elem1038 = iprot.readString(); + struct.partVals.add(_elem1038); } } struct.setPartValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java index 2dab332279..bce9ea0369 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplLastIdInfo.java @@ -788,13 +788,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ReplLastIdInfo stru case 5: // PARTITION_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); - struct.partitionList = new ArrayList(_list626.size); - String _elem627; - for (int _i628 = 0; _i628 < _list626.size; ++_i628) + org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); + struct.partitionList = new ArrayList(_list634.size); + String _elem635; + for (int _i636 = 0; _i636 < _list634.size; ++_i636) { - _elem627 = iprot.readString(); - struct.partitionList.add(_elem627); + _elem635 = iprot.readString(); + struct.partitionList.add(_elem635); } iprot.readListEnd(); } @@ -851,9 +851,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ReplLastIdInfo str oprot.writeFieldBegin(PARTITION_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionList.size())); - for (String _iter629 : struct.partitionList) + for (String _iter637 : struct.partitionList) { - oprot.writeString(_iter629); + oprot.writeString(_iter637); } oprot.writeListEnd(); } @@ -907,9 +907,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ReplLastIdInfo stru if (struct.isSetPartitionList()) { { oprot.writeI32(struct.partitionList.size()); - for (String _iter630 : struct.partitionList) + for (String _iter638 : struct.partitionList) { - oprot.writeString(_iter630); + oprot.writeString(_iter638); } } } @@ -936,13 +936,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ReplLastIdInfo struc } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionList = new ArrayList(_list631.size); - String _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionList = new ArrayList(_list639.size); + String _elem640; + for (int _i641 = 0; _i641 < _list639.size; ++_i641) { - _elem632 = iprot.readString(); - struct.partitionList.add(_elem632); + _elem640 = iprot.readString(); + struct.partitionList.add(_elem640); } } struct.setPartitionListIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java index 1bfe434345..2db0060614 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ReplTblWriteIdStateRequest.java @@ -813,13 +813,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ReplTblWriteIdState case 6: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list634.size); - String _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list642.size); + String _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem635 = iprot.readString(); - struct.partNames.add(_elem635); + _elem643 = iprot.readString(); + struct.partNames.add(_elem643); } iprot.readListEnd(); } @@ -871,9 +871,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ReplTblWriteIdStat 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 _iter637 : struct.partNames) + for (String _iter645 : struct.partNames) { - oprot.writeString(_iter637); + oprot.writeString(_iter645); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ReplTblWriteIdState if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter638 : struct.partNames) + for (String _iter646 : struct.partNames) { - oprot.writeString(_iter638); + oprot.writeString(_iter646); } } } @@ -934,13 +934,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ReplTblWriteIdStateR BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list639.size); - String _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list647.size); + String _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem640 = iprot.readString(); - struct.partNames.add(_elem640); + _elem648 = iprot.readString(); + struct.partNames.add(_elem648); } } struct.setPartNamesIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java index 1d7677cb43..de8c21a592 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java @@ -1119,14 +1119,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SchemaVersion struc case 4: // COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); - struct.cols = new ArrayList(_list968.size); - FieldSchema _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.cols = new ArrayList(_list1008.size); + FieldSchema _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem969 = new FieldSchema(); - _elem969.read(iprot); - struct.cols.add(_elem969); + _elem1009 = new FieldSchema(); + _elem1009.read(iprot); + struct.cols.add(_elem1009); } iprot.readListEnd(); } @@ -1212,9 +1212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SchemaVersion stru oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter971 : struct.cols) + for (FieldSchema _iter1011 : struct.cols) { - _iter971.write(oprot); + _iter1011.write(oprot); } oprot.writeListEnd(); } @@ -1323,9 +1323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struc if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter972 : struct.cols) + for (FieldSchema _iter1012 : struct.cols) { - _iter972.write(oprot); + _iter1012.write(oprot); } } } @@ -1368,14 +1368,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struct } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list973.size); - FieldSchema _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list1013.size); + FieldSchema _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem974 = new FieldSchema(); - _elem974.read(iprot); - struct.cols.add(_elem974); + _elem1014 = new FieldSchema(); + _elem1014.read(iprot); + struct.cols.add(_elem1014); } } struct.setColsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index 5fcc0dde25..0d64491dc9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ standalone-metastore/metastore-common/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 _list732 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list732.size); - ShowCompactResponseElement _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list740.size); + ShowCompactResponseElement _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem733 = new ShowCompactResponseElement(); - _elem733.read(iprot); - struct.compacts.add(_elem733); + _elem741 = new ShowCompactResponseElement(); + _elem741.read(iprot); + struct.compacts.add(_elem741); } 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 _iter735 : struct.compacts) + for (ShowCompactResponseElement _iter743 : struct.compacts) { - _iter735.write(oprot); + _iter743.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 _iter736 : struct.compacts) + for (ShowCompactResponseElement _iter744 : struct.compacts) { - _iter736.write(oprot); + _iter744.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 _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list737.size); - ShowCompactResponseElement _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list745.size); + ShowCompactResponseElement _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem738 = new ShowCompactResponseElement(); - _elem738.read(iprot); - struct.compacts.add(_elem738); + _elem746 = new ShowCompactResponseElement(); + _elem746.read(iprot); + struct.compacts.add(_elem746); } } struct.setCompactsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index 3db5327268..c462263c2e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ standalone-metastore/metastore-common/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 _list698 = iprot.readListBegin(); - struct.locks = new ArrayList(_list698.size); - ShowLocksResponseElement _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.locks = new ArrayList(_list706.size); + ShowLocksResponseElement _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem699 = new ShowLocksResponseElement(); - _elem699.read(iprot); - struct.locks.add(_elem699); + _elem707 = new ShowLocksResponseElement(); + _elem707.read(iprot); + struct.locks.add(_elem707); } 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 _iter701 : struct.locks) + for (ShowLocksResponseElement _iter709 : struct.locks) { - _iter701.write(oprot); + _iter709.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 _iter702 : struct.locks) + for (ShowLocksResponseElement _iter710 : struct.locks) { - _iter702.write(oprot); + _iter710.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 _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list703.size); - ShowLocksResponseElement _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list711.size); + ShowLocksResponseElement _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem704 = new ShowLocksResponseElement(); - _elem704.read(iprot); - struct.locks.add(_elem704); + _elem712 = new ShowLocksResponseElement(); + _elem712.read(iprot); + struct.locks.add(_elem712); } } struct.setLocksIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 75edb63d1c..9ce6edec81 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -60,6 +60,7 @@ private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)20); private static final org.apache.thrift.protocol.TField IS_STATS_COMPLIANT_FIELD_DESC = new org.apache.thrift.protocol.TField("isStatsCompliant", org.apache.thrift.protocol.TType.BOOL, (short)21); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.STRUCT, (short)22); + private static final org.apache.thrift.protocol.TField ACCESS_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("accessType", org.apache.thrift.protocol.TType.BYTE, (short)23); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -89,6 +90,7 @@ private long writeId; // optional private boolean isStatsCompliant; // optional private ColumnStatistics colStats; // optional + private byte accessType; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -117,7 +119,8 @@ OWNER_TYPE((short)19, "ownerType"), WRITE_ID((short)20, "writeId"), IS_STATS_COMPLIANT((short)21, "isStatsCompliant"), - COL_STATS((short)22, "colStats"); + COL_STATS((short)22, "colStats"), + ACCESS_TYPE((short)23, "accessType"); private static final Map byName = new HashMap(); @@ -176,6 +179,8 @@ public static _Fields findByThriftId(int fieldId) { return IS_STATS_COMPLIANT; case 22: // COL_STATS return COL_STATS; + case 23: // ACCESS_TYPE + return ACCESS_TYPE; default: return null; } @@ -224,8 +229,9 @@ public String getFieldName() { private static final int __REWRITEENABLED_ISSET_ID = 5; private static final int __WRITEID_ISSET_ID = 6; private static final int __ISSTATSCOMPLIANT_ISSET_ID = 7; - private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.ID,_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE,_Fields.WRITE_ID,_Fields.IS_STATS_COMPLIANT,_Fields.COL_STATS}; + private static final int __ACCESSTYPE_ISSET_ID = 8; + private short __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.ID,_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE,_Fields.WRITE_ID,_Fields.IS_STATS_COMPLIANT,_Fields.COL_STATS,_Fields.ACCESS_TYPE}; 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); @@ -276,6 +282,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.COL_STATS, new org.apache.thrift.meta_data.FieldMetaData("colStats", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "ColumnStatistics"))); + tmpMap.put(_Fields.ACCESS_TYPE, new org.apache.thrift.meta_data.FieldMetaData("accessType", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } @@ -381,6 +389,7 @@ public Table(Table other) { if (other.isSetColStats()) { this.colStats = other.colStats; } + this.accessType = other.accessType; } public Table deepCopy() { @@ -420,6 +429,8 @@ public void clear() { setIsStatsCompliantIsSet(false); this.isStatsCompliant = false; this.colStats = null; + setAccessTypeIsSet(false); + this.accessType = 0; } public long getId() { @@ -954,6 +965,28 @@ public void setColStatsIsSet(boolean value) { } } + public byte getAccessType() { + return this.accessType; + } + + public void setAccessType(byte accessType) { + this.accessType = accessType; + setAccessTypeIsSet(true); + } + + public void unsetAccessType() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID); + } + + /** Returns true if field accessType is set (has been assigned a value) and false otherwise */ + public boolean isSetAccessType() { + return EncodingUtils.testBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID); + } + + public void setAccessTypeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ACCESSTYPE_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: @@ -1132,6 +1165,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ACCESS_TYPE: + if (value == null) { + unsetAccessType(); + } else { + setAccessType((Byte)value); + } + break; + } } @@ -1203,6 +1244,9 @@ public Object getFieldValue(_Fields field) { case COL_STATS: return getColStats(); + case ACCESS_TYPE: + return getAccessType(); + } throw new IllegalStateException(); } @@ -1258,6 +1302,8 @@ public boolean isSet(_Fields field) { return isSetIsStatsCompliant(); case COL_STATS: return isSetColStats(); + case ACCESS_TYPE: + return isSetAccessType(); } throw new IllegalStateException(); } @@ -1473,6 +1519,15 @@ public boolean equals(Table that) { return false; } + boolean this_present_accessType = true && this.isSetAccessType(); + boolean that_present_accessType = true && that.isSetAccessType(); + if (this_present_accessType || that_present_accessType) { + if (!(this_present_accessType && that_present_accessType)) + return false; + if (this.accessType != that.accessType) + return false; + } + return true; } @@ -1590,6 +1645,11 @@ public int hashCode() { if (present_colStats) list.add(colStats); + boolean present_accessType = true && (isSetAccessType()); + list.add(present_accessType); + if (present_accessType) + list.add(accessType); + return list.hashCode(); } @@ -1821,6 +1881,16 @@ public int compareTo(Table other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetAccessType()).compareTo(other.isSetAccessType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAccessType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.accessType, other.accessType); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -2004,6 +2074,12 @@ public String toString() { } first = false; } + if (isSetAccessType()) { + if (!first) sb.append(", "); + sb.append("accessType:"); + sb.append(this.accessType); + first = false; + } sb.append(")"); return sb.toString(); } @@ -2258,6 +2334,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 23: // ACCESS_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) { + struct.accessType = iprot.readByte(); + struct.setAccessTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2400,6 +2484,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldEnd(); } } + if (struct.isSetAccessType()) { + oprot.writeFieldBegin(ACCESS_TYPE_FIELD_DESC); + oprot.writeByte(struct.accessType); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -2484,7 +2573,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetColStats()) { optionals.set(21); } - oprot.writeBitSet(optionals, 22); + if (struct.isSetAccessType()) { + optionals.set(22); + } + oprot.writeBitSet(optionals, 23); if (struct.isSetId()) { oprot.writeI64(struct.id); } @@ -2564,12 +2656,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetColStats()) { struct.colStats.write(oprot); } + if (struct.isSetAccessType()) { + oprot.writeByte(struct.accessType); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(22); + BitSet incoming = iprot.readBitSet(23); if (incoming.get(0)) { struct.id = iprot.readI64(); struct.setIdIsSet(true); @@ -2683,6 +2778,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.colStats.read(iprot); struct.setColStatsIsSet(true); } + if (incoming.get(22)) { + struct.accessType = iprot.readByte(); + struct.setAccessTypeIsSet(true); + } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java index e5ba13d07f..d0ab3b52e9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java @@ -708,13 +708,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableValidWriteIds case 3: // INVALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list650.size); - long _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list658.size); + long _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem651 = iprot.readI64(); - struct.invalidWriteIds.add(_elem651); + _elem659 = iprot.readI64(); + struct.invalidWriteIds.add(_elem659); } iprot.readListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableValidWriteIds oprot.writeFieldBegin(INVALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.invalidWriteIds.size())); - for (long _iter653 : struct.invalidWriteIds) + for (long _iter661 : struct.invalidWriteIds) { - oprot.writeI64(_iter653); + oprot.writeI64(_iter661); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds oprot.writeI64(struct.writeIdHighWaterMark); { oprot.writeI32(struct.invalidWriteIds.size()); - for (long _iter654 : struct.invalidWriteIds) + for (long _iter662 : struct.invalidWriteIds) { - oprot.writeI64(_iter654); + oprot.writeI64(_iter662); } } oprot.writeBinary(struct.abortedBits); @@ -827,13 +827,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds s struct.writeIdHighWaterMark = iprot.readI64(); struct.setWriteIdHighWaterMarkIsSet(true); { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.invalidWriteIds = new ArrayList(_list655.size); - long _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list663.size); + long _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem656 = iprot.readI64(); - struct.invalidWriteIds.add(_elem656); + _elem664 = iprot.readI64(); + struct.invalidWriteIds.add(_elem664); } } struct.setInvalidWriteIdsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index e0431e5f6c..744566fe15 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -126,6 +126,8 @@ public List
get_table_objects_by_name(String dbname, List tbl_names) throws org.apache.thrift.TException; + public List get_tables_ext(GetTablesExtRequest req) throws MetaException, org.apache.thrift.TException; + public GetTableResult get_table_req(GetTableRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public GetTablesResult get_table_objects_by_name_req(GetTablesRequest req) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; @@ -576,6 +578,8 @@ public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_tables_ext(GetTablesExtRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_req(GetTableRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_table_objects_by_name_req(GetTablesRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2150,6 +2154,32 @@ public void send_get_table_objects_by_name(String dbname, List tbl_names throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); } + public List get_tables_ext(GetTablesExtRequest req) throws MetaException, org.apache.thrift.TException + { + send_get_tables_ext(req); + return recv_get_tables_ext(); + } + + public void send_get_tables_ext(GetTablesExtRequest req) throws org.apache.thrift.TException + { + get_tables_ext_args args = new get_tables_ext_args(); + args.setReq(req); + sendBase("get_tables_ext", args); + } + + public List recv_get_tables_ext() throws MetaException, org.apache.thrift.TException + { + get_tables_ext_result result = new get_tables_ext_result(); + receiveBase(result, "get_tables_ext"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables_ext failed: unknown result"); + } + public GetTableResult get_table_req(GetTableRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_table_req(req); @@ -8772,6 +8802,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_tables_ext(GetTablesExtRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_tables_ext_call method_call = new get_tables_ext_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetTablesExtRequest req; + public get_tables_ext_call(GetTablesExtRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_tables_ext", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_tables_ext_args args = new get_tables_ext_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_tables_ext(); + } + } + public void get_table_req(GetTableRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_req_call method_call = new get_table_req_call(req, resultHandler, this, ___protocolFactory, ___transport); @@ -15030,6 +15092,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_tables_ext() { + super("get_tables_ext"); + } + + public get_tables_ext_args getEmptyArgsInstance() { + return new get_tables_ext_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_tables_ext_result getResult(I iface, get_tables_ext_args args) throws org.apache.thrift.TException { + get_tables_ext_result result = new get_tables_ext_result(); + try { + result.success = iface.get_tables_ext(args.req); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req extends org.apache.thrift.ProcessFunction { public get_table_req() { super("get_table_req"); @@ -20967,6 +21054,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { + public get_tables_ext() { + super("get_tables_ext"); + } + + public get_tables_ext_args getEmptyArgsInstance() { + return new get_tables_ext_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_tables_ext_result result = new get_tables_ext_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_tables_ext_result result = new get_tables_ext_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_tables_ext_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_tables_ext(args.req,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req extends org.apache.thrift.AsyncProcessFunction { public get_table_req() { super("get_table_req"); @@ -44608,13 +44753,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 _list1032 = iprot.readListBegin(); - struct.success = new ArrayList(_list1032.size); - String _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); + struct.success = new ArrayList(_list1080.size); + String _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1033 = iprot.readString(); - struct.success.add(_elem1033); + _elem1081 = iprot.readString(); + struct.success.add(_elem1081); } iprot.readListEnd(); } @@ -44649,9 +44794,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 _iter1035 : struct.success) + for (String _iter1083 : struct.success) { - oprot.writeString(_iter1035); + oprot.writeString(_iter1083); } oprot.writeListEnd(); } @@ -44690,9 +44835,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1036 : struct.success) + for (String _iter1084 : struct.success) { - oprot.writeString(_iter1036); + oprot.writeString(_iter1084); } } } @@ -44707,13 +44852,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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1037.size); - String _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + 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) { - _elem1038 = iprot.readString(); - struct.success.add(_elem1038); + _elem1086 = iprot.readString(); + struct.success.add(_elem1086); } } struct.setSuccessIsSet(true); @@ -45367,13 +45512,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 _list1040 = iprot.readListBegin(); - struct.success = new ArrayList(_list1040.size); - String _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1088 = iprot.readListBegin(); + struct.success = new ArrayList(_list1088.size); + String _elem1089; + for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) { - _elem1041 = iprot.readString(); - struct.success.add(_elem1041); + _elem1089 = iprot.readString(); + struct.success.add(_elem1089); } iprot.readListEnd(); } @@ -45408,9 +45553,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 _iter1043 : struct.success) + for (String _iter1091 : struct.success) { - oprot.writeString(_iter1043); + oprot.writeString(_iter1091); } oprot.writeListEnd(); } @@ -45449,9 +45594,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1044 : struct.success) + for (String _iter1092 : struct.success) { - oprot.writeString(_iter1044); + oprot.writeString(_iter1092); } } } @@ -45466,13 +45611,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 _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1045.size); - String _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) + org.apache.thrift.protocol.TList _list1093 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1093.size); + String _elem1094; + for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) { - _elem1046 = iprot.readString(); - struct.success.add(_elem1046); + _elem1094 = iprot.readString(); + struct.success.add(_elem1094); } } struct.setSuccessIsSet(true); @@ -50079,16 +50224,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 _map1048 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1048.size); - String _key1049; - Type _val1050; - for (int _i1051 = 0; _i1051 < _map1048.size; ++_i1051) + org.apache.thrift.protocol.TMap _map1096 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1096.size); + String _key1097; + Type _val1098; + for (int _i1099 = 0; _i1099 < _map1096.size; ++_i1099) { - _key1049 = iprot.readString(); - _val1050 = new Type(); - _val1050.read(iprot); - struct.success.put(_key1049, _val1050); + _key1097 = iprot.readString(); + _val1098 = new Type(); + _val1098.read(iprot); + struct.success.put(_key1097, _val1098); } iprot.readMapEnd(); } @@ -50123,10 +50268,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 _iter1052 : struct.success.entrySet()) + for (Map.Entry _iter1100 : struct.success.entrySet()) { - oprot.writeString(_iter1052.getKey()); - _iter1052.getValue().write(oprot); + oprot.writeString(_iter1100.getKey()); + _iter1100.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -50165,10 +50310,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 _iter1053 : struct.success.entrySet()) + for (Map.Entry _iter1101 : struct.success.entrySet()) { - oprot.writeString(_iter1053.getKey()); - _iter1053.getValue().write(oprot); + oprot.writeString(_iter1101.getKey()); + _iter1101.getValue().write(oprot); } } } @@ -50183,16 +50328,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 _map1054 = 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*_map1054.size); - String _key1055; - Type _val1056; - for (int _i1057 = 0; _i1057 < _map1054.size; ++_i1057) + org.apache.thrift.protocol.TMap _map1102 = 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*_map1102.size); + String _key1103; + Type _val1104; + for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) { - _key1055 = iprot.readString(); - _val1056 = new Type(); - _val1056.read(iprot); - struct.success.put(_key1055, _val1056); + _key1103 = iprot.readString(); + _val1104 = new Type(); + _val1104.read(iprot); + struct.success.put(_key1103, _val1104); } } struct.setSuccessIsSet(true); @@ -51227,14 +51372,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 _list1058 = iprot.readListBegin(); - struct.success = new ArrayList(_list1058.size); - FieldSchema _elem1059; - for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) + org.apache.thrift.protocol.TList _list1106 = iprot.readListBegin(); + struct.success = new ArrayList(_list1106.size); + FieldSchema _elem1107; + for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) { - _elem1059 = new FieldSchema(); - _elem1059.read(iprot); - struct.success.add(_elem1059); + _elem1107 = new FieldSchema(); + _elem1107.read(iprot); + struct.success.add(_elem1107); } iprot.readListEnd(); } @@ -51287,9 +51432,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 _iter1061 : struct.success) + for (FieldSchema _iter1109 : struct.success) { - _iter1061.write(oprot); + _iter1109.write(oprot); } oprot.writeListEnd(); } @@ -51344,9 +51489,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1062 : struct.success) + for (FieldSchema _iter1110 : struct.success) { - _iter1062.write(oprot); + _iter1110.write(oprot); } } } @@ -51367,14 +51512,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 _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1063.size); - FieldSchema _elem1064; - for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) + org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1111.size); + FieldSchema _elem1112; + for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) { - _elem1064 = new FieldSchema(); - _elem1064.read(iprot); - struct.success.add(_elem1064); + _elem1112 = new FieldSchema(); + _elem1112.read(iprot); + struct.success.add(_elem1112); } } struct.setSuccessIsSet(true); @@ -52528,14 +52673,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 _list1066 = iprot.readListBegin(); - struct.success = new ArrayList(_list1066.size); - FieldSchema _elem1067; - for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) + org.apache.thrift.protocol.TList _list1114 = iprot.readListBegin(); + struct.success = new ArrayList(_list1114.size); + FieldSchema _elem1115; + for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) { - _elem1067 = new FieldSchema(); - _elem1067.read(iprot); - struct.success.add(_elem1067); + _elem1115 = new FieldSchema(); + _elem1115.read(iprot); + struct.success.add(_elem1115); } iprot.readListEnd(); } @@ -52588,9 +52733,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 _iter1069 : struct.success) + for (FieldSchema _iter1117 : struct.success) { - _iter1069.write(oprot); + _iter1117.write(oprot); } oprot.writeListEnd(); } @@ -52645,9 +52790,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1070 : struct.success) + for (FieldSchema _iter1118 : struct.success) { - _iter1070.write(oprot); + _iter1118.write(oprot); } } } @@ -52668,14 +52813,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 _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1071.size); - FieldSchema _elem1072; - for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) + org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1119.size); + FieldSchema _elem1120; + for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) { - _elem1072 = new FieldSchema(); - _elem1072.read(iprot); - struct.success.add(_elem1072); + _elem1120 = new FieldSchema(); + _elem1120.read(iprot); + struct.success.add(_elem1120); } } struct.setSuccessIsSet(true); @@ -53720,14 +53865,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 _list1074 = iprot.readListBegin(); - struct.success = new ArrayList(_list1074.size); - FieldSchema _elem1075; - for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) + org.apache.thrift.protocol.TList _list1122 = iprot.readListBegin(); + struct.success = new ArrayList(_list1122.size); + FieldSchema _elem1123; + for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) { - _elem1075 = new FieldSchema(); - _elem1075.read(iprot); - struct.success.add(_elem1075); + _elem1123 = new FieldSchema(); + _elem1123.read(iprot); + struct.success.add(_elem1123); } iprot.readListEnd(); } @@ -53780,9 +53925,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 _iter1077 : struct.success) + for (FieldSchema _iter1125 : struct.success) { - _iter1077.write(oprot); + _iter1125.write(oprot); } oprot.writeListEnd(); } @@ -53837,9 +53982,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1078 : struct.success) + for (FieldSchema _iter1126 : struct.success) { - _iter1078.write(oprot); + _iter1126.write(oprot); } } } @@ -53860,14 +54005,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 _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1079.size); - FieldSchema _elem1080; - for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) + org.apache.thrift.protocol.TList _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1127.size); + FieldSchema _elem1128; + for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) { - _elem1080 = new FieldSchema(); - _elem1080.read(iprot); - struct.success.add(_elem1080); + _elem1128 = new FieldSchema(); + _elem1128.read(iprot); + struct.success.add(_elem1128); } } struct.setSuccessIsSet(true); @@ -55021,14 +55166,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 _list1082 = iprot.readListBegin(); - struct.success = new ArrayList(_list1082.size); - FieldSchema _elem1083; - for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) + org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin(); + struct.success = new ArrayList(_list1130.size); + FieldSchema _elem1131; + for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) { - _elem1083 = new FieldSchema(); - _elem1083.read(iprot); - struct.success.add(_elem1083); + _elem1131 = new FieldSchema(); + _elem1131.read(iprot); + struct.success.add(_elem1131); } iprot.readListEnd(); } @@ -55081,9 +55226,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 _iter1085 : struct.success) + for (FieldSchema _iter1133 : struct.success) { - _iter1085.write(oprot); + _iter1133.write(oprot); } oprot.writeListEnd(); } @@ -55138,9 +55283,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter1086 : struct.success) + for (FieldSchema _iter1134 : struct.success) { - _iter1086.write(oprot); + _iter1134.write(oprot); } } } @@ -55161,14 +55306,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 _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1087.size); - FieldSchema _elem1088; - for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) + org.apache.thrift.protocol.TList _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1135.size); + FieldSchema _elem1136; + for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) { - _elem1088 = new FieldSchema(); - _elem1088.read(iprot); - struct.success.add(_elem1088); + _elem1136 = new FieldSchema(); + _elem1136.read(iprot); + struct.success.add(_elem1136); } } struct.setSuccessIsSet(true); @@ -58297,14 +58442,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 _list1090 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list1090.size); - SQLPrimaryKey _elem1091; - for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) + org.apache.thrift.protocol.TList _list1138 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list1138.size); + SQLPrimaryKey _elem1139; + for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) { - _elem1091 = new SQLPrimaryKey(); - _elem1091.read(iprot); - struct.primaryKeys.add(_elem1091); + _elem1139 = new SQLPrimaryKey(); + _elem1139.read(iprot); + struct.primaryKeys.add(_elem1139); } iprot.readListEnd(); } @@ -58316,14 +58461,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 _list1093 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list1093.size); - SQLForeignKey _elem1094; - for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) + org.apache.thrift.protocol.TList _list1141 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list1141.size); + SQLForeignKey _elem1142; + for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) { - _elem1094 = new SQLForeignKey(); - _elem1094.read(iprot); - struct.foreignKeys.add(_elem1094); + _elem1142 = new SQLForeignKey(); + _elem1142.read(iprot); + struct.foreignKeys.add(_elem1142); } iprot.readListEnd(); } @@ -58335,14 +58480,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 4: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1096 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list1096.size); - SQLUniqueConstraint _elem1097; - for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098) + org.apache.thrift.protocol.TList _list1144 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list1144.size); + SQLUniqueConstraint _elem1145; + for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) { - _elem1097 = new SQLUniqueConstraint(); - _elem1097.read(iprot); - struct.uniqueConstraints.add(_elem1097); + _elem1145 = new SQLUniqueConstraint(); + _elem1145.read(iprot); + struct.uniqueConstraints.add(_elem1145); } iprot.readListEnd(); } @@ -58354,14 +58499,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 5: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1099 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list1099.size); - SQLNotNullConstraint _elem1100; - for (int _i1101 = 0; _i1101 < _list1099.size; ++_i1101) + org.apache.thrift.protocol.TList _list1147 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list1147.size); + SQLNotNullConstraint _elem1148; + for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) { - _elem1100 = new SQLNotNullConstraint(); - _elem1100.read(iprot); - struct.notNullConstraints.add(_elem1100); + _elem1148 = new SQLNotNullConstraint(); + _elem1148.read(iprot); + struct.notNullConstraints.add(_elem1148); } iprot.readListEnd(); } @@ -58373,14 +58518,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 6: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1102 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list1102.size); - SQLDefaultConstraint _elem1103; - for (int _i1104 = 0; _i1104 < _list1102.size; ++_i1104) + org.apache.thrift.protocol.TList _list1150 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list1150.size); + SQLDefaultConstraint _elem1151; + for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) { - _elem1103 = new SQLDefaultConstraint(); - _elem1103.read(iprot); - struct.defaultConstraints.add(_elem1103); + _elem1151 = new SQLDefaultConstraint(); + _elem1151.read(iprot); + struct.defaultConstraints.add(_elem1151); } iprot.readListEnd(); } @@ -58392,14 +58537,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 7: // CHECK_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1105 = iprot.readListBegin(); - struct.checkConstraints = new ArrayList(_list1105.size); - SQLCheckConstraint _elem1106; - for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) + org.apache.thrift.protocol.TList _list1153 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list1153.size); + SQLCheckConstraint _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1106 = new SQLCheckConstraint(); - _elem1106.read(iprot); - struct.checkConstraints.add(_elem1106); + _elem1154 = new SQLCheckConstraint(); + _elem1154.read(iprot); + struct.checkConstraints.add(_elem1154); } iprot.readListEnd(); } @@ -58430,9 +58575,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 _iter1108 : struct.primaryKeys) + for (SQLPrimaryKey _iter1156 : struct.primaryKeys) { - _iter1108.write(oprot); + _iter1156.write(oprot); } oprot.writeListEnd(); } @@ -58442,9 +58587,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter1109 : struct.foreignKeys) + for (SQLForeignKey _iter1157 : struct.foreignKeys) { - _iter1109.write(oprot); + _iter1157.write(oprot); } oprot.writeListEnd(); } @@ -58454,9 +58599,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter1110 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1158 : struct.uniqueConstraints) { - _iter1110.write(oprot); + _iter1158.write(oprot); } oprot.writeListEnd(); } @@ -58466,9 +58611,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter1111 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1159 : struct.notNullConstraints) { - _iter1111.write(oprot); + _iter1159.write(oprot); } oprot.writeListEnd(); } @@ -58478,9 +58623,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter1112 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1160 : struct.defaultConstraints) { - _iter1112.write(oprot); + _iter1160.write(oprot); } oprot.writeListEnd(); } @@ -58490,9 +58635,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); - for (SQLCheckConstraint _iter1113 : struct.checkConstraints) + for (SQLCheckConstraint _iter1161 : struct.checkConstraints) { - _iter1113.write(oprot); + _iter1161.write(oprot); } oprot.writeListEnd(); } @@ -58544,54 +58689,54 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter1114 : struct.primaryKeys) + for (SQLPrimaryKey _iter1162 : struct.primaryKeys) { - _iter1114.write(oprot); + _iter1162.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter1115 : struct.foreignKeys) + for (SQLForeignKey _iter1163 : struct.foreignKeys) { - _iter1115.write(oprot); + _iter1163.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter1116 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter1164 : struct.uniqueConstraints) { - _iter1116.write(oprot); + _iter1164.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter1117 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter1165 : struct.notNullConstraints) { - _iter1117.write(oprot); + _iter1165.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter1118 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter1166 : struct.defaultConstraints) { - _iter1118.write(oprot); + _iter1166.write(oprot); } } } if (struct.isSetCheckConstraints()) { { oprot.writeI32(struct.checkConstraints.size()); - for (SQLCheckConstraint _iter1119 : struct.checkConstraints) + for (SQLCheckConstraint _iter1167 : struct.checkConstraints) { - _iter1119.write(oprot); + _iter1167.write(oprot); } } } @@ -58608,84 +58753,84 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1120 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list1120.size); - SQLPrimaryKey _elem1121; - for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) + org.apache.thrift.protocol.TList _list1168 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list1168.size); + SQLPrimaryKey _elem1169; + for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) { - _elem1121 = new SQLPrimaryKey(); - _elem1121.read(iprot); - struct.primaryKeys.add(_elem1121); + _elem1169 = new SQLPrimaryKey(); + _elem1169.read(iprot); + struct.primaryKeys.add(_elem1169); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list1123.size); - SQLForeignKey _elem1124; - for (int _i1125 = 0; _i1125 < _list1123.size; ++_i1125) + org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list1171.size); + SQLForeignKey _elem1172; + for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) { - _elem1124 = new SQLForeignKey(); - _elem1124.read(iprot); - struct.foreignKeys.add(_elem1124); + _elem1172 = new SQLForeignKey(); + _elem1172.read(iprot); + struct.foreignKeys.add(_elem1172); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list1126 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list1126.size); - SQLUniqueConstraint _elem1127; - for (int _i1128 = 0; _i1128 < _list1126.size; ++_i1128) + org.apache.thrift.protocol.TList _list1174 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list1174.size); + SQLUniqueConstraint _elem1175; + for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) { - _elem1127 = new SQLUniqueConstraint(); - _elem1127.read(iprot); - struct.uniqueConstraints.add(_elem1127); + _elem1175 = new SQLUniqueConstraint(); + _elem1175.read(iprot); + struct.uniqueConstraints.add(_elem1175); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list1129.size); - SQLNotNullConstraint _elem1130; - for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) + org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list1177.size); + SQLNotNullConstraint _elem1178; + for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) { - _elem1130 = new SQLNotNullConstraint(); - _elem1130.read(iprot); - struct.notNullConstraints.add(_elem1130); + _elem1178 = new SQLNotNullConstraint(); + _elem1178.read(iprot); + struct.notNullConstraints.add(_elem1178); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list1132.size); - SQLDefaultConstraint _elem1133; - for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) + org.apache.thrift.protocol.TList _list1180 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list1180.size); + SQLDefaultConstraint _elem1181; + for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) { - _elem1133 = new SQLDefaultConstraint(); - _elem1133.read(iprot); - struct.defaultConstraints.add(_elem1133); + _elem1181 = new SQLDefaultConstraint(); + _elem1181.read(iprot); + struct.defaultConstraints.add(_elem1181); } } struct.setDefaultConstraintsIsSet(true); } if (incoming.get(6)) { { - org.apache.thrift.protocol.TList _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.checkConstraints = new ArrayList(_list1135.size); - SQLCheckConstraint _elem1136; - for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) + org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list1183.size); + SQLCheckConstraint _elem1184; + for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) { - _elem1136 = new SQLCheckConstraint(); - _elem1136.read(iprot); - struct.checkConstraints.add(_elem1136); + _elem1184 = new SQLCheckConstraint(); + _elem1184.read(iprot); + struct.checkConstraints.add(_elem1184); } } struct.setCheckConstraintsIsSet(true); @@ -67835,13 +67980,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args case 3: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1138 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list1138.size); - String _elem1139; - for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) + org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1186.size); + String _elem1187; + for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) { - _elem1139 = iprot.readString(); - struct.partNames.add(_elem1139); + _elem1187 = iprot.readString(); + struct.partNames.add(_elem1187); } iprot.readListEnd(); } @@ -67877,9 +68022,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_arg oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter1141 : struct.partNames) + for (String _iter1189 : struct.partNames) { - oprot.writeString(_iter1141); + oprot.writeString(_iter1189); } oprot.writeListEnd(); } @@ -67922,9 +68067,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter1142 : struct.partNames) + for (String _iter1190 : struct.partNames) { - oprot.writeString(_iter1142); + oprot.writeString(_iter1190); } } } @@ -67944,13 +68089,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list1143.size); - String _elem1144; - for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) + org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1191.size); + String _elem1192; + for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) { - _elem1144 = iprot.readString(); - struct.partNames.add(_elem1144); + _elem1192 = iprot.readString(); + struct.partNames.add(_elem1192); } } struct.setPartNamesIsSet(true); @@ -70007,13 +70152,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1146 = iprot.readListBegin(); - struct.success = new ArrayList(_list1146.size); - String _elem1147; - for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) + org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); + struct.success = new ArrayList(_list1194.size); + String _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1147 = iprot.readString(); - struct.success.add(_elem1147); + _elem1195 = iprot.readString(); + struct.success.add(_elem1195); } iprot.readListEnd(); } @@ -70048,9 +70193,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1149 : struct.success) + for (String _iter1197 : struct.success) { - oprot.writeString(_iter1149); + oprot.writeString(_iter1197); } oprot.writeListEnd(); } @@ -70089,9 +70234,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1150 : struct.success) + for (String _iter1198 : struct.success) { - oprot.writeString(_iter1150); + oprot.writeString(_iter1198); } } } @@ -70106,13 +70251,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1151.size); - String _elem1152; - for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) + org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1199.size); + String _elem1200; + for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) { - _elem1152 = iprot.readString(); - struct.success.add(_elem1152); + _elem1200 = iprot.readString(); + struct.success.add(_elem1200); } } struct.setSuccessIsSet(true); @@ -71086,13 +71231,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1154 = iprot.readListBegin(); - struct.success = new ArrayList(_list1154.size); - String _elem1155; - for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) + org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); + struct.success = new ArrayList(_list1202.size); + String _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1155 = iprot.readString(); - struct.success.add(_elem1155); + _elem1203 = iprot.readString(); + struct.success.add(_elem1203); } iprot.readListEnd(); } @@ -71127,9 +71272,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1157 : struct.success) + for (String _iter1205 : struct.success) { - oprot.writeString(_iter1157); + oprot.writeString(_iter1205); } oprot.writeListEnd(); } @@ -71168,9 +71313,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1158 : struct.success) + for (String _iter1206 : struct.success) { - oprot.writeString(_iter1158); + oprot.writeString(_iter1206); } } } @@ -71185,13 +71330,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1159.size); - String _elem1160; - for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) + org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1207.size); + String _elem1208; + for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) { - _elem1160 = iprot.readString(); - struct.success.add(_elem1160); + _elem1208 = iprot.readString(); + struct.success.add(_elem1208); } } struct.setSuccessIsSet(true); @@ -71957,13 +72102,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1162 = iprot.readListBegin(); - struct.success = new ArrayList(_list1162.size); - String _elem1163; - for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.success = new ArrayList(_list1210.size); + String _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1163 = iprot.readString(); - struct.success.add(_elem1163); + _elem1211 = iprot.readString(); + struct.success.add(_elem1211); } iprot.readListEnd(); } @@ -71998,9 +72143,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1165 : struct.success) + for (String _iter1213 : struct.success) { - oprot.writeString(_iter1165); + oprot.writeString(_iter1213); } oprot.writeListEnd(); } @@ -72039,9 +72184,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1166 : struct.success) + for (String _iter1214 : struct.success) { - oprot.writeString(_iter1166); + oprot.writeString(_iter1214); } } } @@ -72056,13 +72201,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1167.size); - String _elem1168; - for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) + org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1215.size); + String _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1168 = iprot.readString(); - struct.success.add(_elem1168); + _elem1216 = iprot.readString(); + struct.success.add(_elem1216); } } struct.setSuccessIsSet(true); @@ -72567,13 +72712,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1170.size); - String _elem1171; - for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) + org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1218.size); + String _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1171 = iprot.readString(); - struct.tbl_types.add(_elem1171); + _elem1219 = iprot.readString(); + struct.tbl_types.add(_elem1219); } iprot.readListEnd(); } @@ -72609,9 +72754,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter1173 : struct.tbl_types) + for (String _iter1221 : struct.tbl_types) { - oprot.writeString(_iter1173); + oprot.writeString(_iter1221); } oprot.writeListEnd(); } @@ -72654,9 +72799,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter1174 : struct.tbl_types) + for (String _iter1222 : struct.tbl_types) { - oprot.writeString(_iter1174); + oprot.writeString(_iter1222); } } } @@ -72676,13 +72821,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1175.size); - String _elem1176; - for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) + org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1223.size); + String _elem1224; + for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) { - _elem1176 = iprot.readString(); - struct.tbl_types.add(_elem1176); + _elem1224 = iprot.readString(); + struct.tbl_types.add(_elem1224); } } struct.setTbl_typesIsSet(true); @@ -73088,14 +73233,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin(); - struct.success = new ArrayList(_list1178.size); - TableMeta _elem1179; - for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) + org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); + struct.success = new ArrayList(_list1226.size); + TableMeta _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1179 = new TableMeta(); - _elem1179.read(iprot); - struct.success.add(_elem1179); + _elem1227 = new TableMeta(); + _elem1227.read(iprot); + struct.success.add(_elem1227); } iprot.readListEnd(); } @@ -73130,9 +73275,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter1181 : struct.success) + for (TableMeta _iter1229 : struct.success) { - _iter1181.write(oprot); + _iter1229.write(oprot); } oprot.writeListEnd(); } @@ -73171,9 +73316,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1182 : struct.success) + for (TableMeta _iter1230 : struct.success) { - _iter1182.write(oprot); + _iter1230.write(oprot); } } } @@ -73188,14 +73333,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1183.size); - TableMeta _elem1184; - for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) + org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1231.size); + TableMeta _elem1232; + for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) { - _elem1184 = new TableMeta(); - _elem1184.read(iprot); - struct.success.add(_elem1184); + _elem1232 = new TableMeta(); + _elem1232.read(iprot); + struct.success.add(_elem1232); } } struct.setSuccessIsSet(true); @@ -73961,13 +74106,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 _list1186 = iprot.readListBegin(); - struct.success = new ArrayList(_list1186.size); - String _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); + struct.success = new ArrayList(_list1234.size); + String _elem1235; + for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) { - _elem1187 = iprot.readString(); - struct.success.add(_elem1187); + _elem1235 = iprot.readString(); + struct.success.add(_elem1235); } iprot.readListEnd(); } @@ -74002,9 +74147,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 _iter1189 : struct.success) + for (String _iter1237 : struct.success) { - oprot.writeString(_iter1189); + oprot.writeString(_iter1237); } oprot.writeListEnd(); } @@ -74043,9 +74188,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1190 : struct.success) + for (String _iter1238 : struct.success) { - oprot.writeString(_iter1190); + oprot.writeString(_iter1238); } } } @@ -74060,13 +74205,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1191.size); - String _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1239.size); + String _elem1240; + for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) { - _elem1192 = iprot.readString(); - struct.success.add(_elem1192); + _elem1240 = iprot.readString(); + struct.success.add(_elem1240); } } struct.setSuccessIsSet(true); @@ -75519,13 +75664,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1194.size); - String _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1242.size); + String _elem1243; + for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { - _elem1195 = iprot.readString(); - struct.tbl_names.add(_elem1195); + _elem1243 = iprot.readString(); + struct.tbl_names.add(_elem1243); } iprot.readListEnd(); } @@ -75556,9 +75701,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter1197 : struct.tbl_names) + for (String _iter1245 : struct.tbl_names) { - oprot.writeString(_iter1197); + oprot.writeString(_iter1245); } oprot.writeListEnd(); } @@ -75595,9 +75740,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter1198 : struct.tbl_names) + for (String _iter1246 : struct.tbl_names) { - oprot.writeString(_iter1198); + oprot.writeString(_iter1246); } } } @@ -75613,13 +75758,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1199.size); - String _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1247.size); + String _elem1248; + for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { - _elem1200 = iprot.readString(); - struct.tbl_names.add(_elem1200); + _elem1248 = iprot.readString(); + struct.tbl_names.add(_elem1248); } } struct.setTbl_namesIsSet(true); @@ -75944,14 +76089,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1202.size); - Table _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1250.size); + Table _elem1251; + for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) { - _elem1203 = new Table(); - _elem1203.read(iprot); - struct.success.add(_elem1203); + _elem1251 = new Table(); + _elem1251.read(iprot); + struct.success.add(_elem1251); } iprot.readListEnd(); } @@ -75977,9 +76122,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1205 : struct.success) + for (Table _iter1253 : struct.success) { - _iter1205.write(oprot); + _iter1253.write(oprot); } oprot.writeListEnd(); } @@ -76010,9 +76155,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1206 : struct.success) + for (Table _iter1254 : struct.success) { - _iter1206.write(oprot); + _iter1254.write(oprot); } } } @@ -76024,14 +76169,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1207.size); - Table _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1255.size); + Table _elem1256; + for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) { - _elem1208 = new Table(); - _elem1208.read(iprot); - struct.success.add(_elem1208); + _elem1256 = new Table(); + _elem1256.read(iprot); + struct.success.add(_elem1256); } } struct.setSuccessIsSet(true); @@ -76041,18 +76186,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_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_ext_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_ext_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_ext_argsTupleSchemeFactory()); } - private GetTableRequest req; // required + private GetTablesExtRequest 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 { @@ -76117,16 +76262,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTableRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesExtRequest.class))); 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_tables_ext_args.class, metaDataMap); } - public get_table_req_args() { + public get_tables_ext_args() { } - public get_table_req_args( - GetTableRequest req) + public get_tables_ext_args( + GetTablesExtRequest req) { this(); this.req = req; @@ -76135,14 +76280,14 @@ public get_table_req_args( /** * Performs a deep copy on other. */ - public get_table_req_args(get_table_req_args other) { + public get_tables_ext_args(get_tables_ext_args other) { if (other.isSetReq()) { - this.req = new GetTableRequest(other.req); + this.req = new GetTablesExtRequest(other.req); } } - public get_table_req_args deepCopy() { - return new get_table_req_args(this); + public get_tables_ext_args deepCopy() { + return new get_tables_ext_args(this); } @Override @@ -76150,11 +76295,11 @@ public void clear() { this.req = null; } - public GetTableRequest getReq() { + public GetTablesExtRequest getReq() { return this.req; } - public void setReq(GetTableRequest req) { + public void setReq(GetTablesExtRequest req) { this.req = req; } @@ -76179,7 +76324,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetTableRequest)value); + setReq((GetTablesExtRequest)value); } break; @@ -76212,12 +76357,12 @@ 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_tables_ext_args) + return this.equals((get_tables_ext_args)that); return false; } - public boolean equals(get_table_req_args that) { + public boolean equals(get_tables_ext_args that) { if (that == null) return false; @@ -76246,7 +76391,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_req_args other) { + public int compareTo(get_tables_ext_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -76280,7 +76425,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_args("); + StringBuilder sb = new StringBuilder("get_tables_ext_args("); boolean first = true; sb.append("req:"); @@ -76318,15 +76463,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_tables_ext_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_ext_argsStandardScheme getScheme() { + return new get_tables_ext_argsStandardScheme(); } } - private static class get_table_req_argsStandardScheme extends StandardScheme { + private static class get_tables_ext_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_tables_ext_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76338,7 +76483,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTableRequest(); + struct.req = new GetTablesExtRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -76354,7 +76499,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_ext_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -76369,16 +76514,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args } - private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_req_argsTupleScheme getScheme() { - return new get_table_req_argsTupleScheme(); + private static class get_tables_ext_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_ext_argsTupleScheme getScheme() { + return new get_tables_ext_argsTupleScheme(); } } - private static class get_table_req_argsTupleScheme extends TupleScheme { + private static class get_tables_ext_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_tables_ext_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -76391,11 +76536,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new GetTableRequest(); + struct.req = new GetTablesExtRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -76404,28 +76549,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args s } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_ext_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_ext_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_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_ext_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_ext_resultTupleSchemeFactory()); } - private GetTableResult 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(); @@ -76444,8 +76586,6 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -76490,60 +76630,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, GetTableResult.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, ExtendedTableInfo.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_tables_ext_result.class, metaDataMap); } - public get_table_req_result() { + public get_tables_ext_result() { } - public get_table_req_result( - GetTableResult success, - MetaException o1, - NoSuchObjectException o2) + public get_tables_ext_result( + List success, + MetaException o1) { this(); this.success = success; this.o1 = o1; - this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_table_req_result(get_table_req_result other) { + public get_tables_ext_result(get_tables_ext_result other) { if (other.isSetSuccess()) { - this.success = new GetTableResult(other.success); + List __this__success = new ArrayList(other.success.size()); + for (ExtendedTableInfo other_element : other.success) { + __this__success.add(new ExtendedTableInfo(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_req_result deepCopy() { - return new get_table_req_result(this); + public get_tables_ext_result deepCopy() { + return new get_tables_ext_result(this); } @Override public void clear() { this.success = null; this.o1 = null; - this.o2 = null; } - public GetTableResult 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(ExtendedTableInfo elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(GetTableResult success) { + public void setSuccess(List success) { this.success = success; } @@ -76585,36 +76737,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((GetTableResult)value); + setSuccess((List)value); } break; @@ -76626,14 +76755,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((NoSuchObjectException)value); - } - break; - } } @@ -76645,9 +76766,6 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -76663,8 +76781,6 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -76673,12 +76789,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_tables_ext_result) + return this.equals((get_tables_ext_result)that); return false; } - public boolean equals(get_table_req_result that) { + public boolean equals(get_tables_ext_result that) { if (that == null) return false; @@ -76700,15 +76816,6 @@ public boolean equals(get_table_req_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; } @@ -76726,16 +76833,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_req_result other) { + public int compareTo(get_tables_ext_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -76762,16 +76864,6 @@ public int compareTo(get_table_req_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; } @@ -76789,7 +76881,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_tables_ext_result("); boolean first = true; sb.append("success:"); @@ -76807,14 +76899,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(); } @@ -76822,9 +76906,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 { @@ -76843,15 +76924,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_tables_ext_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_ext_resultStandardScheme getScheme() { + return new get_tables_ext_resultStandardScheme(); } } - private static class get_table_req_resultStandardScheme extends StandardScheme { + private static class get_tables_ext_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_tables_ext_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76862,9 +76943,19 @@ 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.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin(); + struct.success = new ArrayList(_list1258.size); + ExtendedTableInfo _elem1259; + for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) + { + _elem1259 = new ExtendedTableInfo(); + _elem1259.read(iprot); + struct.success.add(_elem1259); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -76879,15 +76970,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul 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); } @@ -76897,13 +76979,20 @@ 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_tables_ext_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 (ExtendedTableInfo _iter1261 : struct.success) + { + _iter1261.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -76911,27 +77000,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_resu struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_req_resultTupleScheme getScheme() { - return new get_table_req_resultTupleScheme(); + private static class get_tables_ext_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_ext_resultTupleScheme getScheme() { + return new get_tables_ext_resultTupleScheme(); } } - private static class get_table_req_resultTupleScheme extends TupleScheme { + private static class get_tables_ext_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_tables_ext_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -76940,28 +77024,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul 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 (ExtendedTableInfo _iter1262 : struct.success) + { + _iter1262.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_ext_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 GetTableResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1263.size); + ExtendedTableInfo _elem1264; + for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + { + _elem1264 = new ExtendedTableInfo(); + _elem1264.read(iprot); + struct.success.add(_elem1264); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -76969,28 +77062,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_argsTupleSchemeFactory()); } - private GetTablesRequest req; // 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 { @@ -77055,16 +77143,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesRequest.class))); + 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_objects_by_name_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_args.class, metaDataMap); } - public get_table_objects_by_name_req_args() { + public get_table_req_args() { } - public get_table_objects_by_name_req_args( - GetTablesRequest req) + public get_table_req_args( + GetTableRequest req) { this(); this.req = req; @@ -77073,14 +77161,14 @@ public get_table_objects_by_name_req_args( /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { + public get_table_req_args(get_table_req_args other) { if (other.isSetReq()) { - this.req = new GetTablesRequest(other.req); + this.req = new GetTableRequest(other.req); } } - public get_table_objects_by_name_req_args deepCopy() { - return new get_table_objects_by_name_req_args(this); + public get_table_req_args deepCopy() { + return new get_table_req_args(this); } @Override @@ -77088,11 +77176,11 @@ public void clear() { this.req = null; } - public GetTablesRequest getReq() { + public GetTableRequest getReq() { return this.req; } - public void setReq(GetTablesRequest req) { + public void setReq(GetTableRequest req) { this.req = req; } @@ -77117,7 +77205,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetTablesRequest)value); + setReq((GetTableRequest)value); } break; @@ -77150,12 +77238,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_args) - return this.equals((get_table_objects_by_name_req_args)that); + if (that instanceof get_table_req_args) + return this.equals((get_table_req_args)that); return false; } - public boolean equals(get_table_objects_by_name_req_args that) { + public boolean equals(get_table_req_args that) { if (that == null) return false; @@ -77184,7 +77272,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_objects_by_name_req_args other) { + public int compareTo(get_table_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -77218,7 +77306,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_args("); + StringBuilder sb = new StringBuilder("get_table_req_args("); boolean first = true; sb.append("req:"); @@ -77256,15 +77344,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_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_req_argsStandardScheme getScheme() { + return new get_table_req_argsStandardScheme(); } } - private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { + private static class get_table_req_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_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77276,7 +77364,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTablesRequest(); + struct.req = new GetTableRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -77292,7 +77380,7 @@ 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_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77307,16 +77395,16 @@ 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_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_req_argsTupleScheme getScheme() { + return new get_table_req_argsTupleScheme(); } } - private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { + private static class get_table_req_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_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -77329,11 +77417,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_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(1); if (incoming.get(0)) { - struct.req = new GetTablesRequest(); + struct.req = new GetTableRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -77342,31 +77430,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); } - private GetTablesResult 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(); @@ -77387,8 +77472,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -77433,53 +77516,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, GetTablesResult.class))); + 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_objects_by_name_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_req_result.class, metaDataMap); } - public get_table_objects_by_name_req_result() { + public get_table_req_result() { } - public get_table_objects_by_name_req_result( - GetTablesResult 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_objects_by_name_req_result(get_table_objects_by_name_req_result other) { + public get_table_req_result(get_table_req_result other) { if (other.isSetSuccess()) { - this.success = new GetTablesResult(other.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_objects_by_name_req_result deepCopy() { - return new get_table_objects_by_name_req_result(this); + public get_table_req_result deepCopy() { + return new get_table_req_result(this); } @Override @@ -77487,14 +77563,13 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; } - public GetTablesResult getSuccess() { + public GetTableResult getSuccess() { return this.success; } - public void setSuccess(GetTablesResult success) { + public void setSuccess(GetTableResult success) { this.success = success; } @@ -77536,11 +77611,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; } @@ -77559,36 +77634,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((GetTablesResult)value); + setSuccess((GetTableResult)value); } break; @@ -77604,15 +77656,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; @@ -77630,9 +77674,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -77650,8 +77691,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -77660,12 +77699,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_req_result) + return this.equals((get_table_req_result)that); return false; } - public boolean equals(get_table_objects_by_name_req_result that) { + public boolean equals(get_table_req_result that) { if (that == null) return false; @@ -77696,15 +77735,6 @@ public boolean equals(get_table_objects_by_name_req_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @@ -77727,16 +77757,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_objects_by_name_req_result other) { + public int compareTo(get_table_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -77773,16 +77798,6 @@ public int compareTo(get_table_objects_by_name_req_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -77800,7 +77815,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_req_result("); boolean first = true; sb.append("success:"); @@ -77826,14 +77841,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(); } @@ -77862,15 +77869,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_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_req_resultStandardScheme getScheme() { + return new get_table_req_resultStandardScheme(); } } - private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { + private static class get_table_req_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_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77882,7 +77889,7 @@ 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 = new GetTableResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -77900,22 +77907,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b 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); } @@ -77925,7 +77923,7 @@ 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_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77944,27 +77942,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ 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_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultTupleScheme getScheme() { - return new get_table_objects_by_name_req_resultTupleScheme(); + private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_req_resultTupleScheme getScheme() { + return new get_table_req_resultTupleScheme(); } } - private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { + private static class get_table_req_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_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -77976,10 +77969,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b 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); } @@ -77989,17 +77979,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b 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_objects_by_name_req_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)) { - struct.success = new GetTablesResult(); + struct.success = new GetTableResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -78009,39 +77996,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by 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); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_args"); - private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField VALID_TXN_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validTxnList", org.apache.thrift.protocol.TType.STRING, (short)2); + 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_materialization_invalidation_info_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialization_invalidation_info_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 CreationMetadata creation_metadata; // required - private String validTxnList; // 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 { - CREATION_METADATA((short)1, "creation_metadata"), - VALID_TXN_LIST((short)2, "validTxnList"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -78056,10 +78035,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // CREATION_METADATA - return CREATION_METADATA; - case 2: // VALID_TXN_LIST - return VALID_TXN_LIST; + case 1: // REQ + return REQ; default: return null; } @@ -78103,109 +78080,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.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); - tmpMap.put(_Fields.VALID_TXN_LIST, new org.apache.thrift.meta_data.FieldMetaData("validTxnList", 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, GetTablesRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); } - public get_materialization_invalidation_info_args() { + public get_table_objects_by_name_req_args() { } - public get_materialization_invalidation_info_args( - CreationMetadata creation_metadata, - String validTxnList) + public get_table_objects_by_name_req_args( + GetTablesRequest req) { this(); - this.creation_metadata = creation_metadata; - this.validTxnList = validTxnList; + this.req = req; } /** * Performs a deep copy on other. */ - public get_materialization_invalidation_info_args(get_materialization_invalidation_info_args other) { - if (other.isSetCreation_metadata()) { - this.creation_metadata = new CreationMetadata(other.creation_metadata); - } - if (other.isSetValidTxnList()) { - this.validTxnList = other.validTxnList; + public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { + if (other.isSetReq()) { + this.req = new GetTablesRequest(other.req); } } - public get_materialization_invalidation_info_args deepCopy() { - return new get_materialization_invalidation_info_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.creation_metadata = null; - this.validTxnList = null; - } - - public CreationMetadata getCreation_metadata() { - return this.creation_metadata; - } - - public void setCreation_metadata(CreationMetadata creation_metadata) { - this.creation_metadata = creation_metadata; - } - - public void unsetCreation_metadata() { - this.creation_metadata = null; - } - - /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ - public boolean isSetCreation_metadata() { - return this.creation_metadata != null; - } - - public void setCreation_metadataIsSet(boolean value) { - if (!value) { - this.creation_metadata = null; - } + this.req = null; } - public String getValidTxnList() { - return this.validTxnList; + public GetTablesRequest getReq() { + return this.req; } - public void setValidTxnList(String validTxnList) { - this.validTxnList = validTxnList; + public void setReq(GetTablesRequest req) { + this.req = req; } - public void unsetValidTxnList() { - this.validTxnList = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field validTxnList is set (has been assigned a value) and false otherwise */ - public boolean isSetValidTxnList() { - return this.validTxnList != 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 setValidTxnListIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.validTxnList = null; + this.req = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case CREATION_METADATA: - if (value == null) { - unsetCreation_metadata(); - } else { - setCreation_metadata((CreationMetadata)value); - } - break; - - case VALID_TXN_LIST: + case REQ: if (value == null) { - unsetValidTxnList(); + unsetReq(); } else { - setValidTxnList((String)value); + setReq((GetTablesRequest)value); } break; @@ -78214,11 +78152,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case CREATION_METADATA: - return getCreation_metadata(); - - case VALID_TXN_LIST: - return getValidTxnList(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -78231,10 +78166,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case CREATION_METADATA: - return isSetCreation_metadata(); - case VALID_TXN_LIST: - return isSetValidTxnList(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -78243,30 +78176,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialization_invalidation_info_args) - return this.equals((get_materialization_invalidation_info_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(get_materialization_invalidation_info_args that) { + public boolean equals(get_table_objects_by_name_req_args that) { if (that == null) return false; - boolean this_present_creation_metadata = true && this.isSetCreation_metadata(); - boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); - if (this_present_creation_metadata || that_present_creation_metadata) { - if (!(this_present_creation_metadata && that_present_creation_metadata)) - return false; - if (!this.creation_metadata.equals(that.creation_metadata)) - return false; - } - - boolean this_present_validTxnList = true && this.isSetValidTxnList(); - boolean that_present_validTxnList = true && that.isSetValidTxnList(); - if (this_present_validTxnList || that_present_validTxnList) { - if (!(this_present_validTxnList && that_present_validTxnList)) + 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.validTxnList.equals(that.validTxnList)) + if (!this.req.equals(that.req)) return false; } @@ -78277,43 +78201,28 @@ public boolean equals(get_materialization_invalidation_info_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_creation_metadata = true && (isSetCreation_metadata()); - list.add(present_creation_metadata); - if (present_creation_metadata) - list.add(creation_metadata); - - boolean present_validTxnList = true && (isSetValidTxnList()); - list.add(present_validTxnList); - if (present_validTxnList) - list.add(validTxnList); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(get_materialization_invalidation_info_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(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCreation_metadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetValidTxnList()).compareTo(other.isSetValidTxnList()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetValidTxnList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validTxnList, other.validTxnList); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -78335,22 +78244,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); boolean first = true; - sb.append("creation_metadata:"); - if (this.creation_metadata == null) { - sb.append("null"); - } else { - sb.append(this.creation_metadata); - } - first = false; - if (!first) sb.append(", "); - sb.append("validTxnList:"); - if (this.validTxnList == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.validTxnList); + sb.append(this.req); } first = false; sb.append(")"); @@ -78360,8 +78261,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (creation_metadata != null) { - creation_metadata.validate(); + if (req != null) { + req.validate(); } } @@ -78381,15 +78282,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialization_invalidation_info_argsStandardSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_argsStandardScheme getScheme() { - return new get_materialization_invalidation_info_argsStandardScheme(); + private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsStandardScheme getScheme() { + return new get_table_objects_by_name_req_argsStandardScheme(); } } - private static class get_materialization_invalidation_info_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_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) @@ -78399,19 +78300,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization break; } switch (schemeField.id) { - case 1: // CREATION_METADATA + case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // VALID_TXN_LIST - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.validTxnList = iprot.readString(); - struct.setValidTxnListIsSet(true); + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78425,18 +78318,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_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.creation_metadata != null) { - oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); - struct.creation_metadata.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.validTxnList != null) { - oprot.writeFieldBegin(VALID_TXN_LIST_FIELD_DESC); - oprot.writeString(struct.validTxnList); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -78445,53 +78333,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio } - private static class get_materialization_invalidation_info_argsTupleSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_argsTupleScheme getScheme() { - return new get_materialization_invalidation_info_argsTupleScheme(); + private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsTupleScheme getScheme() { + return new get_table_objects_by_name_req_argsTupleScheme(); } } - private static class get_materialization_invalidation_info_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_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.isSetCreation_metadata()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetValidTxnList()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetCreation_metadata()) { - struct.creation_metadata.write(oprot); - } - if (struct.isSetValidTxnList()) { - oprot.writeString(struct.validTxnList); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_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(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); - } - if (incoming.get(1)) { - struct.validTxnList = iprot.readString(); - struct.setValidTxnListIsSet(true); + struct.req = new GetTablesRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -78500,11 +78378,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialization_invalidation_info_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialization_invalidation_info_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 Materialization success; // required + private GetTablesResult success; // required private MetaException o1; // required private InvalidOperationException o2; // required private UnknownDBException o3; // required @@ -78581,7 +78459,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, Materialization.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -78589,14 +78467,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); } - public get_materialization_invalidation_info_result() { + public get_table_objects_by_name_req_result() { } - public get_materialization_invalidation_info_result( - Materialization success, + public get_table_objects_by_name_req_result( + GetTablesResult success, MetaException o1, InvalidOperationException o2, UnknownDBException o3) @@ -78611,9 +78489,9 @@ public get_materialization_invalidation_info_result( /** * Performs a deep copy on other. */ - public get_materialization_invalidation_info_result(get_materialization_invalidation_info_result other) { + public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { if (other.isSetSuccess()) { - this.success = new Materialization(other.success); + this.success = new GetTablesResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -78626,8 +78504,8 @@ public get_materialization_invalidation_info_result(get_materialization_invalida } } - public get_materialization_invalidation_info_result deepCopy() { - return new get_materialization_invalidation_info_result(this); + public get_table_objects_by_name_req_result deepCopy() { + return new get_table_objects_by_name_req_result(this); } @Override @@ -78638,11 +78516,11 @@ public void clear() { this.o3 = null; } - public Materialization getSuccess() { + public GetTablesResult getSuccess() { return this.success; } - public void setSuccess(Materialization success) { + public void setSuccess(GetTablesResult success) { this.success = success; } @@ -78736,7 +78614,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Materialization)value); + setSuccess((GetTablesResult)value); } break; @@ -78808,12 +78686,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialization_invalidation_info_result) - return this.equals((get_materialization_invalidation_info_result)that); + if (that instanceof get_table_objects_by_name_req_result) + return this.equals((get_table_objects_by_name_req_result)that); return false; } - public boolean equals(get_materialization_invalidation_info_result that) { + public boolean equals(get_table_objects_by_name_req_result that) { if (that == null) return false; @@ -78884,7 +78762,7 @@ public int hashCode() { } @Override - public int compareTo(get_materialization_invalidation_info_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()); } @@ -78948,7 +78826,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); boolean first = true; sb.append("success:"); @@ -79010,15 +78888,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_materialization_invalidation_info_resultStandardSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_resultStandardScheme getScheme() { - return new get_materialization_invalidation_info_resultStandardScheme(); + private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultStandardScheme getScheme() { + return new get_table_objects_by_name_req_resultStandardScheme(); } } - private static class get_materialization_invalidation_info_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_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) @@ -79030,7 +78908,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Materialization(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -79073,7 +78951,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_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); @@ -79103,16 +78981,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio } - private static class get_materialization_invalidation_info_resultTupleSchemeFactory implements SchemeFactory { - public get_materialization_invalidation_info_resultTupleScheme getScheme() { - return new get_materialization_invalidation_info_resultTupleScheme(); + private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultTupleScheme getScheme() { + return new get_table_objects_by_name_req_resultTupleScheme(); } } - private static class get_materialization_invalidation_info_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -79143,11 +79021,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_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(4); if (incoming.get(0)) { - struct.success = new Materialization(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -79171,31 +79049,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_args"); - private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (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)2); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField VALID_TXN_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validTxnList", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new update_creation_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new update_creation_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_argsTupleSchemeFactory()); } - private String catName; // required - private String dbname; // required - private String tbl_name; // required private CreationMetadata creation_metadata; // required + private String validTxnList; // 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 { - CAT_NAME((short)1, "catName"), - DBNAME((short)2, "dbname"), - TBL_NAME((short)3, "tbl_name"), - CREATION_METADATA((short)4, "creation_metadata"); + CREATION_METADATA((short)1, "creation_metadata"), + VALID_TXN_LIST((short)2, "validTxnList"); private static final Map byName = new HashMap(); @@ -79210,14 +79082,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // CAT_NAME - return CAT_NAME; - case 2: // DBNAME - return DBNAME; - case 3: // TBL_NAME - return TBL_NAME; - case 4: // CREATION_METADATA + case 1: // CREATION_METADATA return CREATION_METADATA; + case 2: // VALID_TXN_LIST + return VALID_TXN_LIST; default: return null; } @@ -79261,187 +79129,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.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - 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.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.class))); + tmpMap.put(_Fields.VALID_TXN_LIST, new org.apache.thrift.meta_data.FieldMetaData("validTxnList", 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(update_creation_metadata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_args.class, metaDataMap); } - public update_creation_metadata_args() { + public get_materialization_invalidation_info_args() { } - public update_creation_metadata_args( - String catName, - String dbname, - String tbl_name, - CreationMetadata creation_metadata) + public get_materialization_invalidation_info_args( + CreationMetadata creation_metadata, + String validTxnList) { this(); - this.catName = catName; - this.dbname = dbname; - this.tbl_name = tbl_name; this.creation_metadata = creation_metadata; + this.validTxnList = validTxnList; } /** * Performs a deep copy on other. */ - public update_creation_metadata_args(update_creation_metadata_args other) { - if (other.isSetCatName()) { - this.catName = other.catName; - } - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } + public get_materialization_invalidation_info_args(get_materialization_invalidation_info_args other) { if (other.isSetCreation_metadata()) { this.creation_metadata = new CreationMetadata(other.creation_metadata); } + if (other.isSetValidTxnList()) { + this.validTxnList = other.validTxnList; + } } - public update_creation_metadata_args deepCopy() { - return new update_creation_metadata_args(this); + public get_materialization_invalidation_info_args deepCopy() { + return new get_materialization_invalidation_info_args(this); } @Override public void clear() { - this.catName = null; - this.dbname = null; - this.tbl_name = null; this.creation_metadata = null; + this.validTxnList = null; } - public String getCatName() { - return this.catName; - } - - public void setCatName(String catName) { - this.catName = catName; - } - - public void unsetCatName() { - this.catName = null; - } - - /** Returns true if field catName is set (has been assigned a value) and false otherwise */ - public boolean isSetCatName() { - return this.catName != null; - } - - public void setCatNameIsSet(boolean value) { - if (!value) { - this.catName = 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 CreationMetadata getCreation_metadata() { + return this.creation_metadata; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setCreation_metadata(CreationMetadata creation_metadata) { + this.creation_metadata = creation_metadata; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetCreation_metadata() { + this.creation_metadata = 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 creation_metadata is set (has been assigned a value) and false otherwise */ + public boolean isSetCreation_metadata() { + return this.creation_metadata != null; } - public void setTbl_nameIsSet(boolean value) { + public void setCreation_metadataIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.creation_metadata = null; } } - public CreationMetadata getCreation_metadata() { - return this.creation_metadata; + public String getValidTxnList() { + return this.validTxnList; } - public void setCreation_metadata(CreationMetadata creation_metadata) { - this.creation_metadata = creation_metadata; + public void setValidTxnList(String validTxnList) { + this.validTxnList = validTxnList; } - public void unsetCreation_metadata() { - this.creation_metadata = null; + public void unsetValidTxnList() { + this.validTxnList = null; } - /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ - public boolean isSetCreation_metadata() { - return this.creation_metadata != null; + /** Returns true if field validTxnList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidTxnList() { + return this.validTxnList != null; } - public void setCreation_metadataIsSet(boolean value) { + public void setValidTxnListIsSet(boolean value) { if (!value) { - this.creation_metadata = null; + this.validTxnList = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case CAT_NAME: - if (value == null) { - unsetCatName(); - } else { - setCatName((String)value); - } - break; - - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: + case CREATION_METADATA: if (value == null) { - unsetTbl_name(); + unsetCreation_metadata(); } else { - setTbl_name((String)value); + setCreation_metadata((CreationMetadata)value); } break; - case CREATION_METADATA: + case VALID_TXN_LIST: if (value == null) { - unsetCreation_metadata(); + unsetValidTxnList(); } else { - setCreation_metadata((CreationMetadata)value); + setValidTxnList((String)value); } break; @@ -79450,18 +79240,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case CAT_NAME: - return getCatName(); - - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - case CREATION_METADATA: return getCreation_metadata(); + case VALID_TXN_LIST: + return getValidTxnList(); + } throw new IllegalStateException(); } @@ -79473,14 +79257,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case CAT_NAME: - return isSetCatName(); - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); case CREATION_METADATA: return isSetCreation_metadata(); + case VALID_TXN_LIST: + return isSetValidTxnList(); } throw new IllegalStateException(); } @@ -79489,42 +79269,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof update_creation_metadata_args) - return this.equals((update_creation_metadata_args)that); + if (that instanceof get_materialization_invalidation_info_args) + return this.equals((get_materialization_invalidation_info_args)that); return false; } - public boolean equals(update_creation_metadata_args that) { + public boolean equals(get_materialization_invalidation_info_args that) { if (that == null) return false; - boolean this_present_catName = true && this.isSetCatName(); - boolean that_present_catName = true && that.isSetCatName(); - if (this_present_catName || that_present_catName) { - if (!(this_present_catName && that_present_catName)) - return false; - if (!this.catName.equals(that.catName)) - 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_creation_metadata = true && this.isSetCreation_metadata(); boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); if (this_present_creation_metadata || that_present_creation_metadata) { @@ -79534,6 +79287,15 @@ public boolean equals(update_creation_metadata_args that) { return false; } + boolean this_present_validTxnList = true && this.isSetValidTxnList(); + boolean that_present_validTxnList = true && that.isSetValidTxnList(); + if (this_present_validTxnList || that_present_validTxnList) { + if (!(this_present_validTxnList && that_present_validTxnList)) + return false; + if (!this.validTxnList.equals(that.validTxnList)) + return false; + } + return true; } @@ -79541,73 +79303,43 @@ public boolean equals(update_creation_metadata_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_catName = true && (isSetCatName()); - list.add(present_catName); - if (present_catName) - list.add(catName); - - 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_creation_metadata = true && (isSetCreation_metadata()); list.add(present_creation_metadata); if (present_creation_metadata) list.add(creation_metadata); + boolean present_validTxnList = true && (isSetValidTxnList()); + list.add(present_validTxnList); + if (present_validTxnList) + list.add(validTxnList); + return list.hashCode(); } @Override - public int compareTo(update_creation_metadata_args other) { + public int compareTo(get_materialization_invalidation_info_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetCatName()).compareTo(other.isSetCatName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCatName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catName, other.catName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetCreation_metadata()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); + lastComparison = Boolean.valueOf(isSetValidTxnList()).compareTo(other.isSetValidTxnList()); if (lastComparison != 0) { return lastComparison; } - if (isSetCreation_metadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); + if (isSetValidTxnList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validTxnList, other.validTxnList); if (lastComparison != 0) { return lastComparison; } @@ -79629,38 +79361,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("update_creation_metadata_args("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_args("); boolean first = true; - sb.append("catName:"); - if (this.catName == null) { - sb.append("null"); - } else { - sb.append(this.catName); - } - first = false; - if (!first) sb.append(", "); - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("creation_metadata:"); + if (this.creation_metadata == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.creation_metadata); } first = false; if (!first) sb.append(", "); - sb.append("creation_metadata:"); - if (this.creation_metadata == null) { + sb.append("validTxnList:"); + if (this.validTxnList == null) { sb.append("null"); } else { - sb.append(this.creation_metadata); + sb.append(this.validTxnList); } first = false; sb.append(")"); @@ -79691,15 +79407,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class update_creation_metadata_argsStandardSchemeFactory implements SchemeFactory { - public update_creation_metadata_argsStandardScheme getScheme() { - return new update_creation_metadata_argsStandardScheme(); + private static class get_materialization_invalidation_info_argsStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsStandardScheme getScheme() { + return new get_materialization_invalidation_info_argsStandardScheme(); } } - private static class update_creation_metadata_argsStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79709,35 +79425,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met break; } switch (schemeField.id) { - case 1: // CAT_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.catName = iprot.readString(); - struct.setCatNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + case 1: // CREATION_METADATA + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // TBL_NAME + case 2: // VALID_TXN_LIST 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 4: // CREATION_METADATA - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.creation_metadata = new CreationMetadata(); - struct.creation_metadata.read(iprot); - struct.setCreation_metadataIsSet(true); + struct.validTxnList = iprot.readString(); + struct.setValidTxnListIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -79751,120 +79451,93 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.catName != null) { - oprot.writeFieldBegin(CAT_NAME_FIELD_DESC); - oprot.writeString(struct.catName); - oprot.writeFieldEnd(); - } - 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.creation_metadata != null) { oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); struct.creation_metadata.write(oprot); oprot.writeFieldEnd(); } + if (struct.validTxnList != null) { + oprot.writeFieldBegin(VALID_TXN_LIST_FIELD_DESC); + oprot.writeString(struct.validTxnList); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class update_creation_metadata_argsTupleSchemeFactory implements SchemeFactory { - public update_creation_metadata_argsTupleScheme getScheme() { - return new update_creation_metadata_argsTupleScheme(); + private static class get_materialization_invalidation_info_argsTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsTupleScheme getScheme() { + return new get_materialization_invalidation_info_argsTupleScheme(); } } - private static class update_creation_metadata_argsTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetCatName()) { + if (struct.isSetCreation_metadata()) { optionals.set(0); } - if (struct.isSetDbname()) { + if (struct.isSetValidTxnList()) { optionals.set(1); } - if (struct.isSetTbl_name()) { - optionals.set(2); - } - if (struct.isSetCreation_metadata()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetCatName()) { - oprot.writeString(struct.catName); - } - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } + oprot.writeBitSet(optionals, 2); if (struct.isSetCreation_metadata()) { struct.creation_metadata.write(oprot); } + if (struct.isSetValidTxnList()) { + oprot.writeString(struct.validTxnList); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.catName = iprot.readString(); - struct.setCatNameIsSet(true); - } - if (incoming.get(1)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(2)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(3)) { struct.creation_metadata = new CreationMetadata(); struct.creation_metadata.read(iprot); struct.setCreation_metadataIsSet(true); } + if (incoming.get(1)) { + struct.validTxnList = iprot.readString(); + struct.setValidTxnListIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialization_invalidation_info_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField 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 update_creation_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new update_creation_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_resultTupleSchemeFactory()); } + private Materialization 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"), O3((short)3, "o3"); @@ -79882,6 +79555,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_meta */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 @@ -79931,6 +79606,8 @@ 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, Materialization.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -79938,18 +79615,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(update_creation_metadata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_result.class, metaDataMap); } - public update_creation_metadata_result() { + public get_materialization_invalidation_info_result() { } - public update_creation_metadata_result( + public get_materialization_invalidation_info_result( + Materialization success, MetaException o1, InvalidOperationException o2, UnknownDBException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -79958,7 +79637,10 @@ public update_creation_metadata_result( /** * Performs a deep copy on other. */ - public update_creation_metadata_result(update_creation_metadata_result other) { + public get_materialization_invalidation_info_result(get_materialization_invalidation_info_result other) { + if (other.isSetSuccess()) { + this.success = new Materialization(other.success); + } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } @@ -79970,17 +79652,41 @@ public update_creation_metadata_result(update_creation_metadata_result other) { } } - public update_creation_metadata_result deepCopy() { - return new update_creation_metadata_result(this); + public get_materialization_invalidation_info_result deepCopy() { + return new get_materialization_invalidation_info_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } + public Materialization getSuccess() { + return this.success; + } + + public void setSuccess(Materialization 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; } @@ -80052,6 +79758,14 @@ public void setO3IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Materialization)value); + } + break; + case O1: if (value == null) { unsetO1(); @@ -80081,6 +79795,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -80101,6 +79818,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -80115,15 +79834,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof update_creation_metadata_result) - return this.equals((update_creation_metadata_result)that); + if (that instanceof get_materialization_invalidation_info_result) + return this.equals((get_materialization_invalidation_info_result)that); return false; } - public boolean equals(update_creation_metadata_result that) { + public boolean equals(get_materialization_invalidation_info_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) { @@ -80158,6 +79886,11 @@ public boolean equals(update_creation_metadata_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -80177,13 +79910,23 @@ public int hashCode() { } @Override - public int compareTo(update_creation_metadata_result other) { + public int compareTo(get_materialization_invalidation_info_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; @@ -80231,9 +79974,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("update_creation_metadata_result("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_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"); @@ -80264,6 +80015,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 { @@ -80282,15 +80036,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class update_creation_metadata_resultStandardSchemeFactory implements SchemeFactory { - public update_creation_metadata_resultStandardScheme getScheme() { - return new update_creation_metadata_resultStandardScheme(); + private static class get_materialization_invalidation_info_resultStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultStandardScheme getScheme() { + return new get_materialization_invalidation_info_resultStandardScheme(); } } - private static class update_creation_metadata_resultStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80300,6 +80054,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Materialization(); + 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(); @@ -80336,10 +80099,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, update_creation_met struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -80361,28 +80129,34 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_me } - private static class update_creation_metadata_resultTupleSchemeFactory implements SchemeFactory { - public update_creation_metadata_resultTupleScheme getScheme() { - return new update_creation_metadata_resultTupleScheme(); + private static class get_materialization_invalidation_info_resultTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultTupleScheme getScheme() { + return new get_materialization_invalidation_info_resultTupleScheme(); } } - private static class update_creation_metadata_resultTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.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); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -80395,20 +80169,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_met } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + struct.success = new Materialization(); + 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)) { + if (incoming.get(2)) { struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.o3 = new UnknownDBException(); struct.o3.read(iprot); struct.setO3IsSet(true); @@ -80418,28 +80197,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_meta } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_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 CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (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)2); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creation_metadata", org.apache.thrift.protocol.TType.STRUCT, (short)4); 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 update_creation_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_creation_metadata_argsTupleSchemeFactory()); } + private String catName; // required private String dbname; // required - private String filter; // required - private short max_tables; // required + private String tbl_name; // required + private CreationMetadata creation_metadata; // 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"); + CAT_NAME((short)1, "catName"), + DBNAME((short)2, "dbname"), + TBL_NAME((short)3, "tbl_name"), + CREATION_METADATA((short)4, "creation_metadata"); private static final Map byName = new HashMap(); @@ -80454,12 +80236,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_creation_meta */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME + case 1: // CAT_NAME + return CAT_NAME; + case 2: // DBNAME return DBNAME; - case 2: // FILTER - return FILTER; - case 3: // MAX_TABLES - return MAX_TABLES; + case 3: // TBL_NAME + return TBL_NAME; + case 4: // CREATION_METADATA + return CREATION_METADATA; default: return null; } @@ -80500,62 +80284,88 @@ 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.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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, + 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_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.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creation_metadata", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreationMetadata.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(update_creation_metadata_args.class, metaDataMap); } - public get_table_names_by_filter_args() { - this.max_tables = (short)-1; - + public update_creation_metadata_args() { } - public get_table_names_by_filter_args( + public update_creation_metadata_args( + String catName, String dbname, - String filter, - short max_tables) + String tbl_name, + CreationMetadata creation_metadata) { this(); + this.catName = catName; this.dbname = dbname; - this.filter = filter; - this.max_tables = max_tables; - setMax_tablesIsSet(true); + this.tbl_name = tbl_name; + this.creation_metadata = creation_metadata; } /** * 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; + public update_creation_metadata_args(update_creation_metadata_args other) { + if (other.isSetCatName()) { + this.catName = other.catName; + } if (other.isSetDbname()) { this.dbname = other.dbname; } - if (other.isSetFilter()) { - this.filter = other.filter; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetCreation_metadata()) { + this.creation_metadata = new CreationMetadata(other.creation_metadata); } - this.max_tables = other.max_tables; } - public get_table_names_by_filter_args deepCopy() { - return new get_table_names_by_filter_args(this); + public update_creation_metadata_args deepCopy() { + return new update_creation_metadata_args(this); } @Override public void clear() { + this.catName = null; this.dbname = null; - this.filter = null; - this.max_tables = (short)-1; + this.tbl_name = null; + this.creation_metadata = null; + } + + public String getCatName() { + return this.catName; + } + + public void setCatName(String catName) { + this.catName = catName; + } + + public void unsetCatName() { + this.catName = null; + } + /** Returns true if field catName is set (has been assigned a value) and false otherwise */ + public boolean isSetCatName() { + return this.catName != null; + } + + public void setCatNameIsSet(boolean value) { + if (!value) { + this.catName = null; + } } public String getDbname() { @@ -80581,53 +80391,62 @@ public void setDbnameIsSet(boolean value) { } } - public String getFilter() { - return this.filter; + public String getTbl_name() { + return this.tbl_name; } - public void setFilter(String filter) { - this.filter = filter; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetFilter() { - this.filter = null; + public void unsetTbl_name() { + this.tbl_name = 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 tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; } - public void setFilterIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.filter = null; + this.tbl_name = null; } } - public short getMax_tables() { - return this.max_tables; + public CreationMetadata getCreation_metadata() { + return this.creation_metadata; } - public void setMax_tables(short max_tables) { - this.max_tables = max_tables; - setMax_tablesIsSet(true); + public void setCreation_metadata(CreationMetadata creation_metadata) { + this.creation_metadata = creation_metadata; } - public void unsetMax_tables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); + public void unsetCreation_metadata() { + this.creation_metadata = 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); + /** Returns true if field creation_metadata is set (has been assigned a value) and false otherwise */ + public boolean isSetCreation_metadata() { + return this.creation_metadata != null; } - public void setMax_tablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); + public void setCreation_metadataIsSet(boolean value) { + if (!value) { + this.creation_metadata = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case CAT_NAME: + if (value == null) { + unsetCatName(); + } else { + setCatName((String)value); + } + break; + case DBNAME: if (value == null) { unsetDbname(); @@ -80636,19 +80455,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case FILTER: + case TBL_NAME: if (value == null) { - unsetFilter(); + unsetTbl_name(); } else { - setFilter((String)value); + setTbl_name((String)value); } break; - case MAX_TABLES: + case CREATION_METADATA: if (value == null) { - unsetMax_tables(); + unsetCreation_metadata(); } else { - setMax_tables((Short)value); + setCreation_metadata((CreationMetadata)value); } break; @@ -80657,14 +80476,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case CAT_NAME: + return getCatName(); + case DBNAME: return getDbname(); - case FILTER: - return getFilter(); + case TBL_NAME: + return getTbl_name(); - case MAX_TABLES: - return getMax_tables(); + case CREATION_METADATA: + return getCreation_metadata(); } throw new IllegalStateException(); @@ -80677,12 +80499,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case CAT_NAME: + return isSetCatName(); case DBNAME: return isSetDbname(); - case FILTER: - return isSetFilter(); - case MAX_TABLES: - return isSetMax_tables(); + case TBL_NAME: + return isSetTbl_name(); + case CREATION_METADATA: + return isSetCreation_metadata(); } throw new IllegalStateException(); } @@ -80691,15 +80515,24 @@ 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 update_creation_metadata_args) + return this.equals((update_creation_metadata_args)that); return false; } - public boolean equals(get_table_names_by_filter_args that) { + public boolean equals(update_creation_metadata_args that) { if (that == null) return false; + boolean this_present_catName = true && this.isSetCatName(); + boolean that_present_catName = true && that.isSetCatName(); + if (this_present_catName || that_present_catName) { + if (!(this_present_catName && that_present_catName)) + return false; + if (!this.catName.equals(that.catName)) + return false; + } + boolean this_present_dbname = true && this.isSetDbname(); boolean that_present_dbname = true && that.isSetDbname(); if (this_present_dbname || that_present_dbname) { @@ -80709,21 +80542,21 @@ public boolean equals(get_table_names_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_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.filter.equals(that.filter)) + if (!this.tbl_name.equals(that.tbl_name)) 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_creation_metadata = true && this.isSetCreation_metadata(); + boolean that_present_creation_metadata = true && that.isSetCreation_metadata(); + if (this_present_creation_metadata || that_present_creation_metadata) { + if (!(this_present_creation_metadata && that_present_creation_metadata)) return false; - if (this.max_tables != that.max_tables) + if (!this.creation_metadata.equals(that.creation_metadata)) return false; } @@ -80734,32 +80567,47 @@ public boolean equals(get_table_names_by_filter_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_catName = true && (isSetCatName()); + list.add(present_catName); + if (present_catName) + list.add(catName); + 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_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); - boolean present_max_tables = true; - list.add(present_max_tables); - if (present_max_tables) - list.add(max_tables); + boolean present_creation_metadata = true && (isSetCreation_metadata()); + list.add(present_creation_metadata); + if (present_creation_metadata) + list.add(creation_metadata); return list.hashCode(); } @Override - public int compareTo(get_table_names_by_filter_args other) { + public int compareTo(update_creation_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetCatName()).compareTo(other.isSetCatName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCatName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catName, other.catName); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; @@ -80770,22 +80618,22 @@ public int compareTo(get_table_names_by_filter_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + lastComparison = Boolean.valueOf(isSetCreation_metadata()).compareTo(other.isSetCreation_metadata()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_tables()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + if (isSetCreation_metadata()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creation_metadata, other.creation_metadata); if (lastComparison != 0) { return lastComparison; } @@ -80807,9 +80655,17 @@ 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("update_creation_metadata_args("); boolean first = true; + sb.append("catName:"); + if (this.catName == null) { + sb.append("null"); + } else { + sb.append(this.catName); + } + first = false; + if (!first) sb.append(", "); sb.append("dbname:"); if (this.dbname == null) { sb.append("null"); @@ -80818,16 +80674,20 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("filter:"); - if (this.filter == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("max_tables:"); - sb.append(this.max_tables); + sb.append("creation_metadata:"); + if (this.creation_metadata == null) { + sb.append("null"); + } else { + sb.append(this.creation_metadata); + } first = false; sb.append(")"); return sb.toString(); @@ -80836,6 +80696,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (creation_metadata != null) { + creation_metadata.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -80848,23 +80711,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 update_creation_metadata_argsStandardSchemeFactory implements SchemeFactory { + public update_creation_metadata_argsStandardScheme getScheme() { + return new update_creation_metadata_argsStandardScheme(); } } - private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { + private static class update_creation_metadata_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, update_creation_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80874,7 +80735,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // CAT_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.catName = iprot.readString(); + struct.setCatNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -80882,18 +80751,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // FILTER + case 3: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(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 4: // CREATION_METADATA + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -80907,105 +80777,120 @@ 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, update_creation_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.catName != null) { + oprot.writeFieldBegin(CAT_NAME_FIELD_DESC); + oprot.writeString(struct.catName); + oprot.writeFieldEnd(); + } 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.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.creation_metadata != null) { + oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); + struct.creation_metadata.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 update_creation_metadata_argsTupleSchemeFactory implements SchemeFactory { + public update_creation_metadata_argsTupleScheme getScheme() { + return new update_creation_metadata_argsTupleScheme(); } } - private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { + private static class update_creation_metadata_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, update_creation_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetCatName()) { optionals.set(0); } - if (struct.isSetFilter()) { + if (struct.isSetDbname()) { optionals.set(1); } - if (struct.isSetMax_tables()) { + if (struct.isSetTbl_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetCreation_metadata()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetCatName()) { + oprot.writeString(struct.catName); + } if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - if (struct.isSetMax_tables()) { - oprot.writeI16(struct.max_tables); + if (struct.isSetCreation_metadata()) { + struct.creation_metadata.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, update_creation_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.catName = iprot.readString(); + struct.setCatNameIsSet(true); } if (incoming.get(1)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(2)) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(3)) { + struct.creation_metadata = new CreationMetadata(); + struct.creation_metadata.read(iprot); + struct.setCreation_metadataIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_creation_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_creation_metadata_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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 get_table_names_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new update_creation_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new update_creation_metadata_resultTupleSchemeFactory()); } - 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"), O3((short)3, "o3"); @@ -81023,8 +80908,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 @@ -81074,9 +80957,6 @@ 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, @@ -81084,20 +80964,18 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(update_creation_metadata_result.class, metaDataMap); } - public get_table_names_by_filter_result() { + public update_creation_metadata_result() { } - public get_table_names_by_filter_result( - List success, + public update_creation_metadata_result( MetaException o1, InvalidOperationException o2, UnknownDBException o3) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -81106,11 +80984,7 @@ public get_table_names_by_filter_result( /** * Performs a deep copy on 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; - } + public update_creation_metadata_result(update_creation_metadata_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } @@ -81122,56 +80996,17 @@ public get_table_names_by_filter_result(get_table_names_by_filter_result other) } } - public get_table_names_by_filter_result deepCopy() { - return new get_table_names_by_filter_result(this); + public update_creation_metadata_result deepCopy() { + return new update_creation_metadata_result(this); } @Override 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() { - 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; } @@ -81243,14 +81078,6 @@ public void setO3IsSet(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(); @@ -81280,9 +81107,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -81303,8 +81127,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -81319,24 +81141,15 @@ 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 update_creation_metadata_result) + return this.equals((update_creation_metadata_result)that); return false; } - public boolean equals(get_table_names_by_filter_result that) { + public boolean equals(update_creation_metadata_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) { @@ -81371,11 +81184,6 @@ public boolean equals(get_table_names_by_filter_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) @@ -81395,23 +81203,13 @@ public int hashCode() { } @Override - public int compareTo(get_table_names_by_filter_result other) { + public int compareTo(update_creation_metadata_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; @@ -81459,17 +81257,9 @@ 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("update_creation_metadata_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"); @@ -81518,15 +81308,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 update_creation_metadata_resultStandardSchemeFactory implements SchemeFactory { + public update_creation_metadata_resultStandardScheme getScheme() { + return new update_creation_metadata_resultStandardScheme(); } } - private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { + private static class update_creation_metadata_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, update_creation_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -81536,24 +81326,1260 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); - struct.success = new ArrayList(_list1210.size); - String _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) - { - _elem1211 = iprot.readString(); - struct.success.add(_elem1211); - } - 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, update_creation_metadata_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(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class update_creation_metadata_resultTupleSchemeFactory implements SchemeFactory { + public update_creation_metadata_resultTupleScheme getScheme() { + return new update_creation_metadata_resultTupleScheme(); + } + } + + private static class update_creation_metadata_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, update_creation_metadata_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); + } + oprot.writeBitSet(optionals, 3); + 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, update_creation_metadata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_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 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 get_table_names_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); + } + + private String dbname; // 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"), + FILTER((short)2, "filter"), + MAX_TABLES((short)3, "max_tables"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DBNAME + return DBNAME; + case 2: // FILTER + return FILTER; + case 3: // MAX_TABLES + return MAX_TABLES; + 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 __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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); + } + + public get_table_names_by_filter_args() { + this.max_tables = (short)-1; + + } + + public get_table_names_by_filter_args( + String dbname, + String filter, + short max_tables) + { + this(); + this.dbname = dbname; + this.filter = filter; + this.max_tables = max_tables; + setMax_tablesIsSet(true); + } + + /** + * 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; + } + this.max_tables = other.max_tables; + } + + 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.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; + } + } + + 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_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: + if (value == null) { + unsetMax_tables(); + } else { + setMax_tables((Short)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DBNAME: + return getDbname(); + + case FILTER: + return getFilter(); + + case MAX_TABLES: + return getMax_tables(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DBNAME: + return isSetDbname(); + case FILTER: + return isSetFilter(); + case MAX_TABLES: + return isSetMax_tables(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + public boolean equals(get_table_names_by_filter_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)) + return false; + if (this.max_tables != that.max_tables) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_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); + + return list.hashCode(); + } + + @Override + public int compareTo(get_table_names_by_filter_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()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_tables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_table_names_by_filter_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("null"); + } else { + sb.append(this.filter); + } + first = false; + if (!first) sb.append(", "); + sb.append("max_tables:"); + sb.append(this.max_tables); + 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 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_names_by_filter_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // 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); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_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); + 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_names_by_filter_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 { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDbname()) { + 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); + } + } + + @Override + 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(3); + 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); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 get_table_names_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); + } + + 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"), + 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.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(get_table_names_by_filter_result.class, metaDataMap); + } + + public get_table_names_by_filter_result() { + } + + 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 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 MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); + } + } + + 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 int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public 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((List)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); + } + break; + + } + } + + 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(); + } + + /** 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(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + 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) { + 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; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + 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) { + 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; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_table_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"); + } 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(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_table_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_names_by_filter_resultStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); + struct.success = new ArrayList(_list1266.size); + String _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + { + _elem1267 = iprot.readString(); + struct.success.add(_elem1267); + } + 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(); @@ -81598,9 +82624,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1213 : struct.success) + for (String _iter1269 : struct.success) { - oprot.writeString(_iter1213); + oprot.writeString(_iter1269); } oprot.writeListEnd(); } @@ -81655,9 +82681,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1214 : struct.success) + for (String _iter1270 : struct.success) { - oprot.writeString(_iter1214); + oprot.writeString(_iter1270); } } } @@ -81678,13 +82704,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1215.size); - String _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1271.size); + String _elem1272; + for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) { - _elem1216 = iprot.readString(); - struct.success.add(_elem1216); + _elem1272 = iprot.readString(); + struct.success.add(_elem1272); } } struct.setSuccessIsSet(true); @@ -88481,14 +89507,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1218.size); - Partition _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1274.size); + Partition _elem1275; + for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) { - _elem1219 = new Partition(); - _elem1219.read(iprot); - struct.new_parts.add(_elem1219); + _elem1275 = new Partition(); + _elem1275.read(iprot); + struct.new_parts.add(_elem1275); } iprot.readListEnd(); } @@ -88514,9 +89540,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1221 : struct.new_parts) + for (Partition _iter1277 : struct.new_parts) { - _iter1221.write(oprot); + _iter1277.write(oprot); } oprot.writeListEnd(); } @@ -88547,9 +89573,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1222 : struct.new_parts) + for (Partition _iter1278 : struct.new_parts) { - _iter1222.write(oprot); + _iter1278.write(oprot); } } } @@ -88561,14 +89587,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1223.size); - Partition _elem1224; - for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) + org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1279.size); + Partition _elem1280; + for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) { - _elem1224 = new Partition(); - _elem1224.read(iprot); - struct.new_parts.add(_elem1224); + _elem1280 = new Partition(); + _elem1280.read(iprot); + struct.new_parts.add(_elem1280); } } struct.setNew_partsIsSet(true); @@ -89569,14 +90595,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1226.size); - PartitionSpec _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1282.size); + PartitionSpec _elem1283; + for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) { - _elem1227 = new PartitionSpec(); - _elem1227.read(iprot); - struct.new_parts.add(_elem1227); + _elem1283 = new PartitionSpec(); + _elem1283.read(iprot); + struct.new_parts.add(_elem1283); } iprot.readListEnd(); } @@ -89602,9 +90628,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter1229 : struct.new_parts) + for (PartitionSpec _iter1285 : struct.new_parts) { - _iter1229.write(oprot); + _iter1285.write(oprot); } oprot.writeListEnd(); } @@ -89635,9 +90661,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter1230 : struct.new_parts) + for (PartitionSpec _iter1286 : struct.new_parts) { - _iter1230.write(oprot); + _iter1286.write(oprot); } } } @@ -89649,14 +90675,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1231.size); - PartitionSpec _elem1232; - for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) + org.apache.thrift.protocol.TList _list1287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1287.size); + PartitionSpec _elem1288; + for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) { - _elem1232 = new PartitionSpec(); - _elem1232.read(iprot); - struct.new_parts.add(_elem1232); + _elem1288 = new PartitionSpec(); + _elem1288.read(iprot); + struct.new_parts.add(_elem1288); } } struct.setNew_partsIsSet(true); @@ -90832,13 +91858,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1234.size); - String _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1290.size); + String _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1235 = iprot.readString(); - struct.part_vals.add(_elem1235); + _elem1291 = iprot.readString(); + struct.part_vals.add(_elem1291); } iprot.readListEnd(); } @@ -90874,9 +91900,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1237 : struct.part_vals) + for (String _iter1293 : struct.part_vals) { - oprot.writeString(_iter1237); + oprot.writeString(_iter1293); } oprot.writeListEnd(); } @@ -90919,9 +91945,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1238 : struct.part_vals) + for (String _iter1294 : struct.part_vals) { - oprot.writeString(_iter1238); + oprot.writeString(_iter1294); } } } @@ -90941,13 +91967,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1239.size); - String _elem1240; - for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) + org.apache.thrift.protocol.TList _list1295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1295.size); + String _elem1296; + for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) { - _elem1240 = iprot.readString(); - struct.part_vals.add(_elem1240); + _elem1296 = iprot.readString(); + struct.part_vals.add(_elem1296); } } struct.setPart_valsIsSet(true); @@ -93256,13 +94282,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 _list1242 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1242.size); - String _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1298 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1298.size); + String _elem1299; + for (int _i1300 = 0; _i1300 < _list1298.size; ++_i1300) { - _elem1243 = iprot.readString(); - struct.part_vals.add(_elem1243); + _elem1299 = iprot.readString(); + struct.part_vals.add(_elem1299); } iprot.readListEnd(); } @@ -93307,9 +94333,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1245 : struct.part_vals) + for (String _iter1301 : struct.part_vals) { - oprot.writeString(_iter1245); + oprot.writeString(_iter1301); } oprot.writeListEnd(); } @@ -93360,9 +94386,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1246 : struct.part_vals) + for (String _iter1302 : struct.part_vals) { - oprot.writeString(_iter1246); + oprot.writeString(_iter1302); } } } @@ -93385,13 +94411,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1247.size); - String _elem1248; - for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) + org.apache.thrift.protocol.TList _list1303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1303.size); + String _elem1304; + for (int _i1305 = 0; _i1305 < _list1303.size; ++_i1305) { - _elem1248 = iprot.readString(); - struct.part_vals.add(_elem1248); + _elem1304 = iprot.readString(); + struct.part_vals.add(_elem1304); } } struct.setPart_valsIsSet(true); @@ -97261,13 +98287,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1250.size); - String _elem1251; - for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) + org.apache.thrift.protocol.TList _list1306 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1306.size); + String _elem1307; + for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) { - _elem1251 = iprot.readString(); - struct.part_vals.add(_elem1251); + _elem1307 = iprot.readString(); + struct.part_vals.add(_elem1307); } iprot.readListEnd(); } @@ -97311,9 +98337,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1253 : struct.part_vals) + for (String _iter1309 : struct.part_vals) { - oprot.writeString(_iter1253); + oprot.writeString(_iter1309); } oprot.writeListEnd(); } @@ -97362,9 +98388,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1254 : struct.part_vals) + for (String _iter1310 : struct.part_vals) { - oprot.writeString(_iter1254); + oprot.writeString(_iter1310); } } } @@ -97387,13 +98413,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1255.size); - String _elem1256; - for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) + org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1311.size); + String _elem1312; + for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) { - _elem1256 = iprot.readString(); - struct.part_vals.add(_elem1256); + _elem1312 = iprot.readString(); + struct.part_vals.add(_elem1312); } } struct.setPart_valsIsSet(true); @@ -98632,13 +99658,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1258.size); - String _elem1259; - for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) + org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1314.size); + String _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1259 = iprot.readString(); - struct.part_vals.add(_elem1259); + _elem1315 = iprot.readString(); + struct.part_vals.add(_elem1315); } iprot.readListEnd(); } @@ -98691,9 +99717,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1261 : struct.part_vals) + for (String _iter1317 : struct.part_vals) { - oprot.writeString(_iter1261); + oprot.writeString(_iter1317); } oprot.writeListEnd(); } @@ -98750,9 +99776,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1262 : struct.part_vals) + for (String _iter1318 : struct.part_vals) { - oprot.writeString(_iter1262); + oprot.writeString(_iter1318); } } } @@ -98778,13 +99804,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1263.size); - String _elem1264; - for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1319.size); + String _elem1320; + for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) { - _elem1264 = iprot.readString(); - struct.part_vals.add(_elem1264); + _elem1320 = iprot.readString(); + struct.part_vals.add(_elem1320); } } struct.setPart_valsIsSet(true); @@ -103386,13 +104412,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1266.size); - String _elem1267; - for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1322.size); + String _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1267 = iprot.readString(); - struct.part_vals.add(_elem1267); + _elem1323 = iprot.readString(); + struct.part_vals.add(_elem1323); } iprot.readListEnd(); } @@ -103428,9 +104454,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1269 : struct.part_vals) + for (String _iter1325 : struct.part_vals) { - oprot.writeString(_iter1269); + oprot.writeString(_iter1325); } oprot.writeListEnd(); } @@ -103473,9 +104499,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1270 : struct.part_vals) + for (String _iter1326 : struct.part_vals) { - oprot.writeString(_iter1270); + oprot.writeString(_iter1326); } } } @@ -103495,13 +104521,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1271.size); - String _elem1272; - for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) + org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1327.size); + String _elem1328; + for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) { - _elem1272 = iprot.readString(); - struct.part_vals.add(_elem1272); + _elem1328 = iprot.readString(); + struct.part_vals.add(_elem1328); } } struct.setPart_valsIsSet(true); @@ -104719,15 +105745,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1274 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1274.size); - String _key1275; - String _val1276; - for (int _i1277 = 0; _i1277 < _map1274.size; ++_i1277) + org.apache.thrift.protocol.TMap _map1330 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1330.size); + String _key1331; + String _val1332; + for (int _i1333 = 0; _i1333 < _map1330.size; ++_i1333) { - _key1275 = iprot.readString(); - _val1276 = iprot.readString(); - struct.partitionSpecs.put(_key1275, _val1276); + _key1331 = iprot.readString(); + _val1332 = iprot.readString(); + struct.partitionSpecs.put(_key1331, _val1332); } iprot.readMapEnd(); } @@ -104785,10 +105811,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1278 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1334 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1278.getKey()); - oprot.writeString(_iter1278.getValue()); + oprot.writeString(_iter1334.getKey()); + oprot.writeString(_iter1334.getValue()); } oprot.writeMapEnd(); } @@ -104851,10 +105877,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1279 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1335 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1279.getKey()); - oprot.writeString(_iter1279.getValue()); + oprot.writeString(_iter1335.getKey()); + oprot.writeString(_iter1335.getValue()); } } } @@ -104878,15 +105904,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1280 = 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*_map1280.size); - String _key1281; - String _val1282; - for (int _i1283 = 0; _i1283 < _map1280.size; ++_i1283) + org.apache.thrift.protocol.TMap _map1336 = 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*_map1336.size); + String _key1337; + String _val1338; + for (int _i1339 = 0; _i1339 < _map1336.size; ++_i1339) { - _key1281 = iprot.readString(); - _val1282 = iprot.readString(); - struct.partitionSpecs.put(_key1281, _val1282); + _key1337 = iprot.readString(); + _val1338 = iprot.readString(); + struct.partitionSpecs.put(_key1337, _val1338); } } struct.setPartitionSpecsIsSet(true); @@ -106332,15 +107358,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1284 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1284.size); - String _key1285; - String _val1286; - for (int _i1287 = 0; _i1287 < _map1284.size; ++_i1287) + org.apache.thrift.protocol.TMap _map1340 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1340.size); + String _key1341; + String _val1342; + for (int _i1343 = 0; _i1343 < _map1340.size; ++_i1343) { - _key1285 = iprot.readString(); - _val1286 = iprot.readString(); - struct.partitionSpecs.put(_key1285, _val1286); + _key1341 = iprot.readString(); + _val1342 = iprot.readString(); + struct.partitionSpecs.put(_key1341, _val1342); } iprot.readMapEnd(); } @@ -106398,10 +107424,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter1288 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1344 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1288.getKey()); - oprot.writeString(_iter1288.getValue()); + oprot.writeString(_iter1344.getKey()); + oprot.writeString(_iter1344.getValue()); } oprot.writeMapEnd(); } @@ -106464,10 +107490,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1289 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1345 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1289.getKey()); - oprot.writeString(_iter1289.getValue()); + oprot.writeString(_iter1345.getKey()); + oprot.writeString(_iter1345.getValue()); } } } @@ -106491,15 +107517,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1290 = 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*_map1290.size); - String _key1291; - String _val1292; - for (int _i1293 = 0; _i1293 < _map1290.size; ++_i1293) + org.apache.thrift.protocol.TMap _map1346 = 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*_map1346.size); + String _key1347; + String _val1348; + for (int _i1349 = 0; _i1349 < _map1346.size; ++_i1349) { - _key1291 = iprot.readString(); - _val1292 = iprot.readString(); - struct.partitionSpecs.put(_key1291, _val1292); + _key1347 = iprot.readString(); + _val1348 = iprot.readString(); + struct.partitionSpecs.put(_key1347, _val1348); } } struct.setPartitionSpecsIsSet(true); @@ -107164,14 +108190,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1294 = iprot.readListBegin(); - struct.success = new ArrayList(_list1294.size); - Partition _elem1295; - for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) + org.apache.thrift.protocol.TList _list1350 = iprot.readListBegin(); + struct.success = new ArrayList(_list1350.size); + Partition _elem1351; + for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) { - _elem1295 = new Partition(); - _elem1295.read(iprot); - struct.success.add(_elem1295); + _elem1351 = new Partition(); + _elem1351.read(iprot); + struct.success.add(_elem1351); } iprot.readListEnd(); } @@ -107233,9 +108259,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1297 : struct.success) + for (Partition _iter1353 : struct.success) { - _iter1297.write(oprot); + _iter1353.write(oprot); } oprot.writeListEnd(); } @@ -107298,9 +108324,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1298 : struct.success) + for (Partition _iter1354 : struct.success) { - _iter1298.write(oprot); + _iter1354.write(oprot); } } } @@ -107324,14 +108350,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1299.size); - Partition _elem1300; - for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301) + org.apache.thrift.protocol.TList _list1355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1355.size); + Partition _elem1356; + for (int _i1357 = 0; _i1357 < _list1355.size; ++_i1357) { - _elem1300 = new Partition(); - _elem1300.read(iprot); - struct.success.add(_elem1300); + _elem1356 = new Partition(); + _elem1356.read(iprot); + struct.success.add(_elem1356); } } struct.setSuccessIsSet(true); @@ -108030,13 +109056,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1302 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1302.size); - String _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) + org.apache.thrift.protocol.TList _list1358 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1358.size); + String _elem1359; + for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) { - _elem1303 = iprot.readString(); - struct.part_vals.add(_elem1303); + _elem1359 = iprot.readString(); + struct.part_vals.add(_elem1359); } iprot.readListEnd(); } @@ -108056,13 +109082,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1305 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1305.size); - String _elem1306; - for (int _i1307 = 0; _i1307 < _list1305.size; ++_i1307) + org.apache.thrift.protocol.TList _list1361 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1361.size); + String _elem1362; + for (int _i1363 = 0; _i1363 < _list1361.size; ++_i1363) { - _elem1306 = iprot.readString(); - struct.group_names.add(_elem1306); + _elem1362 = iprot.readString(); + struct.group_names.add(_elem1362); } iprot.readListEnd(); } @@ -108098,9 +109124,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1308 : struct.part_vals) + for (String _iter1364 : struct.part_vals) { - oprot.writeString(_iter1308); + oprot.writeString(_iter1364); } oprot.writeListEnd(); } @@ -108115,9 +109141,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1309 : struct.group_names) + for (String _iter1365 : struct.group_names) { - oprot.writeString(_iter1309); + oprot.writeString(_iter1365); } oprot.writeListEnd(); } @@ -108166,9 +109192,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1310 : struct.part_vals) + for (String _iter1366 : struct.part_vals) { - oprot.writeString(_iter1310); + oprot.writeString(_iter1366); } } } @@ -108178,9 +109204,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1311 : struct.group_names) + for (String _iter1367 : struct.group_names) { - oprot.writeString(_iter1311); + oprot.writeString(_iter1367); } } } @@ -108200,13 +109226,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1312 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1312.size); - String _elem1313; - for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) + org.apache.thrift.protocol.TList _list1368 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1368.size); + String _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1313 = iprot.readString(); - struct.part_vals.add(_elem1313); + _elem1369 = iprot.readString(); + struct.part_vals.add(_elem1369); } } struct.setPart_valsIsSet(true); @@ -108217,13 +109243,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1315.size); - String _elem1316; - for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) + org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1371.size); + String _elem1372; + for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) { - _elem1316 = iprot.readString(); - struct.group_names.add(_elem1316); + _elem1372 = iprot.readString(); + struct.group_names.add(_elem1372); } } struct.setGroup_namesIsSet(true); @@ -110992,14 +112018,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1318 = iprot.readListBegin(); - struct.success = new ArrayList(_list1318.size); - Partition _elem1319; - for (int _i1320 = 0; _i1320 < _list1318.size; ++_i1320) + org.apache.thrift.protocol.TList _list1374 = iprot.readListBegin(); + struct.success = new ArrayList(_list1374.size); + Partition _elem1375; + for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) { - _elem1319 = new Partition(); - _elem1319.read(iprot); - struct.success.add(_elem1319); + _elem1375 = new Partition(); + _elem1375.read(iprot); + struct.success.add(_elem1375); } iprot.readListEnd(); } @@ -111043,9 +112069,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1321 : struct.success) + for (Partition _iter1377 : struct.success) { - _iter1321.write(oprot); + _iter1377.write(oprot); } oprot.writeListEnd(); } @@ -111092,9 +112118,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1322 : struct.success) + for (Partition _iter1378 : struct.success) { - _iter1322.write(oprot); + _iter1378.write(oprot); } } } @@ -111112,14 +112138,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1323.size); - Partition _elem1324; - for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325) + org.apache.thrift.protocol.TList _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1379.size); + Partition _elem1380; + for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) { - _elem1324 = new Partition(); - _elem1324.read(iprot); - struct.success.add(_elem1324); + _elem1380 = new Partition(); + _elem1380.read(iprot); + struct.success.add(_elem1380); } } struct.setSuccessIsSet(true); @@ -111809,13 +112835,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1326 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1326.size); - String _elem1327; - for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) + org.apache.thrift.protocol.TList _list1382 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1382.size); + String _elem1383; + for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) { - _elem1327 = iprot.readString(); - struct.group_names.add(_elem1327); + _elem1383 = iprot.readString(); + struct.group_names.add(_elem1383); } iprot.readListEnd(); } @@ -111859,9 +112885,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1329 : struct.group_names) + for (String _iter1385 : struct.group_names) { - oprot.writeString(_iter1329); + oprot.writeString(_iter1385); } oprot.writeListEnd(); } @@ -111916,9 +112942,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1330 : struct.group_names) + for (String _iter1386 : struct.group_names) { - oprot.writeString(_iter1330); + oprot.writeString(_iter1386); } } } @@ -111946,13 +112972,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1331.size); - String _elem1332; - for (int _i1333 = 0; _i1333 < _list1331.size; ++_i1333) + org.apache.thrift.protocol.TList _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1387.size); + String _elem1388; + for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) { - _elem1332 = iprot.readString(); - struct.group_names.add(_elem1332); + _elem1388 = iprot.readString(); + struct.group_names.add(_elem1388); } } struct.setGroup_namesIsSet(true); @@ -112439,14 +113465,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1334 = iprot.readListBegin(); - struct.success = new ArrayList(_list1334.size); - Partition _elem1335; - for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) + org.apache.thrift.protocol.TList _list1390 = iprot.readListBegin(); + struct.success = new ArrayList(_list1390.size); + Partition _elem1391; + for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) { - _elem1335 = new Partition(); - _elem1335.read(iprot); - struct.success.add(_elem1335); + _elem1391 = new Partition(); + _elem1391.read(iprot); + struct.success.add(_elem1391); } iprot.readListEnd(); } @@ -112490,9 +113516,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1337 : struct.success) + for (Partition _iter1393 : struct.success) { - _iter1337.write(oprot); + _iter1393.write(oprot); } oprot.writeListEnd(); } @@ -112539,9 +113565,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1338 : struct.success) + for (Partition _iter1394 : struct.success) { - _iter1338.write(oprot); + _iter1394.write(oprot); } } } @@ -112559,14 +113585,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1339.size); - Partition _elem1340; - for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) + org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1395.size); + Partition _elem1396; + for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) { - _elem1340 = new Partition(); - _elem1340.read(iprot); - struct.success.add(_elem1340); + _elem1396 = new Partition(); + _elem1396.read(iprot); + struct.success.add(_elem1396); } } struct.setSuccessIsSet(true); @@ -113629,14 +114655,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 _list1342 = iprot.readListBegin(); - struct.success = new ArrayList(_list1342.size); - PartitionSpec _elem1343; - for (int _i1344 = 0; _i1344 < _list1342.size; ++_i1344) + org.apache.thrift.protocol.TList _list1398 = iprot.readListBegin(); + struct.success = new ArrayList(_list1398.size); + PartitionSpec _elem1399; + for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) { - _elem1343 = new PartitionSpec(); - _elem1343.read(iprot); - struct.success.add(_elem1343); + _elem1399 = new PartitionSpec(); + _elem1399.read(iprot); + struct.success.add(_elem1399); } iprot.readListEnd(); } @@ -113680,9 +114706,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 _iter1345 : struct.success) + for (PartitionSpec _iter1401 : struct.success) { - _iter1345.write(oprot); + _iter1401.write(oprot); } oprot.writeListEnd(); } @@ -113729,9 +114755,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1346 : struct.success) + for (PartitionSpec _iter1402 : struct.success) { - _iter1346.write(oprot); + _iter1402.write(oprot); } } } @@ -113749,14 +114775,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1347.size); - PartitionSpec _elem1348; - for (int _i1349 = 0; _i1349 < _list1347.size; ++_i1349) + org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1403.size); + PartitionSpec _elem1404; + for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) { - _elem1348 = new PartitionSpec(); - _elem1348.read(iprot); - struct.success.add(_elem1348); + _elem1404 = new PartitionSpec(); + _elem1404.read(iprot); + struct.success.add(_elem1404); } } struct.setSuccessIsSet(true); @@ -114816,13 +115842,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1350 = iprot.readListBegin(); - struct.success = new ArrayList(_list1350.size); - String _elem1351; - for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) + org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); + struct.success = new ArrayList(_list1406.size); + String _elem1407; + for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) { - _elem1351 = iprot.readString(); - struct.success.add(_elem1351); + _elem1407 = iprot.readString(); + struct.success.add(_elem1407); } iprot.readListEnd(); } @@ -114866,9 +115892,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1353 : struct.success) + for (String _iter1409 : struct.success) { - oprot.writeString(_iter1353); + oprot.writeString(_iter1409); } oprot.writeListEnd(); } @@ -114915,9 +115941,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1354 : struct.success) + for (String _iter1410 : struct.success) { - oprot.writeString(_iter1354); + oprot.writeString(_iter1410); } } } @@ -114935,13 +115961,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1355.size); - String _elem1356; - for (int _i1357 = 0; _i1357 < _list1355.size; ++_i1357) + org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1411.size); + String _elem1412; + for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) { - _elem1356 = iprot.readString(); - struct.success.add(_elem1356); + _elem1412 = iprot.readString(); + struct.success.add(_elem1412); } } struct.setSuccessIsSet(true); @@ -116472,13 +117498,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1358 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1358.size); - String _elem1359; - for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) + org.apache.thrift.protocol.TList _list1414 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1414.size); + String _elem1415; + for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) { - _elem1359 = iprot.readString(); - struct.part_vals.add(_elem1359); + _elem1415 = iprot.readString(); + struct.part_vals.add(_elem1415); } iprot.readListEnd(); } @@ -116522,9 +117548,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1361 : struct.part_vals) + for (String _iter1417 : struct.part_vals) { - oprot.writeString(_iter1361); + oprot.writeString(_iter1417); } oprot.writeListEnd(); } @@ -116573,9 +117599,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1362 : struct.part_vals) + for (String _iter1418 : struct.part_vals) { - oprot.writeString(_iter1362); + oprot.writeString(_iter1418); } } } @@ -116598,13 +117624,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1363.size); - String _elem1364; - for (int _i1365 = 0; _i1365 < _list1363.size; ++_i1365) + org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1419.size); + String _elem1420; + for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) { - _elem1364 = iprot.readString(); - struct.part_vals.add(_elem1364); + _elem1420 = iprot.readString(); + struct.part_vals.add(_elem1420); } } struct.setPart_valsIsSet(true); @@ -117095,14 +118121,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 _list1366 = iprot.readListBegin(); - struct.success = new ArrayList(_list1366.size); - Partition _elem1367; - for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) + org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); + struct.success = new ArrayList(_list1422.size); + Partition _elem1423; + for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) { - _elem1367 = new Partition(); - _elem1367.read(iprot); - struct.success.add(_elem1367); + _elem1423 = new Partition(); + _elem1423.read(iprot); + struct.success.add(_elem1423); } iprot.readListEnd(); } @@ -117146,9 +118172,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 _iter1369 : struct.success) + for (Partition _iter1425 : struct.success) { - _iter1369.write(oprot); + _iter1425.write(oprot); } oprot.writeListEnd(); } @@ -117195,9 +118221,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1370 : struct.success) + for (Partition _iter1426 : struct.success) { - _iter1370.write(oprot); + _iter1426.write(oprot); } } } @@ -117215,14 +118241,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1371.size); - Partition _elem1372; - for (int _i1373 = 0; _i1373 < _list1371.size; ++_i1373) + org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1427.size); + Partition _elem1428; + for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) { - _elem1372 = new Partition(); - _elem1372.read(iprot); - struct.success.add(_elem1372); + _elem1428 = new Partition(); + _elem1428.read(iprot); + struct.success.add(_elem1428); } } struct.setSuccessIsSet(true); @@ -117994,13 +119020,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1374 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1374.size); - String _elem1375; - for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + org.apache.thrift.protocol.TList _list1430 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1430.size); + String _elem1431; + for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) { - _elem1375 = iprot.readString(); - struct.part_vals.add(_elem1375); + _elem1431 = iprot.readString(); + struct.part_vals.add(_elem1431); } iprot.readListEnd(); } @@ -118028,13 +119054,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1377 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1377.size); - String _elem1378; - for (int _i1379 = 0; _i1379 < _list1377.size; ++_i1379) + org.apache.thrift.protocol.TList _list1433 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1433.size); + String _elem1434; + for (int _i1435 = 0; _i1435 < _list1433.size; ++_i1435) { - _elem1378 = iprot.readString(); - struct.group_names.add(_elem1378); + _elem1434 = iprot.readString(); + struct.group_names.add(_elem1434); } iprot.readListEnd(); } @@ -118070,9 +119096,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1380 : struct.part_vals) + for (String _iter1436 : struct.part_vals) { - oprot.writeString(_iter1380); + oprot.writeString(_iter1436); } oprot.writeListEnd(); } @@ -118090,9 +119116,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1381 : struct.group_names) + for (String _iter1437 : struct.group_names) { - oprot.writeString(_iter1381); + oprot.writeString(_iter1437); } oprot.writeListEnd(); } @@ -118144,9 +119170,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1382 : struct.part_vals) + for (String _iter1438 : struct.part_vals) { - oprot.writeString(_iter1382); + oprot.writeString(_iter1438); } } } @@ -118159,9 +119185,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1383 : struct.group_names) + for (String _iter1439 : struct.group_names) { - oprot.writeString(_iter1383); + oprot.writeString(_iter1439); } } } @@ -118181,13 +119207,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1384 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1384.size); - String _elem1385; - for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) + org.apache.thrift.protocol.TList _list1440 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1440.size); + String _elem1441; + for (int _i1442 = 0; _i1442 < _list1440.size; ++_i1442) { - _elem1385 = iprot.readString(); - struct.part_vals.add(_elem1385); + _elem1441 = iprot.readString(); + struct.part_vals.add(_elem1441); } } struct.setPart_valsIsSet(true); @@ -118202,13 +119228,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1387.size); - String _elem1388; - for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) + org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1443.size); + String _elem1444; + for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) { - _elem1388 = iprot.readString(); - struct.group_names.add(_elem1388); + _elem1444 = iprot.readString(); + struct.group_names.add(_elem1444); } } struct.setGroup_namesIsSet(true); @@ -118695,14 +119721,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1390 = iprot.readListBegin(); - struct.success = new ArrayList(_list1390.size); - Partition _elem1391; - for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) + org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); + struct.success = new ArrayList(_list1446.size); + Partition _elem1447; + for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) { - _elem1391 = new Partition(); - _elem1391.read(iprot); - struct.success.add(_elem1391); + _elem1447 = new Partition(); + _elem1447.read(iprot); + struct.success.add(_elem1447); } iprot.readListEnd(); } @@ -118746,9 +119772,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 _iter1393 : struct.success) + for (Partition _iter1449 : struct.success) { - _iter1393.write(oprot); + _iter1449.write(oprot); } oprot.writeListEnd(); } @@ -118795,9 +119821,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1394 : struct.success) + for (Partition _iter1450 : struct.success) { - _iter1394.write(oprot); + _iter1450.write(oprot); } } } @@ -118815,14 +119841,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1395.size); - Partition _elem1396; - for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) + org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1451.size); + Partition _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1396 = new Partition(); - _elem1396.read(iprot); - struct.success.add(_elem1396); + _elem1452 = new Partition(); + _elem1452.read(iprot); + struct.success.add(_elem1452); } } struct.setSuccessIsSet(true); @@ -119415,13 +120441,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 _list1398 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1398.size); - String _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1454.size); + String _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1399 = iprot.readString(); - struct.part_vals.add(_elem1399); + _elem1455 = iprot.readString(); + struct.part_vals.add(_elem1455); } iprot.readListEnd(); } @@ -119465,9 +120491,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 _iter1401 : struct.part_vals) + for (String _iter1457 : struct.part_vals) { - oprot.writeString(_iter1401); + oprot.writeString(_iter1457); } oprot.writeListEnd(); } @@ -119516,9 +120542,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 _iter1402 : struct.part_vals) + for (String _iter1458 : struct.part_vals) { - oprot.writeString(_iter1402); + oprot.writeString(_iter1458); } } } @@ -119541,13 +120567,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1403.size); - String _elem1404; - for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) + org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1459.size); + String _elem1460; + for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) { - _elem1404 = iprot.readString(); - struct.part_vals.add(_elem1404); + _elem1460 = iprot.readString(); + struct.part_vals.add(_elem1460); } } struct.setPart_valsIsSet(true); @@ -120035,13 +121061,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); - struct.success = new ArrayList(_list1406.size); - String _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + String _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1407 = iprot.readString(); - struct.success.add(_elem1407); + _elem1463 = iprot.readString(); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -120085,9 +121111,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1409 : struct.success) + for (String _iter1465 : struct.success) { - oprot.writeString(_iter1409); + oprot.writeString(_iter1465); } oprot.writeListEnd(); } @@ -120134,9 +121160,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1410 : struct.success) + for (String _iter1466 : struct.success) { - oprot.writeString(_iter1410); + oprot.writeString(_iter1466); } } } @@ -120154,13 +121180,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1411.size); - String _elem1412; - for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) + org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1412 = iprot.readString(); - struct.success.add(_elem1412); + _elem1468 = iprot.readString(); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -121327,14 +122353,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 _list1414 = iprot.readListBegin(); - struct.success = new ArrayList(_list1414.size); - Partition _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); + struct.success = new ArrayList(_list1470.size); + Partition _elem1471; + for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) { - _elem1415 = new Partition(); - _elem1415.read(iprot); - struct.success.add(_elem1415); + _elem1471 = new Partition(); + _elem1471.read(iprot); + struct.success.add(_elem1471); } iprot.readListEnd(); } @@ -121378,9 +122404,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 _iter1417 : struct.success) + for (Partition _iter1473 : struct.success) { - _iter1417.write(oprot); + _iter1473.write(oprot); } oprot.writeListEnd(); } @@ -121427,9 +122453,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1418 : struct.success) + for (Partition _iter1474 : struct.success) { - _iter1418.write(oprot); + _iter1474.write(oprot); } } } @@ -121447,14 +122473,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1419.size); - Partition _elem1420; - for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) + org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1475.size); + Partition _elem1476; + for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) { - _elem1420 = new Partition(); - _elem1420.read(iprot); - struct.success.add(_elem1420); + _elem1476 = new Partition(); + _elem1476.read(iprot); + struct.success.add(_elem1476); } } struct.setSuccessIsSet(true); @@ -122621,14 +123647,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); - struct.success = new ArrayList(_list1422.size); - PartitionSpec _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.success = new ArrayList(_list1478.size); + PartitionSpec _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1423 = new PartitionSpec(); - _elem1423.read(iprot); - struct.success.add(_elem1423); + _elem1479 = new PartitionSpec(); + _elem1479.read(iprot); + struct.success.add(_elem1479); } iprot.readListEnd(); } @@ -122672,9 +123698,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1425 : struct.success) + for (PartitionSpec _iter1481 : struct.success) { - _iter1425.write(oprot); + _iter1481.write(oprot); } oprot.writeListEnd(); } @@ -122721,9 +123747,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 _iter1426 : struct.success) + for (PartitionSpec _iter1482 : struct.success) { - _iter1426.write(oprot); + _iter1482.write(oprot); } } } @@ -122741,14 +123767,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1427.size); - PartitionSpec _elem1428; - for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) + org.apache.thrift.protocol.TList _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1483.size); + PartitionSpec _elem1484; + for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) { - _elem1428 = new PartitionSpec(); - _elem1428.read(iprot); - struct.success.add(_elem1428); + _elem1484 = new PartitionSpec(); + _elem1484.read(iprot); + struct.success.add(_elem1484); } } struct.setSuccessIsSet(true); @@ -125332,13 +126358,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1430 = iprot.readListBegin(); - struct.names = new ArrayList(_list1430.size); - String _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.names = new ArrayList(_list1486.size); + String _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1431 = iprot.readString(); - struct.names.add(_elem1431); + _elem1487 = iprot.readString(); + struct.names.add(_elem1487); } iprot.readListEnd(); } @@ -125374,9 +126400,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter1433 : struct.names) + for (String _iter1489 : struct.names) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1489); } oprot.writeListEnd(); } @@ -125419,9 +126445,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1434 : struct.names) + for (String _iter1490 : struct.names) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1490); } } } @@ -125441,13 +126467,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1435.size); - String _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + org.apache.thrift.protocol.TList _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1491.size); + String _elem1492; + for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) { - _elem1436 = iprot.readString(); - struct.names.add(_elem1436); + _elem1492 = iprot.readString(); + struct.names.add(_elem1492); } } struct.setNamesIsSet(true); @@ -125934,14 +126960,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); - struct.success = new ArrayList(_list1438.size); - Partition _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.success = new ArrayList(_list1494.size); + Partition _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1439 = new Partition(); - _elem1439.read(iprot); - struct.success.add(_elem1439); + _elem1495 = new Partition(); + _elem1495.read(iprot); + struct.success.add(_elem1495); } iprot.readListEnd(); } @@ -125985,9 +127011,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 _iter1441 : struct.success) + for (Partition _iter1497 : struct.success) { - _iter1441.write(oprot); + _iter1497.write(oprot); } oprot.writeListEnd(); } @@ -126034,9 +127060,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1442 : struct.success) + for (Partition _iter1498 : struct.success) { - _iter1442.write(oprot); + _iter1498.write(oprot); } } } @@ -126054,14 +127080,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1443.size); - Partition _elem1444; - for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) + org.apache.thrift.protocol.TList _list1499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1499.size); + Partition _elem1500; + for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) { - _elem1444 = new Partition(); - _elem1444.read(iprot); - struct.success.add(_elem1444); + _elem1500 = new Partition(); + _elem1500.read(iprot); + struct.success.add(_elem1500); } } struct.setSuccessIsSet(true); @@ -128549,14 +129575,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1446.size); - Partition _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1502 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1502.size); + Partition _elem1503; + for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) { - _elem1447 = new Partition(); - _elem1447.read(iprot); - struct.new_parts.add(_elem1447); + _elem1503 = new Partition(); + _elem1503.read(iprot); + struct.new_parts.add(_elem1503); } iprot.readListEnd(); } @@ -128592,9 +129618,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1449 : struct.new_parts) + for (Partition _iter1505 : struct.new_parts) { - _iter1449.write(oprot); + _iter1505.write(oprot); } oprot.writeListEnd(); } @@ -128637,9 +129663,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1450 : struct.new_parts) + for (Partition _iter1506 : struct.new_parts) { - _iter1450.write(oprot); + _iter1506.write(oprot); } } } @@ -128659,14 +129685,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1451.size); - Partition _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1507.size); + Partition _elem1508; + for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) { - _elem1452 = new Partition(); - _elem1452.read(iprot); - struct.new_parts.add(_elem1452); + _elem1508 = new Partition(); + _elem1508.read(iprot); + struct.new_parts.add(_elem1508); } } struct.setNew_partsIsSet(true); @@ -129719,14 +130745,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1454.size); - Partition _elem1455; - for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) + org.apache.thrift.protocol.TList _list1510 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1510.size); + Partition _elem1511; + for (int _i1512 = 0; _i1512 < _list1510.size; ++_i1512) { - _elem1455 = new Partition(); - _elem1455.read(iprot); - struct.new_parts.add(_elem1455); + _elem1511 = new Partition(); + _elem1511.read(iprot); + struct.new_parts.add(_elem1511); } iprot.readListEnd(); } @@ -129771,9 +130797,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1457 : struct.new_parts) + for (Partition _iter1513 : struct.new_parts) { - _iter1457.write(oprot); + _iter1513.write(oprot); } oprot.writeListEnd(); } @@ -129824,9 +130850,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1458 : struct.new_parts) + for (Partition _iter1514 : struct.new_parts) { - _iter1458.write(oprot); + _iter1514.write(oprot); } } } @@ -129849,14 +130875,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1459.size); - Partition _elem1460; - for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) + org.apache.thrift.protocol.TList _list1515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1515.size); + Partition _elem1516; + for (int _i1517 = 0; _i1517 < _list1515.size; ++_i1517) { - _elem1460 = new Partition(); - _elem1460.read(iprot); - struct.new_parts.add(_elem1460); + _elem1516 = new Partition(); + _elem1516.read(iprot); + struct.new_parts.add(_elem1516); } } struct.setNew_partsIsSet(true); @@ -132995,13 +134021,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1462.size); - String _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1518.size); + String _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1463 = iprot.readString(); - struct.part_vals.add(_elem1463); + _elem1519 = iprot.readString(); + struct.part_vals.add(_elem1519); } iprot.readListEnd(); } @@ -133046,9 +134072,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1465 : struct.part_vals) + for (String _iter1521 : struct.part_vals) { - oprot.writeString(_iter1465); + oprot.writeString(_iter1521); } oprot.writeListEnd(); } @@ -133099,9 +134125,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1466 : struct.part_vals) + for (String _iter1522 : struct.part_vals) { - oprot.writeString(_iter1466); + oprot.writeString(_iter1522); } } } @@ -133124,13 +134150,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1467.size); - String _elem1468; - for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) + org.apache.thrift.protocol.TList _list1523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1523.size); + String _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1468 = iprot.readString(); - struct.part_vals.add(_elem1468); + _elem1524 = iprot.readString(); + struct.part_vals.add(_elem1524); } } struct.setPart_valsIsSet(true); @@ -134942,13 +135968,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1470.size); - String _elem1471; - for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) + org.apache.thrift.protocol.TList _list1526 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1526.size); + String _elem1527; + for (int _i1528 = 0; _i1528 < _list1526.size; ++_i1528) { - _elem1471 = iprot.readString(); - struct.part_vals.add(_elem1471); + _elem1527 = iprot.readString(); + struct.part_vals.add(_elem1527); } iprot.readListEnd(); } @@ -134982,9 +136008,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1473 : struct.part_vals) + for (String _iter1529 : struct.part_vals) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1529); } oprot.writeListEnd(); } @@ -135021,9 +136047,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1474 : struct.part_vals) + for (String _iter1530 : struct.part_vals) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1530); } } } @@ -135038,13 +136064,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1475.size); - String _elem1476; - for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) + org.apache.thrift.protocol.TList _list1531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1531.size); + String _elem1532; + for (int _i1533 = 0; _i1533 < _list1531.size; ++_i1533) { - _elem1476 = iprot.readString(); - struct.part_vals.add(_elem1476); + _elem1532 = iprot.readString(); + struct.part_vals.add(_elem1532); } } struct.setPart_valsIsSet(true); @@ -137199,13 +138225,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); - struct.success = new ArrayList(_list1478.size); - String _elem1479; - for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) + org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); + struct.success = new ArrayList(_list1534.size); + String _elem1535; + for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) { - _elem1479 = iprot.readString(); - struct.success.add(_elem1479); + _elem1535 = iprot.readString(); + struct.success.add(_elem1535); } iprot.readListEnd(); } @@ -137240,9 +138266,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1481 : struct.success) + for (String _iter1537 : struct.success) { - oprot.writeString(_iter1481); + oprot.writeString(_iter1537); } oprot.writeListEnd(); } @@ -137281,9 +138307,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1482 : struct.success) + for (String _iter1538 : struct.success) { - oprot.writeString(_iter1482); + oprot.writeString(_iter1538); } } } @@ -137298,13 +138324,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1483.size); - String _elem1484; - for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) + org.apache.thrift.protocol.TList _list1539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1539.size); + String _elem1540; + for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) { - _elem1484 = iprot.readString(); - struct.success.add(_elem1484); + _elem1540 = iprot.readString(); + struct.success.add(_elem1540); } } struct.setSuccessIsSet(true); @@ -138067,15 +139093,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1486 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1486.size); - String _key1487; - String _val1488; - for (int _i1489 = 0; _i1489 < _map1486.size; ++_i1489) + org.apache.thrift.protocol.TMap _map1542 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1542.size); + String _key1543; + String _val1544; + for (int _i1545 = 0; _i1545 < _map1542.size; ++_i1545) { - _key1487 = iprot.readString(); - _val1488 = iprot.readString(); - struct.success.put(_key1487, _val1488); + _key1543 = iprot.readString(); + _val1544 = iprot.readString(); + struct.success.put(_key1543, _val1544); } iprot.readMapEnd(); } @@ -138110,10 +139136,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter1490 : struct.success.entrySet()) + for (Map.Entry _iter1546 : struct.success.entrySet()) { - oprot.writeString(_iter1490.getKey()); - oprot.writeString(_iter1490.getValue()); + oprot.writeString(_iter1546.getKey()); + oprot.writeString(_iter1546.getValue()); } oprot.writeMapEnd(); } @@ -138152,10 +139178,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1491 : struct.success.entrySet()) + for (Map.Entry _iter1547 : struct.success.entrySet()) { - oprot.writeString(_iter1491.getKey()); - oprot.writeString(_iter1491.getValue()); + oprot.writeString(_iter1547.getKey()); + oprot.writeString(_iter1547.getValue()); } } } @@ -138170,15 +139196,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1492 = 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*_map1492.size); - String _key1493; - String _val1494; - for (int _i1495 = 0; _i1495 < _map1492.size; ++_i1495) + org.apache.thrift.protocol.TMap _map1548 = 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*_map1548.size); + String _key1549; + String _val1550; + for (int _i1551 = 0; _i1551 < _map1548.size; ++_i1551) { - _key1493 = iprot.readString(); - _val1494 = iprot.readString(); - struct.success.put(_key1493, _val1494); + _key1549 = iprot.readString(); + _val1550 = iprot.readString(); + struct.success.put(_key1549, _val1550); } } struct.setSuccessIsSet(true); @@ -138773,15 +139799,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1496 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1496.size); - String _key1497; - String _val1498; - for (int _i1499 = 0; _i1499 < _map1496.size; ++_i1499) + org.apache.thrift.protocol.TMap _map1552 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1552.size); + String _key1553; + String _val1554; + for (int _i1555 = 0; _i1555 < _map1552.size; ++_i1555) { - _key1497 = iprot.readString(); - _val1498 = iprot.readString(); - struct.part_vals.put(_key1497, _val1498); + _key1553 = iprot.readString(); + _val1554 = iprot.readString(); + struct.part_vals.put(_key1553, _val1554); } iprot.readMapEnd(); } @@ -138825,10 +139851,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1500 : struct.part_vals.entrySet()) + for (Map.Entry _iter1556 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1500.getKey()); - oprot.writeString(_iter1500.getValue()); + oprot.writeString(_iter1556.getKey()); + oprot.writeString(_iter1556.getValue()); } oprot.writeMapEnd(); } @@ -138879,10 +139905,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1501 : struct.part_vals.entrySet()) + for (Map.Entry _iter1557 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1501.getKey()); - oprot.writeString(_iter1501.getValue()); + oprot.writeString(_iter1557.getKey()); + oprot.writeString(_iter1557.getValue()); } } } @@ -138905,15 +139931,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1502 = 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*_map1502.size); - String _key1503; - String _val1504; - for (int _i1505 = 0; _i1505 < _map1502.size; ++_i1505) + org.apache.thrift.protocol.TMap _map1558 = 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*_map1558.size); + String _key1559; + String _val1560; + for (int _i1561 = 0; _i1561 < _map1558.size; ++_i1561) { - _key1503 = iprot.readString(); - _val1504 = iprot.readString(); - struct.part_vals.put(_key1503, _val1504); + _key1559 = iprot.readString(); + _val1560 = iprot.readString(); + struct.part_vals.put(_key1559, _val1560); } } struct.setPart_valsIsSet(true); @@ -140397,15 +141423,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1506 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1506.size); - String _key1507; - String _val1508; - for (int _i1509 = 0; _i1509 < _map1506.size; ++_i1509) + org.apache.thrift.protocol.TMap _map1562 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1562.size); + String _key1563; + String _val1564; + for (int _i1565 = 0; _i1565 < _map1562.size; ++_i1565) { - _key1507 = iprot.readString(); - _val1508 = iprot.readString(); - struct.part_vals.put(_key1507, _val1508); + _key1563 = iprot.readString(); + _val1564 = iprot.readString(); + struct.part_vals.put(_key1563, _val1564); } iprot.readMapEnd(); } @@ -140449,10 +141475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1510 : struct.part_vals.entrySet()) + for (Map.Entry _iter1566 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1510.getKey()); - oprot.writeString(_iter1510.getValue()); + oprot.writeString(_iter1566.getKey()); + oprot.writeString(_iter1566.getValue()); } oprot.writeMapEnd(); } @@ -140503,10 +141529,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1511 : struct.part_vals.entrySet()) + for (Map.Entry _iter1567 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1511.getKey()); - oprot.writeString(_iter1511.getValue()); + oprot.writeString(_iter1567.getKey()); + oprot.writeString(_iter1567.getValue()); } } } @@ -140529,15 +141555,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1512 = 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*_map1512.size); - String _key1513; - String _val1514; - for (int _i1515 = 0; _i1515 < _map1512.size; ++_i1515) + org.apache.thrift.protocol.TMap _map1568 = 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*_map1568.size); + String _key1569; + String _val1570; + for (int _i1571 = 0; _i1571 < _map1568.size; ++_i1571) { - _key1513 = iprot.readString(); - _val1514 = iprot.readString(); - struct.part_vals.put(_key1513, _val1514); + _key1569 = iprot.readString(); + _val1570 = iprot.readString(); + struct.part_vals.put(_key1569, _val1570); } } struct.setPart_valsIsSet(true); @@ -165193,13 +166219,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 _list1516 = iprot.readListBegin(); - struct.success = new ArrayList(_list1516.size); - String _elem1517; - for (int _i1518 = 0; _i1518 < _list1516.size; ++_i1518) + org.apache.thrift.protocol.TList _list1572 = iprot.readListBegin(); + struct.success = new ArrayList(_list1572.size); + String _elem1573; + for (int _i1574 = 0; _i1574 < _list1572.size; ++_i1574) { - _elem1517 = iprot.readString(); - struct.success.add(_elem1517); + _elem1573 = iprot.readString(); + struct.success.add(_elem1573); } iprot.readListEnd(); } @@ -165234,9 +166260,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 _iter1519 : struct.success) + for (String _iter1575 : struct.success) { - oprot.writeString(_iter1519); + oprot.writeString(_iter1575); } oprot.writeListEnd(); } @@ -165275,9 +166301,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1520 : struct.success) + for (String _iter1576 : struct.success) { - oprot.writeString(_iter1520); + oprot.writeString(_iter1576); } } } @@ -165292,13 +166318,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 _list1521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1521.size); - String _elem1522; - for (int _i1523 = 0; _i1523 < _list1521.size; ++_i1523) + org.apache.thrift.protocol.TList _list1577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1577.size); + String _elem1578; + for (int _i1579 = 0; _i1579 < _list1577.size; ++_i1579) { - _elem1522 = iprot.readString(); - struct.success.add(_elem1522); + _elem1578 = iprot.readString(); + struct.success.add(_elem1578); } } struct.setSuccessIsSet(true); @@ -169353,13 +170379,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 _list1524 = iprot.readListBegin(); - struct.success = new ArrayList(_list1524.size); - String _elem1525; - for (int _i1526 = 0; _i1526 < _list1524.size; ++_i1526) + org.apache.thrift.protocol.TList _list1580 = iprot.readListBegin(); + struct.success = new ArrayList(_list1580.size); + String _elem1581; + for (int _i1582 = 0; _i1582 < _list1580.size; ++_i1582) { - _elem1525 = iprot.readString(); - struct.success.add(_elem1525); + _elem1581 = iprot.readString(); + struct.success.add(_elem1581); } iprot.readListEnd(); } @@ -169394,9 +170420,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 _iter1527 : struct.success) + for (String _iter1583 : struct.success) { - oprot.writeString(_iter1527); + oprot.writeString(_iter1583); } oprot.writeListEnd(); } @@ -169435,9 +170461,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1528 : struct.success) + for (String _iter1584 : struct.success) { - oprot.writeString(_iter1528); + oprot.writeString(_iter1584); } } } @@ -169452,13 +170478,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 _list1529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1529.size); - String _elem1530; - for (int _i1531 = 0; _i1531 < _list1529.size; ++_i1531) + org.apache.thrift.protocol.TList _list1585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1585.size); + String _elem1586; + for (int _i1587 = 0; _i1587 < _list1585.size; ++_i1587) { - _elem1530 = iprot.readString(); - struct.success.add(_elem1530); + _elem1586 = iprot.readString(); + struct.success.add(_elem1586); } } struct.setSuccessIsSet(true); @@ -172749,14 +173775,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 _list1532 = iprot.readListBegin(); - struct.success = new ArrayList(_list1532.size); - Role _elem1533; - for (int _i1534 = 0; _i1534 < _list1532.size; ++_i1534) + org.apache.thrift.protocol.TList _list1588 = iprot.readListBegin(); + struct.success = new ArrayList(_list1588.size); + Role _elem1589; + for (int _i1590 = 0; _i1590 < _list1588.size; ++_i1590) { - _elem1533 = new Role(); - _elem1533.read(iprot); - struct.success.add(_elem1533); + _elem1589 = new Role(); + _elem1589.read(iprot); + struct.success.add(_elem1589); } iprot.readListEnd(); } @@ -172791,9 +173817,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 _iter1535 : struct.success) + for (Role _iter1591 : struct.success) { - _iter1535.write(oprot); + _iter1591.write(oprot); } oprot.writeListEnd(); } @@ -172832,9 +173858,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1536 : struct.success) + for (Role _iter1592 : struct.success) { - _iter1536.write(oprot); + _iter1592.write(oprot); } } } @@ -172849,14 +173875,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 _list1537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1537.size); - Role _elem1538; - for (int _i1539 = 0; _i1539 < _list1537.size; ++_i1539) + org.apache.thrift.protocol.TList _list1593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1593.size); + Role _elem1594; + for (int _i1595 = 0; _i1595 < _list1593.size; ++_i1595) { - _elem1538 = new Role(); - _elem1538.read(iprot); - struct.success.add(_elem1538); + _elem1594 = new Role(); + _elem1594.read(iprot); + struct.success.add(_elem1594); } } struct.setSuccessIsSet(true); @@ -175861,13 +176887,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 _list1540 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1540.size); - String _elem1541; - for (int _i1542 = 0; _i1542 < _list1540.size; ++_i1542) + org.apache.thrift.protocol.TList _list1596 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1596.size); + String _elem1597; + for (int _i1598 = 0; _i1598 < _list1596.size; ++_i1598) { - _elem1541 = iprot.readString(); - struct.group_names.add(_elem1541); + _elem1597 = iprot.readString(); + struct.group_names.add(_elem1597); } iprot.readListEnd(); } @@ -175903,9 +176929,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 _iter1543 : struct.group_names) + for (String _iter1599 : struct.group_names) { - oprot.writeString(_iter1543); + oprot.writeString(_iter1599); } oprot.writeListEnd(); } @@ -175948,9 +176974,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 _iter1544 : struct.group_names) + for (String _iter1600 : struct.group_names) { - oprot.writeString(_iter1544); + oprot.writeString(_iter1600); } } } @@ -175971,13 +176997,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1545.size); - String _elem1546; - for (int _i1547 = 0; _i1547 < _list1545.size; ++_i1547) + org.apache.thrift.protocol.TList _list1601 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1601.size); + String _elem1602; + for (int _i1603 = 0; _i1603 < _list1601.size; ++_i1603) { - _elem1546 = iprot.readString(); - struct.group_names.add(_elem1546); + _elem1602 = iprot.readString(); + struct.group_names.add(_elem1602); } } struct.setGroup_namesIsSet(true); @@ -177435,14 +178461,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 _list1548 = iprot.readListBegin(); - struct.success = new ArrayList(_list1548.size); - HiveObjectPrivilege _elem1549; - for (int _i1550 = 0; _i1550 < _list1548.size; ++_i1550) + org.apache.thrift.protocol.TList _list1604 = iprot.readListBegin(); + struct.success = new ArrayList(_list1604.size); + HiveObjectPrivilege _elem1605; + for (int _i1606 = 0; _i1606 < _list1604.size; ++_i1606) { - _elem1549 = new HiveObjectPrivilege(); - _elem1549.read(iprot); - struct.success.add(_elem1549); + _elem1605 = new HiveObjectPrivilege(); + _elem1605.read(iprot); + struct.success.add(_elem1605); } iprot.readListEnd(); } @@ -177477,9 +178503,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 _iter1551 : struct.success) + for (HiveObjectPrivilege _iter1607 : struct.success) { - _iter1551.write(oprot); + _iter1607.write(oprot); } oprot.writeListEnd(); } @@ -177518,9 +178544,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1552 : struct.success) + for (HiveObjectPrivilege _iter1608 : struct.success) { - _iter1552.write(oprot); + _iter1608.write(oprot); } } } @@ -177535,14 +178561,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 _list1553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1553.size); - HiveObjectPrivilege _elem1554; - for (int _i1555 = 0; _i1555 < _list1553.size; ++_i1555) + org.apache.thrift.protocol.TList _list1609 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1609.size); + HiveObjectPrivilege _elem1610; + for (int _i1611 = 0; _i1611 < _list1609.size; ++_i1611) { - _elem1554 = new HiveObjectPrivilege(); - _elem1554.read(iprot); - struct.success.add(_elem1554); + _elem1610 = new HiveObjectPrivilege(); + _elem1610.read(iprot); + struct.success.add(_elem1610); } } struct.setSuccessIsSet(true); @@ -181489,13 +182515,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 _list1556 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1556.size); - String _elem1557; - for (int _i1558 = 0; _i1558 < _list1556.size; ++_i1558) + org.apache.thrift.protocol.TList _list1612 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1612.size); + String _elem1613; + for (int _i1614 = 0; _i1614 < _list1612.size; ++_i1614) { - _elem1557 = iprot.readString(); - struct.group_names.add(_elem1557); + _elem1613 = iprot.readString(); + struct.group_names.add(_elem1613); } iprot.readListEnd(); } @@ -181526,9 +182552,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 _iter1559 : struct.group_names) + for (String _iter1615 : struct.group_names) { - oprot.writeString(_iter1559); + oprot.writeString(_iter1615); } oprot.writeListEnd(); } @@ -181565,9 +182591,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 _iter1560 : struct.group_names) + for (String _iter1616 : struct.group_names) { - oprot.writeString(_iter1560); + oprot.writeString(_iter1616); } } } @@ -181583,13 +182609,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1561.size); - String _elem1562; - for (int _i1563 = 0; _i1563 < _list1561.size; ++_i1563) + org.apache.thrift.protocol.TList _list1617 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1617.size); + String _elem1618; + for (int _i1619 = 0; _i1619 < _list1617.size; ++_i1619) { - _elem1562 = iprot.readString(); - struct.group_names.add(_elem1562); + _elem1618 = iprot.readString(); + struct.group_names.add(_elem1618); } } struct.setGroup_namesIsSet(true); @@ -181992,13 +183018,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 _list1564 = iprot.readListBegin(); - struct.success = new ArrayList(_list1564.size); - String _elem1565; - for (int _i1566 = 0; _i1566 < _list1564.size; ++_i1566) + org.apache.thrift.protocol.TList _list1620 = iprot.readListBegin(); + struct.success = new ArrayList(_list1620.size); + String _elem1621; + for (int _i1622 = 0; _i1622 < _list1620.size; ++_i1622) { - _elem1565 = iprot.readString(); - struct.success.add(_elem1565); + _elem1621 = iprot.readString(); + struct.success.add(_elem1621); } iprot.readListEnd(); } @@ -182033,9 +183059,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 _iter1567 : struct.success) + for (String _iter1623 : struct.success) { - oprot.writeString(_iter1567); + oprot.writeString(_iter1623); } oprot.writeListEnd(); } @@ -182074,9 +183100,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1568 : struct.success) + for (String _iter1624 : struct.success) { - oprot.writeString(_iter1568); + oprot.writeString(_iter1624); } } } @@ -182091,13 +183117,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 _list1569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1569.size); - String _elem1570; - for (int _i1571 = 0; _i1571 < _list1569.size; ++_i1571) + org.apache.thrift.protocol.TList _list1625 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1625.size); + String _elem1626; + for (int _i1627 = 0; _i1627 < _list1625.size; ++_i1627) { - _elem1570 = iprot.readString(); - struct.success.add(_elem1570); + _elem1626 = iprot.readString(); + struct.success.add(_elem1626); } } struct.setSuccessIsSet(true); @@ -187388,13 +188414,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 _list1572 = iprot.readListBegin(); - struct.success = new ArrayList(_list1572.size); - String _elem1573; - for (int _i1574 = 0; _i1574 < _list1572.size; ++_i1574) + org.apache.thrift.protocol.TList _list1628 = iprot.readListBegin(); + struct.success = new ArrayList(_list1628.size); + String _elem1629; + for (int _i1630 = 0; _i1630 < _list1628.size; ++_i1630) { - _elem1573 = iprot.readString(); - struct.success.add(_elem1573); + _elem1629 = iprot.readString(); + struct.success.add(_elem1629); } iprot.readListEnd(); } @@ -187420,9 +188446,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 _iter1575 : struct.success) + for (String _iter1631 : struct.success) { - oprot.writeString(_iter1575); + oprot.writeString(_iter1631); } oprot.writeListEnd(); } @@ -187453,9 +188479,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1576 : struct.success) + for (String _iter1632 : struct.success) { - oprot.writeString(_iter1576); + oprot.writeString(_iter1632); } } } @@ -187467,13 +188493,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 _list1577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1577.size); - String _elem1578; - for (int _i1579 = 0; _i1579 < _list1577.size; ++_i1579) + org.apache.thrift.protocol.TList _list1633 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1633.size); + String _elem1634; + for (int _i1635 = 0; _i1635 < _list1633.size; ++_i1635) { - _elem1578 = iprot.readString(); - struct.success.add(_elem1578); + _elem1634 = iprot.readString(); + struct.success.add(_elem1634); } } struct.setSuccessIsSet(true); @@ -190503,13 +191529,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 _list1580 = iprot.readListBegin(); - struct.success = new ArrayList(_list1580.size); - String _elem1581; - for (int _i1582 = 0; _i1582 < _list1580.size; ++_i1582) + org.apache.thrift.protocol.TList _list1636 = iprot.readListBegin(); + struct.success = new ArrayList(_list1636.size); + String _elem1637; + for (int _i1638 = 0; _i1638 < _list1636.size; ++_i1638) { - _elem1581 = iprot.readString(); - struct.success.add(_elem1581); + _elem1637 = iprot.readString(); + struct.success.add(_elem1637); } iprot.readListEnd(); } @@ -190535,9 +191561,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 _iter1583 : struct.success) + for (String _iter1639 : struct.success) { - oprot.writeString(_iter1583); + oprot.writeString(_iter1639); } oprot.writeListEnd(); } @@ -190568,9 +191594,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1584 : struct.success) + for (String _iter1640 : struct.success) { - oprot.writeString(_iter1584); + oprot.writeString(_iter1640); } } } @@ -190582,13 +191608,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 _list1585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1585.size); - String _elem1586; - for (int _i1587 = 0; _i1587 < _list1585.size; ++_i1587) + org.apache.thrift.protocol.TList _list1641 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1641.size); + String _elem1642; + for (int _i1643 = 0; _i1643 < _list1641.size; ++_i1643) { - _elem1586 = iprot.readString(); - struct.success.add(_elem1586); + _elem1642 = iprot.readString(); + struct.success.add(_elem1642); } } struct.setSuccessIsSet(true); @@ -207709,13 +208735,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, find_columns_with_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1588 = iprot.readListBegin(); - struct.success = new ArrayList(_list1588.size); - String _elem1589; - for (int _i1590 = 0; _i1590 < _list1588.size; ++_i1590) + org.apache.thrift.protocol.TList _list1644 = iprot.readListBegin(); + struct.success = new ArrayList(_list1644.size); + String _elem1645; + for (int _i1646 = 0; _i1646 < _list1644.size; ++_i1646) { - _elem1589 = iprot.readString(); - struct.success.add(_elem1589); + _elem1645 = iprot.readString(); + struct.success.add(_elem1645); } iprot.readListEnd(); } @@ -207741,9 +208767,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, find_columns_with_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1591 : struct.success) + for (String _iter1647 : struct.success) { - oprot.writeString(_iter1591); + oprot.writeString(_iter1647); } oprot.writeListEnd(); } @@ -207774,9 +208800,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1592 : struct.success) + for (String _iter1648 : struct.success) { - oprot.writeString(_iter1592); + oprot.writeString(_iter1648); } } } @@ -207788,13 +208814,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, find_columns_with_st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1593.size); - String _elem1594; - for (int _i1595 = 0; _i1595 < _list1593.size; ++_i1595) + org.apache.thrift.protocol.TList _list1649 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1649.size); + String _elem1650; + for (int _i1651 = 0; _i1651 < _list1649.size; ++_i1651) { - _elem1594 = iprot.readString(); - struct.success.add(_elem1594); + _elem1650 = iprot.readString(); + struct.success.add(_elem1650); } } struct.setSuccessIsSet(true); @@ -244680,14 +245706,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_all_vers case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1596 = iprot.readListBegin(); - struct.success = new ArrayList(_list1596.size); - SchemaVersion _elem1597; - for (int _i1598 = 0; _i1598 < _list1596.size; ++_i1598) + org.apache.thrift.protocol.TList _list1652 = iprot.readListBegin(); + struct.success = new ArrayList(_list1652.size); + SchemaVersion _elem1653; + for (int _i1654 = 0; _i1654 < _list1652.size; ++_i1654) { - _elem1597 = new SchemaVersion(); - _elem1597.read(iprot); - struct.success.add(_elem1597); + _elem1653 = new SchemaVersion(); + _elem1653.read(iprot); + struct.success.add(_elem1653); } iprot.readListEnd(); } @@ -244731,9 +245757,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_all_ver oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (SchemaVersion _iter1599 : struct.success) + for (SchemaVersion _iter1655 : struct.success) { - _iter1599.write(oprot); + _iter1655.write(oprot); } oprot.writeListEnd(); } @@ -244780,9 +245806,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1600 : struct.success) + for (SchemaVersion _iter1656 : struct.success) { - _iter1600.write(oprot); + _iter1656.write(oprot); } } } @@ -244800,14 +245826,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_all_versi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1601 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1601.size); - SchemaVersion _elem1602; - for (int _i1603 = 0; _i1603 < _list1601.size; ++_i1603) + org.apache.thrift.protocol.TList _list1657 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1657.size); + SchemaVersion _elem1658; + for (int _i1659 = 0; _i1659 < _list1657.size; ++_i1659) { - _elem1602 = new SchemaVersion(); - _elem1602.read(iprot); - struct.success.add(_elem1602); + _elem1658 = new SchemaVersion(); + _elem1658.read(iprot); + struct.success.add(_elem1658); } } struct.setSuccessIsSet(true); @@ -253350,14 +254376,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_runtime_stats_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1604 = iprot.readListBegin(); - struct.success = new ArrayList(_list1604.size); - RuntimeStat _elem1605; - for (int _i1606 = 0; _i1606 < _list1604.size; ++_i1606) + org.apache.thrift.protocol.TList _list1660 = iprot.readListBegin(); + struct.success = new ArrayList(_list1660.size); + RuntimeStat _elem1661; + for (int _i1662 = 0; _i1662 < _list1660.size; ++_i1662) { - _elem1605 = new RuntimeStat(); - _elem1605.read(iprot); - struct.success.add(_elem1605); + _elem1661 = new RuntimeStat(); + _elem1661.read(iprot); + struct.success.add(_elem1661); } iprot.readListEnd(); } @@ -253392,9 +254418,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_runtime_stats_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (RuntimeStat _iter1607 : struct.success) + for (RuntimeStat _iter1663 : struct.success) { - _iter1607.write(oprot); + _iter1663.write(oprot); } oprot.writeListEnd(); } @@ -253433,9 +254459,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1608 : struct.success) + for (RuntimeStat _iter1664 : struct.success) { - _iter1608.write(oprot); + _iter1664.write(oprot); } } } @@ -253450,14 +254476,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1609 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1609.size); - RuntimeStat _elem1610; - for (int _i1611 = 0; _i1611 < _list1609.size; ++_i1611) + org.apache.thrift.protocol.TList _list1665 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1665.size); + RuntimeStat _elem1666; + for (int _i1667 = 0; _i1667 < _list1665.size; ++_i1667) { - _elem1610 = new RuntimeStat(); - _elem1610.read(iprot); - struct.success.add(_elem1610); + _elem1666 = new RuntimeStat(); + _elem1666.read(iprot); + struct.success.add(_elem1666); } } struct.setSuccessIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java index 4b38aebaf7..74828dfa8c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java @@ -755,14 +755,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 2: // POOLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); - struct.pools = new ArrayList(_list904.size); - WMPool _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.pools = new ArrayList(_list944.size); + WMPool _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem905 = new WMPool(); - _elem905.read(iprot); - struct.pools.add(_elem905); + _elem945 = new WMPool(); + _elem945.read(iprot); + struct.pools.add(_elem945); } iprot.readListEnd(); } @@ -774,14 +774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 3: // MAPPINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list907.size); - WMMapping _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) + org.apache.thrift.protocol.TList _list947 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list947.size); + WMMapping _elem948; + for (int _i949 = 0; _i949 < _list947.size; ++_i949) { - _elem908 = new WMMapping(); - _elem908.read(iprot); - struct.mappings.add(_elem908); + _elem948 = new WMMapping(); + _elem948.read(iprot); + struct.mappings.add(_elem948); } iprot.readListEnd(); } @@ -793,14 +793,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 4: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list910.size); - WMTrigger _elem911; - for (int _i912 = 0; _i912 < _list910.size; ++_i912) + org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list950.size); + WMTrigger _elem951; + for (int _i952 = 0; _i952 < _list950.size; ++_i952) { - _elem911 = new WMTrigger(); - _elem911.read(iprot); - struct.triggers.add(_elem911); + _elem951 = new WMTrigger(); + _elem951.read(iprot); + struct.triggers.add(_elem951); } iprot.readListEnd(); } @@ -812,14 +812,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 5: // POOL_TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list913 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list913.size); - WMPoolTrigger _elem914; - for (int _i915 = 0; _i915 < _list913.size; ++_i915) + org.apache.thrift.protocol.TList _list953 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list953.size); + WMPoolTrigger _elem954; + for (int _i955 = 0; _i955 < _list953.size; ++_i955) { - _elem914 = new WMPoolTrigger(); - _elem914.read(iprot); - struct.poolTriggers.add(_elem914); + _elem954 = new WMPoolTrigger(); + _elem954.read(iprot); + struct.poolTriggers.add(_elem954); } iprot.readListEnd(); } @@ -850,9 +850,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.pools.size())); - for (WMPool _iter916 : struct.pools) + for (WMPool _iter956 : struct.pools) { - _iter916.write(oprot); + _iter956.write(oprot); } oprot.writeListEnd(); } @@ -863,9 +863,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mappings.size())); - for (WMMapping _iter917 : struct.mappings) + for (WMMapping _iter957 : struct.mappings) { - _iter917.write(oprot); + _iter957.write(oprot); } oprot.writeListEnd(); } @@ -877,9 +877,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter918 : struct.triggers) + for (WMTrigger _iter958 : struct.triggers) { - _iter918.write(oprot); + _iter958.write(oprot); } oprot.writeListEnd(); } @@ -891,9 +891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOL_TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.poolTriggers.size())); - for (WMPoolTrigger _iter919 : struct.poolTriggers) + for (WMPoolTrigger _iter959 : struct.poolTriggers) { - _iter919.write(oprot); + _iter959.write(oprot); } oprot.writeListEnd(); } @@ -920,9 +920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct.plan.write(oprot); { oprot.writeI32(struct.pools.size()); - for (WMPool _iter920 : struct.pools) + for (WMPool _iter960 : struct.pools) { - _iter920.write(oprot); + _iter960.write(oprot); } } BitSet optionals = new BitSet(); @@ -939,27 +939,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan if (struct.isSetMappings()) { { oprot.writeI32(struct.mappings.size()); - for (WMMapping _iter921 : struct.mappings) + for (WMMapping _iter961 : struct.mappings) { - _iter921.write(oprot); + _iter961.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter922 : struct.triggers) + for (WMTrigger _iter962 : struct.triggers) { - _iter922.write(oprot); + _iter962.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter923 : struct.poolTriggers) + for (WMPoolTrigger _iter963 : struct.poolTriggers) { - _iter923.write(oprot); + _iter963.write(oprot); } } } @@ -972,56 +972,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan s struct.plan.read(iprot); struct.setPlanIsSet(true); { - org.apache.thrift.protocol.TList _list924 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list924.size); - WMPool _elem925; - for (int _i926 = 0; _i926 < _list924.size; ++_i926) + org.apache.thrift.protocol.TList _list964 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list964.size); + WMPool _elem965; + for (int _i966 = 0; _i966 < _list964.size; ++_i966) { - _elem925 = new WMPool(); - _elem925.read(iprot); - struct.pools.add(_elem925); + _elem965 = new WMPool(); + _elem965.read(iprot); + struct.pools.add(_elem965); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list927 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list927.size); - WMMapping _elem928; - for (int _i929 = 0; _i929 < _list927.size; ++_i929) + org.apache.thrift.protocol.TList _list967 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list967.size); + WMMapping _elem968; + for (int _i969 = 0; _i969 < _list967.size; ++_i969) { - _elem928 = new WMMapping(); - _elem928.read(iprot); - struct.mappings.add(_elem928); + _elem968 = new WMMapping(); + _elem968.read(iprot); + struct.mappings.add(_elem968); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list930 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list930.size); - WMTrigger _elem931; - for (int _i932 = 0; _i932 < _list930.size; ++_i932) + org.apache.thrift.protocol.TList _list970 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list970.size); + WMTrigger _elem971; + for (int _i972 = 0; _i972 < _list970.size; ++_i972) { - _elem931 = new WMTrigger(); - _elem931.read(iprot); - struct.triggers.add(_elem931); + _elem971 = new WMTrigger(); + _elem971.read(iprot); + struct.triggers.add(_elem971); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list933.size); - WMPoolTrigger _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list973.size); + WMPoolTrigger _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) { - _elem934 = new WMPoolTrigger(); - _elem934.read(iprot); - struct.poolTriggers.add(_elem934); + _elem974 = new WMPoolTrigger(); + _elem974.read(iprot); + struct.poolTriggers.add(_elem974); } } struct.setPoolTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java index e97eab36dd..fe8aacb553 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetAllResourcePla case 1: // RESOURCE_PLANS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list936.size); - WMResourcePlan _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list976.size); + WMResourcePlan _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) { - _elem937 = new WMResourcePlan(); - _elem937.read(iprot); - struct.resourcePlans.add(_elem937); + _elem977 = new WMResourcePlan(); + _elem977.read(iprot); + struct.resourcePlans.add(_elem977); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetAllResourcePl oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size())); - for (WMResourcePlan _iter939 : struct.resourcePlans) + for (WMResourcePlan _iter979 : struct.resourcePlans) { - _iter939.write(oprot); + _iter979.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePla if (struct.isSetResourcePlans()) { { oprot.writeI32(struct.resourcePlans.size()); - for (WMResourcePlan _iter940 : struct.resourcePlans) + for (WMResourcePlan _iter980 : struct.resourcePlans) { - _iter940.write(oprot); + _iter980.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePlan BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list941.size); - WMResourcePlan _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list981.size); + WMResourcePlan _elem982; + for (int _i983 = 0; _i983 < _list981.size; ++_i983) { - _elem942 = new WMResourcePlan(); - _elem942.read(iprot); - struct.resourcePlans.add(_elem942); + _elem982 = new WMResourcePlan(); + _elem982.read(iprot); + struct.resourcePlans.add(_elem982); } } struct.setResourcePlansIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java index 4a6633bce6..3b57fea105 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetTriggersForRes case 1: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list960.size); - WMTrigger _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list1000.size); + WMTrigger _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem961 = new WMTrigger(); - _elem961.read(iprot); - struct.triggers.add(_elem961); + _elem1001 = new WMTrigger(); + _elem1001.read(iprot); + struct.triggers.add(_elem1001); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetTriggersForRe oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter963 : struct.triggers) + for (WMTrigger _iter1003 : struct.triggers) { - _iter963.write(oprot); + _iter1003.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForRes if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter964 : struct.triggers) + for (WMTrigger _iter1004 : struct.triggers) { - _iter964.write(oprot); + _iter1004.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForReso BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list965.size); - WMTrigger _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list1005.size); + WMTrigger _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem966 = new WMTrigger(); - _elem966.read(iprot); - struct.triggers.add(_elem966); + _elem1006 = new WMTrigger(); + _elem1006.read(iprot); + struct.triggers.add(_elem1006); } } struct.setTriggersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java index b01a517ec4..791174491c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java @@ -441,13 +441,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 1: // ERRORS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); - struct.errors = new ArrayList(_list944.size); - String _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); + struct.errors = new ArrayList(_list984.size); + String _elem985; + for (int _i986 = 0; _i986 < _list984.size; ++_i986) { - _elem945 = iprot.readString(); - struct.errors.add(_elem945); + _elem985 = iprot.readString(); + struct.errors.add(_elem985); } iprot.readListEnd(); } @@ -459,13 +459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 2: // WARNINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list947 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list947.size); - String _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + org.apache.thrift.protocol.TList _list987 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list987.size); + String _elem988; + for (int _i989 = 0; _i989 < _list987.size; ++_i989) { - _elem948 = iprot.readString(); - struct.warnings.add(_elem948); + _elem988 = iprot.readString(); + struct.warnings.add(_elem988); } iprot.readListEnd(); } @@ -492,9 +492,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter950 : struct.errors) + for (String _iter990 : struct.errors) { - oprot.writeString(_iter950); + oprot.writeString(_iter990); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(WARNINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.warnings.size())); - for (String _iter951 : struct.warnings) + for (String _iter991 : struct.warnings) { - oprot.writeString(_iter951); + oprot.writeString(_iter991); } oprot.writeListEnd(); } @@ -543,18 +543,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter952 : struct.errors) + for (String _iter992 : struct.errors) { - oprot.writeString(_iter952); + oprot.writeString(_iter992); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter953 : struct.warnings) + for (String _iter993 : struct.warnings) { - oprot.writeString(_iter953); + oprot.writeString(_iter993); } } } @@ -566,26 +566,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list954 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list954.size); - String _elem955; - for (int _i956 = 0; _i956 < _list954.size; ++_i956) + org.apache.thrift.protocol.TList _list994 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list994.size); + String _elem995; + for (int _i996 = 0; _i996 < _list994.size; ++_i996) { - _elem955 = iprot.readString(); - struct.errors.add(_elem955); + _elem995 = iprot.readString(); + struct.errors.add(_elem995); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list957.size); - String _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list997.size); + String _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem958 = iprot.readString(); - struct.warnings.add(_elem958); + _elem998 = iprot.readString(); + struct.warnings.add(_elem998); } } struct.setWarningsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java index 500293cc78..46b92b87b9 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WriteNotificationLogRequest.java @@ -813,13 +813,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WriteNotificationLo case 6: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list804.size); - String _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list812.size); + String _elem813; + for (int _i814 = 0; _i814 < _list812.size; ++_i814) { - _elem805 = iprot.readString(); - struct.partitionVals.add(_elem805); + _elem813 = iprot.readString(); + struct.partitionVals.add(_elem813); } iprot.readListEnd(); } @@ -867,9 +867,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WriteNotificationL 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 _iter807 : struct.partitionVals) + for (String _iter815 : struct.partitionVals) { - oprot.writeString(_iter807); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -906,9 +906,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLo if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter808 : struct.partitionVals) + for (String _iter816 : struct.partitionVals) { - oprot.writeString(_iter808); + oprot.writeString(_iter816); } } } @@ -931,13 +931,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WriteNotificationLog BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list809.size); - String _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list817.size); + String _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem810 = iprot.readString(); - struct.partitionVals.add(_elem810); + _elem818 = iprot.readString(); + struct.partitionVals.add(_elem818); } } struct.setPartitionValsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java index b968b283a9..e450d362d8 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java @@ -38,6 +38,14 @@ public static final String DDL_TIME = "transient_lastDdlTime"; + public static final byte ACCESSTYPE_NONE = (byte)1; + + public static final byte ACCESSTYPE_READONLY = (byte)2; + + public static final byte ACCESSTYPE_WRITEONLY = (byte)4; + + public static final byte ACCESSTYPE_READWRITE = (byte)8; + public static final String HIVE_FILTER_FIELD_OWNER = "hive_filter_field_owner__"; public static final String HIVE_FILTER_FIELD_PARAMS = "hive_filter_field_params__"; diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 333a2d9371..926775710b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -324,6 +324,12 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @return \metastore\Table[] */ public function get_table_objects_by_name($dbname, array $tbl_names); + /** + * @param \metastore\GetTablesExtRequest $req + * @return \metastore\ExtendedTableInfo[] + * @throws \metastore\MetaException + */ + public function get_tables_ext(\metastore\GetTablesExtRequest $req); /** * @param \metastore\GetTableRequest $req * @return \metastore\GetTableResult @@ -4030,6 +4036,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_table_objects_by_name failed: unknown result"); } + public function get_tables_ext(\metastore\GetTablesExtRequest $req) + { + $this->send_get_tables_ext($req); + return $this->recv_get_tables_ext(); + } + + public function send_get_tables_ext(\metastore\GetTablesExtRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_get_tables_ext_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_tables_ext', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_tables_ext', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_tables_ext() + { + $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_tables_ext_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_tables_ext_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + throw new \Exception("get_tables_ext failed: unknown result"); + } + public function get_table_req(\metastore\GetTableRequest $req) { $this->send_get_table_req($req); @@ -16408,14 +16468,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size952 = 0; + $_etype955 = 0; + $xfer += $input->readListBegin($_etype955, $_size952); + for ($_i956 = 0; $_i956 < $_size952; ++$_i956) { - $elem915 = null; - $xfer += $input->readString($elem915); - $this->success []= $elem915; + $elem957 = null; + $xfer += $input->readString($elem957); + $this->success []= $elem957; } $xfer += $input->readListEnd(); } else { @@ -16451,9 +16511,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter916) + foreach ($this->success as $iter958) { - $xfer += $output->writeString($iter916); + $xfer += $output->writeString($iter958); } } $output->writeListEnd(); @@ -16584,14 +16644,14 @@ class ThriftHiveMetastore_get_all_databases_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; - $xfer += $input->readString($elem922); - $this->success []= $elem922; + $elem964 = null; + $xfer += $input->readString($elem964); + $this->success []= $elem964; } $xfer += $input->readListEnd(); } else { @@ -16627,9 +16687,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter923) + foreach ($this->success as $iter965) { - $xfer += $output->writeString($iter923); + $xfer += $output->writeString($iter965); } } $output->writeListEnd(); @@ -17630,18 +17690,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size924 = 0; - $_ktype925 = 0; - $_vtype926 = 0; - $xfer += $input->readMapBegin($_ktype925, $_vtype926, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size966 = 0; + $_ktype967 = 0; + $_vtype968 = 0; + $xfer += $input->readMapBegin($_ktype967, $_vtype968, $_size966); + for ($_i970 = 0; $_i970 < $_size966; ++$_i970) { - $key929 = ''; - $val930 = new \metastore\Type(); - $xfer += $input->readString($key929); - $val930 = new \metastore\Type(); - $xfer += $val930->read($input); - $this->success[$key929] = $val930; + $key971 = ''; + $val972 = new \metastore\Type(); + $xfer += $input->readString($key971); + $val972 = new \metastore\Type(); + $xfer += $val972->read($input); + $this->success[$key971] = $val972; } $xfer += $input->readMapEnd(); } else { @@ -17677,10 +17737,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter931 => $viter932) + foreach ($this->success as $kiter973 => $viter974) { - $xfer += $output->writeString($kiter931); - $xfer += $viter932->write($output); + $xfer += $output->writeString($kiter973); + $xfer += $viter974->write($output); } } $output->writeMapEnd(); @@ -17884,15 +17944,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size933 = 0; - $_etype936 = 0; - $xfer += $input->readListBegin($_etype936, $_size933); - for ($_i937 = 0; $_i937 < $_size933; ++$_i937) + $_size975 = 0; + $_etype978 = 0; + $xfer += $input->readListBegin($_etype978, $_size975); + for ($_i979 = 0; $_i979 < $_size975; ++$_i979) { - $elem938 = null; - $elem938 = new \metastore\FieldSchema(); - $xfer += $elem938->read($input); - $this->success []= $elem938; + $elem980 = null; + $elem980 = new \metastore\FieldSchema(); + $xfer += $elem980->read($input); + $this->success []= $elem980; } $xfer += $input->readListEnd(); } else { @@ -17944,9 +18004,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter939) + foreach ($this->success as $iter981) { - $xfer += $iter939->write($output); + $xfer += $iter981->write($output); } } $output->writeListEnd(); @@ -18188,15 +18248,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size940 = 0; - $_etype943 = 0; - $xfer += $input->readListBegin($_etype943, $_size940); - for ($_i944 = 0; $_i944 < $_size940; ++$_i944) + $_size982 = 0; + $_etype985 = 0; + $xfer += $input->readListBegin($_etype985, $_size982); + for ($_i986 = 0; $_i986 < $_size982; ++$_i986) { - $elem945 = null; - $elem945 = new \metastore\FieldSchema(); - $xfer += $elem945->read($input); - $this->success []= $elem945; + $elem987 = null; + $elem987 = new \metastore\FieldSchema(); + $xfer += $elem987->read($input); + $this->success []= $elem987; } $xfer += $input->readListEnd(); } else { @@ -18248,9 +18308,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter946) + foreach ($this->success as $iter988) { - $xfer += $iter946->write($output); + $xfer += $iter988->write($output); } } $output->writeListEnd(); @@ -18464,15 +18524,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size947 = 0; - $_etype950 = 0; - $xfer += $input->readListBegin($_etype950, $_size947); - for ($_i951 = 0; $_i951 < $_size947; ++$_i951) + $_size989 = 0; + $_etype992 = 0; + $xfer += $input->readListBegin($_etype992, $_size989); + for ($_i993 = 0; $_i993 < $_size989; ++$_i993) { - $elem952 = null; - $elem952 = new \metastore\FieldSchema(); - $xfer += $elem952->read($input); - $this->success []= $elem952; + $elem994 = null; + $elem994 = new \metastore\FieldSchema(); + $xfer += $elem994->read($input); + $this->success []= $elem994; } $xfer += $input->readListEnd(); } else { @@ -18524,9 +18584,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter953) + foreach ($this->success as $iter995) { - $xfer += $iter953->write($output); + $xfer += $iter995->write($output); } } $output->writeListEnd(); @@ -18768,15 +18828,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size954 = 0; - $_etype957 = 0; - $xfer += $input->readListBegin($_etype957, $_size954); - for ($_i958 = 0; $_i958 < $_size954; ++$_i958) + $_size996 = 0; + $_etype999 = 0; + $xfer += $input->readListBegin($_etype999, $_size996); + for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) { - $elem959 = null; - $elem959 = new \metastore\FieldSchema(); - $xfer += $elem959->read($input); - $this->success []= $elem959; + $elem1001 = null; + $elem1001 = new \metastore\FieldSchema(); + $xfer += $elem1001->read($input); + $this->success []= $elem1001; } $xfer += $input->readListEnd(); } else { @@ -18828,9 +18888,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter960) + foreach ($this->success as $iter1002) { - $xfer += $iter960->write($output); + $xfer += $iter1002->write($output); } } $output->writeListEnd(); @@ -19502,15 +19562,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size961 = 0; - $_etype964 = 0; - $xfer += $input->readListBegin($_etype964, $_size961); - for ($_i965 = 0; $_i965 < $_size961; ++$_i965) + $_size1003 = 0; + $_etype1006 = 0; + $xfer += $input->readListBegin($_etype1006, $_size1003); + for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) { - $elem966 = null; - $elem966 = new \metastore\SQLPrimaryKey(); - $xfer += $elem966->read($input); - $this->primaryKeys []= $elem966; + $elem1008 = null; + $elem1008 = new \metastore\SQLPrimaryKey(); + $xfer += $elem1008->read($input); + $this->primaryKeys []= $elem1008; } $xfer += $input->readListEnd(); } else { @@ -19520,15 +19580,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size967 = 0; - $_etype970 = 0; - $xfer += $input->readListBegin($_etype970, $_size967); - for ($_i971 = 0; $_i971 < $_size967; ++$_i971) + $_size1009 = 0; + $_etype1012 = 0; + $xfer += $input->readListBegin($_etype1012, $_size1009); + for ($_i1013 = 0; $_i1013 < $_size1009; ++$_i1013) { - $elem972 = null; - $elem972 = new \metastore\SQLForeignKey(); - $xfer += $elem972->read($input); - $this->foreignKeys []= $elem972; + $elem1014 = null; + $elem1014 = new \metastore\SQLForeignKey(); + $xfer += $elem1014->read($input); + $this->foreignKeys []= $elem1014; } $xfer += $input->readListEnd(); } else { @@ -19538,15 +19598,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size973 = 0; - $_etype976 = 0; - $xfer += $input->readListBegin($_etype976, $_size973); - for ($_i977 = 0; $_i977 < $_size973; ++$_i977) + $_size1015 = 0; + $_etype1018 = 0; + $xfer += $input->readListBegin($_etype1018, $_size1015); + for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) { - $elem978 = null; - $elem978 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem978->read($input); - $this->uniqueConstraints []= $elem978; + $elem1020 = null; + $elem1020 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem1020->read($input); + $this->uniqueConstraints []= $elem1020; } $xfer += $input->readListEnd(); } else { @@ -19556,15 +19616,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size979 = 0; - $_etype982 = 0; - $xfer += $input->readListBegin($_etype982, $_size979); - for ($_i983 = 0; $_i983 < $_size979; ++$_i983) + $_size1021 = 0; + $_etype1024 = 0; + $xfer += $input->readListBegin($_etype1024, $_size1021); + for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) { - $elem984 = null; - $elem984 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem984->read($input); - $this->notNullConstraints []= $elem984; + $elem1026 = null; + $elem1026 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem1026->read($input); + $this->notNullConstraints []= $elem1026; } $xfer += $input->readListEnd(); } else { @@ -19574,15 +19634,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size985 = 0; - $_etype988 = 0; - $xfer += $input->readListBegin($_etype988, $_size985); - for ($_i989 = 0; $_i989 < $_size985; ++$_i989) + $_size1027 = 0; + $_etype1030 = 0; + $xfer += $input->readListBegin($_etype1030, $_size1027); + for ($_i1031 = 0; $_i1031 < $_size1027; ++$_i1031) { - $elem990 = null; - $elem990 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem990->read($input); - $this->defaultConstraints []= $elem990; + $elem1032 = null; + $elem1032 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem1032->read($input); + $this->defaultConstraints []= $elem1032; } $xfer += $input->readListEnd(); } else { @@ -19592,15 +19652,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size991 = 0; - $_etype994 = 0; - $xfer += $input->readListBegin($_etype994, $_size991); - for ($_i995 = 0; $_i995 < $_size991; ++$_i995) + $_size1033 = 0; + $_etype1036 = 0; + $xfer += $input->readListBegin($_etype1036, $_size1033); + for ($_i1037 = 0; $_i1037 < $_size1033; ++$_i1037) { - $elem996 = null; - $elem996 = new \metastore\SQLCheckConstraint(); - $xfer += $elem996->read($input); - $this->checkConstraints []= $elem996; + $elem1038 = null; + $elem1038 = new \metastore\SQLCheckConstraint(); + $xfer += $elem1038->read($input); + $this->checkConstraints []= $elem1038; } $xfer += $input->readListEnd(); } else { @@ -19636,9 +19696,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter997) + foreach ($this->primaryKeys as $iter1039) { - $xfer += $iter997->write($output); + $xfer += $iter1039->write($output); } } $output->writeListEnd(); @@ -19653,9 +19713,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter998) + foreach ($this->foreignKeys as $iter1040) { - $xfer += $iter998->write($output); + $xfer += $iter1040->write($output); } } $output->writeListEnd(); @@ -19670,9 +19730,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter999) + foreach ($this->uniqueConstraints as $iter1041) { - $xfer += $iter999->write($output); + $xfer += $iter1041->write($output); } } $output->writeListEnd(); @@ -19687,9 +19747,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter1000) + foreach ($this->notNullConstraints as $iter1042) { - $xfer += $iter1000->write($output); + $xfer += $iter1042->write($output); } } $output->writeListEnd(); @@ -19704,9 +19764,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter1001) + foreach ($this->defaultConstraints as $iter1043) { - $xfer += $iter1001->write($output); + $xfer += $iter1043->write($output); } } $output->writeListEnd(); @@ -19721,9 +19781,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter1002) + foreach ($this->checkConstraints as $iter1044) { - $xfer += $iter1002->write($output); + $xfer += $iter1044->write($output); } } $output->writeListEnd(); @@ -21723,14 +21783,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size1003 = 0; - $_etype1006 = 0; - $xfer += $input->readListBegin($_etype1006, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + $_size1045 = 0; + $_etype1048 = 0; + $xfer += $input->readListBegin($_etype1048, $_size1045); + for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) { - $elem1008 = null; - $xfer += $input->readString($elem1008); - $this->partNames []= $elem1008; + $elem1050 = null; + $xfer += $input->readString($elem1050); + $this->partNames []= $elem1050; } $xfer += $input->readListEnd(); } else { @@ -21768,9 +21828,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter1009) + foreach ($this->partNames as $iter1051) { - $xfer += $output->writeString($iter1009); + $xfer += $output->writeString($iter1051); } } $output->writeListEnd(); @@ -22206,14 +22266,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1010 = 0; - $_etype1013 = 0; - $xfer += $input->readListBegin($_etype1013, $_size1010); - for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) + $_size1052 = 0; + $_etype1055 = 0; + $xfer += $input->readListBegin($_etype1055, $_size1052); + for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) { - $elem1015 = null; - $xfer += $input->readString($elem1015); - $this->success []= $elem1015; + $elem1057 = null; + $xfer += $input->readString($elem1057); + $this->success []= $elem1057; } $xfer += $input->readListEnd(); } else { @@ -22249,9 +22309,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1016) + foreach ($this->success as $iter1058) { - $xfer += $output->writeString($iter1016); + $xfer += $output->writeString($iter1058); } } $output->writeListEnd(); @@ -22453,14 +22513,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1017 = 0; - $_etype1020 = 0; - $xfer += $input->readListBegin($_etype1020, $_size1017); - for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem1022 = null; - $xfer += $input->readString($elem1022); - $this->success []= $elem1022; + $elem1064 = null; + $xfer += $input->readString($elem1064); + $this->success []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -22496,9 +22556,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1023) + foreach ($this->success as $iter1065) { - $xfer += $output->writeString($iter1023); + $xfer += $output->writeString($iter1065); } } $output->writeListEnd(); @@ -22654,14 +22714,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1024 = 0; - $_etype1027 = 0; - $xfer += $input->readListBegin($_etype1027, $_size1024); - for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1029 = null; - $xfer += $input->readString($elem1029); - $this->success []= $elem1029; + $elem1071 = null; + $xfer += $input->readString($elem1071); + $this->success []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -22697,9 +22757,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1030) + foreach ($this->success as $iter1072) { - $xfer += $output->writeString($iter1030); + $xfer += $output->writeString($iter1072); } } $output->writeListEnd(); @@ -22804,14 +22864,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1031 = 0; - $_etype1034 = 0; - $xfer += $input->readListBegin($_etype1034, $_size1031); - for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) + $_size1073 = 0; + $_etype1076 = 0; + $xfer += $input->readListBegin($_etype1076, $_size1073); + for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) { - $elem1036 = null; - $xfer += $input->readString($elem1036); - $this->tbl_types []= $elem1036; + $elem1078 = null; + $xfer += $input->readString($elem1078); + $this->tbl_types []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -22849,9 +22909,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1037) + foreach ($this->tbl_types as $iter1079) { - $xfer += $output->writeString($iter1037); + $xfer += $output->writeString($iter1079); } } $output->writeListEnd(); @@ -22928,15 +22988,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1038 = 0; - $_etype1041 = 0; - $xfer += $input->readListBegin($_etype1041, $_size1038); - for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) + $_size1080 = 0; + $_etype1083 = 0; + $xfer += $input->readListBegin($_etype1083, $_size1080); + for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) { - $elem1043 = null; - $elem1043 = new \metastore\TableMeta(); - $xfer += $elem1043->read($input); - $this->success []= $elem1043; + $elem1085 = null; + $elem1085 = new \metastore\TableMeta(); + $xfer += $elem1085->read($input); + $this->success []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -22972,9 +23032,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1044) + foreach ($this->success as $iter1086) { - $xfer += $iter1044->write($output); + $xfer += $iter1086->write($output); } } $output->writeListEnd(); @@ -23130,14 +23190,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1087 = 0; + $_etype1090 = 0; + $xfer += $input->readListBegin($_etype1090, $_size1087); + for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) { - $elem1050 = null; - $xfer += $input->readString($elem1050); - $this->success []= $elem1050; + $elem1092 = null; + $xfer += $input->readString($elem1092); + $this->success []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -23173,9 +23233,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1051) + foreach ($this->success as $iter1093) { - $xfer += $output->writeString($iter1051); + $xfer += $output->writeString($iter1093); } } $output->writeListEnd(); @@ -23490,14 +23550,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1094 = 0; + $_etype1097 = 0; + $xfer += $input->readListBegin($_etype1097, $_size1094); + for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) { - $elem1057 = null; - $xfer += $input->readString($elem1057); - $this->tbl_names []= $elem1057; + $elem1099 = null; + $xfer += $input->readString($elem1099); + $this->tbl_names []= $elem1099; } $xfer += $input->readListEnd(); } else { @@ -23530,9 +23590,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1058) + foreach ($this->tbl_names as $iter1100) { - $xfer += $output->writeString($iter1058); + $xfer += $output->writeString($iter1100); } } $output->writeListEnd(); @@ -23597,15 +23657,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1101 = 0; + $_etype1104 = 0; + $xfer += $input->readListBegin($_etype1104, $_size1101); + for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) { - $elem1064 = null; - $elem1064 = new \metastore\Table(); - $xfer += $elem1064->read($input); - $this->success []= $elem1064; + $elem1106 = null; + $elem1106 = new \metastore\Table(); + $xfer += $elem1106->read($input); + $this->success []= $elem1106; } $xfer += $input->readListEnd(); } else { @@ -23633,15 +23693,223 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1107) + { + $xfer += $iter1107->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_tables_ext_args { + static $_TSPEC; + + /** + * @var \metastore\GetTablesExtRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetTablesExtRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_tables_ext_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\GetTablesExtRequest(); + $xfer += $this->req->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_tables_ext_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_tables_ext_result { + static $_TSPEC; + + /** + * @var \metastore\ExtendedTableInfo[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ExtendedTableInfo', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_tables_ext_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size1108 = 0; + $_etype1111 = 0; + $xfer += $input->readListBegin($_etype1111, $_size1108); + for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + { + $elem1113 = null; + $elem1113 = new \metastore\ExtendedTableInfo(); + $xfer += $elem1113->read($input); + $this->success []= $elem1113; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_tables_ext_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1114) { - $xfer += $iter1065->write($output); + $xfer += $iter1114->write($output); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -24835,14 +25103,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1066 = 0; - $_etype1069 = 0; - $xfer += $input->readListBegin($_etype1069, $_size1066); - for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) + $_size1115 = 0; + $_etype1118 = 0; + $xfer += $input->readListBegin($_etype1118, $_size1115); + for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) { - $elem1071 = null; - $xfer += $input->readString($elem1071); - $this->success []= $elem1071; + $elem1120 = null; + $xfer += $input->readString($elem1120); + $this->success []= $elem1120; } $xfer += $input->readListEnd(); } else { @@ -24894,9 +25162,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1121) { - $xfer += $output->writeString($iter1072); + $xfer += $output->writeString($iter1121); } } $output->writeListEnd(); @@ -26419,15 +26687,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1122 = 0; + $_etype1125 = 0; + $xfer += $input->readListBegin($_etype1125, $_size1122); + for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) { - $elem1078 = null; - $elem1078 = new \metastore\Partition(); - $xfer += $elem1078->read($input); - $this->new_parts []= $elem1078; + $elem1127 = null; + $elem1127 = new \metastore\Partition(); + $xfer += $elem1127->read($input); + $this->new_parts []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -26455,9 +26723,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1079) + foreach ($this->new_parts as $iter1128) { - $xfer += $iter1079->write($output); + $xfer += $iter1128->write($output); } } $output->writeListEnd(); @@ -26672,15 +26940,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1129 = 0; + $_etype1132 = 0; + $xfer += $input->readListBegin($_etype1132, $_size1129); + for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) { - $elem1085 = null; - $elem1085 = new \metastore\PartitionSpec(); - $xfer += $elem1085->read($input); - $this->new_parts []= $elem1085; + $elem1134 = null; + $elem1134 = new \metastore\PartitionSpec(); + $xfer += $elem1134->read($input); + $this->new_parts []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -26708,9 +26976,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1086) + foreach ($this->new_parts as $iter1135) { - $xfer += $iter1086->write($output); + $xfer += $iter1135->write($output); } } $output->writeListEnd(); @@ -26960,14 +27228,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1136 = 0; + $_etype1139 = 0; + $xfer += $input->readListBegin($_etype1139, $_size1136); + for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->part_vals []= $elem1092; + $elem1141 = null; + $xfer += $input->readString($elem1141); + $this->part_vals []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -27005,9 +27273,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1093) + foreach ($this->part_vals as $iter1142) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1142); } } $output->writeListEnd(); @@ -27509,14 +27777,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1099 = null; - $xfer += $input->readString($elem1099); - $this->part_vals []= $elem1099; + $elem1148 = null; + $xfer += $input->readString($elem1148); + $this->part_vals []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -27562,9 +27830,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1100) + foreach ($this->part_vals as $iter1149) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1149); } } $output->writeListEnd(); @@ -28418,14 +28686,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1106 = null; - $xfer += $input->readString($elem1106); - $this->part_vals []= $elem1106; + $elem1155 = null; + $xfer += $input->readString($elem1155); + $this->part_vals []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -28470,9 +28738,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1107) + foreach ($this->part_vals as $iter1156) { - $xfer += $output->writeString($iter1107); + $xfer += $output->writeString($iter1156); } } $output->writeListEnd(); @@ -28725,14 +28993,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1108 = 0; - $_etype1111 = 0; - $xfer += $input->readListBegin($_etype1111, $_size1108); - for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1113 = null; - $xfer += $input->readString($elem1113); - $this->part_vals []= $elem1113; + $elem1162 = null; + $xfer += $input->readString($elem1162); + $this->part_vals []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -28785,9 +29053,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1114) + foreach ($this->part_vals as $iter1163) { - $xfer += $output->writeString($iter1114); + $xfer += $output->writeString($iter1163); } } $output->writeListEnd(); @@ -29801,14 +30069,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1115 = 0; - $_etype1118 = 0; - $xfer += $input->readListBegin($_etype1118, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1120 = null; - $xfer += $input->readString($elem1120); - $this->part_vals []= $elem1120; + $elem1169 = null; + $xfer += $input->readString($elem1169); + $this->part_vals []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -29846,9 +30114,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1121) + foreach ($this->part_vals as $iter1170) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1170); } } $output->writeListEnd(); @@ -30090,17 +30358,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1122 = 0; - $_ktype1123 = 0; - $_vtype1124 = 0; - $xfer += $input->readMapBegin($_ktype1123, $_vtype1124, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1171 = 0; + $_ktype1172 = 0; + $_vtype1173 = 0; + $xfer += $input->readMapBegin($_ktype1172, $_vtype1173, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $key1127 = ''; - $val1128 = ''; - $xfer += $input->readString($key1127); - $xfer += $input->readString($val1128); - $this->partitionSpecs[$key1127] = $val1128; + $key1176 = ''; + $val1177 = ''; + $xfer += $input->readString($key1176); + $xfer += $input->readString($val1177); + $this->partitionSpecs[$key1176] = $val1177; } $xfer += $input->readMapEnd(); } else { @@ -30156,10 +30424,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1129 => $viter1130) + foreach ($this->partitionSpecs as $kiter1178 => $viter1179) { - $xfer += $output->writeString($kiter1129); - $xfer += $output->writeString($viter1130); + $xfer += $output->writeString($kiter1178); + $xfer += $output->writeString($viter1179); } } $output->writeMapEnd(); @@ -30471,17 +30739,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1131 = 0; - $_ktype1132 = 0; - $_vtype1133 = 0; - $xfer += $input->readMapBegin($_ktype1132, $_vtype1133, $_size1131); - for ($_i1135 = 0; $_i1135 < $_size1131; ++$_i1135) + $_size1180 = 0; + $_ktype1181 = 0; + $_vtype1182 = 0; + $xfer += $input->readMapBegin($_ktype1181, $_vtype1182, $_size1180); + for ($_i1184 = 0; $_i1184 < $_size1180; ++$_i1184) { - $key1136 = ''; - $val1137 = ''; - $xfer += $input->readString($key1136); - $xfer += $input->readString($val1137); - $this->partitionSpecs[$key1136] = $val1137; + $key1185 = ''; + $val1186 = ''; + $xfer += $input->readString($key1185); + $xfer += $input->readString($val1186); + $this->partitionSpecs[$key1185] = $val1186; } $xfer += $input->readMapEnd(); } else { @@ -30537,10 +30805,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1138 => $viter1139) + foreach ($this->partitionSpecs as $kiter1187 => $viter1188) { - $xfer += $output->writeString($kiter1138); - $xfer += $output->writeString($viter1139); + $xfer += $output->writeString($kiter1187); + $xfer += $output->writeString($viter1188); } } $output->writeMapEnd(); @@ -30673,15 +30941,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1140 = 0; - $_etype1143 = 0; - $xfer += $input->readListBegin($_etype1143, $_size1140); - for ($_i1144 = 0; $_i1144 < $_size1140; ++$_i1144) + $_size1189 = 0; + $_etype1192 = 0; + $xfer += $input->readListBegin($_etype1192, $_size1189); + for ($_i1193 = 0; $_i1193 < $_size1189; ++$_i1193) { - $elem1145 = null; - $elem1145 = new \metastore\Partition(); - $xfer += $elem1145->read($input); - $this->success []= $elem1145; + $elem1194 = null; + $elem1194 = new \metastore\Partition(); + $xfer += $elem1194->read($input); + $this->success []= $elem1194; } $xfer += $input->readListEnd(); } else { @@ -30741,9 +31009,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1146) + foreach ($this->success as $iter1195) { - $xfer += $iter1146->write($output); + $xfer += $iter1195->write($output); } } $output->writeListEnd(); @@ -30889,14 +31157,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1147 = 0; - $_etype1150 = 0; - $xfer += $input->readListBegin($_etype1150, $_size1147); - for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) + $_size1196 = 0; + $_etype1199 = 0; + $xfer += $input->readListBegin($_etype1199, $_size1196); + for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) { - $elem1152 = null; - $xfer += $input->readString($elem1152); - $this->part_vals []= $elem1152; + $elem1201 = null; + $xfer += $input->readString($elem1201); + $this->part_vals []= $elem1201; } $xfer += $input->readListEnd(); } else { @@ -30913,14 +31181,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1153 = 0; - $_etype1156 = 0; - $xfer += $input->readListBegin($_etype1156, $_size1153); - for ($_i1157 = 0; $_i1157 < $_size1153; ++$_i1157) + $_size1202 = 0; + $_etype1205 = 0; + $xfer += $input->readListBegin($_etype1205, $_size1202); + for ($_i1206 = 0; $_i1206 < $_size1202; ++$_i1206) { - $elem1158 = null; - $xfer += $input->readString($elem1158); - $this->group_names []= $elem1158; + $elem1207 = null; + $xfer += $input->readString($elem1207); + $this->group_names []= $elem1207; } $xfer += $input->readListEnd(); } else { @@ -30958,9 +31226,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1159) + foreach ($this->part_vals as $iter1208) { - $xfer += $output->writeString($iter1159); + $xfer += $output->writeString($iter1208); } } $output->writeListEnd(); @@ -30980,9 +31248,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1160) + foreach ($this->group_names as $iter1209) { - $xfer += $output->writeString($iter1160); + $xfer += $output->writeString($iter1209); } } $output->writeListEnd(); @@ -31573,15 +31841,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1161 = 0; - $_etype1164 = 0; - $xfer += $input->readListBegin($_etype1164, $_size1161); - for ($_i1165 = 0; $_i1165 < $_size1161; ++$_i1165) + $_size1210 = 0; + $_etype1213 = 0; + $xfer += $input->readListBegin($_etype1213, $_size1210); + for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) { - $elem1166 = null; - $elem1166 = new \metastore\Partition(); - $xfer += $elem1166->read($input); - $this->success []= $elem1166; + $elem1215 = null; + $elem1215 = new \metastore\Partition(); + $xfer += $elem1215->read($input); + $this->success []= $elem1215; } $xfer += $input->readListEnd(); } else { @@ -31625,9 +31893,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1167) + foreach ($this->success as $iter1216) { - $xfer += $iter1167->write($output); + $xfer += $iter1216->write($output); } } $output->writeListEnd(); @@ -31773,14 +32041,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1217 = 0; + $_etype1220 = 0; + $xfer += $input->readListBegin($_etype1220, $_size1217); + for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) { - $elem1173 = null; - $xfer += $input->readString($elem1173); - $this->group_names []= $elem1173; + $elem1222 = null; + $xfer += $input->readString($elem1222); + $this->group_names []= $elem1222; } $xfer += $input->readListEnd(); } else { @@ -31828,9 +32096,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1174) + foreach ($this->group_names as $iter1223) { - $xfer += $output->writeString($iter1174); + $xfer += $output->writeString($iter1223); } } $output->writeListEnd(); @@ -31919,15 +32187,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1175 = 0; - $_etype1178 = 0; - $xfer += $input->readListBegin($_etype1178, $_size1175); - for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) + $_size1224 = 0; + $_etype1227 = 0; + $xfer += $input->readListBegin($_etype1227, $_size1224); + for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) { - $elem1180 = null; - $elem1180 = new \metastore\Partition(); - $xfer += $elem1180->read($input); - $this->success []= $elem1180; + $elem1229 = null; + $elem1229 = new \metastore\Partition(); + $xfer += $elem1229->read($input); + $this->success []= $elem1229; } $xfer += $input->readListEnd(); } else { @@ -31971,9 +32239,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1181) + foreach ($this->success as $iter1230) { - $xfer += $iter1181->write($output); + $xfer += $iter1230->write($output); } } $output->writeListEnd(); @@ -32193,15 +32461,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1182 = 0; - $_etype1185 = 0; - $xfer += $input->readListBegin($_etype1185, $_size1182); - for ($_i1186 = 0; $_i1186 < $_size1182; ++$_i1186) + $_size1231 = 0; + $_etype1234 = 0; + $xfer += $input->readListBegin($_etype1234, $_size1231); + for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) { - $elem1187 = null; - $elem1187 = new \metastore\PartitionSpec(); - $xfer += $elem1187->read($input); - $this->success []= $elem1187; + $elem1236 = null; + $elem1236 = new \metastore\PartitionSpec(); + $xfer += $elem1236->read($input); + $this->success []= $elem1236; } $xfer += $input->readListEnd(); } else { @@ -32245,9 +32513,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1188) + foreach ($this->success as $iter1237) { - $xfer += $iter1188->write($output); + $xfer += $iter1237->write($output); } } $output->writeListEnd(); @@ -32466,14 +32734,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1189 = 0; - $_etype1192 = 0; - $xfer += $input->readListBegin($_etype1192, $_size1189); - for ($_i1193 = 0; $_i1193 < $_size1189; ++$_i1193) + $_size1238 = 0; + $_etype1241 = 0; + $xfer += $input->readListBegin($_etype1241, $_size1238); + for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) { - $elem1194 = null; - $xfer += $input->readString($elem1194); - $this->success []= $elem1194; + $elem1243 = null; + $xfer += $input->readString($elem1243); + $this->success []= $elem1243; } $xfer += $input->readListEnd(); } else { @@ -32517,9 +32785,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1195) + foreach ($this->success as $iter1244) { - $xfer += $output->writeString($iter1195); + $xfer += $output->writeString($iter1244); } } $output->writeListEnd(); @@ -32850,14 +33118,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1196 = 0; - $_etype1199 = 0; - $xfer += $input->readListBegin($_etype1199, $_size1196); - for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) + $_size1245 = 0; + $_etype1248 = 0; + $xfer += $input->readListBegin($_etype1248, $_size1245); + for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) { - $elem1201 = null; - $xfer += $input->readString($elem1201); - $this->part_vals []= $elem1201; + $elem1250 = null; + $xfer += $input->readString($elem1250); + $this->part_vals []= $elem1250; } $xfer += $input->readListEnd(); } else { @@ -32902,9 +33170,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1202) + foreach ($this->part_vals as $iter1251) { - $xfer += $output->writeString($iter1202); + $xfer += $output->writeString($iter1251); } } $output->writeListEnd(); @@ -32998,15 +33266,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1203 = 0; - $_etype1206 = 0; - $xfer += $input->readListBegin($_etype1206, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1252 = 0; + $_etype1255 = 0; + $xfer += $input->readListBegin($_etype1255, $_size1252); + for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) { - $elem1208 = null; - $elem1208 = new \metastore\Partition(); - $xfer += $elem1208->read($input); - $this->success []= $elem1208; + $elem1257 = null; + $elem1257 = new \metastore\Partition(); + $xfer += $elem1257->read($input); + $this->success []= $elem1257; } $xfer += $input->readListEnd(); } else { @@ -33050,9 +33318,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1209) + foreach ($this->success as $iter1258) { - $xfer += $iter1209->write($output); + $xfer += $iter1258->write($output); } } $output->writeListEnd(); @@ -33199,14 +33467,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1210 = 0; - $_etype1213 = 0; - $xfer += $input->readListBegin($_etype1213, $_size1210); - for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) + $_size1259 = 0; + $_etype1262 = 0; + $xfer += $input->readListBegin($_etype1262, $_size1259); + for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) { - $elem1215 = null; - $xfer += $input->readString($elem1215); - $this->part_vals []= $elem1215; + $elem1264 = null; + $xfer += $input->readString($elem1264); + $this->part_vals []= $elem1264; } $xfer += $input->readListEnd(); } else { @@ -33230,14 +33498,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1216 = 0; - $_etype1219 = 0; - $xfer += $input->readListBegin($_etype1219, $_size1216); - for ($_i1220 = 0; $_i1220 < $_size1216; ++$_i1220) + $_size1265 = 0; + $_etype1268 = 0; + $xfer += $input->readListBegin($_etype1268, $_size1265); + for ($_i1269 = 0; $_i1269 < $_size1265; ++$_i1269) { - $elem1221 = null; - $xfer += $input->readString($elem1221); - $this->group_names []= $elem1221; + $elem1270 = null; + $xfer += $input->readString($elem1270); + $this->group_names []= $elem1270; } $xfer += $input->readListEnd(); } else { @@ -33275,9 +33543,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1222) + foreach ($this->part_vals as $iter1271) { - $xfer += $output->writeString($iter1222); + $xfer += $output->writeString($iter1271); } } $output->writeListEnd(); @@ -33302,9 +33570,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1223) + foreach ($this->group_names as $iter1272) { - $xfer += $output->writeString($iter1223); + $xfer += $output->writeString($iter1272); } } $output->writeListEnd(); @@ -33393,15 +33661,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1224 = 0; - $_etype1227 = 0; - $xfer += $input->readListBegin($_etype1227, $_size1224); - for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) + $_size1273 = 0; + $_etype1276 = 0; + $xfer += $input->readListBegin($_etype1276, $_size1273); + for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) { - $elem1229 = null; - $elem1229 = new \metastore\Partition(); - $xfer += $elem1229->read($input); - $this->success []= $elem1229; + $elem1278 = null; + $elem1278 = new \metastore\Partition(); + $xfer += $elem1278->read($input); + $this->success []= $elem1278; } $xfer += $input->readListEnd(); } else { @@ -33445,9 +33713,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1230) + foreach ($this->success as $iter1279) { - $xfer += $iter1230->write($output); + $xfer += $iter1279->write($output); } } $output->writeListEnd(); @@ -33568,14 +33836,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1231 = 0; - $_etype1234 = 0; - $xfer += $input->readListBegin($_etype1234, $_size1231); - for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) + $_size1280 = 0; + $_etype1283 = 0; + $xfer += $input->readListBegin($_etype1283, $_size1280); + for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) { - $elem1236 = null; - $xfer += $input->readString($elem1236); - $this->part_vals []= $elem1236; + $elem1285 = null; + $xfer += $input->readString($elem1285); + $this->part_vals []= $elem1285; } $xfer += $input->readListEnd(); } else { @@ -33620,9 +33888,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1237) + foreach ($this->part_vals as $iter1286) { - $xfer += $output->writeString($iter1237); + $xfer += $output->writeString($iter1286); } } $output->writeListEnd(); @@ -33715,14 +33983,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1238 = 0; - $_etype1241 = 0; - $xfer += $input->readListBegin($_etype1241, $_size1238); - for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) + $_size1287 = 0; + $_etype1290 = 0; + $xfer += $input->readListBegin($_etype1290, $_size1287); + for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) { - $elem1243 = null; - $xfer += $input->readString($elem1243); - $this->success []= $elem1243; + $elem1292 = null; + $xfer += $input->readString($elem1292); + $this->success []= $elem1292; } $xfer += $input->readListEnd(); } else { @@ -33766,9 +34034,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1244) + foreach ($this->success as $iter1293) { - $xfer += $output->writeString($iter1244); + $xfer += $output->writeString($iter1293); } } $output->writeListEnd(); @@ -34011,15 +34279,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1245 = 0; - $_etype1248 = 0; - $xfer += $input->readListBegin($_etype1248, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1294 = 0; + $_etype1297 = 0; + $xfer += $input->readListBegin($_etype1297, $_size1294); + for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) { - $elem1250 = null; - $elem1250 = new \metastore\Partition(); - $xfer += $elem1250->read($input); - $this->success []= $elem1250; + $elem1299 = null; + $elem1299 = new \metastore\Partition(); + $xfer += $elem1299->read($input); + $this->success []= $elem1299; } $xfer += $input->readListEnd(); } else { @@ -34063,9 +34331,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1251) + foreach ($this->success as $iter1300) { - $xfer += $iter1251->write($output); + $xfer += $iter1300->write($output); } } $output->writeListEnd(); @@ -34308,15 +34576,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1252 = 0; - $_etype1255 = 0; - $xfer += $input->readListBegin($_etype1255, $_size1252); - for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) + $_size1301 = 0; + $_etype1304 = 0; + $xfer += $input->readListBegin($_etype1304, $_size1301); + for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) { - $elem1257 = null; - $elem1257 = new \metastore\PartitionSpec(); - $xfer += $elem1257->read($input); - $this->success []= $elem1257; + $elem1306 = null; + $elem1306 = new \metastore\PartitionSpec(); + $xfer += $elem1306->read($input); + $this->success []= $elem1306; } $xfer += $input->readListEnd(); } else { @@ -34360,9 +34628,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1258) + foreach ($this->success as $iter1307) { - $xfer += $iter1258->write($output); + $xfer += $iter1307->write($output); } } $output->writeListEnd(); @@ -34928,14 +35196,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1259 = 0; - $_etype1262 = 0; - $xfer += $input->readListBegin($_etype1262, $_size1259); - for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) + $_size1308 = 0; + $_etype1311 = 0; + $xfer += $input->readListBegin($_etype1311, $_size1308); + for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) { - $elem1264 = null; - $xfer += $input->readString($elem1264); - $this->names []= $elem1264; + $elem1313 = null; + $xfer += $input->readString($elem1313); + $this->names []= $elem1313; } $xfer += $input->readListEnd(); } else { @@ -34973,9 +35241,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1265) + foreach ($this->names as $iter1314) { - $xfer += $output->writeString($iter1265); + $xfer += $output->writeString($iter1314); } } $output->writeListEnd(); @@ -35064,15 +35332,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1315 = 0; + $_etype1318 = 0; + $xfer += $input->readListBegin($_etype1318, $_size1315); + for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) { - $elem1271 = null; - $elem1271 = new \metastore\Partition(); - $xfer += $elem1271->read($input); - $this->success []= $elem1271; + $elem1320 = null; + $elem1320 = new \metastore\Partition(); + $xfer += $elem1320->read($input); + $this->success []= $elem1320; } $xfer += $input->readListEnd(); } else { @@ -35116,9 +35384,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1272) + foreach ($this->success as $iter1321) { - $xfer += $iter1272->write($output); + $xfer += $iter1321->write($output); } } $output->writeListEnd(); @@ -35667,15 +35935,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1273 = 0; - $_etype1276 = 0; - $xfer += $input->readListBegin($_etype1276, $_size1273); - for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) + $_size1322 = 0; + $_etype1325 = 0; + $xfer += $input->readListBegin($_etype1325, $_size1322); + for ($_i1326 = 0; $_i1326 < $_size1322; ++$_i1326) { - $elem1278 = null; - $elem1278 = new \metastore\Partition(); - $xfer += $elem1278->read($input); - $this->new_parts []= $elem1278; + $elem1327 = null; + $elem1327 = new \metastore\Partition(); + $xfer += $elem1327->read($input); + $this->new_parts []= $elem1327; } $xfer += $input->readListEnd(); } else { @@ -35713,9 +35981,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1279) + foreach ($this->new_parts as $iter1328) { - $xfer += $iter1279->write($output); + $xfer += $iter1328->write($output); } } $output->writeListEnd(); @@ -35930,15 +36198,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1280 = 0; - $_etype1283 = 0; - $xfer += $input->readListBegin($_etype1283, $_size1280); - for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) + $_size1329 = 0; + $_etype1332 = 0; + $xfer += $input->readListBegin($_etype1332, $_size1329); + for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) { - $elem1285 = null; - $elem1285 = new \metastore\Partition(); - $xfer += $elem1285->read($input); - $this->new_parts []= $elem1285; + $elem1334 = null; + $elem1334 = new \metastore\Partition(); + $xfer += $elem1334->read($input); + $this->new_parts []= $elem1334; } $xfer += $input->readListEnd(); } else { @@ -35984,9 +36252,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1286) + foreach ($this->new_parts as $iter1335) { - $xfer += $iter1286->write($output); + $xfer += $iter1335->write($output); } } $output->writeListEnd(); @@ -36674,14 +36942,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1287 = 0; - $_etype1290 = 0; - $xfer += $input->readListBegin($_etype1290, $_size1287); - for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) + $_size1336 = 0; + $_etype1339 = 0; + $xfer += $input->readListBegin($_etype1339, $_size1336); + for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) { - $elem1292 = null; - $xfer += $input->readString($elem1292); - $this->part_vals []= $elem1292; + $elem1341 = null; + $xfer += $input->readString($elem1341); + $this->part_vals []= $elem1341; } $xfer += $input->readListEnd(); } else { @@ -36727,9 +36995,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1293) + foreach ($this->part_vals as $iter1342) { - $xfer += $output->writeString($iter1293); + $xfer += $output->writeString($iter1342); } } $output->writeListEnd(); @@ -37124,14 +37392,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1294 = 0; - $_etype1297 = 0; - $xfer += $input->readListBegin($_etype1297, $_size1294); - for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) + $_size1343 = 0; + $_etype1346 = 0; + $xfer += $input->readListBegin($_etype1346, $_size1343); + for ($_i1347 = 0; $_i1347 < $_size1343; ++$_i1347) { - $elem1299 = null; - $xfer += $input->readString($elem1299); - $this->part_vals []= $elem1299; + $elem1348 = null; + $xfer += $input->readString($elem1348); + $this->part_vals []= $elem1348; } $xfer += $input->readListEnd(); } else { @@ -37166,9 +37434,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1300) + foreach ($this->part_vals as $iter1349) { - $xfer += $output->writeString($iter1300); + $xfer += $output->writeString($iter1349); } } $output->writeListEnd(); @@ -37622,14 +37890,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1301 = 0; - $_etype1304 = 0; - $xfer += $input->readListBegin($_etype1304, $_size1301); - for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) + $_size1350 = 0; + $_etype1353 = 0; + $xfer += $input->readListBegin($_etype1353, $_size1350); + for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) { - $elem1306 = null; - $xfer += $input->readString($elem1306); - $this->success []= $elem1306; + $elem1355 = null; + $xfer += $input->readString($elem1355); + $this->success []= $elem1355; } $xfer += $input->readListEnd(); } else { @@ -37665,9 +37933,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1307) + foreach ($this->success as $iter1356) { - $xfer += $output->writeString($iter1307); + $xfer += $output->writeString($iter1356); } } $output->writeListEnd(); @@ -37827,17 +38095,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1308 = 0; - $_ktype1309 = 0; - $_vtype1310 = 0; - $xfer += $input->readMapBegin($_ktype1309, $_vtype1310, $_size1308); - for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) + $_size1357 = 0; + $_ktype1358 = 0; + $_vtype1359 = 0; + $xfer += $input->readMapBegin($_ktype1358, $_vtype1359, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $key1313 = ''; - $val1314 = ''; - $xfer += $input->readString($key1313); - $xfer += $input->readString($val1314); - $this->success[$key1313] = $val1314; + $key1362 = ''; + $val1363 = ''; + $xfer += $input->readString($key1362); + $xfer += $input->readString($val1363); + $this->success[$key1362] = $val1363; } $xfer += $input->readMapEnd(); } else { @@ -37873,10 +38141,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1315 => $viter1316) + foreach ($this->success as $kiter1364 => $viter1365) { - $xfer += $output->writeString($kiter1315); - $xfer += $output->writeString($viter1316); + $xfer += $output->writeString($kiter1364); + $xfer += $output->writeString($viter1365); } } $output->writeMapEnd(); @@ -37996,17 +38264,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1317 = 0; - $_ktype1318 = 0; - $_vtype1319 = 0; - $xfer += $input->readMapBegin($_ktype1318, $_vtype1319, $_size1317); - for ($_i1321 = 0; $_i1321 < $_size1317; ++$_i1321) + $_size1366 = 0; + $_ktype1367 = 0; + $_vtype1368 = 0; + $xfer += $input->readMapBegin($_ktype1367, $_vtype1368, $_size1366); + for ($_i1370 = 0; $_i1370 < $_size1366; ++$_i1370) { - $key1322 = ''; - $val1323 = ''; - $xfer += $input->readString($key1322); - $xfer += $input->readString($val1323); - $this->part_vals[$key1322] = $val1323; + $key1371 = ''; + $val1372 = ''; + $xfer += $input->readString($key1371); + $xfer += $input->readString($val1372); + $this->part_vals[$key1371] = $val1372; } $xfer += $input->readMapEnd(); } else { @@ -38051,10 +38319,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1324 => $viter1325) + foreach ($this->part_vals as $kiter1373 => $viter1374) { - $xfer += $output->writeString($kiter1324); - $xfer += $output->writeString($viter1325); + $xfer += $output->writeString($kiter1373); + $xfer += $output->writeString($viter1374); } } $output->writeMapEnd(); @@ -38376,17 +38644,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1326 = 0; - $_ktype1327 = 0; - $_vtype1328 = 0; - $xfer += $input->readMapBegin($_ktype1327, $_vtype1328, $_size1326); - for ($_i1330 = 0; $_i1330 < $_size1326; ++$_i1330) + $_size1375 = 0; + $_ktype1376 = 0; + $_vtype1377 = 0; + $xfer += $input->readMapBegin($_ktype1376, $_vtype1377, $_size1375); + for ($_i1379 = 0; $_i1379 < $_size1375; ++$_i1379) { - $key1331 = ''; - $val1332 = ''; - $xfer += $input->readString($key1331); - $xfer += $input->readString($val1332); - $this->part_vals[$key1331] = $val1332; + $key1380 = ''; + $val1381 = ''; + $xfer += $input->readString($key1380); + $xfer += $input->readString($val1381); + $this->part_vals[$key1380] = $val1381; } $xfer += $input->readMapEnd(); } else { @@ -38431,10 +38699,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1333 => $viter1334) + foreach ($this->part_vals as $kiter1382 => $viter1383) { - $xfer += $output->writeString($kiter1333); - $xfer += $output->writeString($viter1334); + $xfer += $output->writeString($kiter1382); + $xfer += $output->writeString($viter1383); } } $output->writeMapEnd(); @@ -43913,14 +44181,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1335 = 0; - $_etype1338 = 0; - $xfer += $input->readListBegin($_etype1338, $_size1335); - for ($_i1339 = 0; $_i1339 < $_size1335; ++$_i1339) + $_size1384 = 0; + $_etype1387 = 0; + $xfer += $input->readListBegin($_etype1387, $_size1384); + for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) { - $elem1340 = null; - $xfer += $input->readString($elem1340); - $this->success []= $elem1340; + $elem1389 = null; + $xfer += $input->readString($elem1389); + $this->success []= $elem1389; } $xfer += $input->readListEnd(); } else { @@ -43956,9 +44224,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1341) + foreach ($this->success as $iter1390) { - $xfer += $output->writeString($iter1341); + $xfer += $output->writeString($iter1390); } } $output->writeListEnd(); @@ -44827,14 +45095,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1342 = 0; - $_etype1345 = 0; - $xfer += $input->readListBegin($_etype1345, $_size1342); - for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) + $_size1391 = 0; + $_etype1394 = 0; + $xfer += $input->readListBegin($_etype1394, $_size1391); + for ($_i1395 = 0; $_i1395 < $_size1391; ++$_i1395) { - $elem1347 = null; - $xfer += $input->readString($elem1347); - $this->success []= $elem1347; + $elem1396 = null; + $xfer += $input->readString($elem1396); + $this->success []= $elem1396; } $xfer += $input->readListEnd(); } else { @@ -44870,9 +45138,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1348) + foreach ($this->success as $iter1397) { - $xfer += $output->writeString($iter1348); + $xfer += $output->writeString($iter1397); } } $output->writeListEnd(); @@ -45563,15 +45831,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1349 = 0; - $_etype1352 = 0; - $xfer += $input->readListBegin($_etype1352, $_size1349); - for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) + $_size1398 = 0; + $_etype1401 = 0; + $xfer += $input->readListBegin($_etype1401, $_size1398); + for ($_i1402 = 0; $_i1402 < $_size1398; ++$_i1402) { - $elem1354 = null; - $elem1354 = new \metastore\Role(); - $xfer += $elem1354->read($input); - $this->success []= $elem1354; + $elem1403 = null; + $elem1403 = new \metastore\Role(); + $xfer += $elem1403->read($input); + $this->success []= $elem1403; } $xfer += $input->readListEnd(); } else { @@ -45607,9 +45875,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1355) + foreach ($this->success as $iter1404) { - $xfer += $iter1355->write($output); + $xfer += $iter1404->write($output); } } $output->writeListEnd(); @@ -46271,14 +46539,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1356 = 0; - $_etype1359 = 0; - $xfer += $input->readListBegin($_etype1359, $_size1356); - for ($_i1360 = 0; $_i1360 < $_size1356; ++$_i1360) + $_size1405 = 0; + $_etype1408 = 0; + $xfer += $input->readListBegin($_etype1408, $_size1405); + for ($_i1409 = 0; $_i1409 < $_size1405; ++$_i1409) { - $elem1361 = null; - $xfer += $input->readString($elem1361); - $this->group_names []= $elem1361; + $elem1410 = null; + $xfer += $input->readString($elem1410); + $this->group_names []= $elem1410; } $xfer += $input->readListEnd(); } else { @@ -46319,9 +46587,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1362) + foreach ($this->group_names as $iter1411) { - $xfer += $output->writeString($iter1362); + $xfer += $output->writeString($iter1411); } } $output->writeListEnd(); @@ -46629,15 +46897,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1363 = 0; - $_etype1366 = 0; - $xfer += $input->readListBegin($_etype1366, $_size1363); - for ($_i1367 = 0; $_i1367 < $_size1363; ++$_i1367) + $_size1412 = 0; + $_etype1415 = 0; + $xfer += $input->readListBegin($_etype1415, $_size1412); + for ($_i1416 = 0; $_i1416 < $_size1412; ++$_i1416) { - $elem1368 = null; - $elem1368 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1368->read($input); - $this->success []= $elem1368; + $elem1417 = null; + $elem1417 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1417->read($input); + $this->success []= $elem1417; } $xfer += $input->readListEnd(); } else { @@ -46673,9 +46941,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1369) + foreach ($this->success as $iter1418) { - $xfer += $iter1369->write($output); + $xfer += $iter1418->write($output); } } $output->writeListEnd(); @@ -47543,14 +47811,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1370 = 0; - $_etype1373 = 0; - $xfer += $input->readListBegin($_etype1373, $_size1370); - for ($_i1374 = 0; $_i1374 < $_size1370; ++$_i1374) + $_size1419 = 0; + $_etype1422 = 0; + $xfer += $input->readListBegin($_etype1422, $_size1419); + for ($_i1423 = 0; $_i1423 < $_size1419; ++$_i1423) { - $elem1375 = null; - $xfer += $input->readString($elem1375); - $this->group_names []= $elem1375; + $elem1424 = null; + $xfer += $input->readString($elem1424); + $this->group_names []= $elem1424; } $xfer += $input->readListEnd(); } else { @@ -47583,9 +47851,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1376) + foreach ($this->group_names as $iter1425) { - $xfer += $output->writeString($iter1376); + $xfer += $output->writeString($iter1425); } } $output->writeListEnd(); @@ -47661,14 +47929,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1377 = 0; - $_etype1380 = 0; - $xfer += $input->readListBegin($_etype1380, $_size1377); - for ($_i1381 = 0; $_i1381 < $_size1377; ++$_i1381) + $_size1426 = 0; + $_etype1429 = 0; + $xfer += $input->readListBegin($_etype1429, $_size1426); + for ($_i1430 = 0; $_i1430 < $_size1426; ++$_i1430) { - $elem1382 = null; - $xfer += $input->readString($elem1382); - $this->success []= $elem1382; + $elem1431 = null; + $xfer += $input->readString($elem1431); + $this->success []= $elem1431; } $xfer += $input->readListEnd(); } else { @@ -47704,9 +47972,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1383) + foreach ($this->success as $iter1432) { - $xfer += $output->writeString($iter1383); + $xfer += $output->writeString($iter1432); } } $output->writeListEnd(); @@ -48823,14 +49091,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1384 = 0; - $_etype1387 = 0; - $xfer += $input->readListBegin($_etype1387, $_size1384); - for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) + $_size1433 = 0; + $_etype1436 = 0; + $xfer += $input->readListBegin($_etype1436, $_size1433); + for ($_i1437 = 0; $_i1437 < $_size1433; ++$_i1437) { - $elem1389 = null; - $xfer += $input->readString($elem1389); - $this->success []= $elem1389; + $elem1438 = null; + $xfer += $input->readString($elem1438); + $this->success []= $elem1438; } $xfer += $input->readListEnd(); } else { @@ -48858,9 +49126,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1390) + foreach ($this->success as $iter1439) { - $xfer += $output->writeString($iter1390); + $xfer += $output->writeString($iter1439); } } $output->writeListEnd(); @@ -49499,14 +49767,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1391 = 0; - $_etype1394 = 0; - $xfer += $input->readListBegin($_etype1394, $_size1391); - for ($_i1395 = 0; $_i1395 < $_size1391; ++$_i1395) + $_size1440 = 0; + $_etype1443 = 0; + $xfer += $input->readListBegin($_etype1443, $_size1440); + for ($_i1444 = 0; $_i1444 < $_size1440; ++$_i1444) { - $elem1396 = null; - $xfer += $input->readString($elem1396); - $this->success []= $elem1396; + $elem1445 = null; + $xfer += $input->readString($elem1445); + $this->success []= $elem1445; } $xfer += $input->readListEnd(); } else { @@ -49534,9 +49802,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1397) + foreach ($this->success as $iter1446) { - $xfer += $output->writeString($iter1397); + $xfer += $output->writeString($iter1446); } } $output->writeListEnd(); @@ -53290,14 +53558,14 @@ class ThriftHiveMetastore_find_columns_with_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1398 = 0; - $_etype1401 = 0; - $xfer += $input->readListBegin($_etype1401, $_size1398); - for ($_i1402 = 0; $_i1402 < $_size1398; ++$_i1402) + $_size1447 = 0; + $_etype1450 = 0; + $xfer += $input->readListBegin($_etype1450, $_size1447); + for ($_i1451 = 0; $_i1451 < $_size1447; ++$_i1451) { - $elem1403 = null; - $xfer += $input->readString($elem1403); - $this->success []= $elem1403; + $elem1452 = null; + $xfer += $input->readString($elem1452); + $this->success []= $elem1452; } $xfer += $input->readListEnd(); } else { @@ -53325,9 +53593,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1404) + foreach ($this->success as $iter1453) { - $xfer += $output->writeString($iter1404); + $xfer += $output->writeString($iter1453); } } $output->writeListEnd(); @@ -61498,15 +61766,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1405 = 0; - $_etype1408 = 0; - $xfer += $input->readListBegin($_etype1408, $_size1405); - for ($_i1409 = 0; $_i1409 < $_size1405; ++$_i1409) + $_size1454 = 0; + $_etype1457 = 0; + $xfer += $input->readListBegin($_etype1457, $_size1454); + for ($_i1458 = 0; $_i1458 < $_size1454; ++$_i1458) { - $elem1410 = null; - $elem1410 = new \metastore\SchemaVersion(); - $xfer += $elem1410->read($input); - $this->success []= $elem1410; + $elem1459 = null; + $elem1459 = new \metastore\SchemaVersion(); + $xfer += $elem1459->read($input); + $this->success []= $elem1459; } $xfer += $input->readListEnd(); } else { @@ -61550,9 +61818,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1411) + foreach ($this->success as $iter1460) { - $xfer += $iter1411->write($output); + $xfer += $iter1460->write($output); } } $output->writeListEnd(); @@ -63421,15 +63689,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1412 = 0; - $_etype1415 = 0; - $xfer += $input->readListBegin($_etype1415, $_size1412); - for ($_i1416 = 0; $_i1416 < $_size1412; ++$_i1416) + $_size1461 = 0; + $_etype1464 = 0; + $xfer += $input->readListBegin($_etype1464, $_size1461); + for ($_i1465 = 0; $_i1465 < $_size1461; ++$_i1465) { - $elem1417 = null; - $elem1417 = new \metastore\RuntimeStat(); - $xfer += $elem1417->read($input); - $this->success []= $elem1417; + $elem1466 = null; + $elem1466 = new \metastore\RuntimeStat(); + $xfer += $elem1466->read($input); + $this->success []= $elem1466; } $xfer += $input->readListEnd(); } else { @@ -63465,9 +63733,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1418) + foreach ($this->success as $iter1467) { - $xfer += $iter1418->write($output); + $xfer += $iter1467->write($output); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php index 4f5f8eb699..5bbad92d22 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php @@ -234,6 +234,17 @@ final class TxnType { ); } +final class GetTablesExtRequestFields { + const ACCESS_TYPE = 1; + const PROCESSOR_CAPABILITIES = 2; + const ALL = 2147483647; + static public $__names = array( + 1 => 'ACCESS_TYPE', + 2 => 'PROCESSOR_CAPABILITIES', + 2147483647 => 'ALL', + ); +} + final class FileMetadataExprType { const ORC_SARG = 1; static public $__names = array( @@ -6846,6 +6857,10 @@ class Table { * @var \metastore\ColumnStatistics */ public $colStats = null; + /** + * @var int + */ + public $accessType = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6955,6 +6970,10 @@ class Table { 'type' => TType::STRUCT, 'class' => '\metastore\ColumnStatistics', ), + 23 => array( + 'var' => 'accessType', + 'type' => TType::BYTE, + ), ); } if (is_array($vals)) { @@ -7024,6 +7043,9 @@ class Table { if (isset($vals['colStats'])) { $this->colStats = $vals['colStats']; } + if (isset($vals['accessType'])) { + $this->accessType = $vals['accessType']; + } } } @@ -7228,6 +7250,13 @@ class Table { $xfer += $input->skip($ftype); } break; + case 23: + if ($ftype == TType::BYTE) { + $xfer += $input->readByte($this->accessType); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -7388,6 +7417,11 @@ class Table { $xfer += $this->colStats->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->accessType !== null) { + $xfer += $output->writeFieldBegin('accessType', TType::BYTE, 23); + $xfer += $output->writeByte($this->accessType); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -15945,6 +15979,14 @@ class GetPartitionsByNamesRequest { * @var bool */ public $get_col_stats = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15969,6 +16011,18 @@ class GetPartitionsByNamesRequest { 'var' => 'get_col_stats', 'type' => TType::BOOL, ), + 5 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 6 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -15984,6 +16038,12 @@ class GetPartitionsByNamesRequest { if (isset($vals['get_col_stats'])) { $this->get_col_stats = $vals['get_col_stats']; } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } } } @@ -16044,6 +16104,30 @@ class GetPartitionsByNamesRequest { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size494 = 0; + $_etype497 = 0; + $xfer += $input->readListBegin($_etype497, $_size494); + for ($_i498 = 0; $_i498 < $_size494; ++$_i498) + { + $elem499 = null; + $xfer += $input->readString($elem499); + $this->processorCapabilities []= $elem499; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -16075,9 +16159,9 @@ class GetPartitionsByNamesRequest { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter494) + foreach ($this->names as $iter500) { - $xfer += $output->writeString($iter494); + $xfer += $output->writeString($iter500); } } $output->writeListEnd(); @@ -16089,6 +16173,28 @@ class GetPartitionsByNamesRequest { $xfer += $output->writeBool($this->get_col_stats); $xfer += $output->writeFieldEnd(); } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter501) + { + $xfer += $output->writeString($iter501); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 6); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16147,15 +16253,15 @@ class GetPartitionsByNamesResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size495 = 0; - $_etype498 = 0; - $xfer += $input->readListBegin($_etype498, $_size495); - for ($_i499 = 0; $_i499 < $_size495; ++$_i499) + $_size502 = 0; + $_etype505 = 0; + $xfer += $input->readListBegin($_etype505, $_size502); + for ($_i506 = 0; $_i506 < $_size502; ++$_i506) { - $elem500 = null; - $elem500 = new \metastore\Partition(); - $xfer += $elem500->read($input); - $this->partitions []= $elem500; + $elem507 = null; + $elem507 = new \metastore\Partition(); + $xfer += $elem507->read($input); + $this->partitions []= $elem507; } $xfer += $input->readListEnd(); } else { @@ -16183,9 +16289,9 @@ class GetPartitionsByNamesResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter501) + foreach ($this->partitions as $iter508) { - $xfer += $iter501->write($output); + $xfer += $iter508->write($output); } } $output->writeListEnd(); @@ -16485,15 +16591,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size502 = 0; - $_etype505 = 0; - $xfer += $input->readListBegin($_etype505, $_size502); - for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + $_size509 = 0; + $_etype512 = 0; + $xfer += $input->readListBegin($_etype512, $_size509); + for ($_i513 = 0; $_i513 < $_size509; ++$_i513) { - $elem507 = null; - $elem507 = new \metastore\ResourceUri(); - $xfer += $elem507->read($input); - $this->resourceUris []= $elem507; + $elem514 = null; + $elem514 = new \metastore\ResourceUri(); + $xfer += $elem514->read($input); + $this->resourceUris []= $elem514; } $xfer += $input->readListEnd(); } else { @@ -16563,9 +16669,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter508) + foreach ($this->resourceUris as $iter515) { - $xfer += $iter508->write($output); + $xfer += $iter515->write($output); } } $output->writeListEnd(); @@ -16912,15 +17018,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size509 = 0; - $_etype512 = 0; - $xfer += $input->readListBegin($_etype512, $_size509); - for ($_i513 = 0; $_i513 < $_size509; ++$_i513) + $_size516 = 0; + $_etype519 = 0; + $xfer += $input->readListBegin($_etype519, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $elem514 = null; - $elem514 = new \metastore\TxnInfo(); - $xfer += $elem514->read($input); - $this->open_txns []= $elem514; + $elem521 = null; + $elem521 = new \metastore\TxnInfo(); + $xfer += $elem521->read($input); + $this->open_txns []= $elem521; } $xfer += $input->readListEnd(); } else { @@ -16953,9 +17059,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter515) + foreach ($this->open_txns as $iter522) { - $xfer += $iter515->write($output); + $xfer += $iter522->write($output); } } $output->writeListEnd(); @@ -17059,14 +17165,14 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size516 = 0; - $_etype519 = 0; - $xfer += $input->readListBegin($_etype519, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) { - $elem521 = null; - $xfer += $input->readI64($elem521); - $this->open_txns []= $elem521; + $elem528 = null; + $xfer += $input->readI64($elem528); + $this->open_txns []= $elem528; } $xfer += $input->readListEnd(); } else { @@ -17113,9 +17219,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter522) + foreach ($this->open_txns as $iter529) { - $xfer += $output->writeI64($iter522); + $xfer += $output->writeI64($iter529); } } $output->writeListEnd(); @@ -17290,14 +17396,14 @@ class OpenTxnRequest { case 6: if ($ftype == TType::LST) { $this->replSrcTxnIds = array(); - $_size523 = 0; - $_etype526 = 0; - $xfer += $input->readListBegin($_etype526, $_size523); - for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + $_size530 = 0; + $_etype533 = 0; + $xfer += $input->readListBegin($_etype533, $_size530); + for ($_i534 = 0; $_i534 < $_size530; ++$_i534) { - $elem528 = null; - $xfer += $input->readI64($elem528); - $this->replSrcTxnIds []= $elem528; + $elem535 = null; + $xfer += $input->readI64($elem535); + $this->replSrcTxnIds []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -17357,9 +17463,9 @@ class OpenTxnRequest { { $output->writeListBegin(TType::I64, count($this->replSrcTxnIds)); { - foreach ($this->replSrcTxnIds as $iter529) + foreach ($this->replSrcTxnIds as $iter536) { - $xfer += $output->writeI64($iter529); + $xfer += $output->writeI64($iter536); } } $output->writeListEnd(); @@ -17428,14 +17534,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size530 = 0; - $_etype533 = 0; - $xfer += $input->readListBegin($_etype533, $_size530); - for ($_i534 = 0; $_i534 < $_size530; ++$_i534) + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) { - $elem535 = null; - $xfer += $input->readI64($elem535); - $this->txn_ids []= $elem535; + $elem542 = null; + $xfer += $input->readI64($elem542); + $this->txn_ids []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -17463,9 +17569,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter536) + foreach ($this->txn_ids as $iter543) { - $xfer += $output->writeI64($iter536); + $xfer += $output->writeI64($iter543); } } $output->writeListEnd(); @@ -17627,14 +17733,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size544 = 0; + $_etype547 = 0; + $xfer += $input->readListBegin($_etype547, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $elem542 = null; - $xfer += $input->readI64($elem542); - $this->txn_ids []= $elem542; + $elem549 = null; + $xfer += $input->readI64($elem549); + $this->txn_ids []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -17662,9 +17768,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter543) + foreach ($this->txn_ids as $iter550) { - $xfer += $output->writeI64($iter543); + $xfer += $output->writeI64($iter550); } } $output->writeListEnd(); @@ -17910,15 +18016,15 @@ class CommitTxnRequest { case 3: if ($ftype == TType::LST) { $this->writeEventInfos = array(); - $_size544 = 0; - $_etype547 = 0; - $xfer += $input->readListBegin($_etype547, $_size544); - for ($_i548 = 0; $_i548 < $_size544; ++$_i548) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem549 = null; - $elem549 = new \metastore\WriteEventInfo(); - $xfer += $elem549->read($input); - $this->writeEventInfos []= $elem549; + $elem556 = null; + $elem556 = new \metastore\WriteEventInfo(); + $xfer += $elem556->read($input); + $this->writeEventInfos []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -17972,9 +18078,9 @@ class CommitTxnRequest { { $output->writeListBegin(TType::STRUCT, count($this->writeEventInfos)); { - foreach ($this->writeEventInfos as $iter550) + foreach ($this->writeEventInfos as $iter557) { - $xfer += $iter550->write($output); + $xfer += $iter557->write($output); } } $output->writeListEnd(); @@ -18137,14 +18243,14 @@ class ReplLastIdInfo { case 5: if ($ftype == TType::LST) { $this->partitionList = array(); - $_size551 = 0; - $_etype554 = 0; - $xfer += $input->readListBegin($_etype554, $_size551); - for ($_i555 = 0; $_i555 < $_size551; ++$_i555) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readListBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem556 = null; - $xfer += $input->readString($elem556); - $this->partitionList []= $elem556; + $elem563 = null; + $xfer += $input->readString($elem563); + $this->partitionList []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -18199,9 +18305,9 @@ class ReplLastIdInfo { { $output->writeListBegin(TType::STRING, count($this->partitionList)); { - foreach ($this->partitionList as $iter557) + foreach ($this->partitionList as $iter564) { - $xfer += $output->writeString($iter557); + $xfer += $output->writeString($iter564); } } $output->writeListEnd(); @@ -18573,14 +18679,14 @@ class ReplTblWriteIdStateRequest { case 6: if ($ftype == TType::LST) { $this->partNames = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem563 = null; - $xfer += $input->readString($elem563); - $this->partNames []= $elem563; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->partNames []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -18633,9 +18739,9 @@ class ReplTblWriteIdStateRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter564) + foreach ($this->partNames as $iter571) { - $xfer += $output->writeString($iter564); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -18721,14 +18827,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = array(); - $_size565 = 0; - $_etype568 = 0; - $xfer += $input->readListBegin($_etype568, $_size565); - for ($_i569 = 0; $_i569 < $_size565; ++$_i569) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem570 = null; - $xfer += $input->readString($elem570); - $this->fullTableNames []= $elem570; + $elem577 = null; + $xfer += $input->readString($elem577); + $this->fullTableNames []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -18770,9 +18876,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter571) + foreach ($this->fullTableNames as $iter578) { - $xfer += $output->writeString($iter571); + $xfer += $output->writeString($iter578); } } $output->writeListEnd(); @@ -18904,14 +19010,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size579 = 0; + $_etype582 = 0; + $xfer += $input->readListBegin($_etype582, $_size579); + for ($_i583 = 0; $_i583 < $_size579; ++$_i583) { - $elem577 = null; - $xfer += $input->readI64($elem577); - $this->invalidWriteIds []= $elem577; + $elem584 = null; + $xfer += $input->readI64($elem584); + $this->invalidWriteIds []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -18963,9 +19069,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter578) + foreach ($this->invalidWriteIds as $iter585) { - $xfer += $output->writeI64($iter578); + $xfer += $output->writeI64($iter585); } } $output->writeListEnd(); @@ -19040,15 +19146,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = array(); - $_size579 = 0; - $_etype582 = 0; - $xfer += $input->readListBegin($_etype582, $_size579); - for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + $_size586 = 0; + $_etype589 = 0; + $xfer += $input->readListBegin($_etype589, $_size586); + for ($_i590 = 0; $_i590 < $_size586; ++$_i590) { - $elem584 = null; - $elem584 = new \metastore\TableValidWriteIds(); - $xfer += $elem584->read($input); - $this->tblValidWriteIds []= $elem584; + $elem591 = null; + $elem591 = new \metastore\TableValidWriteIds(); + $xfer += $elem591->read($input); + $this->tblValidWriteIds []= $elem591; } $xfer += $input->readListEnd(); } else { @@ -19076,9 +19182,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter585) + foreach ($this->tblValidWriteIds as $iter592) { - $xfer += $iter585->write($output); + $xfer += $iter592->write($output); } } $output->writeListEnd(); @@ -19205,14 +19311,14 @@ class AllocateTableWriteIdsRequest { case 3: if ($ftype == TType::LST) { $this->txnIds = array(); - $_size586 = 0; - $_etype589 = 0; - $xfer += $input->readListBegin($_etype589, $_size586); - for ($_i590 = 0; $_i590 < $_size586; ++$_i590) + $_size593 = 0; + $_etype596 = 0; + $xfer += $input->readListBegin($_etype596, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) { - $elem591 = null; - $xfer += $input->readI64($elem591); - $this->txnIds []= $elem591; + $elem598 = null; + $xfer += $input->readI64($elem598); + $this->txnIds []= $elem598; } $xfer += $input->readListEnd(); } else { @@ -19229,15 +19335,15 @@ class AllocateTableWriteIdsRequest { case 5: if ($ftype == TType::LST) { $this->srcTxnToWriteIdList = array(); - $_size592 = 0; - $_etype595 = 0; - $xfer += $input->readListBegin($_etype595, $_size592); - for ($_i596 = 0; $_i596 < $_size592; ++$_i596) + $_size599 = 0; + $_etype602 = 0; + $xfer += $input->readListBegin($_etype602, $_size599); + for ($_i603 = 0; $_i603 < $_size599; ++$_i603) { - $elem597 = null; - $elem597 = new \metastore\TxnToWriteId(); - $xfer += $elem597->read($input); - $this->srcTxnToWriteIdList []= $elem597; + $elem604 = null; + $elem604 = new \metastore\TxnToWriteId(); + $xfer += $elem604->read($input); + $this->srcTxnToWriteIdList []= $elem604; } $xfer += $input->readListEnd(); } else { @@ -19275,9 +19381,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter598) + foreach ($this->txnIds as $iter605) { - $xfer += $output->writeI64($iter598); + $xfer += $output->writeI64($iter605); } } $output->writeListEnd(); @@ -19297,9 +19403,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter599) + foreach ($this->srcTxnToWriteIdList as $iter606) { - $xfer += $iter599->write($output); + $xfer += $iter606->write($output); } } $output->writeListEnd(); @@ -19462,15 +19568,15 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size600 = 0; - $_etype603 = 0; - $xfer += $input->readListBegin($_etype603, $_size600); - for ($_i604 = 0; $_i604 < $_size600; ++$_i604) + $_size607 = 0; + $_etype610 = 0; + $xfer += $input->readListBegin($_etype610, $_size607); + for ($_i611 = 0; $_i611 < $_size607; ++$_i611) { - $elem605 = null; - $elem605 = new \metastore\TxnToWriteId(); - $xfer += $elem605->read($input); - $this->txnToWriteIds []= $elem605; + $elem612 = null; + $elem612 = new \metastore\TxnToWriteId(); + $xfer += $elem612->read($input); + $this->txnToWriteIds []= $elem612; } $xfer += $input->readListEnd(); } else { @@ -19498,9 +19604,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter606) + foreach ($this->txnToWriteIds as $iter613) { - $xfer += $iter606->write($output); + $xfer += $iter613->write($output); } } $output->writeListEnd(); @@ -19845,15 +19951,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size607 = 0; - $_etype610 = 0; - $xfer += $input->readListBegin($_etype610, $_size607); - for ($_i611 = 0; $_i611 < $_size607; ++$_i611) + $_size614 = 0; + $_etype617 = 0; + $xfer += $input->readListBegin($_etype617, $_size614); + for ($_i618 = 0; $_i618 < $_size614; ++$_i618) { - $elem612 = null; - $elem612 = new \metastore\LockComponent(); - $xfer += $elem612->read($input); - $this->component []= $elem612; + $elem619 = null; + $elem619 = new \metastore\LockComponent(); + $xfer += $elem619->read($input); + $this->component []= $elem619; } $xfer += $input->readListEnd(); } else { @@ -19909,9 +20015,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter613) + foreach ($this->component as $iter620) { - $xfer += $iter613->write($output); + $xfer += $iter620->write($output); } } $output->writeListEnd(); @@ -20854,15 +20960,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size614 = 0; - $_etype617 = 0; - $xfer += $input->readListBegin($_etype617, $_size614); - for ($_i618 = 0; $_i618 < $_size614; ++$_i618) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem619 = null; - $elem619 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem619->read($input); - $this->locks []= $elem619; + $elem626 = null; + $elem626 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem626->read($input); + $this->locks []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -20890,9 +20996,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter620) + foreach ($this->locks as $iter627) { - $xfer += $iter620->write($output); + $xfer += $iter627->write($output); } } $output->writeListEnd(); @@ -21167,17 +21273,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size621 = 0; - $_etype624 = 0; - $xfer += $input->readSetBegin($_etype624, $_size621); - for ($_i625 = 0; $_i625 < $_size621; ++$_i625) + $_size628 = 0; + $_etype631 = 0; + $xfer += $input->readSetBegin($_etype631, $_size628); + for ($_i632 = 0; $_i632 < $_size628; ++$_i632) { - $elem626 = null; - $xfer += $input->readI64($elem626); - if (is_scalar($elem626)) { - $this->aborted[$elem626] = true; + $elem633 = null; + $xfer += $input->readI64($elem633); + if (is_scalar($elem633)) { + $this->aborted[$elem633] = true; } else { - $this->aborted []= $elem626; + $this->aborted []= $elem633; } } $xfer += $input->readSetEnd(); @@ -21188,17 +21294,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size627 = 0; - $_etype630 = 0; - $xfer += $input->readSetBegin($_etype630, $_size627); - for ($_i631 = 0; $_i631 < $_size627; ++$_i631) + $_size634 = 0; + $_etype637 = 0; + $xfer += $input->readSetBegin($_etype637, $_size634); + for ($_i638 = 0; $_i638 < $_size634; ++$_i638) { - $elem632 = null; - $xfer += $input->readI64($elem632); - if (is_scalar($elem632)) { - $this->nosuch[$elem632] = true; + $elem639 = null; + $xfer += $input->readI64($elem639); + if (is_scalar($elem639)) { + $this->nosuch[$elem639] = true; } else { - $this->nosuch []= $elem632; + $this->nosuch []= $elem639; } } $xfer += $input->readSetEnd(); @@ -21227,12 +21333,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter633 => $iter634) + foreach ($this->aborted as $iter640 => $iter641) { - if (is_scalar($iter634)) { - $xfer += $output->writeI64($iter633); + if (is_scalar($iter641)) { + $xfer += $output->writeI64($iter640); } else { - $xfer += $output->writeI64($iter634); + $xfer += $output->writeI64($iter641); } } } @@ -21248,12 +21354,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter635 => $iter636) + foreach ($this->nosuch as $iter642 => $iter643) { - if (is_scalar($iter636)) { - $xfer += $output->writeI64($iter635); + if (is_scalar($iter643)) { + $xfer += $output->writeI64($iter642); } else { - $xfer += $output->writeI64($iter636); + $xfer += $output->writeI64($iter643); } } } @@ -21412,17 +21518,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size637 = 0; - $_ktype638 = 0; - $_vtype639 = 0; - $xfer += $input->readMapBegin($_ktype638, $_vtype639, $_size637); - for ($_i641 = 0; $_i641 < $_size637; ++$_i641) + $_size644 = 0; + $_ktype645 = 0; + $_vtype646 = 0; + $xfer += $input->readMapBegin($_ktype645, $_vtype646, $_size644); + for ($_i648 = 0; $_i648 < $_size644; ++$_i648) { - $key642 = ''; - $val643 = ''; - $xfer += $input->readString($key642); - $xfer += $input->readString($val643); - $this->properties[$key642] = $val643; + $key649 = ''; + $val650 = ''; + $xfer += $input->readString($key649); + $xfer += $input->readString($val650); + $this->properties[$key649] = $val650; } $xfer += $input->readMapEnd(); } else { @@ -21475,10 +21581,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter644 => $viter645) + foreach ($this->properties as $kiter651 => $viter652) { - $xfer += $output->writeString($kiter644); - $xfer += $output->writeString($viter645); + $xfer += $output->writeString($kiter651); + $xfer += $output->writeString($viter652); } } $output->writeMapEnd(); @@ -22473,15 +22579,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) { - $elem651 = null; - $elem651 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem651->read($input); - $this->compacts []= $elem651; + $elem658 = null; + $elem658 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem658->read($input); + $this->compacts []= $elem658; } $xfer += $input->readListEnd(); } else { @@ -22509,9 +22615,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter652) + foreach ($this->compacts as $iter659) { - $xfer += $iter652->write($output); + $xfer += $iter659->write($output); } } $output->writeListEnd(); @@ -22658,14 +22764,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size660 = 0; + $_etype663 = 0; + $xfer += $input->readListBegin($_etype663, $_size660); + for ($_i664 = 0; $_i664 < $_size660; ++$_i664) { - $elem658 = null; - $xfer += $input->readString($elem658); - $this->partitionnames []= $elem658; + $elem665 = null; + $xfer += $input->readString($elem665); + $this->partitionnames []= $elem665; } $xfer += $input->readListEnd(); } else { @@ -22720,9 +22826,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter659) + foreach ($this->partitionnames as $iter666) { - $xfer += $output->writeString($iter659); + $xfer += $output->writeString($iter666); } } $output->writeListEnd(); @@ -23057,17 +23163,17 @@ class CreationMetadata { case 4: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readSetBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size667 = 0; + $_etype670 = 0; + $xfer += $input->readSetBegin($_etype670, $_size667); + for ($_i671 = 0; $_i671 < $_size667; ++$_i671) { - $elem665 = null; - $xfer += $input->readString($elem665); - if (is_scalar($elem665)) { - $this->tablesUsed[$elem665] = true; + $elem672 = null; + $xfer += $input->readString($elem672); + if (is_scalar($elem672)) { + $this->tablesUsed[$elem672] = true; } else { - $this->tablesUsed []= $elem665; + $this->tablesUsed []= $elem672; } } $xfer += $input->readSetEnd(); @@ -23125,12 +23231,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter666 => $iter667) + foreach ($this->tablesUsed as $iter673 => $iter674) { - if (is_scalar($iter667)) { - $xfer += $output->writeString($iter666); + if (is_scalar($iter674)) { + $xfer += $output->writeString($iter673); } else { - $xfer += $output->writeString($iter667); + $xfer += $output->writeString($iter674); } } } @@ -23241,14 +23347,14 @@ class NotificationEventRequest { case 3: if ($ftype == TType::LST) { $this->eventTypeSkipList = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $elem673 = null; - $xfer += $input->readString($elem673); - $this->eventTypeSkipList []= $elem673; + $elem680 = null; + $xfer += $input->readString($elem680); + $this->eventTypeSkipList []= $elem680; } $xfer += $input->readListEnd(); } else { @@ -23286,9 +23392,9 @@ class NotificationEventRequest { { $output->writeListBegin(TType::STRING, count($this->eventTypeSkipList)); { - foreach ($this->eventTypeSkipList as $iter674) + foreach ($this->eventTypeSkipList as $iter681) { - $xfer += $output->writeString($iter674); + $xfer += $output->writeString($iter681); } } $output->writeListEnd(); @@ -23589,15 +23695,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem680 = null; - $elem680 = new \metastore\NotificationEvent(); - $xfer += $elem680->read($input); - $this->events []= $elem680; + $elem687 = null; + $elem687 = new \metastore\NotificationEvent(); + $xfer += $elem687->read($input); + $this->events []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -23625,9 +23731,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter681) + foreach ($this->events as $iter688) { - $xfer += $iter681->write($output); + $xfer += $iter688->write($output); } } $output->writeListEnd(); @@ -24056,14 +24162,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size689 = 0; + $_etype692 = 0; + $xfer += $input->readListBegin($_etype692, $_size689); + for ($_i693 = 0; $_i693 < $_size689; ++$_i693) { - $elem687 = null; - $xfer += $input->readString($elem687); - $this->filesAdded []= $elem687; + $elem694 = null; + $xfer += $input->readString($elem694); + $this->filesAdded []= $elem694; } $xfer += $input->readListEnd(); } else { @@ -24073,14 +24179,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size688 = 0; - $_etype691 = 0; - $xfer += $input->readListBegin($_etype691, $_size688); - for ($_i692 = 0; $_i692 < $_size688; ++$_i692) + $_size695 = 0; + $_etype698 = 0; + $xfer += $input->readListBegin($_etype698, $_size695); + for ($_i699 = 0; $_i699 < $_size695; ++$_i699) { - $elem693 = null; - $xfer += $input->readString($elem693); - $this->filesAddedChecksum []= $elem693; + $elem700 = null; + $xfer += $input->readString($elem700); + $this->filesAddedChecksum []= $elem700; } $xfer += $input->readListEnd(); } else { @@ -24090,14 +24196,14 @@ class InsertEventRequestData { case 4: if ($ftype == TType::LST) { $this->subDirectoryList = array(); - $_size694 = 0; - $_etype697 = 0; - $xfer += $input->readListBegin($_etype697, $_size694); - for ($_i698 = 0; $_i698 < $_size694; ++$_i698) + $_size701 = 0; + $_etype704 = 0; + $xfer += $input->readListBegin($_etype704, $_size701); + for ($_i705 = 0; $_i705 < $_size701; ++$_i705) { - $elem699 = null; - $xfer += $input->readString($elem699); - $this->subDirectoryList []= $elem699; + $elem706 = null; + $xfer += $input->readString($elem706); + $this->subDirectoryList []= $elem706; } $xfer += $input->readListEnd(); } else { @@ -24130,9 +24236,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter700) + foreach ($this->filesAdded as $iter707) { - $xfer += $output->writeString($iter700); + $xfer += $output->writeString($iter707); } } $output->writeListEnd(); @@ -24147,9 +24253,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter701) + foreach ($this->filesAddedChecksum as $iter708) { - $xfer += $output->writeString($iter701); + $xfer += $output->writeString($iter708); } } $output->writeListEnd(); @@ -24164,9 +24270,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->subDirectoryList as $iter702) + foreach ($this->subDirectoryList as $iter709) { - $xfer += $output->writeString($iter702); + $xfer += $output->writeString($iter709); } } $output->writeListEnd(); @@ -24395,14 +24501,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size703 = 0; - $_etype706 = 0; - $xfer += $input->readListBegin($_etype706, $_size703); - for ($_i707 = 0; $_i707 < $_size703; ++$_i707) + $_size710 = 0; + $_etype713 = 0; + $xfer += $input->readListBegin($_etype713, $_size710); + for ($_i714 = 0; $_i714 < $_size710; ++$_i714) { - $elem708 = null; - $xfer += $input->readString($elem708); - $this->partitionVals []= $elem708; + $elem715 = null; + $xfer += $input->readString($elem715); + $this->partitionVals []= $elem715; } $xfer += $input->readListEnd(); } else { @@ -24460,9 +24566,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter709) + foreach ($this->partitionVals as $iter716) { - $xfer += $output->writeString($iter709); + $xfer += $output->writeString($iter716); } } $output->writeListEnd(); @@ -24673,14 +24779,14 @@ class WriteNotificationLogRequest { case 6: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size710 = 0; - $_etype713 = 0; - $xfer += $input->readListBegin($_etype713, $_size710); - for ($_i714 = 0; $_i714 < $_size710; ++$_i714) + $_size717 = 0; + $_etype720 = 0; + $xfer += $input->readListBegin($_etype720, $_size717); + for ($_i721 = 0; $_i721 < $_size717; ++$_i721) { - $elem715 = null; - $xfer += $input->readString($elem715); - $this->partitionVals []= $elem715; + $elem722 = null; + $xfer += $input->readString($elem722); + $this->partitionVals []= $elem722; } $xfer += $input->readListEnd(); } else { @@ -24736,9 +24842,9 @@ class WriteNotificationLogRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter716) + foreach ($this->partitionVals as $iter723) { - $xfer += $output->writeString($iter716); + $xfer += $output->writeString($iter723); } } $output->writeListEnd(); @@ -24966,18 +25072,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size717 = 0; - $_ktype718 = 0; - $_vtype719 = 0; - $xfer += $input->readMapBegin($_ktype718, $_vtype719, $_size717); - for ($_i721 = 0; $_i721 < $_size717; ++$_i721) + $_size724 = 0; + $_ktype725 = 0; + $_vtype726 = 0; + $xfer += $input->readMapBegin($_ktype725, $_vtype726, $_size724); + for ($_i728 = 0; $_i728 < $_size724; ++$_i728) { - $key722 = 0; - $val723 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key722); - $val723 = new \metastore\MetadataPpdResult(); - $xfer += $val723->read($input); - $this->metadata[$key722] = $val723; + $key729 = 0; + $val730 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key729); + $val730 = new \metastore\MetadataPpdResult(); + $xfer += $val730->read($input); + $this->metadata[$key729] = $val730; } $xfer += $input->readMapEnd(); } else { @@ -25012,10 +25118,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter724 => $viter725) + foreach ($this->metadata as $kiter731 => $viter732) { - $xfer += $output->writeI64($kiter724); - $xfer += $viter725->write($output); + $xfer += $output->writeI64($kiter731); + $xfer += $viter732->write($output); } } $output->writeMapEnd(); @@ -25117,14 +25223,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size726 = 0; - $_etype729 = 0; - $xfer += $input->readListBegin($_etype729, $_size726); - for ($_i730 = 0; $_i730 < $_size726; ++$_i730) + $_size733 = 0; + $_etype736 = 0; + $xfer += $input->readListBegin($_etype736, $_size733); + for ($_i737 = 0; $_i737 < $_size733; ++$_i737) { - $elem731 = null; - $xfer += $input->readI64($elem731); - $this->fileIds []= $elem731; + $elem738 = null; + $xfer += $input->readI64($elem738); + $this->fileIds []= $elem738; } $xfer += $input->readListEnd(); } else { @@ -25173,9 +25279,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter732) + foreach ($this->fileIds as $iter739) { - $xfer += $output->writeI64($iter732); + $xfer += $output->writeI64($iter739); } } $output->writeListEnd(); @@ -25269,17 +25375,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size733 = 0; - $_ktype734 = 0; - $_vtype735 = 0; - $xfer += $input->readMapBegin($_ktype734, $_vtype735, $_size733); - for ($_i737 = 0; $_i737 < $_size733; ++$_i737) + $_size740 = 0; + $_ktype741 = 0; + $_vtype742 = 0; + $xfer += $input->readMapBegin($_ktype741, $_vtype742, $_size740); + for ($_i744 = 0; $_i744 < $_size740; ++$_i744) { - $key738 = 0; - $val739 = ''; - $xfer += $input->readI64($key738); - $xfer += $input->readString($val739); - $this->metadata[$key738] = $val739; + $key745 = 0; + $val746 = ''; + $xfer += $input->readI64($key745); + $xfer += $input->readString($val746); + $this->metadata[$key745] = $val746; } $xfer += $input->readMapEnd(); } else { @@ -25314,10 +25420,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter740 => $viter741) + foreach ($this->metadata as $kiter747 => $viter748) { - $xfer += $output->writeI64($kiter740); - $xfer += $output->writeString($viter741); + $xfer += $output->writeI64($kiter747); + $xfer += $output->writeString($viter748); } } $output->writeMapEnd(); @@ -25368,183 +25474,6 @@ class GetFileMetadataRequest { return 'GetFileMetadataRequest'; } - 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->fileIds = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readListBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) - { - $elem747 = null; - $xfer += $input->readI64($elem747); - $this->fileIds []= $elem747; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('GetFileMetadataRequest'); - if ($this->fileIds !== null) { - if (!is_array($this->fileIds)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('fileIds', TType::LST, 1); - { - $output->writeListBegin(TType::I64, count($this->fileIds)); - { - foreach ($this->fileIds as $iter748) - { - $xfer += $output->writeI64($iter748); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class PutFileMetadataResult { - static $_TSPEC; - - - public function __construct() { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - ); - } - } - - public function getName() { - return 'PutFileMetadataResult'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('PutFileMetadataResult'); - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class PutFileMetadataRequest { - static $_TSPEC; - - /** - * @var int[] - */ - public $fileIds = null; - /** - * @var string[] - */ - public $metadata = null; - /** - * @var int - */ - public $type = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'fileIds', - 'type' => TType::LST, - 'etype' => TType::I64, - 'elem' => array( - 'type' => TType::I64, - ), - ), - 2 => array( - 'var' => 'metadata', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 3 => array( - 'var' => 'type', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['fileIds'])) { - $this->fileIds = $vals['fileIds']; - } - if (isset($vals['metadata'])) { - $this->metadata = $vals['metadata']; - } - if (isset($vals['type'])) { - $this->type = $vals['type']; - } - } - } - - public function getName() { - return 'PutFileMetadataRequest'; - } - public function read($input) { $xfer = 0; @@ -25577,30 +25506,6 @@ class PutFileMetadataRequest { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::LST) { - $this->metadata = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) - { - $elem760 = null; - $xfer += $input->readString($elem760); - $this->metadata []= $elem760; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->type); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -25613,7 +25518,7 @@ class PutFileMetadataRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PutFileMetadataRequest'); + $xfer += $output->writeStructBegin('GetFileMetadataRequest'); if ($this->fileIds !== null) { if (!is_array($this->fileIds)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -25622,37 +25527,15 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter761) - { - $xfer += $output->writeI64($iter761); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->metadata !== null) { - if (!is_array($this->metadata)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('metadata', TType::LST, 2); - { - $output->writeListBegin(TType::STRING, count($this->metadata)); - { - foreach ($this->metadata as $iter762) + foreach ($this->fileIds as $iter755) { - $xfer += $output->writeString($iter762); + $xfer += $output->writeI64($iter755); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->type !== null) { - $xfer += $output->writeFieldBegin('type', TType::I32, 3); - $xfer += $output->writeI32($this->type); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -25660,7 +25543,7 @@ class PutFileMetadataRequest { } -class ClearFileMetadataResult { +class PutFileMetadataResult { static $_TSPEC; @@ -25672,7 +25555,230 @@ class ClearFileMetadataResult { } public function getName() { - return 'ClearFileMetadataResult'; + return 'PutFileMetadataResult'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('PutFileMetadataResult'); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class PutFileMetadataRequest { + static $_TSPEC; + + /** + * @var int[] + */ + public $fileIds = null; + /** + * @var string[] + */ + public $metadata = null; + /** + * @var int + */ + public $type = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'fileIds', + 'type' => TType::LST, + 'etype' => TType::I64, + 'elem' => array( + 'type' => TType::I64, + ), + ), + 2 => array( + 'var' => 'metadata', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 3 => array( + 'var' => 'type', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['fileIds'])) { + $this->fileIds = $vals['fileIds']; + } + if (isset($vals['metadata'])) { + $this->metadata = $vals['metadata']; + } + if (isset($vals['type'])) { + $this->type = $vals['type']; + } + } + } + + public function getName() { + return 'PutFileMetadataRequest'; + } + + 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->fileIds = array(); + $_size756 = 0; + $_etype759 = 0; + $xfer += $input->readListBegin($_etype759, $_size756); + for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + { + $elem761 = null; + $xfer += $input->readI64($elem761); + $this->fileIds []= $elem761; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::LST) { + $this->metadata = array(); + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + { + $elem767 = null; + $xfer += $input->readString($elem767); + $this->metadata []= $elem767; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->type); + } 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('PutFileMetadataRequest'); + if ($this->fileIds !== null) { + if (!is_array($this->fileIds)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('fileIds', TType::LST, 1); + { + $output->writeListBegin(TType::I64, count($this->fileIds)); + { + foreach ($this->fileIds as $iter768) + { + $xfer += $output->writeI64($iter768); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->metadata !== null) { + if (!is_array($this->metadata)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('metadata', TType::LST, 2); + { + $output->writeListBegin(TType::STRING, count($this->metadata)); + { + foreach ($this->metadata as $iter769) + { + $xfer += $output->writeString($iter769); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->type !== null) { + $xfer += $output->writeFieldBegin('type', TType::I32, 3); + $xfer += $output->writeI32($this->type); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ClearFileMetadataResult { + static $_TSPEC; + + + public function __construct() { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + ); + } + } + + public function getName() { + return 'ClearFileMetadataResult'; } public function read($input) @@ -25760,14 +25866,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size763 = 0; - $_etype766 = 0; - $xfer += $input->readListBegin($_etype766, $_size763); - for ($_i767 = 0; $_i767 < $_size763; ++$_i767) + $_size770 = 0; + $_etype773 = 0; + $xfer += $input->readListBegin($_etype773, $_size770); + for ($_i774 = 0; $_i774 < $_size770; ++$_i774) { - $elem768 = null; - $xfer += $input->readI64($elem768); - $this->fileIds []= $elem768; + $elem775 = null; + $xfer += $input->readI64($elem775); + $this->fileIds []= $elem775; } $xfer += $input->readListEnd(); } else { @@ -25795,9 +25901,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter769) + foreach ($this->fileIds as $iter776) { - $xfer += $output->writeI64($iter769); + $xfer += $output->writeI64($iter776); } } $output->writeListEnd(); @@ -26081,15 +26187,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size777 = 0; + $_etype780 = 0; + $xfer += $input->readListBegin($_etype780, $_size777); + for ($_i781 = 0; $_i781 < $_size777; ++$_i781) { - $elem775 = null; - $elem775 = new \metastore\Function(); - $xfer += $elem775->read($input); - $this->functions []= $elem775; + $elem782 = null; + $elem782 = new \metastore\Function(); + $xfer += $elem782->read($input); + $this->functions []= $elem782; } $xfer += $input->readListEnd(); } else { @@ -26117,9 +26223,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter776) + foreach ($this->functions as $iter783) { - $xfer += $iter776->write($output); + $xfer += $iter783->write($output); } } $output->writeListEnd(); @@ -26183,14 +26289,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size777 = 0; - $_etype780 = 0; - $xfer += $input->readListBegin($_etype780, $_size777); - for ($_i781 = 0; $_i781 < $_size777; ++$_i781) + $_size784 = 0; + $_etype787 = 0; + $xfer += $input->readListBegin($_etype787, $_size784); + for ($_i788 = 0; $_i788 < $_size784; ++$_i788) { - $elem782 = null; - $xfer += $input->readI32($elem782); - $this->values []= $elem782; + $elem789 = null; + $xfer += $input->readI32($elem789); + $this->values []= $elem789; } $xfer += $input->readListEnd(); } else { @@ -26218,9 +26324,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter783) + foreach ($this->values as $iter790) { - $xfer += $output->writeI32($iter783); + $xfer += $output->writeI32($iter790); } } $output->writeListEnd(); @@ -26261,6 +26367,14 @@ class GetTableRequest { * @var bool */ public $getColumnStats = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -26290,6 +26404,18 @@ class GetTableRequest { 'var' => 'getColumnStats', 'type' => TType::BOOL, ), + 8 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 9 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -26311,6 +26437,12 @@ class GetTableRequest { if (isset($vals['getColumnStats'])) { $this->getColumnStats = $vals['getColumnStats']; } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } } } @@ -26376,6 +26508,30 @@ class GetTableRequest { $xfer += $input->skip($ftype); } break; + case 8: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size791 = 0; + $_etype794 = 0; + $xfer += $input->readListBegin($_etype794, $_size791); + for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + { + $elem796 = null; + $xfer += $input->readString($elem796); + $this->processorCapabilities []= $elem796; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -26422,6 +26578,28 @@ class GetTableRequest { $xfer += $output->writeBool($this->getColumnStats); $xfer += $output->writeFieldEnd(); } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 8); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter797) + { + $xfer += $output->writeString($iter797); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 9); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -26551,6 +26729,14 @@ class GetTablesRequest { * @var string */ public $catName = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -26576,6 +26762,18 @@ class GetTablesRequest { 'var' => 'catName', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 6 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -26591,6 +26789,12 @@ class GetTablesRequest { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } } } @@ -26623,14 +26827,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size784 = 0; - $_etype787 = 0; - $xfer += $input->readListBegin($_etype787, $_size784); - for ($_i788 = 0; $_i788 < $_size784; ++$_i788) + $_size798 = 0; + $_etype801 = 0; + $xfer += $input->readListBegin($_etype801, $_size798); + for ($_i802 = 0; $_i802 < $_size798; ++$_i802) { - $elem789 = null; - $xfer += $input->readString($elem789); - $this->tblNames []= $elem789; + $elem803 = null; + $xfer += $input->readString($elem803); + $this->tblNames []= $elem803; } $xfer += $input->readListEnd(); } else { @@ -26652,6 +26856,30 @@ class GetTablesRequest { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + { + $elem809 = null; + $xfer += $input->readString($elem809); + $this->processorCapabilities []= $elem809; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -26678,9 +26906,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter790) + foreach ($this->tblNames as $iter810) { - $xfer += $output->writeString($iter790); + $xfer += $output->writeString($iter810); } } $output->writeListEnd(); @@ -26700,6 +26928,28 @@ class GetTablesRequest { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter811) + { + $xfer += $output->writeString($iter811); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 6); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -26758,15 +27008,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size791 = 0; - $_etype794 = 0; - $xfer += $input->readListBegin($_etype794, $_size791); - for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem796 = null; - $elem796 = new \metastore\Table(); - $xfer += $elem796->read($input); - $this->tables []= $elem796; + $elem817 = null; + $elem817 = new \metastore\Table(); + $xfer += $elem817->read($input); + $this->tables []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -26794,9 +27044,395 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter797) + foreach ($this->tables as $iter818) + { + $xfer += $iter818->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetTablesExtRequest { + static $_TSPEC; + + /** + * @var string + */ + public $catalog = null; + /** + * @var string + */ + public $database = null; + /** + * @var string + */ + public $tableNamePattern = null; + /** + * @var int + */ + public $requestedFields = null; + /** + * @var int + */ + public $limit = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'catalog', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'database', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'tableNamePattern', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'requestedFields', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 7 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['catalog'])) { + $this->catalog = $vals['catalog']; + } + if (isset($vals['database'])) { + $this->database = $vals['database']; + } + if (isset($vals['tableNamePattern'])) { + $this->tableNamePattern = $vals['tableNamePattern']; + } + if (isset($vals['requestedFields'])) { + $this->requestedFields = $vals['requestedFields']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } + } + } + + public function getName() { + return 'GetTablesExtRequest'; + } + + 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->catalog); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->database); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableNamePattern); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->requestedFields); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size819 = 0; + $_etype822 = 0; + $xfer += $input->readListBegin($_etype822, $_size819); + for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + { + $elem824 = null; + $xfer += $input->readString($elem824); + $this->processorCapabilities []= $elem824; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } 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('GetTablesExtRequest'); + if ($this->catalog !== null) { + $xfer += $output->writeFieldBegin('catalog', TType::STRING, 1); + $xfer += $output->writeString($this->catalog); + $xfer += $output->writeFieldEnd(); + } + if ($this->database !== null) { + $xfer += $output->writeFieldBegin('database', TType::STRING, 2); + $xfer += $output->writeString($this->database); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableNamePattern !== null) { + $xfer += $output->writeFieldBegin('tableNamePattern', TType::STRING, 3); + $xfer += $output->writeString($this->tableNamePattern); + $xfer += $output->writeFieldEnd(); + } + if ($this->requestedFields !== null) { + $xfer += $output->writeFieldBegin('requestedFields', TType::I32, 4); + $xfer += $output->writeI32($this->requestedFields); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 6); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter825) + { + $xfer += $output->writeString($iter825); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 7); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ExtendedTableInfo { + static $_TSPEC; + + /** + * @var string + */ + public $tblName = null; + /** + * @var int + */ + public $accessType = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'accessType', + 'type' => TType::I32, + ), + 3 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['accessType'])) { + $this->accessType = $vals['accessType']; + } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + } + } + + public function getName() { + return 'ExtendedTableInfo'; + } + + 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->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->accessType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size826 = 0; + $_etype829 = 0; + $xfer += $input->readListBegin($_etype829, $_size826); + for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + { + $elem831 = null; + $xfer += $input->readString($elem831); + $this->processorCapabilities []= $elem831; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ExtendedTableInfo'); + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 1); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->accessType !== null) { + $xfer += $output->writeFieldBegin('accessType', TType::I32, 2); + $xfer += $output->writeI32($this->accessType); + $xfer += $output->writeFieldEnd(); + } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter832) { - $xfer += $iter797->write($output); + $xfer += $output->writeString($iter832); } } $output->writeListEnd(); @@ -28603,15 +29239,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem803 = null; - $elem803 = new \metastore\WMPool(); - $xfer += $elem803->read($input); - $this->pools []= $elem803; + $elem838 = null; + $elem838 = new \metastore\WMPool(); + $xfer += $elem838->read($input); + $this->pools []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -28621,15 +29257,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size839 = 0; + $_etype842 = 0; + $xfer += $input->readListBegin($_etype842, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $elem809 = null; - $elem809 = new \metastore\WMMapping(); - $xfer += $elem809->read($input); - $this->mappings []= $elem809; + $elem844 = null; + $elem844 = new \metastore\WMMapping(); + $xfer += $elem844->read($input); + $this->mappings []= $elem844; } $xfer += $input->readListEnd(); } else { @@ -28639,15 +29275,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size810 = 0; - $_etype813 = 0; - $xfer += $input->readListBegin($_etype813, $_size810); - for ($_i814 = 0; $_i814 < $_size810; ++$_i814) + $_size845 = 0; + $_etype848 = 0; + $xfer += $input->readListBegin($_etype848, $_size845); + for ($_i849 = 0; $_i849 < $_size845; ++$_i849) { - $elem815 = null; - $elem815 = new \metastore\WMTrigger(); - $xfer += $elem815->read($input); - $this->triggers []= $elem815; + $elem850 = null; + $elem850 = new \metastore\WMTrigger(); + $xfer += $elem850->read($input); + $this->triggers []= $elem850; } $xfer += $input->readListEnd(); } else { @@ -28657,15 +29293,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size816 = 0; - $_etype819 = 0; - $xfer += $input->readListBegin($_etype819, $_size816); - for ($_i820 = 0; $_i820 < $_size816; ++$_i820) + $_size851 = 0; + $_etype854 = 0; + $xfer += $input->readListBegin($_etype854, $_size851); + for ($_i855 = 0; $_i855 < $_size851; ++$_i855) { - $elem821 = null; - $elem821 = new \metastore\WMPoolTrigger(); - $xfer += $elem821->read($input); - $this->poolTriggers []= $elem821; + $elem856 = null; + $elem856 = new \metastore\WMPoolTrigger(); + $xfer += $elem856->read($input); + $this->poolTriggers []= $elem856; } $xfer += $input->readListEnd(); } else { @@ -28701,9 +29337,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter822) + foreach ($this->pools as $iter857) { - $xfer += $iter822->write($output); + $xfer += $iter857->write($output); } } $output->writeListEnd(); @@ -28718,9 +29354,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter823) + foreach ($this->mappings as $iter858) { - $xfer += $iter823->write($output); + $xfer += $iter858->write($output); } } $output->writeListEnd(); @@ -28735,9 +29371,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter824) + foreach ($this->triggers as $iter859) { - $xfer += $iter824->write($output); + $xfer += $iter859->write($output); } } $output->writeListEnd(); @@ -28752,9 +29388,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter825) + foreach ($this->poolTriggers as $iter860) { - $xfer += $iter825->write($output); + $xfer += $iter860->write($output); } } $output->writeListEnd(); @@ -29380,15 +30016,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem831 = null; - $elem831 = new \metastore\WMResourcePlan(); - $xfer += $elem831->read($input); - $this->resourcePlans []= $elem831; + $elem866 = null; + $elem866 = new \metastore\WMResourcePlan(); + $xfer += $elem866->read($input); + $this->resourcePlans []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -29416,9 +30052,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter832) + foreach ($this->resourcePlans as $iter867) { - $xfer += $iter832->write($output); + $xfer += $iter867->write($output); } } $output->writeListEnd(); @@ -29870,14 +30506,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size868 = 0; + $_etype871 = 0; + $xfer += $input->readListBegin($_etype871, $_size868); + for ($_i872 = 0; $_i872 < $_size868; ++$_i872) { - $elem838 = null; - $xfer += $input->readString($elem838); - $this->errors []= $elem838; + $elem873 = null; + $xfer += $input->readString($elem873); + $this->errors []= $elem873; } $xfer += $input->readListEnd(); } else { @@ -29887,14 +30523,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size839 = 0; - $_etype842 = 0; - $xfer += $input->readListBegin($_etype842, $_size839); - for ($_i843 = 0; $_i843 < $_size839; ++$_i843) + $_size874 = 0; + $_etype877 = 0; + $xfer += $input->readListBegin($_etype877, $_size874); + for ($_i878 = 0; $_i878 < $_size874; ++$_i878) { - $elem844 = null; - $xfer += $input->readString($elem844); - $this->warnings []= $elem844; + $elem879 = null; + $xfer += $input->readString($elem879); + $this->warnings []= $elem879; } $xfer += $input->readListEnd(); } else { @@ -29922,9 +30558,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter845) + foreach ($this->errors as $iter880) { - $xfer += $output->writeString($iter845); + $xfer += $output->writeString($iter880); } } $output->writeListEnd(); @@ -29939,9 +30575,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter846) + foreach ($this->warnings as $iter881) { - $xfer += $output->writeString($iter846); + $xfer += $output->writeString($iter881); } } $output->writeListEnd(); @@ -30683,15 +31319,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size882 = 0; + $_etype885 = 0; + $xfer += $input->readListBegin($_etype885, $_size882); + for ($_i886 = 0; $_i886 < $_size882; ++$_i886) { - $elem852 = null; - $elem852 = new \metastore\WMTrigger(); - $xfer += $elem852->read($input); - $this->triggers []= $elem852; + $elem887 = null; + $elem887 = new \metastore\WMTrigger(); + $xfer += $elem887->read($input); + $this->triggers []= $elem887; } $xfer += $input->readListEnd(); } else { @@ -30719,9 +31355,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter853) + foreach ($this->triggers as $iter888) { - $xfer += $iter853->write($output); + $xfer += $iter888->write($output); } } $output->writeListEnd(); @@ -32351,15 +32987,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem859 = null; - $elem859 = new \metastore\FieldSchema(); - $xfer += $elem859->read($input); - $this->cols []= $elem859; + $elem894 = null; + $elem894 = new \metastore\FieldSchema(); + $xfer += $elem894->read($input); + $this->cols []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -32448,9 +33084,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter860) + foreach ($this->cols as $iter895) { - $xfer += $iter860->write($output); + $xfer += $iter895->write($output); } } $output->writeListEnd(); @@ -32772,15 +33408,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem866 = null; - $elem866 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem866->read($input); - $this->schemaVersions []= $elem866; + $elem901 = null; + $elem901 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem901->read($input); + $this->schemaVersions []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -32808,9 +33444,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter867) + foreach ($this->schemaVersions as $iter902) { - $xfer += $iter867->write($output); + $xfer += $iter902->write($output); } } $output->writeListEnd(); @@ -33463,15 +34099,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem873 = null; - $elem873 = new \metastore\Partition(); - $xfer += $elem873->read($input); - $this->partitions []= $elem873; + $elem908 = null; + $elem908 = new \metastore\Partition(); + $xfer += $elem908->read($input); + $this->partitions []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -33536,9 +34172,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter874) + foreach ($this->partitions as $iter909) { - $xfer += $iter874->write($output); + $xfer += $iter909->write($output); } } $output->writeListEnd(); @@ -33747,14 +34383,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size875 = 0; - $_etype878 = 0; - $xfer += $input->readListBegin($_etype878, $_size875); - for ($_i879 = 0; $_i879 < $_size875; ++$_i879) + $_size910 = 0; + $_etype913 = 0; + $xfer += $input->readListBegin($_etype913, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $elem880 = null; - $xfer += $input->readString($elem880); - $this->partVals []= $elem880; + $elem915 = null; + $xfer += $input->readString($elem915); + $this->partVals []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -33812,9 +34448,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter881) + foreach ($this->partVals as $iter916) { - $xfer += $output->writeString($iter881); + $xfer += $output->writeString($iter916); } } $output->writeListEnd(); @@ -34236,14 +34872,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->fieldList []= $elem887; + $elem922 = null; + $xfer += $input->readString($elem922); + $this->fieldList []= $elem922; } $xfer += $input->readListEnd(); } else { @@ -34285,9 +34921,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter888) + foreach ($this->fieldList as $iter923) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter923); } } $output->writeListEnd(); @@ -34379,14 +35015,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->filters []= $elem894; + $elem929 = null; + $xfer += $input->readString($elem929); + $this->filters []= $elem929; } $xfer += $input->readListEnd(); } else { @@ -34419,9 +35055,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter895) + foreach ($this->filters as $iter930) { - $xfer += $output->writeString($iter895); + $xfer += $output->writeString($iter930); } } $output->writeListEnd(); @@ -34486,15 +35122,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size931 = 0; + $_etype934 = 0; + $xfer += $input->readListBegin($_etype934, $_size931); + for ($_i935 = 0; $_i935 < $_size931; ++$_i935) { - $elem901 = null; - $elem901 = new \metastore\PartitionSpec(); - $xfer += $elem901->read($input); - $this->partitionSpec []= $elem901; + $elem936 = null; + $elem936 = new \metastore\PartitionSpec(); + $xfer += $elem936->read($input); + $this->partitionSpec []= $elem936; } $xfer += $input->readListEnd(); } else { @@ -34522,9 +35158,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter902) + foreach ($this->partitionSpec as $iter937) { - $xfer += $iter902->write($output); + $xfer += $iter937->write($output); } } $output->writeListEnd(); @@ -34573,6 +35209,14 @@ class GetPartitionsRequest { * @var \metastore\GetPartitionsFilterSpec */ public $filterSpec = null; + /** + * @var string[] + */ + public $processorCapabilities = null; + /** + * @var string + */ + public $processorIdentifier = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -34615,6 +35259,18 @@ class GetPartitionsRequest { 'type' => TType::STRUCT, 'class' => '\metastore\GetPartitionsFilterSpec', ), + 9 => array( + 'var' => 'processorCapabilities', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 10 => array( + 'var' => 'processorIdentifier', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -34642,6 +35298,12 @@ class GetPartitionsRequest { if (isset($vals['filterSpec'])) { $this->filterSpec = $vals['filterSpec']; } + if (isset($vals['processorCapabilities'])) { + $this->processorCapabilities = $vals['processorCapabilities']; + } + if (isset($vals['processorIdentifier'])) { + $this->processorIdentifier = $vals['processorIdentifier']; + } } } @@ -34702,14 +35364,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size938 = 0; + $_etype941 = 0; + $xfer += $input->readListBegin($_etype941, $_size938); + for ($_i942 = 0; $_i942 < $_size938; ++$_i942) { - $elem908 = null; - $xfer += $input->readString($elem908); - $this->groupNames []= $elem908; + $elem943 = null; + $xfer += $input->readString($elem943); + $this->groupNames []= $elem943; } $xfer += $input->readListEnd(); } else { @@ -34732,6 +35394,30 @@ class GetPartitionsRequest { $xfer += $input->skip($ftype); } break; + case 9: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size944 = 0; + $_etype947 = 0; + $xfer += $input->readListBegin($_etype947, $_size944); + for ($_i948 = 0; $_i948 < $_size944; ++$_i948) + { + $elem949 = null; + $xfer += $input->readString($elem949); + $this->processorCapabilities []= $elem949; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->processorIdentifier); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -34778,9 +35464,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter909) + foreach ($this->groupNames as $iter950) { - $xfer += $output->writeString($iter909); + $xfer += $output->writeString($iter950); } } $output->writeListEnd(); @@ -34803,6 +35489,28 @@ class GetPartitionsRequest { $xfer += $this->filterSpec->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->processorCapabilities !== null) { + if (!is_array($this->processorCapabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('processorCapabilities', TType::LST, 9); + { + $output->writeListBegin(TType::STRING, count($this->processorCapabilities)); + { + foreach ($this->processorCapabilities as $iter951) + { + $xfer += $output->writeString($iter951); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->processorIdentifier !== null) { + $xfer += $output->writeFieldBegin('processorIdentifier', TType::STRING, 10); + $xfer += $output->writeString($this->processorIdentifier); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -35937,6 +36645,10 @@ class NoSuchLockException extends TException { final class Constant extends \Thrift\Type\TConstant { static protected $DDL_TIME; + static protected $ACCESSTYPE_NONE; + static protected $ACCESSTYPE_READONLY; + static protected $ACCESSTYPE_WRITEONLY; + static protected $ACCESSTYPE_READWRITE; static protected $HIVE_FILTER_FIELD_OWNER; static protected $HIVE_FILTER_FIELD_PARAMS; static protected $HIVE_FILTER_FIELD_LAST_ACCESS; @@ -35968,6 +36680,22 @@ final class Constant extends \Thrift\Type\TConstant { return "transient_lastDdlTime"; } + static protected function init_ACCESSTYPE_NONE() { + return 1; + } + + static protected function init_ACCESSTYPE_READONLY() { + return 2; + } + + static protected function init_ACCESSTYPE_WRITEONLY() { + return 4; + } + + static protected function init_ACCESSTYPE_READWRITE() { + return 8; + } + static protected function init_HIVE_FILTER_FIELD_OWNER() { return "hive_filter_field_owner__"; } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 9aeae9fcf7..3ca9f42bfe 100755 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -66,6 +66,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' get_all_tables(string db_name)') print(' Table get_table(string dbname, string tbl_name)') print(' get_table_objects_by_name(string dbname, tbl_names)') + print(' get_tables_ext(GetTablesExtRequest req)') print(' GetTableResult get_table_req(GetTableRequest req)') print(' GetTablesResult get_table_objects_by_name_req(GetTablesRequest req)') print(' Materialization get_materialization_invalidation_info(CreationMetadata creation_metadata, string validTxnList)') @@ -568,6 +569,12 @@ elif cmd == 'get_table_objects_by_name': sys.exit(1) pp.pprint(client.get_table_objects_by_name(args[0],eval(args[1]),)) +elif cmd == 'get_tables_ext': + if len(args) != 1: + print('get_tables_ext requires 1 args') + sys.exit(1) + pp.pprint(client.get_tables_ext(eval(args[0]),)) + elif cmd == 'get_table_req': if len(args) != 1: print('get_table_req requires 1 args') diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index eadf300d75..fc1e5b0544 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -340,6 +340,13 @@ def get_table_objects_by_name(self, dbname, tbl_names): """ pass + def get_tables_ext(self, req): + """ + Parameters: + - req + """ + pass + def get_table_req(self, req): """ Parameters: @@ -3209,6 +3216,39 @@ def recv_get_table_objects_by_name(self): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result") + def get_tables_ext(self, req): + """ + Parameters: + - req + """ + self.send_get_tables_ext(req) + return self.recv_get_tables_ext() + + def send_get_tables_ext(self, req): + self._oprot.writeMessageBegin('get_tables_ext', TMessageType.CALL, self._seqid) + args = get_tables_ext_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_tables_ext(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_tables_ext_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables_ext failed: unknown result") + def get_table_req(self, req): """ Parameters: @@ -9695,6 +9735,7 @@ def __init__(self, handler): self._processMap["get_all_tables"] = Processor.process_get_all_tables self._processMap["get_table"] = Processor.process_get_table self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name + self._processMap["get_tables_ext"] = Processor.process_get_tables_ext self._processMap["get_table_req"] = Processor.process_get_table_req self._processMap["get_table_objects_by_name_req"] = Processor.process_get_table_objects_by_name_req self._processMap["get_materialization_invalidation_info"] = Processor.process_get_materialization_invalidation_info @@ -10945,6 +10986,28 @@ def process_get_table_objects_by_name(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_tables_ext(self, seqid, iprot, oprot): + args = get_tables_ext_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_tables_ext_result() + try: + result.success = self._handler.get_tables_ext(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_tables_ext", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_table_req(self, seqid, iprot, oprot): args = get_table_req_args() args.read(iprot) @@ -17021,10 +17084,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype910, _size907) = iprot.readListBegin() - for _i911 in xrange(_size907): - _elem912 = iprot.readString() - self.success.append(_elem912) + (_etype952, _size949) = iprot.readListBegin() + for _i953 in xrange(_size949): + _elem954 = iprot.readString() + self.success.append(_elem954) iprot.readListEnd() else: iprot.skip(ftype) @@ -17047,8 +17110,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 iter913 in self.success: - oprot.writeString(iter913) + for iter955 in self.success: + oprot.writeString(iter955) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17153,10 +17216,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype917, _size914) = iprot.readListBegin() - for _i918 in xrange(_size914): - _elem919 = iprot.readString() - self.success.append(_elem919) + (_etype959, _size956) = iprot.readListBegin() + for _i960 in xrange(_size956): + _elem961 = iprot.readString() + self.success.append(_elem961) iprot.readListEnd() else: iprot.skip(ftype) @@ -17179,8 +17242,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 iter920 in self.success: - oprot.writeString(iter920) + for iter962 in self.success: + oprot.writeString(iter962) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17950,12 +18013,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype922, _vtype923, _size921 ) = iprot.readMapBegin() - for _i925 in xrange(_size921): - _key926 = iprot.readString() - _val927 = Type() - _val927.read(iprot) - self.success[_key926] = _val927 + (_ktype964, _vtype965, _size963 ) = iprot.readMapBegin() + for _i967 in xrange(_size963): + _key968 = iprot.readString() + _val969 = Type() + _val969.read(iprot) + self.success[_key968] = _val969 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17978,9 +18041,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 kiter928,viter929 in self.success.items(): - oprot.writeString(kiter928) - viter929.write(oprot) + for kiter970,viter971 in self.success.items(): + oprot.writeString(kiter970) + viter971.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -18123,11 +18186,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype933, _size930) = iprot.readListBegin() - for _i934 in xrange(_size930): - _elem935 = FieldSchema() - _elem935.read(iprot) - self.success.append(_elem935) + (_etype975, _size972) = iprot.readListBegin() + for _i976 in xrange(_size972): + _elem977 = FieldSchema() + _elem977.read(iprot) + self.success.append(_elem977) iprot.readListEnd() else: iprot.skip(ftype) @@ -18162,8 +18225,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 iter936 in self.success: - iter936.write(oprot) + for iter978 in self.success: + iter978.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18330,11 +18393,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype940, _size937) = iprot.readListBegin() - for _i941 in xrange(_size937): - _elem942 = FieldSchema() - _elem942.read(iprot) - self.success.append(_elem942) + (_etype982, _size979) = iprot.readListBegin() + for _i983 in xrange(_size979): + _elem984 = FieldSchema() + _elem984.read(iprot) + self.success.append(_elem984) iprot.readListEnd() else: iprot.skip(ftype) @@ -18369,8 +18432,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 iter943 in self.success: - iter943.write(oprot) + for iter985 in self.success: + iter985.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18523,11 +18586,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype947, _size944) = iprot.readListBegin() - for _i948 in xrange(_size944): - _elem949 = FieldSchema() - _elem949.read(iprot) - self.success.append(_elem949) + (_etype989, _size986) = iprot.readListBegin() + for _i990 in xrange(_size986): + _elem991 = FieldSchema() + _elem991.read(iprot) + self.success.append(_elem991) iprot.readListEnd() else: iprot.skip(ftype) @@ -18562,8 +18625,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 iter950 in self.success: - iter950.write(oprot) + for iter992 in self.success: + iter992.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18730,11 +18793,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype954, _size951) = iprot.readListBegin() - for _i955 in xrange(_size951): - _elem956 = FieldSchema() - _elem956.read(iprot) - self.success.append(_elem956) + (_etype996, _size993) = iprot.readListBegin() + for _i997 in xrange(_size993): + _elem998 = FieldSchema() + _elem998.read(iprot) + self.success.append(_elem998) iprot.readListEnd() else: iprot.skip(ftype) @@ -18769,8 +18832,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 iter957 in self.success: - iter957.write(oprot) + for iter999 in self.success: + iter999.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19223,66 +19286,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype961, _size958) = iprot.readListBegin() - for _i962 in xrange(_size958): - _elem963 = SQLPrimaryKey() - _elem963.read(iprot) - self.primaryKeys.append(_elem963) + (_etype1003, _size1000) = iprot.readListBegin() + for _i1004 in xrange(_size1000): + _elem1005 = SQLPrimaryKey() + _elem1005.read(iprot) + self.primaryKeys.append(_elem1005) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype967, _size964) = iprot.readListBegin() - for _i968 in xrange(_size964): - _elem969 = SQLForeignKey() - _elem969.read(iprot) - self.foreignKeys.append(_elem969) + (_etype1009, _size1006) = iprot.readListBegin() + for _i1010 in xrange(_size1006): + _elem1011 = SQLForeignKey() + _elem1011.read(iprot) + self.foreignKeys.append(_elem1011) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype973, _size970) = iprot.readListBegin() - for _i974 in xrange(_size970): - _elem975 = SQLUniqueConstraint() - _elem975.read(iprot) - self.uniqueConstraints.append(_elem975) + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in xrange(_size1012): + _elem1017 = SQLUniqueConstraint() + _elem1017.read(iprot) + self.uniqueConstraints.append(_elem1017) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype979, _size976) = iprot.readListBegin() - for _i980 in xrange(_size976): - _elem981 = SQLNotNullConstraint() - _elem981.read(iprot) - self.notNullConstraints.append(_elem981) + (_etype1021, _size1018) = iprot.readListBegin() + for _i1022 in xrange(_size1018): + _elem1023 = SQLNotNullConstraint() + _elem1023.read(iprot) + self.notNullConstraints.append(_elem1023) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype985, _size982) = iprot.readListBegin() - for _i986 in xrange(_size982): - _elem987 = SQLDefaultConstraint() - _elem987.read(iprot) - self.defaultConstraints.append(_elem987) + (_etype1027, _size1024) = iprot.readListBegin() + for _i1028 in xrange(_size1024): + _elem1029 = SQLDefaultConstraint() + _elem1029.read(iprot) + self.defaultConstraints.append(_elem1029) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.checkConstraints = [] - (_etype991, _size988) = iprot.readListBegin() - for _i992 in xrange(_size988): - _elem993 = SQLCheckConstraint() - _elem993.read(iprot) - self.checkConstraints.append(_elem993) + (_etype1033, _size1030) = iprot.readListBegin() + for _i1034 in xrange(_size1030): + _elem1035 = SQLCheckConstraint() + _elem1035.read(iprot) + self.checkConstraints.append(_elem1035) iprot.readListEnd() else: iprot.skip(ftype) @@ -19303,43 +19366,43 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter994 in self.primaryKeys: - iter994.write(oprot) + for iter1036 in self.primaryKeys: + iter1036.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 iter995 in self.foreignKeys: - iter995.write(oprot) + for iter1037 in self.foreignKeys: + iter1037.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 iter996 in self.uniqueConstraints: - iter996.write(oprot) + for iter1038 in self.uniqueConstraints: + iter1038.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 iter997 in self.notNullConstraints: - iter997.write(oprot) + for iter1039 in self.notNullConstraints: + iter1039.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter998 in self.defaultConstraints: - iter998.write(oprot) + for iter1040 in self.defaultConstraints: + iter1040.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter999 in self.checkConstraints: - iter999.write(oprot) + for iter1041 in self.checkConstraints: + iter1041.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20899,10 +20962,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype1003, _size1000) = iprot.readListBegin() - for _i1004 in xrange(_size1000): - _elem1005 = iprot.readString() - self.partNames.append(_elem1005) + (_etype1045, _size1042) = iprot.readListBegin() + for _i1046 in xrange(_size1042): + _elem1047 = iprot.readString() + self.partNames.append(_elem1047) iprot.readListEnd() else: iprot.skip(ftype) @@ -20927,8 +20990,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 iter1006 in self.partNames: - oprot.writeString(iter1006) + for iter1048 in self.partNames: + oprot.writeString(iter1048) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21273,10 +21336,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1010, _size1007) = iprot.readListBegin() - for _i1011 in xrange(_size1007): - _elem1012 = iprot.readString() - self.success.append(_elem1012) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = iprot.readString() + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -21299,8 +21362,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 iter1013 in self.success: - oprot.writeString(iter1013) + for iter1055 in self.success: + oprot.writeString(iter1055) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21450,10 +21513,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1017, _size1014) = iprot.readListBegin() - for _i1018 in xrange(_size1014): - _elem1019 = iprot.readString() - self.success.append(_elem1019) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = iprot.readString() + self.success.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -21476,8 +21539,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 iter1020 in self.success: - oprot.writeString(iter1020) + for iter1062 in self.success: + oprot.writeString(iter1062) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21601,10 +21664,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1024, _size1021) = iprot.readListBegin() - for _i1025 in xrange(_size1021): - _elem1026 = iprot.readString() - self.success.append(_elem1026) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = iprot.readString() + self.success.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -21627,8 +21690,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 iter1027 in self.success: - oprot.writeString(iter1027) + for iter1069 in self.success: + oprot.writeString(iter1069) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21701,10 +21764,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1031, _size1028) = iprot.readListBegin() - for _i1032 in xrange(_size1028): - _elem1033 = iprot.readString() - self.tbl_types.append(_elem1033) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = iprot.readString() + self.tbl_types.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) @@ -21729,8 +21792,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 iter1034 in self.tbl_types: - oprot.writeString(iter1034) + for iter1076 in self.tbl_types: + oprot.writeString(iter1076) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21786,11 +21849,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1038, _size1035) = iprot.readListBegin() - for _i1039 in xrange(_size1035): - _elem1040 = TableMeta() - _elem1040.read(iprot) - self.success.append(_elem1040) + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in xrange(_size1077): + _elem1082 = TableMeta() + _elem1082.read(iprot) + self.success.append(_elem1082) iprot.readListEnd() else: iprot.skip(ftype) @@ -21813,8 +21876,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 iter1041 in self.success: - iter1041.write(oprot) + for iter1083 in self.success: + iter1083.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21938,10 +22001,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = iprot.readString() - self.success.append(_elem1047) + (_etype1087, _size1084) = iprot.readListBegin() + for _i1088 in xrange(_size1084): + _elem1089 = iprot.readString() + self.success.append(_elem1089) iprot.readListEnd() else: iprot.skip(ftype) @@ -21964,8 +22027,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 iter1048 in self.success: - oprot.writeString(iter1048) + for iter1090 in self.success: + oprot.writeString(iter1090) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22201,10 +22264,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1052, _size1049) = iprot.readListBegin() - for _i1053 in xrange(_size1049): - _elem1054 = iprot.readString() - self.tbl_names.append(_elem1054) + (_etype1094, _size1091) = iprot.readListBegin() + for _i1095 in xrange(_size1091): + _elem1096 = iprot.readString() + self.tbl_names.append(_elem1096) iprot.readListEnd() else: iprot.skip(ftype) @@ -22225,8 +22288,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 iter1055 in self.tbl_names: - oprot.writeString(iter1055) + for iter1097 in self.tbl_names: + oprot.writeString(iter1097) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22278,11 +22341,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = Table() - _elem1061.read(iprot) - self.success.append(_elem1061) + (_etype1101, _size1098) = iprot.readListBegin() + for _i1102 in xrange(_size1098): + _elem1103 = Table() + _elem1103.read(iprot) + self.success.append(_elem1103) iprot.readListEnd() else: iprot.skip(ftype) @@ -22299,10 +22362,162 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1062 in self.success: - iter1062.write(oprot) + for iter1104 in self.success: + iter1104.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_tables_ext_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (GetTablesExtRequest, GetTablesExtRequest.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 = GetTablesExtRequest() + 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('get_tables_ext_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 get_tables_ext_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(ExtendedTableInfo, ExtendedTableInfo.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1108, _size1105) = iprot.readListBegin() + for _i1109 in xrange(_size1105): + _elem1110 = ExtendedTableInfo() + _elem1110.read(iprot) + self.success.append(_elem1110) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_tables_ext_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1111 in self.success: + iter1111.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22313,6 +22528,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) return value def __repr__(self): @@ -23168,10 +23384,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1066, _size1063) = iprot.readListBegin() - for _i1067 in xrange(_size1063): - _elem1068 = iprot.readString() - self.success.append(_elem1068) + (_etype1115, _size1112) = iprot.readListBegin() + for _i1116 in xrange(_size1112): + _elem1117 = iprot.readString() + self.success.append(_elem1117) iprot.readListEnd() else: iprot.skip(ftype) @@ -23206,8 +23422,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 iter1069 in self.success: - oprot.writeString(iter1069) + for iter1118 in self.success: + oprot.writeString(iter1118) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24336,11 +24552,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1073, _size1070) = iprot.readListBegin() - for _i1074 in xrange(_size1070): - _elem1075 = Partition() - _elem1075.read(iprot) - self.new_parts.append(_elem1075) + (_etype1122, _size1119) = iprot.readListBegin() + for _i1123 in xrange(_size1119): + _elem1124 = Partition() + _elem1124.read(iprot) + self.new_parts.append(_elem1124) iprot.readListEnd() else: iprot.skip(ftype) @@ -24357,8 +24573,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 iter1076 in self.new_parts: - iter1076.write(oprot) + for iter1125 in self.new_parts: + iter1125.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24516,11 +24732,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1080, _size1077) = iprot.readListBegin() - for _i1081 in xrange(_size1077): - _elem1082 = PartitionSpec() - _elem1082.read(iprot) - self.new_parts.append(_elem1082) + (_etype1129, _size1126) = iprot.readListBegin() + for _i1130 in xrange(_size1126): + _elem1131 = PartitionSpec() + _elem1131.read(iprot) + self.new_parts.append(_elem1131) iprot.readListEnd() else: iprot.skip(ftype) @@ -24537,8 +24753,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 iter1083 in self.new_parts: - iter1083.write(oprot) + for iter1132 in self.new_parts: + iter1132.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24712,10 +24928,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1087, _size1084) = iprot.readListBegin() - for _i1088 in xrange(_size1084): - _elem1089 = iprot.readString() - self.part_vals.append(_elem1089) + (_etype1136, _size1133) = iprot.readListBegin() + for _i1137 in xrange(_size1133): + _elem1138 = iprot.readString() + self.part_vals.append(_elem1138) iprot.readListEnd() else: iprot.skip(ftype) @@ -24740,8 +24956,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 iter1090 in self.part_vals: - oprot.writeString(iter1090) + for iter1139 in self.part_vals: + oprot.writeString(iter1139) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25094,10 +25310,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1094, _size1091) = iprot.readListBegin() - for _i1095 in xrange(_size1091): - _elem1096 = iprot.readString() - self.part_vals.append(_elem1096) + (_etype1143, _size1140) = iprot.readListBegin() + for _i1144 in xrange(_size1140): + _elem1145 = iprot.readString() + self.part_vals.append(_elem1145) iprot.readListEnd() else: iprot.skip(ftype) @@ -25128,8 +25344,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 iter1097 in self.part_vals: - oprot.writeString(iter1097) + for iter1146 in self.part_vals: + oprot.writeString(iter1146) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -25724,10 +25940,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1101, _size1098) = iprot.readListBegin() - for _i1102 in xrange(_size1098): - _elem1103 = iprot.readString() - self.part_vals.append(_elem1103) + (_etype1150, _size1147) = iprot.readListBegin() + for _i1151 in xrange(_size1147): + _elem1152 = iprot.readString() + self.part_vals.append(_elem1152) iprot.readListEnd() else: iprot.skip(ftype) @@ -25757,8 +25973,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 iter1104 in self.part_vals: - oprot.writeString(iter1104) + for iter1153 in self.part_vals: + oprot.writeString(iter1153) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -25931,10 +26147,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1108, _size1105) = iprot.readListBegin() - for _i1109 in xrange(_size1105): - _elem1110 = iprot.readString() - self.part_vals.append(_elem1110) + (_etype1157, _size1154) = iprot.readListBegin() + for _i1158 in xrange(_size1154): + _elem1159 = iprot.readString() + self.part_vals.append(_elem1159) iprot.readListEnd() else: iprot.skip(ftype) @@ -25970,8 +26186,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 iter1111 in self.part_vals: - oprot.writeString(iter1111) + for iter1160 in self.part_vals: + oprot.writeString(iter1160) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -26708,10 +26924,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1115, _size1112) = iprot.readListBegin() - for _i1116 in xrange(_size1112): - _elem1117 = iprot.readString() - self.part_vals.append(_elem1117) + (_etype1164, _size1161) = iprot.readListBegin() + for _i1165 in xrange(_size1161): + _elem1166 = iprot.readString() + self.part_vals.append(_elem1166) iprot.readListEnd() else: iprot.skip(ftype) @@ -26736,8 +26952,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 iter1118 in self.part_vals: - oprot.writeString(iter1118) + for iter1167 in self.part_vals: + oprot.writeString(iter1167) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26896,11 +27112,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1120, _vtype1121, _size1119 ) = iprot.readMapBegin() - for _i1123 in xrange(_size1119): - _key1124 = iprot.readString() - _val1125 = iprot.readString() - self.partitionSpecs[_key1124] = _val1125 + (_ktype1169, _vtype1170, _size1168 ) = iprot.readMapBegin() + for _i1172 in xrange(_size1168): + _key1173 = iprot.readString() + _val1174 = iprot.readString() + self.partitionSpecs[_key1173] = _val1174 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26937,9 +27153,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 kiter1126,viter1127 in self.partitionSpecs.items(): - oprot.writeString(kiter1126) - oprot.writeString(viter1127) + for kiter1175,viter1176 in self.partitionSpecs.items(): + oprot.writeString(kiter1175) + oprot.writeString(viter1176) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27144,11 +27360,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1129, _vtype1130, _size1128 ) = iprot.readMapBegin() - for _i1132 in xrange(_size1128): - _key1133 = iprot.readString() - _val1134 = iprot.readString() - self.partitionSpecs[_key1133] = _val1134 + (_ktype1178, _vtype1179, _size1177 ) = iprot.readMapBegin() + for _i1181 in xrange(_size1177): + _key1182 = iprot.readString() + _val1183 = iprot.readString() + self.partitionSpecs[_key1182] = _val1183 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27185,9 +27401,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 kiter1135,viter1136 in self.partitionSpecs.items(): - oprot.writeString(kiter1135) - oprot.writeString(viter1136) + for kiter1184,viter1185 in self.partitionSpecs.items(): + oprot.writeString(kiter1184) + oprot.writeString(viter1185) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27270,11 +27486,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1140, _size1137) = iprot.readListBegin() - for _i1141 in xrange(_size1137): - _elem1142 = Partition() - _elem1142.read(iprot) - self.success.append(_elem1142) + (_etype1189, _size1186) = iprot.readListBegin() + for _i1190 in xrange(_size1186): + _elem1191 = Partition() + _elem1191.read(iprot) + self.success.append(_elem1191) iprot.readListEnd() else: iprot.skip(ftype) @@ -27315,8 +27531,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 iter1143 in self.success: - iter1143.write(oprot) + for iter1192 in self.success: + iter1192.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27410,10 +27626,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1147, _size1144) = iprot.readListBegin() - for _i1148 in xrange(_size1144): - _elem1149 = iprot.readString() - self.part_vals.append(_elem1149) + (_etype1196, _size1193) = iprot.readListBegin() + for _i1197 in xrange(_size1193): + _elem1198 = iprot.readString() + self.part_vals.append(_elem1198) iprot.readListEnd() else: iprot.skip(ftype) @@ -27425,10 +27641,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1153, _size1150) = iprot.readListBegin() - for _i1154 in xrange(_size1150): - _elem1155 = iprot.readString() - self.group_names.append(_elem1155) + (_etype1202, _size1199) = iprot.readListBegin() + for _i1203 in xrange(_size1199): + _elem1204 = iprot.readString() + self.group_names.append(_elem1204) iprot.readListEnd() else: iprot.skip(ftype) @@ -27453,8 +27669,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 iter1156 in self.part_vals: - oprot.writeString(iter1156) + for iter1205 in self.part_vals: + oprot.writeString(iter1205) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -27464,8 +27680,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 iter1157 in self.group_names: - oprot.writeString(iter1157) + for iter1206 in self.group_names: + oprot.writeString(iter1206) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27894,11 +28110,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1161, _size1158) = iprot.readListBegin() - for _i1162 in xrange(_size1158): - _elem1163 = Partition() - _elem1163.read(iprot) - self.success.append(_elem1163) + (_etype1210, _size1207) = iprot.readListBegin() + for _i1211 in xrange(_size1207): + _elem1212 = Partition() + _elem1212.read(iprot) + self.success.append(_elem1212) iprot.readListEnd() else: iprot.skip(ftype) @@ -27927,8 +28143,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 iter1164 in self.success: - iter1164.write(oprot) + for iter1213 in self.success: + iter1213.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28022,10 +28238,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1168, _size1165) = iprot.readListBegin() - for _i1169 in xrange(_size1165): - _elem1170 = iprot.readString() - self.group_names.append(_elem1170) + (_etype1217, _size1214) = iprot.readListBegin() + for _i1218 in xrange(_size1214): + _elem1219 = iprot.readString() + self.group_names.append(_elem1219) iprot.readListEnd() else: iprot.skip(ftype) @@ -28058,8 +28274,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 iter1171 in self.group_names: - oprot.writeString(iter1171) + for iter1220 in self.group_names: + oprot.writeString(iter1220) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28120,11 +28336,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1175, _size1172) = iprot.readListBegin() - for _i1176 in xrange(_size1172): - _elem1177 = Partition() - _elem1177.read(iprot) - self.success.append(_elem1177) + (_etype1224, _size1221) = iprot.readListBegin() + for _i1225 in xrange(_size1221): + _elem1226 = Partition() + _elem1226.read(iprot) + self.success.append(_elem1226) iprot.readListEnd() else: iprot.skip(ftype) @@ -28153,8 +28369,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 iter1178 in self.success: - iter1178.write(oprot) + for iter1227 in self.success: + iter1227.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28312,11 +28528,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1182, _size1179) = iprot.readListBegin() - for _i1183 in xrange(_size1179): - _elem1184 = PartitionSpec() - _elem1184.read(iprot) - self.success.append(_elem1184) + (_etype1231, _size1228) = iprot.readListBegin() + for _i1232 in xrange(_size1228): + _elem1233 = PartitionSpec() + _elem1233.read(iprot) + self.success.append(_elem1233) iprot.readListEnd() else: iprot.skip(ftype) @@ -28345,8 +28561,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 iter1185 in self.success: - iter1185.write(oprot) + for iter1234 in self.success: + iter1234.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28504,10 +28720,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1189, _size1186) = iprot.readListBegin() - for _i1190 in xrange(_size1186): - _elem1191 = iprot.readString() - self.success.append(_elem1191) + (_etype1238, _size1235) = iprot.readListBegin() + for _i1239 in xrange(_size1235): + _elem1240 = iprot.readString() + self.success.append(_elem1240) iprot.readListEnd() else: iprot.skip(ftype) @@ -28536,8 +28752,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 iter1192 in self.success: - oprot.writeString(iter1192) + for iter1241 in self.success: + oprot.writeString(iter1241) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28777,10 +28993,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1196, _size1193) = iprot.readListBegin() - for _i1197 in xrange(_size1193): - _elem1198 = iprot.readString() - self.part_vals.append(_elem1198) + (_etype1245, _size1242) = iprot.readListBegin() + for _i1246 in xrange(_size1242): + _elem1247 = iprot.readString() + self.part_vals.append(_elem1247) iprot.readListEnd() else: iprot.skip(ftype) @@ -28810,8 +29026,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 iter1199 in self.part_vals: - oprot.writeString(iter1199) + for iter1248 in self.part_vals: + oprot.writeString(iter1248) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -28875,11 +29091,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in xrange(_size1200): - _elem1205 = Partition() - _elem1205.read(iprot) - self.success.append(_elem1205) + (_etype1252, _size1249) = iprot.readListBegin() + for _i1253 in xrange(_size1249): + _elem1254 = Partition() + _elem1254.read(iprot) + self.success.append(_elem1254) iprot.readListEnd() else: iprot.skip(ftype) @@ -28908,8 +29124,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 iter1206 in self.success: - iter1206.write(oprot) + for iter1255 in self.success: + iter1255.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28996,10 +29212,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1210, _size1207) = iprot.readListBegin() - for _i1211 in xrange(_size1207): - _elem1212 = iprot.readString() - self.part_vals.append(_elem1212) + (_etype1259, _size1256) = iprot.readListBegin() + for _i1260 in xrange(_size1256): + _elem1261 = iprot.readString() + self.part_vals.append(_elem1261) iprot.readListEnd() else: iprot.skip(ftype) @@ -29016,10 +29232,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1216, _size1213) = iprot.readListBegin() - for _i1217 in xrange(_size1213): - _elem1218 = iprot.readString() - self.group_names.append(_elem1218) + (_etype1265, _size1262) = iprot.readListBegin() + for _i1266 in xrange(_size1262): + _elem1267 = iprot.readString() + self.group_names.append(_elem1267) iprot.readListEnd() else: iprot.skip(ftype) @@ -29044,8 +29260,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 iter1219 in self.part_vals: - oprot.writeString(iter1219) + for iter1268 in self.part_vals: + oprot.writeString(iter1268) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29059,8 +29275,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 iter1220 in self.group_names: - oprot.writeString(iter1220) + for iter1269 in self.group_names: + oprot.writeString(iter1269) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29122,11 +29338,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1224, _size1221) = iprot.readListBegin() - for _i1225 in xrange(_size1221): - _elem1226 = Partition() - _elem1226.read(iprot) - self.success.append(_elem1226) + (_etype1273, _size1270) = iprot.readListBegin() + for _i1274 in xrange(_size1270): + _elem1275 = Partition() + _elem1275.read(iprot) + self.success.append(_elem1275) iprot.readListEnd() else: iprot.skip(ftype) @@ -29155,8 +29371,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 iter1227 in self.success: - iter1227.write(oprot) + for iter1276 in self.success: + iter1276.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29237,10 +29453,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in xrange(_size1228): - _elem1233 = iprot.readString() - self.part_vals.append(_elem1233) + (_etype1280, _size1277) = iprot.readListBegin() + for _i1281 in xrange(_size1277): + _elem1282 = iprot.readString() + self.part_vals.append(_elem1282) iprot.readListEnd() else: iprot.skip(ftype) @@ -29270,8 +29486,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 iter1234 in self.part_vals: - oprot.writeString(iter1234) + for iter1283 in self.part_vals: + oprot.writeString(iter1283) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29335,10 +29551,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in xrange(_size1235): - _elem1240 = iprot.readString() - self.success.append(_elem1240) + (_etype1287, _size1284) = iprot.readListBegin() + for _i1288 in xrange(_size1284): + _elem1289 = iprot.readString() + self.success.append(_elem1289) iprot.readListEnd() else: iprot.skip(ftype) @@ -29367,8 +29583,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 iter1241 in self.success: - oprot.writeString(iter1241) + for iter1290 in self.success: + oprot.writeString(iter1290) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29539,11 +29755,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in xrange(_size1242): - _elem1247 = Partition() - _elem1247.read(iprot) - self.success.append(_elem1247) + (_etype1294, _size1291) = iprot.readListBegin() + for _i1295 in xrange(_size1291): + _elem1296 = Partition() + _elem1296.read(iprot) + self.success.append(_elem1296) iprot.readListEnd() else: iprot.skip(ftype) @@ -29572,8 +29788,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 iter1248 in self.success: - iter1248.write(oprot) + for iter1297 in self.success: + iter1297.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29744,11 +29960,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1252, _size1249) = iprot.readListBegin() - for _i1253 in xrange(_size1249): - _elem1254 = PartitionSpec() - _elem1254.read(iprot) - self.success.append(_elem1254) + (_etype1301, _size1298) = iprot.readListBegin() + for _i1302 in xrange(_size1298): + _elem1303 = PartitionSpec() + _elem1303.read(iprot) + self.success.append(_elem1303) iprot.readListEnd() else: iprot.skip(ftype) @@ -29777,8 +29993,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 iter1255 in self.success: - iter1255.write(oprot) + for iter1304 in self.success: + iter1304.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30198,10 +30414,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in xrange(_size1256): - _elem1261 = iprot.readString() - self.names.append(_elem1261) + (_etype1308, _size1305) = iprot.readListBegin() + for _i1309 in xrange(_size1305): + _elem1310 = iprot.readString() + self.names.append(_elem1310) iprot.readListEnd() else: iprot.skip(ftype) @@ -30226,8 +30442,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 iter1262 in self.names: - oprot.writeString(iter1262) + for iter1311 in self.names: + oprot.writeString(iter1311) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30286,11 +30502,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = Partition() - _elem1268.read(iprot) - self.success.append(_elem1268) + (_etype1315, _size1312) = iprot.readListBegin() + for _i1316 in xrange(_size1312): + _elem1317 = Partition() + _elem1317.read(iprot) + self.success.append(_elem1317) iprot.readListEnd() else: iprot.skip(ftype) @@ -30319,8 +30535,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 iter1269 in self.success: - iter1269.write(oprot) + for iter1318 in self.success: + iter1318.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30729,11 +30945,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1273, _size1270) = iprot.readListBegin() - for _i1274 in xrange(_size1270): - _elem1275 = Partition() - _elem1275.read(iprot) - self.new_parts.append(_elem1275) + (_etype1322, _size1319) = iprot.readListBegin() + for _i1323 in xrange(_size1319): + _elem1324 = Partition() + _elem1324.read(iprot) + self.new_parts.append(_elem1324) iprot.readListEnd() else: iprot.skip(ftype) @@ -30758,8 +30974,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 iter1276 in self.new_parts: - iter1276.write(oprot) + for iter1325 in self.new_parts: + iter1325.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30912,11 +31128,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1280, _size1277) = iprot.readListBegin() - for _i1281 in xrange(_size1277): - _elem1282 = Partition() - _elem1282.read(iprot) - self.new_parts.append(_elem1282) + (_etype1329, _size1326) = iprot.readListBegin() + for _i1330 in xrange(_size1326): + _elem1331 = Partition() + _elem1331.read(iprot) + self.new_parts.append(_elem1331) iprot.readListEnd() else: iprot.skip(ftype) @@ -30947,8 +31163,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 iter1283 in self.new_parts: - iter1283.write(oprot) + for iter1332 in self.new_parts: + iter1332.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -31451,10 +31667,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1287, _size1284) = iprot.readListBegin() - for _i1288 in xrange(_size1284): - _elem1289 = iprot.readString() - self.part_vals.append(_elem1289) + (_etype1336, _size1333) = iprot.readListBegin() + for _i1337 in xrange(_size1333): + _elem1338 = iprot.readString() + self.part_vals.append(_elem1338) iprot.readListEnd() else: iprot.skip(ftype) @@ -31485,8 +31701,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 iter1290 in self.part_vals: - oprot.writeString(iter1290) + for iter1339 in self.part_vals: + oprot.writeString(iter1339) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -31787,10 +32003,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1294, _size1291) = iprot.readListBegin() - for _i1295 in xrange(_size1291): - _elem1296 = iprot.readString() - self.part_vals.append(_elem1296) + (_etype1343, _size1340) = iprot.readListBegin() + for _i1344 in xrange(_size1340): + _elem1345 = iprot.readString() + self.part_vals.append(_elem1345) iprot.readListEnd() else: iprot.skip(ftype) @@ -31812,8 +32028,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 iter1297 in self.part_vals: - oprot.writeString(iter1297) + for iter1346 in self.part_vals: + oprot.writeString(iter1346) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -32171,10 +32387,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1301, _size1298) = iprot.readListBegin() - for _i1302 in xrange(_size1298): - _elem1303 = iprot.readString() - self.success.append(_elem1303) + (_etype1350, _size1347) = iprot.readListBegin() + for _i1351 in xrange(_size1347): + _elem1352 = iprot.readString() + self.success.append(_elem1352) iprot.readListEnd() else: iprot.skip(ftype) @@ -32197,8 +32413,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 iter1304 in self.success: - oprot.writeString(iter1304) + for iter1353 in self.success: + oprot.writeString(iter1353) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32322,11 +32538,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1306, _vtype1307, _size1305 ) = iprot.readMapBegin() - for _i1309 in xrange(_size1305): - _key1310 = iprot.readString() - _val1311 = iprot.readString() - self.success[_key1310] = _val1311 + (_ktype1355, _vtype1356, _size1354 ) = iprot.readMapBegin() + for _i1358 in xrange(_size1354): + _key1359 = iprot.readString() + _val1360 = iprot.readString() + self.success[_key1359] = _val1360 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32349,9 +32565,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 kiter1312,viter1313 in self.success.items(): - oprot.writeString(kiter1312) - oprot.writeString(viter1313) + for kiter1361,viter1362 in self.success.items(): + oprot.writeString(kiter1361) + oprot.writeString(viter1362) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32427,11 +32643,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1315, _vtype1316, _size1314 ) = iprot.readMapBegin() - for _i1318 in xrange(_size1314): - _key1319 = iprot.readString() - _val1320 = iprot.readString() - self.part_vals[_key1319] = _val1320 + (_ktype1364, _vtype1365, _size1363 ) = iprot.readMapBegin() + for _i1367 in xrange(_size1363): + _key1368 = iprot.readString() + _val1369 = iprot.readString() + self.part_vals[_key1368] = _val1369 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32461,9 +32677,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 kiter1321,viter1322 in self.part_vals.items(): - oprot.writeString(kiter1321) - oprot.writeString(viter1322) + for kiter1370,viter1371 in self.part_vals.items(): + oprot.writeString(kiter1370) + oprot.writeString(viter1371) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -32677,11 +32893,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1324, _vtype1325, _size1323 ) = iprot.readMapBegin() - for _i1327 in xrange(_size1323): - _key1328 = iprot.readString() - _val1329 = iprot.readString() - self.part_vals[_key1328] = _val1329 + (_ktype1373, _vtype1374, _size1372 ) = iprot.readMapBegin() + for _i1376 in xrange(_size1372): + _key1377 = iprot.readString() + _val1378 = iprot.readString() + self.part_vals[_key1377] = _val1378 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32711,9 +32927,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 kiter1330,viter1331 in self.part_vals.items(): - oprot.writeString(kiter1330) - oprot.writeString(viter1331) + for kiter1379,viter1380 in self.part_vals.items(): + oprot.writeString(kiter1379) + oprot.writeString(viter1380) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -36739,10 +36955,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1335, _size1332) = iprot.readListBegin() - for _i1336 in xrange(_size1332): - _elem1337 = iprot.readString() - self.success.append(_elem1337) + (_etype1384, _size1381) = iprot.readListBegin() + for _i1385 in xrange(_size1381): + _elem1386 = iprot.readString() + self.success.append(_elem1386) iprot.readListEnd() else: iprot.skip(ftype) @@ -36765,8 +36981,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 iter1338 in self.success: - oprot.writeString(iter1338) + for iter1387 in self.success: + oprot.writeString(iter1387) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37454,10 +37670,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1342, _size1339) = iprot.readListBegin() - for _i1343 in xrange(_size1339): - _elem1344 = iprot.readString() - self.success.append(_elem1344) + (_etype1391, _size1388) = iprot.readListBegin() + for _i1392 in xrange(_size1388): + _elem1393 = iprot.readString() + self.success.append(_elem1393) iprot.readListEnd() else: iprot.skip(ftype) @@ -37480,8 +37696,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 iter1345 in self.success: - oprot.writeString(iter1345) + for iter1394 in self.success: + oprot.writeString(iter1394) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -37995,11 +38211,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1349, _size1346) = iprot.readListBegin() - for _i1350 in xrange(_size1346): - _elem1351 = Role() - _elem1351.read(iprot) - self.success.append(_elem1351) + (_etype1398, _size1395) = iprot.readListBegin() + for _i1399 in xrange(_size1395): + _elem1400 = Role() + _elem1400.read(iprot) + self.success.append(_elem1400) iprot.readListEnd() else: iprot.skip(ftype) @@ -38022,8 +38238,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 iter1352 in self.success: - iter1352.write(oprot) + for iter1401 in self.success: + iter1401.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38532,10 +38748,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1356, _size1353) = iprot.readListBegin() - for _i1357 in xrange(_size1353): - _elem1358 = iprot.readString() - self.group_names.append(_elem1358) + (_etype1405, _size1402) = iprot.readListBegin() + for _i1406 in xrange(_size1402): + _elem1407 = iprot.readString() + self.group_names.append(_elem1407) iprot.readListEnd() else: iprot.skip(ftype) @@ -38560,8 +38776,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 iter1359 in self.group_names: - oprot.writeString(iter1359) + for iter1408 in self.group_names: + oprot.writeString(iter1408) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38788,11 +39004,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1363, _size1360) = iprot.readListBegin() - for _i1364 in xrange(_size1360): - _elem1365 = HiveObjectPrivilege() - _elem1365.read(iprot) - self.success.append(_elem1365) + (_etype1412, _size1409) = iprot.readListBegin() + for _i1413 in xrange(_size1409): + _elem1414 = HiveObjectPrivilege() + _elem1414.read(iprot) + self.success.append(_elem1414) iprot.readListEnd() else: iprot.skip(ftype) @@ -38815,8 +39031,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 iter1366 in self.success: - iter1366.write(oprot) + for iter1415 in self.success: + iter1415.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39486,10 +39702,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1370, _size1367) = iprot.readListBegin() - for _i1371 in xrange(_size1367): - _elem1372 = iprot.readString() - self.group_names.append(_elem1372) + (_etype1419, _size1416) = iprot.readListBegin() + for _i1420 in xrange(_size1416): + _elem1421 = iprot.readString() + self.group_names.append(_elem1421) iprot.readListEnd() else: iprot.skip(ftype) @@ -39510,8 +39726,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 iter1373 in self.group_names: - oprot.writeString(iter1373) + for iter1422 in self.group_names: + oprot.writeString(iter1422) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39566,10 +39782,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1377, _size1374) = iprot.readListBegin() - for _i1378 in xrange(_size1374): - _elem1379 = iprot.readString() - self.success.append(_elem1379) + (_etype1426, _size1423) = iprot.readListBegin() + for _i1427 in xrange(_size1423): + _elem1428 = iprot.readString() + self.success.append(_elem1428) iprot.readListEnd() else: iprot.skip(ftype) @@ -39592,8 +39808,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 iter1380 in self.success: - oprot.writeString(iter1380) + for iter1429 in self.success: + oprot.writeString(iter1429) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -40525,10 +40741,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1384, _size1381) = iprot.readListBegin() - for _i1385 in xrange(_size1381): - _elem1386 = iprot.readString() - self.success.append(_elem1386) + (_etype1433, _size1430) = iprot.readListBegin() + for _i1434 in xrange(_size1430): + _elem1435 = iprot.readString() + self.success.append(_elem1435) iprot.readListEnd() else: iprot.skip(ftype) @@ -40545,8 +40761,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 iter1387 in self.success: - oprot.writeString(iter1387) + for iter1436 in self.success: + oprot.writeString(iter1436) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41073,10 +41289,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1391, _size1388) = iprot.readListBegin() - for _i1392 in xrange(_size1388): - _elem1393 = iprot.readString() - self.success.append(_elem1393) + (_etype1440, _size1437) = iprot.readListBegin() + for _i1441 in xrange(_size1437): + _elem1442 = iprot.readString() + self.success.append(_elem1442) iprot.readListEnd() else: iprot.skip(ftype) @@ -41093,8 +41309,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 iter1394 in self.success: - oprot.writeString(iter1394) + for iter1443 in self.success: + oprot.writeString(iter1443) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44107,10 +44323,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1398, _size1395) = iprot.readListBegin() - for _i1399 in xrange(_size1395): - _elem1400 = iprot.readString() - self.success.append(_elem1400) + (_etype1447, _size1444) = iprot.readListBegin() + for _i1448 in xrange(_size1444): + _elem1449 = iprot.readString() + self.success.append(_elem1449) iprot.readListEnd() else: iprot.skip(ftype) @@ -44127,8 +44343,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 iter1401 in self.success: - oprot.writeString(iter1401) + for iter1450 in self.success: + oprot.writeString(iter1450) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50438,11 +50654,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1405, _size1402) = iprot.readListBegin() - for _i1406 in xrange(_size1402): - _elem1407 = SchemaVersion() - _elem1407.read(iprot) - self.success.append(_elem1407) + (_etype1454, _size1451) = iprot.readListBegin() + for _i1455 in xrange(_size1451): + _elem1456 = SchemaVersion() + _elem1456.read(iprot) + self.success.append(_elem1456) iprot.readListEnd() else: iprot.skip(ftype) @@ -50471,8 +50687,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 iter1408 in self.success: - iter1408.write(oprot) + for iter1457 in self.success: + iter1457.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -51947,11 +52163,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1412, _size1409) = iprot.readListBegin() - for _i1413 in xrange(_size1409): - _elem1414 = RuntimeStat() - _elem1414.read(iprot) - self.success.append(_elem1414) + (_etype1461, _size1458) = iprot.readListBegin() + for _i1462 in xrange(_size1458): + _elem1463 = RuntimeStat() + _elem1463.read(iprot) + self.success.append(_elem1463) iprot.readListEnd() else: iprot.skip(ftype) @@ -51974,8 +52190,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 iter1415 in self.success: - iter1415.write(oprot) + for iter1464 in self.success: + iter1464.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/constants.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/constants.py index e243e5ca12..61d68929ab 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/constants.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/constants.py @@ -10,6 +10,10 @@ from ttypes import * DDL_TIME = "transient_lastDdlTime" +ACCESSTYPE_NONE = 1 +ACCESSTYPE_READONLY = 2 +ACCESSTYPE_WRITEONLY = 4 +ACCESSTYPE_READWRITE = 8 HIVE_FILTER_FIELD_OWNER = "hive_filter_field_owner__" HIVE_FILTER_FIELD_PARAMS = "hive_filter_field_params__" HIVE_FILTER_FIELD_LAST_ACCESS = "hive_filter_field_last_access__" diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index dee644c93f..ad09cb7cc0 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -353,6 +353,23 @@ class TxnType: "COMPACTION": 3, } +class GetTablesExtRequestFields: + ACCESS_TYPE = 1 + PROCESSOR_CAPABILITIES = 2 + ALL = 2147483647 + + _VALUES_TO_NAMES = { + 1: "ACCESS_TYPE", + 2: "PROCESSOR_CAPABILITIES", + 2147483647: "ALL", + } + + _NAMES_TO_VALUES = { + "ACCESS_TYPE": 1, + "PROCESSOR_CAPABILITIES": 2, + "ALL": 2147483647, + } + class FileMetadataExprType: ORC_SARG = 1 @@ -4792,6 +4809,7 @@ class Table: - writeId - isStatsCompliant - colStats + - accessType """ thrift_spec = ( @@ -4818,9 +4836,10 @@ class Table: (20, TType.I64, 'writeId', None, -1, ), # 20 (21, TType.BOOL, 'isStatsCompliant', None, None, ), # 21 (22, TType.STRUCT, 'colStats', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 22 + (23, TType.BYTE, 'accessType', None, None, ), # 23 ) - def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[15][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[19][4], writeId=thrift_spec[20][4], isStatsCompliant=None, colStats=None,): + def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[15][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[19][4], writeId=thrift_spec[20][4], isStatsCompliant=None, colStats=None, accessType=None,): self.id = id self.tableName = tableName self.dbName = dbName @@ -4843,6 +4862,7 @@ def __init__(self, id=None, tableName=None, dbName=None, owner=None, createTime= self.writeId = writeId self.isStatsCompliant = isStatsCompliant self.colStats = colStats + self.accessType = accessType 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: @@ -4979,6 +4999,11 @@ def read(self, iprot): self.colStats.read(iprot) else: iprot.skip(ftype) + elif fid == 23: + if ftype == TType.BYTE: + self.accessType = iprot.readByte() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -5084,6 +5109,10 @@ def write(self, oprot): oprot.writeFieldBegin('colStats', TType.STRUCT, 22) self.colStats.write(oprot) oprot.writeFieldEnd() + if self.accessType is not None: + oprot.writeFieldBegin('accessType', TType.BYTE, 23) + oprot.writeByte(self.accessType) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5115,6 +5144,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.writeId) value = (value * 31) ^ hash(self.isStatsCompliant) value = (value * 31) ^ hash(self.colStats) + value = (value * 31) ^ hash(self.accessType) return value def __repr__(self): @@ -11102,6 +11132,8 @@ class GetPartitionsByNamesRequest: - tbl_name - names - get_col_stats + - processorCapabilities + - processorIdentifier """ thrift_spec = ( @@ -11110,13 +11142,17 @@ class GetPartitionsByNamesRequest: (2, TType.STRING, 'tbl_name', None, None, ), # 2 (3, TType.LIST, 'names', (TType.STRING,None), None, ), # 3 (4, TType.BOOL, 'get_col_stats', None, None, ), # 4 + (5, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 5 + (6, TType.STRING, 'processorIdentifier', None, None, ), # 6 ) - def __init__(self, db_name=None, tbl_name=None, names=None, get_col_stats=None,): + def __init__(self, db_name=None, tbl_name=None, names=None, get_col_stats=None, processorCapabilities=None, processorIdentifier=None,): self.db_name = db_name self.tbl_name = tbl_name self.names = names self.get_col_stats = get_col_stats + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier 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: @@ -11152,6 +11188,21 @@ def read(self, iprot): self.get_col_stats = iprot.readBool() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype497, _size494) = iprot.readListBegin() + for _i498 in xrange(_size494): + _elem499 = iprot.readString() + self.processorCapabilities.append(_elem499) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.processorIdentifier = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -11173,14 +11224,25 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter494 in self.names: - oprot.writeString(iter494) + for iter500 in self.names: + oprot.writeString(iter500) oprot.writeListEnd() oprot.writeFieldEnd() if self.get_col_stats is not None: oprot.writeFieldBegin('get_col_stats', TType.BOOL, 4) oprot.writeBool(self.get_col_stats) oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter501 in self.processorCapabilities: + oprot.writeString(iter501) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 6) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11198,6 +11260,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.tbl_name) value = (value * 31) ^ hash(self.names) value = (value * 31) ^ hash(self.get_col_stats) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) return value def __repr__(self): @@ -11237,11 +11301,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype498, _size495) = iprot.readListBegin() - for _i499 in xrange(_size495): - _elem500 = Partition() - _elem500.read(iprot) - self.partitions.append(_elem500) + (_etype505, _size502) = iprot.readListBegin() + for _i506 in xrange(_size502): + _elem507 = Partition() + _elem507.read(iprot) + self.partitions.append(_elem507) iprot.readListEnd() else: iprot.skip(ftype) @@ -11258,8 +11322,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 iter501 in self.partitions: - iter501.write(oprot) + for iter508 in self.partitions: + iter508.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11450,11 +11514,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype505, _size502) = iprot.readListBegin() - for _i506 in xrange(_size502): - _elem507 = ResourceUri() - _elem507.read(iprot) - self.resourceUris.append(_elem507) + (_etype512, _size509) = iprot.readListBegin() + for _i513 in xrange(_size509): + _elem514 = ResourceUri() + _elem514.read(iprot) + self.resourceUris.append(_elem514) iprot.readListEnd() else: iprot.skip(ftype) @@ -11504,8 +11568,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 iter508 in self.resourceUris: - iter508.write(oprot) + for iter515 in self.resourceUris: + iter515.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -11754,11 +11818,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype512, _size509) = iprot.readListBegin() - for _i513 in xrange(_size509): - _elem514 = TxnInfo() - _elem514.read(iprot) - self.open_txns.append(_elem514) + (_etype519, _size516) = iprot.readListBegin() + for _i520 in xrange(_size516): + _elem521 = TxnInfo() + _elem521.read(iprot) + self.open_txns.append(_elem521) iprot.readListEnd() else: iprot.skip(ftype) @@ -11779,8 +11843,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 iter515 in self.open_txns: - iter515.write(oprot) + for iter522 in self.open_txns: + iter522.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11851,10 +11915,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype519, _size516) = iprot.readListBegin() - for _i520 in xrange(_size516): - _elem521 = iprot.readI64() - self.open_txns.append(_elem521) + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = iprot.readI64() + self.open_txns.append(_elem528) iprot.readListEnd() else: iprot.skip(ftype) @@ -11885,8 +11949,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 iter522 in self.open_txns: - oprot.writeI64(iter522) + for iter529 in self.open_txns: + oprot.writeI64(iter529) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -11998,10 +12062,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.replSrcTxnIds = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = iprot.readI64() - self.replSrcTxnIds.append(_elem528) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = iprot.readI64() + self.replSrcTxnIds.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -12043,8 +12107,8 @@ def write(self, oprot): if self.replSrcTxnIds is not None: oprot.writeFieldBegin('replSrcTxnIds', TType.LIST, 6) oprot.writeListBegin(TType.I64, len(self.replSrcTxnIds)) - for iter529 in self.replSrcTxnIds: - oprot.writeI64(iter529) + for iter536 in self.replSrcTxnIds: + oprot.writeI64(iter536) oprot.writeListEnd() oprot.writeFieldEnd() if self.txn_type is not None: @@ -12112,10 +12176,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = iprot.readI64() - self.txn_ids.append(_elem535) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = iprot.readI64() + self.txn_ids.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -12132,8 +12196,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 iter536 in self.txn_ids: - oprot.writeI64(iter536) + for iter543 in self.txn_ids: + oprot.writeI64(iter543) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12267,10 +12331,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype540, _size537) = iprot.readListBegin() - for _i541 in xrange(_size537): - _elem542 = iprot.readI64() - self.txn_ids.append(_elem542) + (_etype547, _size544) = iprot.readListBegin() + for _i548 in xrange(_size544): + _elem549 = iprot.readI64() + self.txn_ids.append(_elem549) iprot.readListEnd() else: iprot.skip(ftype) @@ -12287,8 +12351,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 iter543 in self.txn_ids: - oprot.writeI64(iter543) + for iter550 in self.txn_ids: + oprot.writeI64(iter550) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12461,11 +12525,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.writeEventInfos = [] - (_etype547, _size544) = iprot.readListBegin() - for _i548 in xrange(_size544): - _elem549 = WriteEventInfo() - _elem549.read(iprot) - self.writeEventInfos.append(_elem549) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = WriteEventInfo() + _elem556.read(iprot) + self.writeEventInfos.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -12502,8 +12566,8 @@ def write(self, oprot): if self.writeEventInfos is not None: oprot.writeFieldBegin('writeEventInfos', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.writeEventInfos)) - for iter550 in self.writeEventInfos: - iter550.write(oprot) + for iter557 in self.writeEventInfos: + iter557.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.keyValue is not None: @@ -12604,10 +12668,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionList = [] - (_etype554, _size551) = iprot.readListBegin() - for _i555 in xrange(_size551): - _elem556 = iprot.readString() - self.partitionList.append(_elem556) + (_etype561, _size558) = iprot.readListBegin() + for _i562 in xrange(_size558): + _elem563 = iprot.readString() + self.partitionList.append(_elem563) iprot.readListEnd() else: iprot.skip(ftype) @@ -12645,8 +12709,8 @@ def write(self, oprot): if self.partitionList is not None: oprot.writeFieldBegin('partitionList', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionList)) - for iter557 in self.partitionList: - oprot.writeString(iter557) + for iter564 in self.partitionList: + oprot.writeString(iter564) oprot.writeListEnd() oprot.writeFieldEnd() if self.needUpdateDBReplId is not None: @@ -12902,10 +12966,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partNames = [] - (_etype561, _size558) = iprot.readListBegin() - for _i562 in xrange(_size558): - _elem563 = iprot.readString() - self.partNames.append(_elem563) + (_etype568, _size565) = iprot.readListBegin() + for _i569 in xrange(_size565): + _elem570 = iprot.readString() + self.partNames.append(_elem570) iprot.readListEnd() else: iprot.skip(ftype) @@ -12942,8 +13006,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter564 in self.partNames: - oprot.writeString(iter564) + for iter571 in self.partNames: + oprot.writeString(iter571) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13016,10 +13080,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype568, _size565) = iprot.readListBegin() - for _i569 in xrange(_size565): - _elem570 = iprot.readString() - self.fullTableNames.append(_elem570) + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = iprot.readString() + self.fullTableNames.append(_elem577) iprot.readListEnd() else: iprot.skip(ftype) @@ -13046,8 +13110,8 @@ def write(self, oprot): if self.fullTableNames is not None: oprot.writeFieldBegin('fullTableNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fullTableNames)) - for iter571 in self.fullTableNames: - oprot.writeString(iter571) + for iter578 in self.fullTableNames: + oprot.writeString(iter578) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -13133,10 +13197,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype575, _size572) = iprot.readListBegin() - for _i576 in xrange(_size572): - _elem577 = iprot.readI64() - self.invalidWriteIds.append(_elem577) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = iprot.readI64() + self.invalidWriteIds.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -13171,8 +13235,8 @@ def write(self, oprot): if self.invalidWriteIds is not None: oprot.writeFieldBegin('invalidWriteIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.invalidWriteIds)) - for iter578 in self.invalidWriteIds: - oprot.writeI64(iter578) + for iter585 in self.invalidWriteIds: + oprot.writeI64(iter585) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -13244,11 +13308,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype582, _size579) = iprot.readListBegin() - for _i583 in xrange(_size579): - _elem584 = TableValidWriteIds() - _elem584.read(iprot) - self.tblValidWriteIds.append(_elem584) + (_etype589, _size586) = iprot.readListBegin() + for _i590 in xrange(_size586): + _elem591 = TableValidWriteIds() + _elem591.read(iprot) + self.tblValidWriteIds.append(_elem591) iprot.readListEnd() else: iprot.skip(ftype) @@ -13265,8 +13329,8 @@ def write(self, oprot): if self.tblValidWriteIds is not None: oprot.writeFieldBegin('tblValidWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tblValidWriteIds)) - for iter585 in self.tblValidWriteIds: - iter585.write(oprot) + for iter592 in self.tblValidWriteIds: + iter592.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13342,10 +13406,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype589, _size586) = iprot.readListBegin() - for _i590 in xrange(_size586): - _elem591 = iprot.readI64() - self.txnIds.append(_elem591) + (_etype596, _size593) = iprot.readListBegin() + for _i597 in xrange(_size593): + _elem598 = iprot.readI64() + self.txnIds.append(_elem598) iprot.readListEnd() else: iprot.skip(ftype) @@ -13357,11 +13421,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype595, _size592) = iprot.readListBegin() - for _i596 in xrange(_size592): - _elem597 = TxnToWriteId() - _elem597.read(iprot) - self.srcTxnToWriteIdList.append(_elem597) + (_etype602, _size599) = iprot.readListBegin() + for _i603 in xrange(_size599): + _elem604 = TxnToWriteId() + _elem604.read(iprot) + self.srcTxnToWriteIdList.append(_elem604) iprot.readListEnd() else: iprot.skip(ftype) @@ -13386,8 +13450,8 @@ def write(self, oprot): if self.txnIds is not None: oprot.writeFieldBegin('txnIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.txnIds)) - for iter598 in self.txnIds: - oprot.writeI64(iter598) + for iter605 in self.txnIds: + oprot.writeI64(iter605) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -13397,8 +13461,8 @@ def write(self, oprot): if self.srcTxnToWriteIdList is not None: oprot.writeFieldBegin('srcTxnToWriteIdList', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.srcTxnToWriteIdList)) - for iter599 in self.srcTxnToWriteIdList: - iter599.write(oprot) + for iter606 in self.srcTxnToWriteIdList: + iter606.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13540,11 +13604,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype603, _size600) = iprot.readListBegin() - for _i604 in xrange(_size600): - _elem605 = TxnToWriteId() - _elem605.read(iprot) - self.txnToWriteIds.append(_elem605) + (_etype610, _size607) = iprot.readListBegin() + for _i611 in xrange(_size607): + _elem612 = TxnToWriteId() + _elem612.read(iprot) + self.txnToWriteIds.append(_elem612) iprot.readListEnd() else: iprot.skip(ftype) @@ -13561,8 +13625,8 @@ def write(self, oprot): if self.txnToWriteIds is not None: oprot.writeFieldBegin('txnToWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.txnToWriteIds)) - for iter606 in self.txnToWriteIds: - iter606.write(oprot) + for iter613 in self.txnToWriteIds: + iter613.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13790,11 +13854,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype610, _size607) = iprot.readListBegin() - for _i611 in xrange(_size607): - _elem612 = LockComponent() - _elem612.read(iprot) - self.component.append(_elem612) + (_etype617, _size614) = iprot.readListBegin() + for _i618 in xrange(_size614): + _elem619 = LockComponent() + _elem619.read(iprot) + self.component.append(_elem619) iprot.readListEnd() else: iprot.skip(ftype) @@ -13831,8 +13895,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 iter613 in self.component: - iter613.write(oprot) + for iter620 in self.component: + iter620.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -14530,11 +14594,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype617, _size614) = iprot.readListBegin() - for _i618 in xrange(_size614): - _elem619 = ShowLocksResponseElement() - _elem619.read(iprot) - self.locks.append(_elem619) + (_etype624, _size621) = iprot.readListBegin() + for _i625 in xrange(_size621): + _elem626 = ShowLocksResponseElement() + _elem626.read(iprot) + self.locks.append(_elem626) iprot.readListEnd() else: iprot.skip(ftype) @@ -14551,8 +14615,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 iter620 in self.locks: - iter620.write(oprot) + for iter627 in self.locks: + iter627.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14767,20 +14831,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype624, _size621) = iprot.readSetBegin() - for _i625 in xrange(_size621): - _elem626 = iprot.readI64() - self.aborted.add(_elem626) + (_etype631, _size628) = iprot.readSetBegin() + for _i632 in xrange(_size628): + _elem633 = iprot.readI64() + self.aborted.add(_elem633) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype630, _size627) = iprot.readSetBegin() - for _i631 in xrange(_size627): - _elem632 = iprot.readI64() - self.nosuch.add(_elem632) + (_etype637, _size634) = iprot.readSetBegin() + for _i638 in xrange(_size634): + _elem639 = iprot.readI64() + self.nosuch.add(_elem639) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14797,15 +14861,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 iter633 in self.aborted: - oprot.writeI64(iter633) + for iter640 in self.aborted: + oprot.writeI64(iter640) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter634 in self.nosuch: - oprot.writeI64(iter634) + for iter641 in self.nosuch: + oprot.writeI64(iter641) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14902,11 +14966,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype636, _vtype637, _size635 ) = iprot.readMapBegin() - for _i639 in xrange(_size635): - _key640 = iprot.readString() - _val641 = iprot.readString() - self.properties[_key640] = _val641 + (_ktype643, _vtype644, _size642 ) = iprot.readMapBegin() + for _i646 in xrange(_size642): + _key647 = iprot.readString() + _val648 = iprot.readString() + self.properties[_key647] = _val648 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14943,9 +15007,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 kiter642,viter643 in self.properties.items(): - oprot.writeString(kiter642) - oprot.writeString(viter643) + for kiter649,viter650 in self.properties.items(): + oprot.writeString(kiter649) + oprot.writeString(viter650) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15662,11 +15726,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype647, _size644) = iprot.readListBegin() - for _i648 in xrange(_size644): - _elem649 = ShowCompactResponseElement() - _elem649.read(iprot) - self.compacts.append(_elem649) + (_etype654, _size651) = iprot.readListBegin() + for _i655 in xrange(_size651): + _elem656 = ShowCompactResponseElement() + _elem656.read(iprot) + self.compacts.append(_elem656) iprot.readListEnd() else: iprot.skip(ftype) @@ -15683,8 +15747,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 iter650 in self.compacts: - iter650.write(oprot) + for iter657 in self.compacts: + iter657.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15773,10 +15837,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = iprot.readString() - self.partitionnames.append(_elem656) + (_etype661, _size658) = iprot.readListBegin() + for _i662 in xrange(_size658): + _elem663 = iprot.readString() + self.partitionnames.append(_elem663) iprot.readListEnd() else: iprot.skip(ftype) @@ -15814,8 +15878,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter657 in self.partitionnames: - oprot.writeString(iter657) + for iter664 in self.partitionnames: + oprot.writeString(iter664) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -16048,10 +16112,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.SET: self.tablesUsed = set() - (_etype661, _size658) = iprot.readSetBegin() - for _i662 in xrange(_size658): - _elem663 = iprot.readString() - self.tablesUsed.add(_elem663) + (_etype668, _size665) = iprot.readSetBegin() + for _i669 in xrange(_size665): + _elem670 = iprot.readString() + self.tablesUsed.add(_elem670) iprot.readSetEnd() else: iprot.skip(ftype) @@ -16090,8 +16154,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 4) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter664 in self.tablesUsed: - oprot.writeString(iter664) + for iter671 in self.tablesUsed: + oprot.writeString(iter671) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -16180,10 +16244,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.eventTypeSkipList = [] - (_etype668, _size665) = iprot.readListBegin() - for _i669 in xrange(_size665): - _elem670 = iprot.readString() - self.eventTypeSkipList.append(_elem670) + (_etype675, _size672) = iprot.readListBegin() + for _i676 in xrange(_size672): + _elem677 = iprot.readString() + self.eventTypeSkipList.append(_elem677) iprot.readListEnd() else: iprot.skip(ftype) @@ -16208,8 +16272,8 @@ def write(self, oprot): if self.eventTypeSkipList is not None: oprot.writeFieldBegin('eventTypeSkipList', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.eventTypeSkipList)) - for iter671 in self.eventTypeSkipList: - oprot.writeString(iter671) + for iter678 in self.eventTypeSkipList: + oprot.writeString(iter678) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16429,11 +16493,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype675, _size672) = iprot.readListBegin() - for _i676 in xrange(_size672): - _elem677 = NotificationEvent() - _elem677.read(iprot) - self.events.append(_elem677) + (_etype682, _size679) = iprot.readListBegin() + for _i683 in xrange(_size679): + _elem684 = NotificationEvent() + _elem684.read(iprot) + self.events.append(_elem684) iprot.readListEnd() else: iprot.skip(ftype) @@ -16450,8 +16514,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 iter678 in self.events: - iter678.write(oprot) + for iter685 in self.events: + iter685.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16774,30 +16838,30 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype682, _size679) = iprot.readListBegin() - for _i683 in xrange(_size679): - _elem684 = iprot.readString() - self.filesAdded.append(_elem684) + (_etype689, _size686) = iprot.readListBegin() + for _i690 in xrange(_size686): + _elem691 = iprot.readString() + self.filesAdded.append(_elem691) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype688, _size685) = iprot.readListBegin() - for _i689 in xrange(_size685): - _elem690 = iprot.readString() - self.filesAddedChecksum.append(_elem690) + (_etype695, _size692) = iprot.readListBegin() + for _i696 in xrange(_size692): + _elem697 = iprot.readString() + self.filesAddedChecksum.append(_elem697) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.subDirectoryList = [] - (_etype694, _size691) = iprot.readListBegin() - for _i695 in xrange(_size691): - _elem696 = iprot.readString() - self.subDirectoryList.append(_elem696) + (_etype701, _size698) = iprot.readListBegin() + for _i702 in xrange(_size698): + _elem703 = iprot.readString() + self.subDirectoryList.append(_elem703) iprot.readListEnd() else: iprot.skip(ftype) @@ -16818,22 +16882,22 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter697 in self.filesAdded: - oprot.writeString(iter697) + for iter704 in self.filesAdded: + oprot.writeString(iter704) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter698 in self.filesAddedChecksum: - oprot.writeString(iter698) + for iter705 in self.filesAddedChecksum: + oprot.writeString(iter705) oprot.writeListEnd() oprot.writeFieldEnd() if self.subDirectoryList is not None: oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) - for iter699 in self.subDirectoryList: - oprot.writeString(iter699) + for iter706 in self.subDirectoryList: + oprot.writeString(iter706) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16992,10 +17056,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype703, _size700) = iprot.readListBegin() - for _i704 in xrange(_size700): - _elem705 = iprot.readString() - self.partitionVals.append(_elem705) + (_etype710, _size707) = iprot.readListBegin() + for _i711 in xrange(_size707): + _elem712 = iprot.readString() + self.partitionVals.append(_elem712) iprot.readListEnd() else: iprot.skip(ftype) @@ -17033,8 +17097,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 iter706 in self.partitionVals: - oprot.writeString(iter706) + for iter713 in self.partitionVals: + oprot.writeString(iter713) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -17186,10 +17250,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionVals = [] - (_etype710, _size707) = iprot.readListBegin() - for _i711 in xrange(_size707): - _elem712 = iprot.readString() - self.partitionVals.append(_elem712) + (_etype717, _size714) = iprot.readListBegin() + for _i718 in xrange(_size714): + _elem719 = iprot.readString() + self.partitionVals.append(_elem719) iprot.readListEnd() else: iprot.skip(ftype) @@ -17226,8 +17290,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter713 in self.partitionVals: - oprot.writeString(iter713) + for iter720 in self.partitionVals: + oprot.writeString(iter720) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17421,12 +17485,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype715, _vtype716, _size714 ) = iprot.readMapBegin() - for _i718 in xrange(_size714): - _key719 = iprot.readI64() - _val720 = MetadataPpdResult() - _val720.read(iprot) - self.metadata[_key719] = _val720 + (_ktype722, _vtype723, _size721 ) = iprot.readMapBegin() + for _i725 in xrange(_size721): + _key726 = iprot.readI64() + _val727 = MetadataPpdResult() + _val727.read(iprot) + self.metadata[_key726] = _val727 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17448,9 +17512,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 kiter721,viter722 in self.metadata.items(): - oprot.writeI64(kiter721) - viter722.write(oprot) + for kiter728,viter729 in self.metadata.items(): + oprot.writeI64(kiter728) + viter729.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -17520,10 +17584,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype726, _size723) = iprot.readListBegin() - for _i727 in xrange(_size723): - _elem728 = iprot.readI64() - self.fileIds.append(_elem728) + (_etype733, _size730) = iprot.readListBegin() + for _i734 in xrange(_size730): + _elem735 = iprot.readI64() + self.fileIds.append(_elem735) iprot.readListEnd() else: iprot.skip(ftype) @@ -17555,8 +17619,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 iter729 in self.fileIds: - oprot.writeI64(iter729) + for iter736 in self.fileIds: + oprot.writeI64(iter736) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -17630,11 +17694,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype731, _vtype732, _size730 ) = iprot.readMapBegin() - for _i734 in xrange(_size730): - _key735 = iprot.readI64() - _val736 = iprot.readString() - self.metadata[_key735] = _val736 + (_ktype738, _vtype739, _size737 ) = iprot.readMapBegin() + for _i741 in xrange(_size737): + _key742 = iprot.readI64() + _val743 = iprot.readString() + self.metadata[_key742] = _val743 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17656,9 +17720,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 kiter737,viter738 in self.metadata.items(): - oprot.writeI64(kiter737) - oprot.writeString(viter738) + for kiter744,viter745 in self.metadata.items(): + oprot.writeI64(kiter744) + oprot.writeString(viter745) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -17719,10 +17783,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype742, _size739) = iprot.readListBegin() - for _i743 in xrange(_size739): - _elem744 = iprot.readI64() - self.fileIds.append(_elem744) + (_etype749, _size746) = iprot.readListBegin() + for _i750 in xrange(_size746): + _elem751 = iprot.readI64() + self.fileIds.append(_elem751) iprot.readListEnd() else: iprot.skip(ftype) @@ -17739,8 +17803,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 iter745 in self.fileIds: - oprot.writeI64(iter745) + for iter752 in self.fileIds: + oprot.writeI64(iter752) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17846,20 +17910,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype749, _size746) = iprot.readListBegin() - for _i750 in xrange(_size746): - _elem751 = iprot.readI64() - self.fileIds.append(_elem751) + (_etype756, _size753) = iprot.readListBegin() + for _i757 in xrange(_size753): + _elem758 = iprot.readI64() + self.fileIds.append(_elem758) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype755, _size752) = iprot.readListBegin() - for _i756 in xrange(_size752): - _elem757 = iprot.readString() - self.metadata.append(_elem757) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = iprot.readString() + self.metadata.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -17881,15 +17945,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 iter758 in self.fileIds: - oprot.writeI64(iter758) + for iter765 in self.fileIds: + oprot.writeI64(iter765) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter759 in self.metadata: - oprot.writeString(iter759) + for iter766 in self.metadata: + oprot.writeString(iter766) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -17997,10 +18061,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype763, _size760) = iprot.readListBegin() - for _i764 in xrange(_size760): - _elem765 = iprot.readI64() - self.fileIds.append(_elem765) + (_etype770, _size767) = iprot.readListBegin() + for _i771 in xrange(_size767): + _elem772 = iprot.readI64() + self.fileIds.append(_elem772) iprot.readListEnd() else: iprot.skip(ftype) @@ -18017,8 +18081,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 iter766 in self.fileIds: - oprot.writeI64(iter766) + for iter773 in self.fileIds: + oprot.writeI64(iter773) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18247,11 +18311,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = Function() - _elem772.read(iprot) - self.functions.append(_elem772) + (_etype777, _size774) = iprot.readListBegin() + for _i778 in xrange(_size774): + _elem779 = Function() + _elem779.read(iprot) + self.functions.append(_elem779) iprot.readListEnd() else: iprot.skip(ftype) @@ -18268,8 +18332,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 iter773 in self.functions: - iter773.write(oprot) + for iter780 in self.functions: + iter780.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18321,10 +18385,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = iprot.readI32() - self.values.append(_elem779) + (_etype784, _size781) = iprot.readListBegin() + for _i785 in xrange(_size781): + _elem786 = iprot.readI32() + self.values.append(_elem786) iprot.readListEnd() else: iprot.skip(ftype) @@ -18341,8 +18405,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 iter780 in self.values: - oprot.writeI32(iter780) + for iter787 in self.values: + oprot.writeI32(iter787) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18379,6 +18443,8 @@ class GetTableRequest: - catName - validWriteIdList - getColumnStats + - processorCapabilities + - processorIdentifier """ thrift_spec = ( @@ -18390,15 +18456,19 @@ class GetTableRequest: None, # 5 (6, TType.STRING, 'validWriteIdList', None, None, ), # 6 (7, TType.BOOL, 'getColumnStats', None, None, ), # 7 + (8, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 8 + (9, TType.STRING, 'processorIdentifier', None, None, ), # 9 ) - def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, validWriteIdList=None, getColumnStats=None,): + def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, validWriteIdList=None, getColumnStats=None, processorCapabilities=None, processorIdentifier=None,): self.dbName = dbName self.tblName = tblName self.capabilities = capabilities self.catName = catName self.validWriteIdList = validWriteIdList self.getColumnStats = getColumnStats + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier 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: @@ -18440,6 +18510,21 @@ def read(self, iprot): self.getColumnStats = iprot.readBool() else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = iprot.readString() + self.processorCapabilities.append(_elem793) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.processorIdentifier = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -18474,6 +18559,17 @@ def write(self, oprot): oprot.writeFieldBegin('getColumnStats', TType.BOOL, 7) oprot.writeBool(self.getColumnStats) oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 8) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter794 in self.processorCapabilities: + oprot.writeString(iter794) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 9) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18493,6 +18589,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.catName) value = (value * 31) ^ hash(self.validWriteIdList) value = (value * 31) ^ hash(self.getColumnStats) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) return value def __repr__(self): @@ -18594,6 +18692,8 @@ class GetTablesRequest: - tblNames - capabilities - catName + - processorCapabilities + - processorIdentifier """ thrift_spec = ( @@ -18602,13 +18702,17 @@ class GetTablesRequest: (2, TType.LIST, 'tblNames', (TType.STRING,None), None, ), # 2 (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 (4, TType.STRING, 'catName', None, None, ), # 4 + (5, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 5 + (6, TType.STRING, 'processorIdentifier', None, None, ), # 6 ) - def __init__(self, dbName=None, tblNames=None, capabilities=None, catName=None,): + def __init__(self, dbName=None, tblNames=None, capabilities=None, catName=None, processorCapabilities=None, processorIdentifier=None,): self.dbName = dbName self.tblNames = tblNames self.capabilities = capabilities self.catName = catName + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier 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: @@ -18627,10 +18731,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype784, _size781) = iprot.readListBegin() - for _i785 in xrange(_size781): - _elem786 = iprot.readString() - self.tblNames.append(_elem786) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readString() + self.tblNames.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) @@ -18645,6 +18749,21 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = iprot.readString() + self.processorCapabilities.append(_elem806) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.processorIdentifier = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -18662,8 +18781,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 iter787 in self.tblNames: - oprot.writeString(iter787) + for iter807 in self.tblNames: + oprot.writeString(iter807) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -18674,6 +18793,17 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 4) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter808 in self.processorCapabilities: + oprot.writeString(iter808) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 6) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18689,6 +18819,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.tblNames) value = (value * 31) ^ hash(self.capabilities) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) return value def __repr__(self): @@ -18728,11 +18860,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype791, _size788) = iprot.readListBegin() - for _i792 in xrange(_size788): - _elem793 = Table() - _elem793.read(iprot) - self.tables.append(_elem793) + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = Table() + _elem814.read(iprot) + self.tables.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -18749,8 +18881,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 iter794 in self.tables: - iter794.write(oprot) + for iter815 in self.tables: + iter815.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18778,6 +18910,266 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class GetTablesExtRequest: + """ + Attributes: + - catalog + - database + - tableNamePattern + - requestedFields + - limit + - processorCapabilities + - processorIdentifier + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catalog', None, None, ), # 1 + (2, TType.STRING, 'database', None, None, ), # 2 + (3, TType.STRING, 'tableNamePattern', None, None, ), # 3 + (4, TType.I32, 'requestedFields', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 6 + (7, TType.STRING, 'processorIdentifier', None, None, ), # 7 + ) + + def __init__(self, catalog=None, database=None, tableNamePattern=None, requestedFields=None, limit=None, processorCapabilities=None, processorIdentifier=None,): + self.catalog = catalog + self.database = database + self.tableNamePattern = tableNamePattern + self.requestedFields = requestedFields + self.limit = limit + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier + + 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.catalog = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.database = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableNamePattern = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.requestedFields = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.limit = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype819, _size816) = iprot.readListBegin() + for _i820 in xrange(_size816): + _elem821 = iprot.readString() + self.processorCapabilities.append(_elem821) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.processorIdentifier = 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('GetTablesExtRequest') + if self.catalog is not None: + oprot.writeFieldBegin('catalog', TType.STRING, 1) + oprot.writeString(self.catalog) + oprot.writeFieldEnd() + if self.database is not None: + oprot.writeFieldBegin('database', TType.STRING, 2) + oprot.writeString(self.database) + oprot.writeFieldEnd() + if self.tableNamePattern is not None: + oprot.writeFieldBegin('tableNamePattern', TType.STRING, 3) + oprot.writeString(self.tableNamePattern) + oprot.writeFieldEnd() + if self.requestedFields is not None: + oprot.writeFieldBegin('requestedFields', TType.I32, 4) + oprot.writeI32(self.requestedFields) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 5) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter822 in self.processorCapabilities: + oprot.writeString(iter822) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 7) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.catalog is None: + raise TProtocol.TProtocolException(message='Required field catalog is unset!') + if self.database is None: + raise TProtocol.TProtocolException(message='Required field database is unset!') + if self.tableNamePattern is None: + raise TProtocol.TProtocolException(message='Required field tableNamePattern is unset!') + if self.requestedFields is None: + raise TProtocol.TProtocolException(message='Required field requestedFields is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.catalog) + value = (value * 31) ^ hash(self.database) + value = (value * 31) ^ hash(self.tableNamePattern) + value = (value * 31) ^ hash(self.requestedFields) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) + 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 ExtendedTableInfo: + """ + Attributes: + - tblName + - accessType + - processorCapabilities + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'tblName', None, None, ), # 1 + (2, TType.I32, 'accessType', None, None, ), # 2 + (3, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 3 + ) + + def __init__(self, tblName=None, accessType=None, processorCapabilities=None,): + self.tblName = tblName + self.accessType = accessType + self.processorCapabilities = processorCapabilities + + 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.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.accessType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = iprot.readString() + self.processorCapabilities.append(_elem828) + 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('ExtendedTableInfo') + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 1) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.accessType is not None: + oprot.writeFieldBegin('accessType', TType.I32, 2) + oprot.writeI32(self.accessType) + oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter829 in self.processorCapabilities: + oprot.writeString(iter829) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.accessType) + value = (value * 31) ^ hash(self.processorCapabilities) + 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 CmRecycleRequest: """ Attributes: @@ -20049,44 +20441,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = WMPool() - _elem800.read(iprot) - self.pools.append(_elem800) + (_etype833, _size830) = iprot.readListBegin() + for _i834 in xrange(_size830): + _elem835 = WMPool() + _elem835.read(iprot) + self.pools.append(_elem835) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype804, _size801) = iprot.readListBegin() - for _i805 in xrange(_size801): - _elem806 = WMMapping() - _elem806.read(iprot) - self.mappings.append(_elem806) + (_etype839, _size836) = iprot.readListBegin() + for _i840 in xrange(_size836): + _elem841 = WMMapping() + _elem841.read(iprot) + self.mappings.append(_elem841) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype810, _size807) = iprot.readListBegin() - for _i811 in xrange(_size807): - _elem812 = WMTrigger() - _elem812.read(iprot) - self.triggers.append(_elem812) + (_etype845, _size842) = iprot.readListBegin() + for _i846 in xrange(_size842): + _elem847 = WMTrigger() + _elem847.read(iprot) + self.triggers.append(_elem847) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype816, _size813) = iprot.readListBegin() - for _i817 in xrange(_size813): - _elem818 = WMPoolTrigger() - _elem818.read(iprot) - self.poolTriggers.append(_elem818) + (_etype851, _size848) = iprot.readListBegin() + for _i852 in xrange(_size848): + _elem853 = WMPoolTrigger() + _elem853.read(iprot) + self.poolTriggers.append(_elem853) iprot.readListEnd() else: iprot.skip(ftype) @@ -20107,29 +20499,29 @@ def write(self, oprot): if self.pools is not None: oprot.writeFieldBegin('pools', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.pools)) - for iter819 in self.pools: - iter819.write(oprot) + for iter854 in self.pools: + iter854.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter820 in self.mappings: - iter820.write(oprot) + for iter855 in self.mappings: + iter855.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter821 in self.triggers: - iter821.write(oprot) + for iter856 in self.triggers: + iter856.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter822 in self.poolTriggers: - iter822.write(oprot) + for iter857 in self.poolTriggers: + iter857.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20654,11 +21046,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype826, _size823) = iprot.readListBegin() - for _i827 in xrange(_size823): - _elem828 = WMResourcePlan() - _elem828.read(iprot) - self.resourcePlans.append(_elem828) + (_etype861, _size858) = iprot.readListBegin() + for _i862 in xrange(_size858): + _elem863 = WMResourcePlan() + _elem863.read(iprot) + self.resourcePlans.append(_elem863) iprot.readListEnd() else: iprot.skip(ftype) @@ -20675,8 +21067,8 @@ def write(self, oprot): if self.resourcePlans is not None: oprot.writeFieldBegin('resourcePlans', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.resourcePlans)) - for iter829 in self.resourcePlans: - iter829.write(oprot) + for iter864 in self.resourcePlans: + iter864.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21006,20 +21398,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype833, _size830) = iprot.readListBegin() - for _i834 in xrange(_size830): - _elem835 = iprot.readString() - self.errors.append(_elem835) + (_etype868, _size865) = iprot.readListBegin() + for _i869 in xrange(_size865): + _elem870 = iprot.readString() + self.errors.append(_elem870) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype839, _size836) = iprot.readListBegin() - for _i840 in xrange(_size836): - _elem841 = iprot.readString() - self.warnings.append(_elem841) + (_etype874, _size871) = iprot.readListBegin() + for _i875 in xrange(_size871): + _elem876 = iprot.readString() + self.warnings.append(_elem876) iprot.readListEnd() else: iprot.skip(ftype) @@ -21036,15 +21428,15 @@ def write(self, oprot): if self.errors is not None: oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter842 in self.errors: - oprot.writeString(iter842) + for iter877 in self.errors: + oprot.writeString(iter877) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter843 in self.warnings: - oprot.writeString(iter843) + for iter878 in self.warnings: + oprot.writeString(iter878) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21660,11 +22052,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype847, _size844) = iprot.readListBegin() - for _i848 in xrange(_size844): - _elem849 = WMTrigger() - _elem849.read(iprot) - self.triggers.append(_elem849) + (_etype882, _size879) = iprot.readListBegin() + for _i883 in xrange(_size879): + _elem884 = WMTrigger() + _elem884.read(iprot) + self.triggers.append(_elem884) iprot.readListEnd() else: iprot.skip(ftype) @@ -21681,8 +22073,8 @@ def write(self, oprot): if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter850 in self.triggers: - iter850.write(oprot) + for iter885 in self.triggers: + iter885.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22892,11 +23284,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype854, _size851) = iprot.readListBegin() - for _i855 in xrange(_size851): - _elem856 = FieldSchema() - _elem856.read(iprot) - self.cols.append(_elem856) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = FieldSchema() + _elem891.read(iprot) + self.cols.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) @@ -22956,8 +23348,8 @@ def write(self, oprot): if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter857 in self.cols: - iter857.write(oprot) + for iter892 in self.cols: + iter892.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -23212,11 +23604,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in xrange(_size858): - _elem863 = SchemaVersionDescriptor() - _elem863.read(iprot) - self.schemaVersions.append(_elem863) + (_etype896, _size893) = iprot.readListBegin() + for _i897 in xrange(_size893): + _elem898 = SchemaVersionDescriptor() + _elem898.read(iprot) + self.schemaVersions.append(_elem898) iprot.readListEnd() else: iprot.skip(ftype) @@ -23233,8 +23625,8 @@ def write(self, oprot): if self.schemaVersions is not None: oprot.writeFieldBegin('schemaVersions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.schemaVersions)) - for iter864 in self.schemaVersions: - iter864.write(oprot) + for iter899 in self.schemaVersions: + iter899.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23719,11 +24111,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype868, _size865) = iprot.readListBegin() - for _i869 in xrange(_size865): - _elem870 = Partition() - _elem870.read(iprot) - self.partitions.append(_elem870) + (_etype903, _size900) = iprot.readListBegin() + for _i904 in xrange(_size900): + _elem905 = Partition() + _elem905.read(iprot) + self.partitions.append(_elem905) iprot.readListEnd() else: iprot.skip(ftype) @@ -23768,8 +24160,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter871 in self.partitions: - iter871.write(oprot) + for iter906 in self.partitions: + iter906.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: @@ -23921,10 +24313,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype875, _size872) = iprot.readListBegin() - for _i876 in xrange(_size872): - _elem877 = iprot.readString() - self.partVals.append(_elem877) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in xrange(_size907): + _elem912 = iprot.readString() + self.partVals.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) @@ -23964,8 +24356,8 @@ def write(self, oprot): if self.partVals is not None: oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter878 in self.partVals: - oprot.writeString(iter878) + for iter913 in self.partVals: + oprot.writeString(iter913) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: @@ -24287,10 +24679,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype882, _size879) = iprot.readListBegin() - for _i883 in xrange(_size879): - _elem884 = iprot.readString() - self.fieldList.append(_elem884) + (_etype917, _size914) = iprot.readListBegin() + for _i918 in xrange(_size914): + _elem919 = iprot.readString() + self.fieldList.append(_elem919) iprot.readListEnd() else: iprot.skip(ftype) @@ -24317,8 +24709,8 @@ def write(self, oprot): if self.fieldList is not None: oprot.writeFieldBegin('fieldList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fieldList)) - for iter885 in self.fieldList: - oprot.writeString(iter885) + for iter920 in self.fieldList: + oprot.writeString(iter920) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: @@ -24394,10 +24786,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype889, _size886) = iprot.readListBegin() - for _i890 in xrange(_size886): - _elem891 = iprot.readString() - self.filters.append(_elem891) + (_etype924, _size921) = iprot.readListBegin() + for _i925 in xrange(_size921): + _elem926 = iprot.readString() + self.filters.append(_elem926) iprot.readListEnd() else: iprot.skip(ftype) @@ -24418,8 +24810,8 @@ def write(self, oprot): if self.filters is not None: oprot.writeFieldBegin('filters', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.filters)) - for iter892 in self.filters: - oprot.writeString(iter892) + for iter927 in self.filters: + oprot.writeString(iter927) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24472,11 +24864,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype896, _size893) = iprot.readListBegin() - for _i897 in xrange(_size893): - _elem898 = PartitionSpec() - _elem898.read(iprot) - self.partitionSpec.append(_elem898) + (_etype931, _size928) = iprot.readListBegin() + for _i932 in xrange(_size928): + _elem933 = PartitionSpec() + _elem933.read(iprot) + self.partitionSpec.append(_elem933) iprot.readListEnd() else: iprot.skip(ftype) @@ -24493,8 +24885,8 @@ def write(self, oprot): if self.partitionSpec is not None: oprot.writeFieldBegin('partitionSpec', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionSpec)) - for iter899 in self.partitionSpec: - iter899.write(oprot) + for iter934 in self.partitionSpec: + iter934.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24531,6 +24923,8 @@ class GetPartitionsRequest: - groupNames - projectionSpec - filterSpec + - processorCapabilities + - processorIdentifier """ thrift_spec = ( @@ -24543,9 +24937,11 @@ class GetPartitionsRequest: (6, TType.LIST, 'groupNames', (TType.STRING,None), None, ), # 6 (7, TType.STRUCT, 'projectionSpec', (GetPartitionsProjectionSpec, GetPartitionsProjectionSpec.thrift_spec), None, ), # 7 (8, TType.STRUCT, 'filterSpec', (GetPartitionsFilterSpec, GetPartitionsFilterSpec.thrift_spec), None, ), # 8 + (9, TType.LIST, 'processorCapabilities', (TType.STRING,None), None, ), # 9 + (10, TType.STRING, 'processorIdentifier', None, None, ), # 10 ) - def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user=None, groupNames=None, projectionSpec=None, filterSpec=None,): + def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user=None, groupNames=None, projectionSpec=None, filterSpec=None, processorCapabilities=None, processorIdentifier=None,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -24554,6 +24950,8 @@ def __init__(self, catName=None, dbName=None, tblName=None, withAuth=None, user= self.groupNames = groupNames self.projectionSpec = projectionSpec self.filterSpec = filterSpec + self.processorCapabilities = processorCapabilities + self.processorIdentifier = processorIdentifier 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: @@ -24592,10 +24990,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype903, _size900) = iprot.readListBegin() - for _i904 in xrange(_size900): - _elem905 = iprot.readString() - self.groupNames.append(_elem905) + (_etype938, _size935) = iprot.readListBegin() + for _i939 in xrange(_size935): + _elem940 = iprot.readString() + self.groupNames.append(_elem940) iprot.readListEnd() else: iprot.skip(ftype) @@ -24611,6 +25009,21 @@ def read(self, iprot): self.filterSpec.read(iprot) else: iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype944, _size941) = iprot.readListBegin() + for _i945 in xrange(_size941): + _elem946 = iprot.readString() + self.processorCapabilities.append(_elem946) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.processorIdentifier = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -24644,8 +25057,8 @@ def write(self, oprot): if self.groupNames is not None: oprot.writeFieldBegin('groupNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.groupNames)) - for iter906 in self.groupNames: - oprot.writeString(iter906) + for iter947 in self.groupNames: + oprot.writeString(iter947) oprot.writeListEnd() oprot.writeFieldEnd() if self.projectionSpec is not None: @@ -24656,6 +25069,17 @@ def write(self, oprot): oprot.writeFieldBegin('filterSpec', TType.STRUCT, 8) self.filterSpec.write(oprot) oprot.writeFieldEnd() + if self.processorCapabilities is not None: + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 9) + oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) + for iter948 in self.processorCapabilities: + oprot.writeString(iter948) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 10) + oprot.writeString(self.processorIdentifier) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24673,6 +25097,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.groupNames) value = (value * 31) ^ hash(self.projectionSpec) value = (value * 31) ^ hash(self.filterSpec) + value = (value * 31) ^ hash(self.processorCapabilities) + value = (value * 31) ^ hash(self.processorIdentifier) return value def __repr__(self): diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_constants.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_constants.rb index b2982dbdf4..2b117280f8 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_constants.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_constants.rb @@ -9,6 +9,14 @@ require 'hive_metastore_types' DDL_TIME = %q"transient_lastDdlTime" +ACCESSTYPE_NONE = 1 + +ACCESSTYPE_READONLY = 2 + +ACCESSTYPE_WRITEONLY = 4 + +ACCESSTYPE_READWRITE = 8 + HIVE_FILTER_FIELD_OWNER = %q"hive_filter_field_owner__" HIVE_FILTER_FIELD_PARAMS = %q"hive_filter_field_params__" diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index ac95307136..1731233048 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -164,6 +164,14 @@ module TxnType VALID_VALUES = Set.new([DEFAULT, REPL_CREATED, READ_ONLY, COMPACTION]).freeze end +module GetTablesExtRequestFields + ACCESS_TYPE = 1 + PROCESSOR_CAPABILITIES = 2 + ALL = 2147483647 + VALUE_MAP = {1 => "ACCESS_TYPE", 2 => "PROCESSOR_CAPABILITIES", 2147483647 => "ALL"} + VALID_VALUES = Set.new([ACCESS_TYPE, PROCESSOR_CAPABILITIES, ALL]).freeze +end + module FileMetadataExprType ORC_SARG = 1 VALUE_MAP = {1 => "ORC_SARG"} @@ -1128,6 +1136,7 @@ class Table WRITEID = 20 ISSTATSCOMPLIANT = 21 COLSTATS = 22 + ACCESSTYPE = 23 FIELDS = { ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, @@ -1151,7 +1160,8 @@ class Table OWNERTYPE => {:type => ::Thrift::Types::I32, :name => 'ownerType', :default => 1, :optional => true, :enum_class => ::PrincipalType}, WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, ISSTATSCOMPLIANT => {:type => ::Thrift::Types::BOOL, :name => 'isStatsCompliant', :optional => true}, - COLSTATS => {:type => ::Thrift::Types::STRUCT, :name => 'colStats', :class => ::ColumnStatistics, :optional => true} + COLSTATS => {:type => ::Thrift::Types::STRUCT, :name => 'colStats', :class => ::ColumnStatistics, :optional => true}, + ACCESSTYPE => {:type => ::Thrift::Types::BYTE, :name => 'accessType', :optional => true} } def struct_fields; FIELDS; end @@ -2476,12 +2486,16 @@ class GetPartitionsByNamesRequest TBL_NAME = 2 NAMES = 3 GET_COL_STATS = 4 + PROCESSORCAPABILITIES = 5 + PROCESSORIDENTIFIER = 6 FIELDS = { DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}, NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, - GET_COL_STATS => {:type => ::Thrift::Types::BOOL, :name => 'get_col_stats', :optional => true} + GET_COL_STATS => {:type => ::Thrift::Types::BOOL, :name => 'get_col_stats', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} } def struct_fields; FIELDS; end @@ -4103,6 +4117,8 @@ class GetTableRequest CATNAME = 4 VALIDWRITEIDLIST = 6 GETCOLUMNSTATS = 7 + PROCESSORCAPABILITIES = 8 + PROCESSORIDENTIFIER = 9 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -4110,7 +4126,9 @@ class GetTableRequest CAPABILITIES => {:type => ::Thrift::Types::STRUCT, :name => 'capabilities', :class => ::ClientCapabilities, :optional => true}, CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, - GETCOLUMNSTATS => {:type => ::Thrift::Types::BOOL, :name => 'getColumnStats', :optional => true} + GETCOLUMNSTATS => {:type => ::Thrift::Types::BOOL, :name => 'getColumnStats', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} } def struct_fields; FIELDS; end @@ -4148,12 +4166,16 @@ class GetTablesRequest TBLNAMES = 2 CAPABILITIES = 3 CATNAME = 4 + PROCESSORCAPABILITIES = 5 + PROCESSORIDENTIFIER = 6 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, TBLNAMES => {:type => ::Thrift::Types::LIST, :name => 'tblNames', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, CAPABILITIES => {:type => ::Thrift::Types::STRUCT, :name => 'capabilities', :class => ::ClientCapabilities, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} } def struct_fields; FIELDS; end @@ -4182,6 +4204,59 @@ class GetTablesResult ::Thrift::Struct.generate_accessors self end +class GetTablesExtRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + CATALOG = 1 + DATABASE = 2 + TABLENAMEPATTERN = 3 + REQUESTEDFIELDS = 4 + LIMIT = 5 + PROCESSORCAPABILITIES = 6 + PROCESSORIDENTIFIER = 7 + + FIELDS = { + CATALOG => {:type => ::Thrift::Types::STRING, :name => 'catalog'}, + DATABASE => {:type => ::Thrift::Types::STRING, :name => 'database'}, + TABLENAMEPATTERN => {:type => ::Thrift::Types::STRING, :name => 'tableNamePattern'}, + REQUESTEDFIELDS => {:type => ::Thrift::Types::I32, :name => 'requestedFields'}, + LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field catalog is unset!') unless @catalog + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field database is unset!') unless @database + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tableNamePattern is unset!') unless @tableNamePattern + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field requestedFields is unset!') unless @requestedFields + end + + ::Thrift::Struct.generate_accessors self +end + +class ExtendedTableInfo + include ::Thrift::Struct, ::Thrift::Struct_Union + TBLNAME = 1 + ACCESSTYPE = 2 + PROCESSORCAPABILITIES = 3 + + FIELDS = { + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + ACCESSTYPE => {:type => ::Thrift::Types::I32, :name => 'accessType', :optional => true}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + end + + ::Thrift::Struct.generate_accessors self +end + class CmRecycleRequest include ::Thrift::Struct, ::Thrift::Struct_Union DATAPATH = 1 @@ -5529,6 +5604,8 @@ class GetPartitionsRequest GROUPNAMES = 6 PROJECTIONSPEC = 7 FILTERSPEC = 8 + PROCESSORCAPABILITIES = 9 + PROCESSORIDENTIFIER = 10 FIELDS = { CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, @@ -5538,7 +5615,9 @@ class GetPartitionsRequest USER => {:type => ::Thrift::Types::STRING, :name => 'user', :optional => true}, GROUPNAMES => {:type => ::Thrift::Types::LIST, :name => 'groupNames', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, PROJECTIONSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'projectionSpec', :class => ::GetPartitionsProjectionSpec}, - FILTERSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'filterSpec', :class => ::GetPartitionsFilterSpec} + FILTERSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'filterSpec', :class => ::GetPartitionsFilterSpec}, + PROCESSORCAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'processorCapabilities', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, + PROCESSORIDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'processorIdentifier', :optional => true} } def struct_fields; FIELDS; end diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 39c671a6be..a10c642c43 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -707,6 +707,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_objects_by_name failed: unknown result') end + def get_tables_ext(req) + send_get_tables_ext(req) + return recv_get_tables_ext() + end + + def send_get_tables_ext(req) + send_message('get_tables_ext', Get_tables_ext_args, :req => req) + end + + def recv_get_tables_ext() + result = receive_message(Get_tables_ext_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables_ext failed: unknown result') + end + def get_table_req(req) send_get_table_req(req) return recv_get_table_req() @@ -4264,6 +4280,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_table_objects_by_name', seqid) end + def process_get_tables_ext(seqid, iprot, oprot) + args = read_args(iprot, Get_tables_ext_args) + result = Get_tables_ext_result.new() + begin + result.success = @handler.get_tables_ext(args.req) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'get_tables_ext', seqid) + end + def process_get_table_req(seqid, iprot, oprot) args = read_args(iprot, Get_table_req_args) result = Get_table_req_result.new() @@ -8027,6 +8054,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_tables_ext_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetTablesExtRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_tables_ext_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExtendedTableInfo}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_table_req_args include ::Thrift::Struct, ::Thrift::Struct_Union REQ = 1 diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 6357d06b5a..e1c512e2d7 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -142,6 +142,8 @@ private int retries = 5; private long retryDelaySeconds = 0; private final ClientCapabilities version; + private static String[] processorCapabilities; + private static String processorIdentifier; //copied from ErrorMsg.java private static final String REPL_EVENTS_MISSING_IN_METASTORE = "Notification events are missing in the meta store."; @@ -719,6 +721,14 @@ public void close() { } } + public void setProcessorCapabilities(final String[] capabilities) { + this.processorCapabilities = capabilities; + } + + public void setProcessorIdentifier(final String id) { + this.processorIdentifier = id; + } + @Override public void setMetaConf(String key, String value) throws TException { client.setMetaConf(key, value); @@ -1652,12 +1662,14 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException @Override public List listPartitions(String db_name, String tbl_name, short max_parts) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects return listPartitions(getDefaultCatalog(conf), db_name, tbl_name, max_parts); } @Override public List listPartitions(String catName, String db_name, String tbl_name, int max_parts) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects List parts = client.get_partitions(prependCatalogToDbName(catName, db_name, conf), tbl_name, shrinkMaxtoShort(max_parts)); return deepCopyPartitions( @@ -1681,12 +1693,14 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri @Override public List listPartitions(String db_name, String tbl_name, List part_vals, short max_parts) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects return listPartitions(getDefaultCatalog(conf), db_name, tbl_name, part_vals, max_parts); } @Override public List listPartitions(String catName, String db_name, String tbl_name, List part_vals, int max_parts) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects List parts = client.get_partitions_ps(prependCatalogToDbName(catName, db_name, conf), tbl_name, part_vals, shrinkMaxtoShort(max_parts)); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); @@ -1696,6 +1710,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri public List listPartitionsWithAuthInfo(String db_name, String tbl_name, short max_parts, String user_name, List group_names) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects return listPartitionsWithAuthInfo(getDefaultCatalog(conf), db_name, tbl_name, max_parts, user_name, group_names); } @@ -1704,6 +1719,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri public List listPartitionsWithAuthInfo(String catName, String dbName, String tableName, int maxParts, String userName, List groupNames) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects List parts = client.get_partitions_with_auth(prependCatalogToDbName(catName, dbName, conf), tableName, shrinkMaxtoShort(maxParts), userName, groupNames); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); @@ -1714,6 +1730,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri List part_vals, short max_parts, String user_name, List group_names) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects return listPartitionsWithAuthInfo(getDefaultCatalog(conf), db_name, tbl_name, part_vals, max_parts, user_name, group_names); } @@ -1723,6 +1740,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri List partialPvals, int maxParts, String userName, List groupNames) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects List parts = client.get_partitions_ps_with_auth(prependCatalogToDbName(catName, dbName, conf), tableName, partialPvals, shrinkMaxtoShort(maxParts), userName, groupNames); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); @@ -1737,6 +1755,7 @@ public PartitionSpecProxy listPartitionSpecs(String catName, String dbName, Stri @Override public List listPartitionsByFilter(String catName, String db_name, String tbl_name, String filter, int max_parts) throws TException { + // TODO should we add capabilities here as well as it returns Partition objects List parts =client.get_partitions_by_filter(prependCatalogToDbName( catName, db_name, conf), tbl_name, filter, shrinkMaxtoShort(max_parts)); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); @@ -1852,6 +1871,11 @@ public Partition getPartition(String catName, String dbName, String tblName, tbl_name); gpbnr.setNames(part_names); gpbnr.setGet_col_stats(getColStats); + if (processorCapabilities != null) + gpbnr.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + if (processorIdentifier != null) + gpbnr.setProcessorIdentifier(processorIdentifier); + List parts = client.get_partitions_by_names_req(gpbnr).getPartitions(); return deepCopyPartitions(FilterUtils.filterPartitionsIfEnabled(isClientFilterEnabled, filterHook, parts)); } @@ -1908,6 +1932,11 @@ public Table getTable(String catName, String dbName, String tableName, boolean g req.setCatName(catName); req.setCapabilities(version); req.setGetColumnStats(getColumnStats); + if (processorCapabilities != null) + req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + if (processorIdentifier != null) + req.setProcessorIdentifier(processorIdentifier); + Table t = client.get_table_req(req).getTable(); return deepCopy(FilterUtils.filterTableIfEnabled(isClientFilterEnabled, filterHook, t)); } @@ -1926,6 +1955,11 @@ public Table getTable(String catName, String dbName, String tableName, String va req.setCapabilities(version); req.setValidWriteIdList(validWriteIdList); req.setGetColumnStats(getColumnStats); + if (processorCapabilities != null) + req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + if (processorIdentifier != null) + req.setProcessorIdentifier(processorIdentifier); + Table t = client.get_table_req(req).getTable(); return deepCopy(FilterUtils.filterTableIfEnabled(isClientFilterEnabled, filterHook, t)); } @@ -1943,6 +1977,8 @@ public Table getTable(String catName, String dbName, String tableName, String va req.setCatName(catName); req.setTblNames(tableNames); req.setCapabilities(version); + if (processorCapabilities != null) + req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); List
tabs = client.get_table_objects_by_name_req(req).getTables(); return deepCopyTables(FilterUtils.filterTablesIfEnabled(isClientFilterEnabled, filterHook, tabs)); } @@ -2031,6 +2067,22 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE return FilterUtils.filterTableNamesIfEnabled(isClientFilterEnabled, filterHook, catName, dbName, tables); } + /** {@inheritDoc} */ + @Override + public List getTablesExt(String catName, String dbName, String tablePattern, + int requestedFields, List processorCapabilities, + String processorId, int limit) throws MetaException, TException { + if (catName == null) + catName = getDefaultCatalog(conf); + GetTablesExtRequest req = new GetTablesExtRequest(catName, dbName, tablePattern, requestedFields); + req.setLimit(limit); + if (processorCapabilities != null) + req.setProcessorCapabilities(processorCapabilities); + if (processorIdentifier != null) + req.setProcessorIdentifier(processorIdentifier); + return client.get_tables_ext(req); + } + @Override public List getMaterializedViewsForRewriting(String dbName) throws TException { return getMaterializedViewsForRewriting(getDefaultCatalog(conf), dbName); @@ -3802,6 +3854,10 @@ public void addRuntimeStat(RuntimeStat stat) throws TException { @Override public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request) throws TException { + if (processorCapabilities != null) + request.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + if (processorIdentifier != null) + request.setProcessorIdentifier(processorIdentifier); return client.get_partitions_with_specs(request); } @@ -3844,4 +3900,73 @@ public void setHadoopJobid(String jobId, long cqId) throws MetaException, TExcep public String getServerVersion() throws TException { return client.getVersion(); } + + /** + * Builder for requiredFields bitmask to be sent via GetTablesExtRequest + */ + public static class GetTablesRequestBuilder { + private int requestedFields = 0x0; + final static GetTablesExtRequestFields defValue = GetTablesExtRequestFields.ALL; + + public GetTablesRequestBuilder() { + } + + public GetTablesRequestBuilder with(GetTablesExtRequestFields type) { + switch (type) { + case ALL : + this.requestedFields |= Integer.MAX_VALUE; + break; + case PROCESSOR_CAPABILITIES : + this.requestedFields |= 0x2; + break; + case ACCESS_TYPE : + this.requestedFields |= 0x1; + break; + default: + this.requestedFields |= Integer.MAX_VALUE; + break; + } + return this; + } + + public int bitValue() { + return this.requestedFields; + } + + public static int defaultValue() { + return new GetTablesRequestBuilder().with(defValue).bitValue(); + } + } + + /** + * Builder for building table capabilities to be includes in TBLPROPERTIES + * during createTable + */ + public static class TableCapabilityBuilder { + private String capabilitiesString = null; + public static final String KEY_CAPABILITIES = "OBJCAPABILITIES"; + + public TableCapabilityBuilder() { + capabilitiesString = new String(); + } + + public TableCapabilityBuilder add(String skill) { + if (skill != null) { + capabilitiesString += skill + ","; + } + return this; + } + + public String build() { + return this.capabilitiesString.substring(0, capabilitiesString.length() - 1); + } + + public String getDBValue() { + return KEY_CAPABILITIES + "=" + build(); + } + + public static String getKey() { + return KEY_CAPABILITIES; + } + } } diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 7af9245cb7..1e2dadd2fd 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -50,6 +50,7 @@ import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; +import org.apache.hadoop.hive.metastore.api.ExtendedTableInfo; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp; import org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst; @@ -65,6 +66,7 @@ import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; +import org.apache.hadoop.hive.metastore.api.GetTablesExtRequestFields; import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -334,6 +336,22 @@ void dropCatalog(String catName) List getTables(String catName, String dbName, String tablePattern, TableType tableType) throws MetaException, TException, UnknownDBException; + /** + Get the names of all the tables along with extended table metadata + * @param catName catalog name. + * @param dbName Name of the database to fetch tables from. + * @param tablePattern pattern to match the tables names. + * @param requestedFields An int bitmask to indicate the depth of the returned objects + * @param processorCapabilities A list of "capabilities" possessed by the caller, to be matched with table's params + * @param processorId Any string id to identify the caller/client, for logging purposes only. + * @param limit Maximum size of the result set. <=0 indicates no limit + * @return List of ExtendedTableInfo that match the input arguments. + * @throws MetaException Thrown if there is error on fetching from DBMS. + * @throws TException Thrown if there is a thrift transport exception. + */ + public List getTablesExt(String catName, String dbName, String tablePattern, int requestedFields, + List processorCapabilities, String processorId, int limit) throws MetaException, TException; + /** * Get materialized views that have rewriting enabled. This will use the default catalog. * @param dbName Name of the database to fetch materialized views from. diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java index bac9d012c6..c0d891961a 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java @@ -750,6 +750,12 @@ public static ConfVars getMetaConf(String name) { "metastore.partition.management.table.pattern", "*", "Automatic partition management will look for tables using the specified table pattern"), + METASTORE_METADATA_TRANSFORMER_CLASS("metastore.metadata.transformer.class", "metastore.metadata.transformer.class", + "org.apache.hadoop.hive.metastore.MetastoreDefaultTransformer", + "Fully qualified class name for the metastore metadata transformer class \n" + + "which is used by HMS Server to fetch the extended tables/partitions information \n" + + "based on the data processor capabilities \n" + + " This class should implement the IMetaStoreMetadataTransformer interface"), MULTITHREADED("javax.jdo.option.Multithreaded", "javax.jdo.option.Multithreaded", true, "Set this to true if multiple threads access metastore through JDO concurrently."), MAX_OPEN_TXNS("metastore.max.open.txns", "hive.max.open.txns", 100000, diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index 19bc713c31..e8343affa7 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -29,6 +29,10 @@ namespace php metastore namespace cpp Apache.Hadoop.Hive const string DDL_TIME = "transient_lastDdlTime" +const byte ACCESSTYPE_NONE = 1; +const byte ACCESSTYPE_READONLY = 2; +const byte ACCESSTYPE_WRITEONLY = 4; +const byte ACCESSTYPE_READWRITE = 8; struct Version { 1: string version, @@ -448,7 +452,8 @@ struct Table { 19: optional PrincipalType ownerType = PrincipalType.USER, // owner type of this table (default to USER for backward compatibility) 20: optional i64 writeId=-1, 21: optional bool isStatsCompliant, - 22: optional ColumnStatistics colStats // column statistics for table + 22: optional ColumnStatistics colStats, // column statistics for table + 23: optional byte accessType } struct Partition { @@ -831,7 +836,9 @@ struct GetPartitionsByNamesRequest { 1: required string db_name, 2: required string tbl_name, 3: optional list names, - 4: optional bool get_col_stats + 4: optional bool get_col_stats, + 5: optional list processorCapabilities, + 6: optional string processorIdentifier } struct GetPartitionsByNamesResult { @@ -855,6 +862,13 @@ enum TxnType { COMPACTION = 3 } +// specifies which info to return with GetTablesExtRequest +enum GetTablesExtRequestFields { + ACCESS_TYPE = 1, // return accessType + PROCESSOR_CAPABILITIES = 2, // return ALL Capabilities for each Tables + ALL = 2147483647 +} + struct ResourceUri { 1: ResourceType resourceType, 2: string uri, @@ -1329,7 +1343,6 @@ enum ClientCapability { INSERT_ONLY_TABLES = 2 } - struct ClientCapabilities { 1: required list values } @@ -1340,7 +1353,9 @@ struct GetTableRequest { 3: optional ClientCapabilities capabilities, 4: optional string catName, 6: optional string validWriteIdList, - 7: optional bool getColumnStats + 7: optional bool getColumnStats, + 8: optional list processorCapabilities, + 9: optional string processorIdentifier } struct GetTableResult { @@ -1352,13 +1367,32 @@ struct GetTablesRequest { 1: required string dbName, 2: optional list tblNames, 3: optional ClientCapabilities capabilities, - 4: optional string catName + 4: optional string catName, + 5: optional list processorCapabilities, + 6: optional string processorIdentifier } struct GetTablesResult { 1: required list
tables } +struct GetTablesExtRequest { + 1: required string catalog, + 2: required string database, + 3: required string tableNamePattern, // table name matching pattern + 4: required i32 requestedFields, // ORed GetTablesExtRequestFields + 5: optional i32 limit, // maximum number of tables returned (0=all) + 6: optional list processorCapabilities, // list of capabilities “possessed” by the client + 7: optional string processorIdentifier +} + +// response to GetTablesExtRequest call +struct ExtendedTableInfo { + 1: required string tblName, // always returned + 2: optional i32 accessType, // if AccessType set + 3: optional list processorCapabilities // if ProcessorCapabilities set +} + // Request type for cm_recycle struct CmRecycleRequest { 1: required string dataPath, @@ -1787,7 +1821,9 @@ struct GetPartitionsRequest { 5: optional string user, 6: optional list groupNames, 7: GetPartitionsProjectionSpec projectionSpec - 8: GetPartitionsFilterSpec filterSpec // TODO not yet implemented. Must be present but ignored + 8: GetPartitionsFilterSpec filterSpec, // TODO not yet implemented. Must be present but ignored + 9: optional list processorCapabilities, + 10: optional string processorIdentifier } // Exceptions. @@ -1945,6 +1981,7 @@ service ThriftHiveMetastore extends fb303.FacebookService Table get_table(1:string dbname, 2:string tbl_name) throws (1:MetaException o1, 2:NoSuchObjectException o2) list
get_table_objects_by_name(1:string dbname, 2:list tbl_names) + list get_tables_ext(1: GetTablesExtRequest req) throws (1: MetaException o1) GetTableResult get_table_req(1:GetTableRequest req) throws (1:MetaException o1, 2:NoSuchObjectException o2) GetTablesResult get_table_objects_by_name_req(1:GetTablesRequest req) throws (1:MetaException o1, 2:InvalidOperationException o2, 3:UnknownDBException o3) diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index f1983c510d..2cdc20bc64 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -278,6 +278,7 @@ public static boolean isRenameAllowed(Database srcDB, Database destDB) { private FileMetadataManager fileMetadataManager; private PartitionExpressionProxy expressionProxy; private StorageSchemaReader storageSchemaReader; + private IMetaStoreMetadataTransformer transformer; // Variables for metrics // Package visible so that HMSMetricsListener can see them. @@ -629,6 +630,26 @@ public void init() throws MetaException { isServerFilterEnabled = getIfServerFilterenabled(); filterHook = isServerFilterEnabled ? loadFilterHooks() : null; + + String className = MetastoreConf.getVar(conf, MetastoreConf.ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS); + Class clazz; + try { + clazz = conf.getClassByName(className); + } catch (ClassNotFoundException e) { + LOG.error("Unable to load class " + className, e); + throw new IllegalArgumentException(e); + } + Constructor constructor; + try { + constructor = clazz.getConstructor(); + if (!constructor.isAccessible()) + throw new IllegalArgumentException("Illegal implementation for metadata transformer. Constructor is private"); + transformer = (IMetaStoreMetadataTransformer) constructor.newInstance(); + } catch (NoSuchMethodException | InstantiationException | IllegalAccessException + | IllegalArgumentException | InvocationTargetException e) { + LOG.error("Unable to create instance of class " + className, e); + throw new IllegalArgumentException(e); + } } /** @@ -3028,17 +3049,90 @@ public Table get_table(final String dbname, final String name) throws MetaExcept parsedDbName[CAT_NAME], parsedDbName[DB_NAME], name, null, null, false); } + @Override + public List get_tables_ext(final GetTablesExtRequest req) throws MetaException { + List tables = new ArrayList(); + List ret = new ArrayList(); + String catalog = req.getCatalog(); + String database = req.getDatabase(); + String pattern = req.getTableNamePattern(); + List processorCapabilities = req.getProcessorCapabilities(); + String processorId = req.getProcessorIdentifier(); + int limit = req.getLimit(); + List
tObjects = new ArrayList<>(); + + startTableFunction("get_tables_ext", catalog, database, pattern); + Exception ex = null; + try { + tables = getMS().getTables(catalog, database, pattern, null); + LOG.debug("get_tables_ext:getTables() returned " + tables.size()); + tables = FilterUtils.filterTableNamesIfEnabled(isServerFilterEnabled, filterHook, + catalog, database, tables); + + if (tables.size() > 0) { + tObjects = getMS().getTableObjectsByName(catalog, database, tables); + LOG.debug("get_tables_ext:getTableObjectsByName() returned " + tObjects.size()); + if (processorCapabilities != null && processorCapabilities.size() > 0) { + if (transformer != null) { + Map> retMap = transformer.transform(tObjects, processorCapabilities, processorId); + tObjects = new ArrayList<>(retMap.keySet()); + } + } + } + + LOG.debug("get_tables_ext:tranform() returned " + tObjects.size()); + // TODO convert to ExtendedTableInfo + ret = convertTableToExtendedTable(tObjects, processorCapabilities, req.getRequestedFields()); + } catch (MetaException e) { + ex = e; + throw e; + } catch (Exception e) { + ex = e; + throw newMetaException(e); + } finally { + endFunction("get_tables_ext", ret != null, ex); + } + return ret; + } + + private List convertTableToExtendedTable (List
tables, + List processorCapabilities, int mask) { + List ret = new ArrayList(); + ExtendedTableInfo extTable = null; + + for (Table table : tables) { + extTable = new ExtendedTableInfo(table.getTableName()); + if ((mask & GetTablesExtRequestFields.ACCESS_TYPE.getValue()) == GetTablesExtRequestFields.ACCESS_TYPE.getValue()) + extTable.setAccessType(table.getAccessType()); + + if ((mask & GetTablesExtRequestFields.PROCESSOR_CAPABILITIES.getValue()) + == GetTablesExtRequestFields.PROCESSOR_CAPABILITIES.getValue()) + extTable.setProcessorCapabilities(processorCapabilities); + + ret.add(extTable); + } + return ret; + } + @Override public GetTableResult get_table_req(GetTableRequest req) throws MetaException, NoSuchObjectException { String catName = req.isSetCatName() ? req.getCatName() : getDefaultCatalog(conf); return new GetTableResult(getTableInternal(catName, req.getDbName(), req.getTblName(), - req.getCapabilities(), req.getValidWriteIdList(), req.isGetColumnStats())); + req.getCapabilities(), req.getValidWriteIdList(), req.isGetColumnStats(), + req.getProcessorCapabilities(), req.getProcessorIdentifier())); } private Table getTableInternal(String catName, String dbname, String name, ClientCapabilities capabilities, String writeIdList, boolean getColumnStats) throws MetaException, NoSuchObjectException { + return getTableInternal(catName, dbname, name, capabilities, writeIdList, getColumnStats, null, null); + } + + private Table getTableInternal(String catName, String dbname, String name, + ClientCapabilities capabilities, String writeIdList, boolean getColumnStats, + List processorCapabilities, String processorId) + throws MetaException, NoSuchObjectException { if (isInTest) { assertClientHasCapability(capabilities, ClientCapability.TEST_CAPABILITY, "Hive tests", "get_table_req"); @@ -3054,6 +3148,18 @@ private Table getTableInternal(String catName, String dbname, String name, "insert-only tables", "get_table_req"); } + // TODO call the translation provider here, perhaps move into a new method + if (processorCapabilities != null && processorCapabilities.size() > 0 && transformer != null) { + List
tList = new ArrayList<>(); + tList.add(t); + Map> ret = transformer.transform(tList, processorCapabilities, processorId); + if (ret.size() > 1) { + LOG.warn("Unexpected resultiset size:" + ret.size()); + throw new MetaException("Unexpected result from metadata transformer:return list size=" + ret.size()); + } + t = (Table)(ret.keySet().iterator().next()); + } + firePreEvent(new PreReadTableEvent(t, this)); } catch (MetaException | NoSuchObjectException e) { ex = e; @@ -3064,7 +3170,6 @@ private Table getTableInternal(String catName, String dbname, String name, return t; } - @Override public List get_table_meta(String dbnames, String tblNames, List tblTypes) throws MetaException, NoSuchObjectException { @@ -4717,6 +4822,14 @@ public Partition get_partition(final String db_name, final String tbl_name, fireReadTablePreEvent(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tbl_name); ret = getMS().getPartition(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tbl_name, part_vals); ret = FilterUtils.filterPartitionIfEnabled(isServerFilterEnabled, filterHook, ret); +/* + // TODO + if (processorCapabilities != null && processorCapabilities.size() > 0 && transformer != null) { + List pList = new ArrayList(); + pList.add(ret); + ret = (transformer.transform(pList, processorCapabilities, processorId)).get(0); // TODO unsafe to assume list is not empty + } +*/ } catch (Exception e) { ex = e; throwMetaException(e); @@ -4761,6 +4874,7 @@ public Partition get_partition_with_auth(final String db_name, ret = getMS().getPartitionWithAuth(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tbl_name, part_vals, user_name, group_names); ret = FilterUtils.filterPartitionIfEnabled(isServerFilterEnabled, filterHook, ret); + // TODO should this transformed as well? } catch (InvalidObjectException e) { ex = e; throw new NoSuchObjectException(e.getMessage()); @@ -4924,6 +5038,15 @@ public GetPartitionsResponse get_partitions_with_specs(GetPartitionsRequest requ List partitions = getMS() .getPartitionSpecsByFilterAndProjection(table, request.getProjectionSpec(), request.getFilterSpec()); + // TODO + List processorCapabilities = request.getProcessorCapabilities(); + String processorId = request.getProcessorIdentifier(); + if (processorCapabilities != null && processorCapabilities.size() > 0) { + if (transformer != null) { + // Map> transformed = transformer.transformPartitions(partitions, processorCapabilities, processorId); + // partitions = new ArrayList(transformed.keySet()); + } + } List partitionSpecs = MetaStoreServerUtils.getPartitionspecsGroupedByStorageDescriptor(table, partitions); response = new GetPartitionsResponse(); @@ -5683,6 +5806,11 @@ public Partition get_partition_by_name(final String db_name, final String tbl_na ret = get_partition_by_name_core(getMS(), parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tbl_name, part_name); ret = FilterUtils.filterPartitionIfEnabled(isServerFilterEnabled, filterHook, ret); +/* + List pList = new ArrayList(); + plist.add(ret); + ret = (transformer.transform(pList, processorCapabilities, processorId)).get(0); // TODO unsafe to assume list is not empty +*/ } catch (Exception e) { ex = e; rethrowException(e); @@ -6300,6 +6428,12 @@ public boolean delete_table_column_statistics(String dbName, String tableName, S ret = getMS().getPartitionsByFilter(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tblName, filter, maxParts); ret = FilterUtils.filterPartitionsIfEnabled(isServerFilterEnabled, filterHook, ret); +/* + // TODO + if (processorCapabilities != null && processorCapabilities.size() > 0 && transformer != null) { + ret = transformer.transform(ret, processorCapabilities, processorId); + } +*/ } catch (Exception e) { ex = e; rethrowException(e); @@ -6433,12 +6567,19 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam throws TException { List partitions = get_partitions_by_names(gpbnr.getDb_name(), gpbnr.getTbl_name(), gpbnr.getNames(), - gpbnr.isSetGet_col_stats() && gpbnr.isGet_col_stats()); + gpbnr.isSetGet_col_stats() && gpbnr.isGet_col_stats(), gpbnr.getProcessorCapabilities(), + gpbnr.getProcessorIdentifier()); return new GetPartitionsByNamesResult(partitions); } public List get_partitions_by_names(final String dbName, final String tblName, final List partNames, boolean getColStats) throws TException { + return get_partitions_by_names(dbName, tblName, partNames, getColStats, null, null); + } + + public List get_partitions_by_names(final String dbName, final String tblName, + final List partNames, boolean getColStats, List processorCapabilities, + String processorId) throws TException { String[] dbNameParts = parseDbName(dbName, conf); String parsedCatName = dbNameParts[CAT_NAME]; @@ -6477,6 +6618,12 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam } } + // TODO + if (transformer != null) { + if (processorCapabilities != null && processorCapabilities.size() > 0) { + // ret = transformer.transform(ret, processorCapabilities, processorId); + } + } success = getMS().commitTransaction(); } catch (Exception e) { ex = e; diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java new file mode 100644 index 0000000000..ad423a2d66 --- /dev/null +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreMetadataTransformer.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.metastore; + +import java.util.List; +import java.util.Map; + +import org.apache.hadoop.classification.InterfaceAudience; +import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; + +/** + * This interface provides a way for users to implement a custom metadata transformer for tables/partitions. + * This transformer can match and manipulate the data to be returned to the data processor + * The classes implementing this interface should be in the HMS classpath, if this configuration is turned on. + */ +@InterfaceAudience.Public +@InterfaceStability.Evolving +public interface IMetaStoreMetadataTransformer { + + /** + * @param table A Table object to be transformed + * @param processorCapabilities A array of String capabilities received from the data processor + * @param processorId String ID used for logging purpose. + * @return Map A Map of transformed objects keyed by Table and value is list of required capabilities + * @throws HiveMetaException + */ + // TODO HiveMetaException or MetaException + public Map> transform(List
tables, List processorCapabilities, String processorId) throws MetaException; + + + /** + * @param parts A list of Partition objects to be transformed + * @param processorCapabilities A array of String capabilities received from the data processor + * @param processorId String ID used for logging purpose. + * @return Map A Map of transformed objects keyed by Partition and value is list of required capabilities + * @throws HiveMetaException + */ + // TODO HiveMetaException or MetaException + public Map> transformPartitions(List parts, List processorCapabilities, String processorId) throws MetaException; +} diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java new file mode 100644 index 0000000000..92800c2ccf --- /dev/null +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java @@ -0,0 +1,297 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.metastore; + +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_NONE; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READONLY; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READWRITE; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_WRITEONLY; + +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.StorageDescriptor; +import org.apache.hadoop.hive.metastore.api.Table; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.google.common.collect.ImmutableMap; + +public class MetastoreDefaultTransformer implements IMetaStoreMetadataTransformer { + public static final Logger LOG = LoggerFactory.getLogger(MetastoreDefaultTransformer.class); + + public MetastoreDefaultTransformer() throws HiveMetaException { + } + + @Override + public Map> transform(List
objects, List processorCapabilities, String processorId) throws MetaException { + LOG.info("Starting translation for processor " + processorId + " on list " + objects.size()); + Map> ret = null; + + for (Object object : objects) { + if (object instanceof Table) { + LOG.info("Object instance of Table"); + ret = new HashMap>(); + Table table = (Table)object; + Map params = table.getParameters(); + String tableType = table.getTableType(); + String tCapabilities = params.get("OBJCAPABILITIES"); + int numBuckets = table.getSd().getNumBuckets(); + boolean isBucketed = (numBuckets > 0) ? true : false; + List generated = new ArrayList(); + + LOG.info("Table " + table.getTableName() + ",#bucket=" + numBuckets + ",isBucketed:" + isBucketed + ",tableType=" + tableType + ",tableCapabilities=" + tCapabilities); + + // if the table has no tCapabilities, then generate default ones + if (tCapabilities == null) { + LOG.info("Table has no specific required capabilities"); + + switch (tableType) { + case "EXTERNAL_TABLE": + Table newTable = new Table(table); + generated.add("EXTREAD"); + generated.add("EXTWRITE"); + + if (numBuckets > 0) { + generated.add("HIVEBUCKET2"); + if (processorCapabilities.contains("HIVEBUCKET2")) { + newTable.setAccessType(ACCESSTYPE_READWRITE); + } else { + newTable.setAccessType(ACCESSTYPE_READONLY); + StorageDescriptor newSd = new StorageDescriptor(table.getSd()); + newSd.setNumBuckets(-1); // remove bucketing info + newTable.setSd(newSd); + } + } else { // Unbucketed, so RW for all + newTable.setAccessType(ACCESSTYPE_READWRITE); + } + + ret.put(newTable, generated); + break; + case "MANAGED_TABLE": + String txnal = params.get("transactional"); + if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table + table.setAccessType(ACCESSTYPE_READWRITE); + // table does not require any capabilities for full RW + break; + } + + if (txnal != null && txnal.equalsIgnoreCase("TRUE")) { // ACID table + if (!(processorCapabilities.contains("CONNECTORREAD") || + processorCapabilities.contains("HIVEFULLACIDREAD") || + processorCapabilities.contains("HIVEMANAGEDINSERTREAD"))) { + table.setAccessType(ACCESSTYPE_NONE); // clients have no access to ACID tables without capabilities + generated.add("CONNECTORREAD"); + generated.add("CONNECTORWRITE"); + generated.add("HIVECACHEINVALIDATE"); + generated.add("HIVEMANAGEDSTATS"); + } + + String txntype = params.get("transactional_properties"); + if (txntype != null && txntype.equalsIgnoreCase("insert_only")) { // MICRO_MANAGED Tables + generated.add("HIVEMANAGEDINSERTREAD"); + generated.add("HIVEMANAGEDINSERTWRITE"); + // MGD table is insert only, not full ACID + if (processorCapabilities.contains("HIVEMANAGEDINSERTWRITE") || processorCapabilities.contains("CONNECTORWRITE")) { + table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to INSERT-ONLY ACID tables + } else if (processorCapabilities.contains("HIVEMANAGEDINSERTREAD") || processorCapabilities.contains("CONNECTORREAD")) { + table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to INSERT-ONLY ACID tables + } else { + table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to INSERT-ONLY ACID tables + } + } else { // FULL ACID MANAGED TABLE + generated.add("HIVEFULLACIDWRITE"); + generated.add("HIVEFULLACIDREAD"); + if (processorCapabilities.contains("HIVEFULLACIDWRITE") || processorCapabilities.contains("CONNECTORWRITE")) { + table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to IUD ACID tables + } else if (processorCapabilities.contains("HIVEFULLACIDREAD") || processorCapabilities.contains("CONNECTORREAD")) { + table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to IUD ACID tables + } else { + table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to IUD ACID tables + } + } + } + ret.put(table, generated); + break; + case "VIRTUAL_VIEW": + generated.add("HIVESQL"); + if (processorCapabilities.contains("HIVESQL") || + processorCapabilities.contains("CONNECTORREAD")) { + table.setAccessType(ACCESSTYPE_READONLY); + } else { + table.setAccessType(ACCESSTYPE_NONE); + } + ret.put(table, generated); + break; + case "MATERIALIZED_VIEW": + generated.add("CONNECTORREAD"); + generated.add("HIVEFULLACIDREAD"); + generated.add("HIVEONLYMQTWRITE"); + generated.add("HIVEMANAGEDSTATS"); + generated.add("HIVEMQT"); + if ((processorCapabilities.contains("CONNECTORREAD") || + processorCapabilities.contains("HIVEFULLACIDREAD")) && processorCapabilities.contains("HIVEMQT")) { + LOG.info("Processor has one of the READ abilities and HIVEMQT, AccessType=RO"); + table.setAccessType(ACCESSTYPE_READONLY); + } else { + LOG.info("Processor has no READ abilities or HIVEMQT, AccessType=None"); + table.setAccessType(ACCESSTYPE_NONE); + } + ret.put(table, generated); + break; + default: + table.setAccessType(ACCESSTYPE_NONE); + break; + } + ret.put(table,generated); + continue; + } + + // WITH CAPABLITIES ON TABLE + tCapabilities = tCapabilities.replaceAll("\\s","").toUpperCase(); // remove spaces between tCapabilities + toUppercase + List requiredCapabilities = Arrays.asList(tCapabilities.split(",")); + switch (tableType) { + case "EXTERNAL_TABLE": + if (processorCapabilities.containsAll(requiredCapabilities)) { + // AccessType is RW + LOG.info("Abilities for match: Table type=" + tableType + ",accesstype is RW"); + table.setAccessType(ACCESSTYPE_READWRITE); + ret.put(table, requiredCapabilities); + break; + } + + Table newTable = new Table(table); + boolean removedBucketing = false; + + if (requiredCapabilities.contains("HIVEBUCKET2") && !processorCapabilities.contains("HIVEBUCKET2")) { + StorageDescriptor newSd = new StorageDescriptor(table.getSd()); + newSd.setNumBuckets(-1); // removing bucketing if HIVEBUCKET2 isnt specified + newTable.setSd(newSd); + removedBucketing = true; + newTable.setAccessType(ACCESSTYPE_READONLY); + LOG.info("Removed bucketing information from table"); + } + + if (requiredCapabilities.contains("EXTWRITE") && processorCapabilities.contains("EXTWRITE")) { + if (!removedBucketing) { + LOG.info("EXTWRITE Matches, accessType=" + ACCESSTYPE_READWRITE); + newTable.setAccessType(ACCESSTYPE_READWRITE); + } + } else if (requiredCapabilities.contains("EXTREAD") && processorCapabilities.contains("EXTREAD")) { + LOG.info("EXTREAD Matches, accessType=" + ACCESSTYPE_READONLY); + newTable.setAccessType(ACCESSTYPE_READONLY); + } else { + LOG.info("No Matches, accessType=" + ACCESSTYPE_NONE); + newTable.setAccessType(ACCESSTYPE_NONE); + } + + LOG.info("setting required to " + requiredCapabilities); + ret.put(newTable, requiredCapabilities); + break; + case "MANAGED_TABLE": + if (processorCapabilities.containsAll(requiredCapabilities)) { + // AccessType is RW + LOG.info("Abilities for match: Table type=" + tableType + ",accesstype is RW"); + table.setAccessType(ACCESSTYPE_READWRITE); + ret.put(table, requiredCapabilities); + continue; + } + + String txnal = params.get("transactional"); + if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table + LOG.info("Table is non ACID: ,accesstype is RW"); + table.setAccessType(ACCESSTYPE_READWRITE); + // table does not require any capabilities for full RW + break; + } + + if (txnal != null && txnal.equalsIgnoreCase("TRUE")) { // ACID table + String txntype = params.get("transactional_properties"); + if (txntype != null && txntype.equalsIgnoreCase("insert_only")) { // MICRO_MANAGED Tables + LOG.info("Table is INSERTONLY ACID: ,accesstype is RW"); + // MGD table is insert only, not full ACID + if ((processorCapabilities.contains("HIVEMANAGEDINSERTWRITE") && requiredCapabilities.contains("HIVEMANAGEDINSERTWRITE")) + || (processorCapabilities.contains("CONNECTORWRITE") && requiredCapabilities.contains("CONNECTORWRITE"))) { + table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to INSERT-ONLY ACID tables + } else if ((processorCapabilities.contains("HIVEMANAGEDINSERTREAD") && requiredCapabilities.contains("HIVEMANAGEDINSERTREAD")) + || (processorCapabilities.contains("CONNECTORREAD") && requiredCapabilities.contains("CONNECTORREAD"))) { + table.setAccessType(ACCESSTYPE_READONLY); + } else { + table.setAccessType(ACCESSTYPE_NONE); + } + } else { // MANAGED FULL ACID TABLES + LOG.info("Table is FULL ACID:"); + if ((processorCapabilities.contains("HIVEFULLACIDWRITE") && requiredCapabilities.contains("HIVEFULLACIDWRITE")) + || (processorCapabilities.contains("CONNECTORWRITE") && requiredCapabilities.contains("CONNECTORWRITE"))) { + table.setAccessType(ACCESSTYPE_READWRITE); // clients have RW access to IUD ACID tables + } else if ((processorCapabilities.contains("HIVEFULLACIDREAD") && requiredCapabilities.contains("HIVEFULLACIDREAD")) + || (processorCapabilities.contains("CONNECTORREAD") && requiredCapabilities.contains("CONNECTORREAD"))) { + table.setAccessType(ACCESSTYPE_READONLY); // clients have RO access to IUD ACID tables + } else { + table.setAccessType(ACCESSTYPE_NONE); // clients have NO access to IUD ACID tables + } + } + } + LOG.info("setting required to " + requiredCapabilities + ",MANAGED:Access=" + table.getAccessType()); + ret.put(table, requiredCapabilities); + break; + case "VIRTUAL_VIEW": + if (processorCapabilities.containsAll(requiredCapabilities)) { + table.setAccessType(ACCESSTYPE_READONLY); + } else { + table.setAccessType(ACCESSTYPE_NONE); + } + ret.put(table, requiredCapabilities); + break; + case "MATERIALIZED_VIEW": + if (processorCapabilities.containsAll(requiredCapabilities)) { + table.setAccessType(ACCESSTYPE_READONLY); + } else { + table.setAccessType(ACCESSTYPE_NONE); + } + ret.put(table, requiredCapabilities); + break; + default: + table.setAccessType(ACCESSTYPE_NONE); + ret.put(table, requiredCapabilities); + break; + } + } else if (object instanceof Partition) { + ret = new HashMap>(); + } else { + ret = new HashMap>(); + } + } + + LOG.info("Transformer return list of " + objects.size()); + return ret; + } + + @Override + public Map> transformPartitions(List objects, List processorCapabilities, String processorId) throws MetaException { + return new HashMap>(); + } +} diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index e1450a5d54..913fcfb7eb 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -1451,6 +1451,16 @@ public Table getTable(String dbname, String name) throws MetaException, return fastpath ? tabs : deepCopyTables(filterHook.filterTables(tabs)); } + /** {@inheritDoc} */ + @Override + public List getTablesExt(String catName, String dbName, String tablePattern, + int requestedFields, List processorCapabilities, + String processorId, int limit) throws MetaException, TException { + GetTablesExtRequest req = new GetTablesExtRequest(catName, dbName, tablePattern, requestedFields); + req.setLimit(limit); + return client.get_tables_ext(req); + } + /** {@inheritDoc} */ @Override public Materialization getMaterializationInvalidationInfo(CreationMetadata cm, String validTxnList) diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java index 0c4c84ce0b..b847707453 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java @@ -44,10 +44,20 @@ import static org.mockito.Mockito.mock; import com.google.common.collect.Sets; +import org.apache.hadoop.hive.metastore.HiveMetaStoreClient.GetTablesRequestBuilder; +import org.apache.hadoop.hive.metastore.TableType; +import org.apache.hadoop.hive.metastore.api.ExtendedTableInfo; import org.apache.hadoop.hive.metastore.api.GetPartitionsFilterSpec; import org.apache.hadoop.hive.metastore.api.GetPartitionsProjectionSpec; import org.apache.hadoop.hive.metastore.api.GetPartitionsRequest; import org.apache.hadoop.hive.metastore.api.GetPartitionsResponse; +import org.apache.hadoop.hive.metastore.api.GetTableRequest; +import org.apache.hadoop.hive.metastore.api.GetTablesExtRequest; +import org.apache.hadoop.hive.metastore.api.GetTablesExtRequestFields; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_NONE; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READONLY; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_READWRITE; +import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.ACCESSTYPE_WRITEONLY; import org.apache.hadoop.hive.metastore.api.PartitionSpec; import org.apache.hadoop.hive.metastore.api.PartitionSpecWithSharedSD; import org.apache.hadoop.hive.metastore.api.PartitionWithoutSD; @@ -121,6 +131,7 @@ private static final String TEST_DB1_NAME = "testdb1"; private static final String TEST_DB2_NAME = "testdb2"; + private static final String CAPABILITIES_KEY = "OBJCAPABILITIES"; private static final int DEFAULT_LIMIT_PARTITION_REQUEST = 100; @@ -143,6 +154,8 @@ public void setUp() throws Exception { MetastoreConf.setLongVar(conf, ConfVars.BATCH_RETRIEVE_MAX, 2); MetastoreConf.setLongVar(conf, ConfVars.LIMIT_PARTITION_REQUEST, DEFAULT_LIMIT_PARTITION_REQUEST); MetastoreConf.setVar(conf, ConfVars.STORAGE_SCHEMA_READER_IMPL, "no.such.class"); + + MetastoreConf.setVar(conf, ConfVars.METASTORE_METADATA_TRANSFORMER_CLASS, "org.apache.hadoop.hive.metastore.MetastoreDefaultTransformer"); } @Test @@ -3351,4 +3364,607 @@ public void testUpdatePartitionStat_doesNotUpdateStats() throws Exception { m.invoke(hms, tbl, part, false, null); verify(wh, never()).getFileStatusesForLocation(part.getSd().getLocation()); } + + private void resetHMSClient() { + client.setProcessorIdentifier(null); + client.setProcessorCapabilities(null); + } + + private void setHMSClient(String id, String[] caps) { + client.setProcessorIdentifier(id); + client.setProcessorCapabilities(caps); + } + + /** + * EXTERNAL_TABLE + * 1) Old table with no capabilities + * 2a) New table with capabilities with no client requirements + * 2b) New table with capabilities with no matching client requirements + * 2c) New table with capabilities with partial match requirements + * 2d) New table with capabilities with full match requirements + */ + @Test + public void testTransformerExternalTable() throws Exception { + try { + final String dbName = "db1"; + String basetblName = "oldstyletable"; + Map tProps = new HashMap<>(); + + String tblName = basetblName; + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.EXTERNAL_TABLE); + tProps.put("BUCKETS", 100); + StringBuilder properties = new StringBuilder(); + properties.append("EXTERNAL").append("=").append("TRUE"); + tProps.put("PROPERTIES", properties.toString()); + Table tbl = createTableWithCapabilities(tProps); + + // retrieve the table + Table tbl2 = client.getTable(dbName, tblName); + LOG.info("Table=" + tblName + ",Access=" + tbl2.getAccessType()); + assertEquals("Created and retrieved tables do not match:" + tbl2.getTableName() + ":" + tblName, + tbl2.getTableName(), tblName); + assertEquals("TableType mismatch", TableType.EXTERNAL_TABLE.name(), tbl2.getTableType()); + assertEquals(100, tbl2.getSd().getNumBuckets()); // no transformation + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // old client, AccessType not set + + tblName = "test_ext_bucketed_wc"; + properties = new StringBuilder(); + properties.append("EXTERNAL").append("=").append("TRUE"); + properties.append(";"); + properties.append(CAPABILITIES_KEY).append("=").append("HIVEBUCKET2,EXTREAD,EXTWRITE"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); + assertEquals(100, tbl2.getSd().getNumBuckets()); // no tranformation + + setHMSClient("testTranformerExternalTable", (new String[] { "HIVEBUCKET2", "EXTREAD", "EXTWRITE"})); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertEquals(100, tbl2.getSd().getNumBuckets()); // client has the HIVEBUCKET2 capability, retain bucketing info + + resetHMSClient(); + + setHMSClient("testTransformerExternalTableRO", (new String[] { "EXTREAD", "EXTWRITE"})); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + assertEquals(-1, tbl2.getSd().getNumBuckets()); // client has no HIVEBUCKET2 capability, remove bucketing info + + resetHMSClient(); + + tblName = "test_ext_unbucketed_wc"; + properties = new StringBuilder(); + properties.append(CAPABILITIES_KEY).append("=").append("EXTREAD,EXTWRITE"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tProps.remove("BUCKETS"); + tbl = createTableWithCapabilities(tProps); + + setHMSClient("TestTransformerExternalUnbucketed", (new String[] {"EXTREAD", "EXTWRITE"})); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + } catch (Exception e) { + } finally { + resetHMSClient(); + } + } + + @Test + public void testTransformerManagedTable() throws Exception { + try { + resetHMSClient(); + + final String dbName = "db1"; + String basetblName = "oldstylemgdtable"; + Map tProps = new HashMap<>(); + + String tblName = basetblName; + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.MANAGED_TABLE); + // create unbucketed managed table with no capabilities + Table tbl = createTableWithCapabilities(tProps); + + // retrieve the table + Table tbl2 = client.getTable(dbName, tblName); + LOG.info("Table=" + tblName + ",Access=" + tbl2.getAccessType()); + assertEquals("Created and retrieved tables do not match:" + tbl2.getTableName() + ":" + tblName, + tbl2.getTableName(), tblName); + assertEquals("TableType mismatch", TableType.MANAGED_TABLE.name(), tbl2.getTableType()); + assertEquals(-1, tbl2.getSd().getNumBuckets()); + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // no translation to be done, so accessType not set + + // managed table with no capabilities + tblName = "test_mgd_insert_woc"; + StringBuilder properties = new StringBuilder(); + tProps.put("TBLNAME", tblName); + properties.append("transactional=true"); + properties.append(";"); + properties.append("transactional_properties='insert_only'"); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // no transformation + + setHMSClient("testMGDwithConnectorRead", new String[] {"CONNECTORREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithInsertRead", new String[] {"HIVEMANAGEDINSERTREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithInsertWrite", new String[] {"HIVEMANAGEDINSERTWRITE"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithConnectorWrite", new String[] {"CONNECTORWRITE"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + // bucketed table with no capabilities + tblName = "test_mgd_insert_wc"; + properties = new StringBuilder(); + properties.append(CAPABILITIES_KEY).append("=").append("HIVEMANAGEDINSERTREAD,HIVEMANAGEDINSERTWRITE,HIVECACHEINVALIDATE") + .append("HIVEMANAGEDSTATS,CONNECTORREAD,CONNECTORWRITE"); + properties.append(";"); + properties.append("transactional_properties='insert_only'"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); + + setHMSClient("testMGDwithAllWrites", new String[] { "HIVEMANAGEDINSERTWRITE", "HIVECACHEINVALIDATE", + "HIVEMANAGEDSTATS" , "CONNECTORWRITE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwith1MissingWrite", new String[] {"HIVEMANAGEDINSERTREAD", "HIVEMANAGEDINSERTWRITE", + "HIVECACHEINVALIDATE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwith1Write", new String[] {"CONNECTORWRITE"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithConnectorRead", new String[] {"CONNECTORREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + // managed tables with no capabilities + tblName = "test_mgd_full_woc"; + properties = new StringBuilder(); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.MANAGED_TABLE); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); + + setHMSClient("testMGDwithConnectorRead", new String[] {"CONNECTORREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithFullACIDRead", new String[] {"HIVEFULLACIDREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwith1Write", new String[] {"HIVEFULLACIDWRITE"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithConnectorWrite", new String[] {"CONNECTORWRITE"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + // bucketed table with no capabilities + tblName = "test_mgd_full_wc"; + properties = new StringBuilder(); + properties.append(CAPABILITIES_KEY).append("=").append("HIVEFULLACIDREAD,HIVEFULLACIDWRITE,HIVECACHEINVALIDATE") + .append("HIVEMANAGEDSTATS,CONNECTORREAD,CONNECTORWRITE"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); + + setHMSClient("testMGDFULLwithAllWrites", new String[] { "HIVEFULLACIDWRITE", "HIVECACHEINVALIDATE", + "HIVEMANAGEDSTATS", "CONNECTORWRITE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDFULLwith1MissingWrite", new String[] { "HIVECACHEINVALIDATE", + "HIVEMANAGEDSTATS", "CONNECTORWRITE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDFULLwith1Write", new String[] { "CONNECTORWRITE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwith1MissingWrite", new String[] {"HIVEFULLACIDREAD", "HIVEFULLACIDWRITE", + "HIVECACHEINVALIDATE" }); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testMGDwithConnectorRead", new String[] {"CONNECTORREAD"}); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); + resetHMSClient(); + + setHMSClient("testTranformerExternalTable", (new String[] { "HIVEBUCKET2", "EXTREAD", "EXTWRITE"})); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertEquals(100, tbl2.getSd().getNumBuckets()); + + resetHMSClient(); + + } catch (Exception e) { + } finally { + resetHMSClient(); + } + } + + @Test + public void testTransformerVirtualView() throws Exception { + try { + final String dbName = "db1"; + String basetblName = "oldstyleview"; + Map tProps = new HashMap<>(); + + String tblName = basetblName; + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.VIRTUAL_VIEW); + StringBuilder properties = new StringBuilder(); + tProps.put("PROPERTIES", properties.toString()); + Table tbl = createTableWithCapabilities(tProps); + + // retrieve the table + Table tbl2 = client.getTable(dbName, tblName); + LOG.info("View=" + tblName + ",Access=" + tbl2.getAccessType()); + assertEquals("Created and retrieved views do not match:" + tbl2.getTableName() + ":" + tblName, + tbl2.getTableName(), tblName); + assertEquals("TableType mismatch", TableType.VIRTUAL_VIEW.name(), tbl2.getTableType()); + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // old client, AccessType not set + + // table has capabilities + tblName = "test_view_wc"; + properties = new StringBuilder(); + properties.append(CAPABILITIES_KEY).append("=").append("HIVESQL"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // old client, no transformation + + setHMSClient("testTransformerVirtualView", (new String[] { "HIVESQL" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerVirtualView", (new String[] { "EXTWRITE", "HIVEFULLACIDWRITE" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // missing HIVESQL + + resetHMSClient(); + + // table does not capabilities but client is newer + tblName = "test_view_woc"; + properties = new StringBuilder(); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + setHMSClient("testTransformerVirtualView", (new String[] { "HIVESQL" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerVirtualView", (new String[] { "EXTWRITE", "HIVEFULLACIDWRITE" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // missing HIVESQL + } catch (Exception e) { + } finally { + resetHMSClient(); + } + } + + @Test + public void testTransformerMaterializedView() throws Exception { + try { + resetHMSClient(); + + final String dbName = "db1"; + String basetblName = "oldstylemqtview"; + Map tProps = new HashMap<>(); + + String tblName = basetblName; + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.MATERIALIZED_VIEW); + StringBuilder properties = new StringBuilder(); + tProps.put("PROPERTIES", properties.toString()); + Table tbl = createTableWithCapabilities(tProps); + + // retrieve the table + Table tbl2 = client.getTable(dbName, tblName); + LOG.info("View=" + tblName + ",Access=" + tbl2.getAccessType()); + assertEquals("Created and retrieved views do not match:" + tbl2.getTableName() + ":" + tblName, + tbl2.getTableName(), tblName); + assertEquals("TableType mismatch", TableType.MATERIALIZED_VIEW.name(), tbl2.getTableType()); + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // old client, AccessType not set + + // table has capabilities + tblName = "test_mqtview_wc"; + properties = new StringBuilder(); + properties.append(CAPABILITIES_KEY).append("=").append("HIVEFULLACIDREAD,HIVEONLYMQTWRITE,HIVEMANAGESTATS,HIVEMQT,CONNECTORREAD"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match expected value:" + tblName, + 0, tbl2.getAccessType()); // View has capabilities, processor doesnt, no tranformation + + setHMSClient("testTransformerMQTFullSet", (new String[] { "HIVEFULLACIDREAD", "HIVEONLYMQTWRITE", + "HIVEMANAGESTATS", "HIVEMQT", "CONNECTORREAD" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerMQTFullRead", (new String[] { "HIVEFULLACIDREAD", "HIVEMQT" })); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); + + setHMSClient("testTransformerMQTConnRead", (new String[] { "CONNECTORREAD", "HIVEMQT" })); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerMQTDummySet", (new String[] { "EXTWRITE", "HIVEFULLACIDWRITE" })); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // missing HIVEMQT + *READ + + resetHMSClient(); + + // table does not capabilities but client is newer + tblName = "test_mqtview_woc"; + properties = new StringBuilder(); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tbl = createTableWithCapabilities(tProps); + + setHMSClient("testTransformerVirtualView", (new String[] { "HIVEFULLACIDREAD", "HIVEMQT" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerMQTConnRead", (new String[] { "CONNECTORREAD", "HIVEMQT" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // RO accessonly for all views + + setHMSClient("testTransformerVirtualView", (new String[] { "EXTWRITE, HIVEFULLACIDWRITE" })); + tbl2 = client.getTable(dbName, tblName);; + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // missing HIVEMQT + *READ + } catch (Exception e) { + } finally { + resetHMSClient(); + } + } + + @Test + public void testGetTablesExt() throws Exception { + try { + resetHMSClient(); + + final String dbName = "db1"; + String tblName = "test_get_tables_ext"; + Map tProps = new HashMap<>(); + + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + + StringBuilder table_params = new StringBuilder(); + List capabilities = new ArrayList<>(); + TableType type = TableType.EXTERNAL_TABLE; + + capabilities.add("HIVEFULLACIDWRITE"); + capabilities.add("HIVEFULLACIDREAD"); + capabilities.add("HIVECACHEINVALIDATE"); + capabilities.add("CONNECTORREAD"); + capabilities.add("CONNECTORWRITE"); + + tProps.put("CAPABILITIES", capabilities); + tProps.put("TABLECOUNT", 1); + tProps.put("TBLTYPE", type); + + setHMSClient("TestTransformerGetTablesExt", (String[])(capabilities.toArray(new String[0]))); + + List tables = createTables(tProps); + int requestedFields = (new GetTablesRequestBuilder().with(GetTablesExtRequestFields.PROCESSOR_CAPABILITIES)).bitValue(); + List extTables = client.getTablesExt(null, dbName, "*", requestedFields, capabilities, "test_get_tables_ext", 2000); + LOG.info("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); + assertEquals("Return list size does not match expected size", 1, extTables.size()); + for (ExtendedTableInfo tableInfo : extTables) { + assertEquals("Capability set size does not match", capabilities.size(), tableInfo.getProcessorCapabilities().size()); + assertEquals("AccessType not expected to be set", 0, tableInfo.getAccessType()); + } + } catch (Exception e) { + System.err.println(StringUtils.stringifyException(e)); + System.err.println("testGetTablesExt() failed."); + throw e; + } finally { + resetHMSClient(); + } + } + + private List createTables(Map props) throws Exception { + int count = ((Integer)props.get("TABLECOUNT")).intValue(); + String tblName = (String)props.get("TBLNAME"); + List caps = (List)props.get("CAPABILITIES"); + StringBuilder table_params = new StringBuilder(); + table_params.append(CAPABILITIES_KEY).append("=").append(String.join(",", caps)); + props.put("PROPERTIES", table_params.toString()); + List ret = new ArrayList<>(); + String newtblName = null; + + try { + for (int i = 0; i < count; i++) { + newtblName = tblName + i; + props.put("TBLNAME", newtblName); + props.put("DROPDB", Boolean.FALSE); + createTableWithCapabilities(props); + ret.add(newtblName); + } + } catch (Exception e) { + LOG.warn("Create table failed for " + newtblName); + } + + return ret; + } + + private Table createTableWithCapabilities(Map props) throws Exception { + String catalog = (String)props.getOrDefault("CATALOG", "testcat"); + String dbName = (String)props.getOrDefault("DBNAME", "simpdb"); + String tblName = (String)props.getOrDefault("TBLNAME", "test_table"); + TableType type = (TableType)props.getOrDefault("TBLTYPE", TableType.MANAGED_TABLE); + int buckets = ((Integer)props.getOrDefault("BUCKETS", -1)).intValue(); + String properties = (String)props.getOrDefault("PROPERTIES", ""); + boolean dropDb = ((Boolean)props.getOrDefault("DROPDB", Boolean.TRUE)).booleanValue(); + + final String typeName = "Person"; + + Map table_params = new HashMap(); + if (properties.length() > 0) { + String[] propArray = properties.split(";"); + for (String prop : propArray) { + String[] keyValue = prop.split("="); + table_params.put(keyValue[0], keyValue[1]); + } + } + + try { + client.dropTable(dbName, tblName); + } catch (Exception e) { + LOG.info("Drop table failed for " + dbName + "." + tblName); + } + + try { + if (dropDb) + silentDropDatabase(dbName); + } catch (Exception e) { + LOG.info("Drop database failed for " + dbName); + } + + if (dropDb) + new DatabaseBuilder() + .setName(dbName) + .create(client, conf); + + try { + client.dropType(typeName); + } catch (Exception e) { + LOG.info("Drop type failed for " + typeName); + } + + Type typ1 = new Type(); + typ1.setName(typeName); + typ1.setFields(new ArrayList<>(2)); + typ1.getFields().add( + new FieldSchema("name", ColumnType.STRING_TYPE_NAME, "")); + typ1.getFields().add( + new FieldSchema("income", ColumnType.INT_TYPE_NAME, "")); + client.createType(typ1); + + TableBuilder builder = new TableBuilder() + .setDbName(dbName) + .setTableName(tblName) + .setCols(typ1.getFields()) + .setType(type.name()) + .setNumBuckets(buckets) + .setTableParams(table_params) + .addBucketCol("name") + .addStorageDescriptorParam("test_param_1", "Use this for comments etc"); + + if (buckets > 0) + builder.setNumBuckets(buckets).addBucketCol("name"); + + Table tbl = builder.create(client, conf); + LOG.info("Table " + tblName + " created:type=" + type.name()); + + if (isThriftClient) { + // the createTable() above does not update the location in the 'tbl' + // object when the client is a thrift client and the code below relies + // on the location being present in the 'tbl' object - so get the table + // from the metastore + tbl = client.getTable(dbName, tblName); + } + + return tbl; + } }