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 a028a3a11e..51b33355e1 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 _list618 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list618.size); - long _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list626.size); + long _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem619 = iprot.readI64(); - struct.txn_ids.add(_elem619); + _elem627 = iprot.readI64(); + struct.txn_ids.add(_elem627); } 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 _iter621 : struct.txn_ids) + for (long _iter629 : struct.txn_ids) { - oprot.writeI64(_iter621); + oprot.writeI64(_iter629); } 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 _iter622 : struct.txn_ids) + for (long _iter630 : struct.txn_ids) { - oprot.writeI64(_iter622); + oprot.writeI64(_iter630); } } } @@ -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 _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) + org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list631.size); + long _elem632; + for (int _i633 = 0; _i633 < _list631.size; ++_i633) { - _elem624 = iprot.readI64(); - struct.txn_ids.add(_elem624); + _elem632 = iprot.readI64(); + struct.txn_ids.add(_elem632); } } 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 9f4b4be756..b26586ab62 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 _list748 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list748.size); - String _elem749; - for (int _i750 = 0; _i750 < _list748.size; ++_i750) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem749 = iprot.readString(); - struct.partitionnames.add(_elem749); + _elem757 = iprot.readString(); + struct.partitionnames.add(_elem757); } 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 _iter751 : struct.partitionnames) + for (String _iter759 : struct.partitionnames) { - oprot.writeString(_iter751); + oprot.writeString(_iter759); } 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 _iter752 : struct.partitionnames) + for (String _iter760 : struct.partitionnames) { - oprot.writeString(_iter752); + oprot.writeString(_iter760); } } 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 _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) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list761.size); + String _elem762; + for (int _i763 = 0; _i763 < _list761.size; ++_i763) { - _elem754 = iprot.readString(); - struct.partitionnames.add(_elem754); + _elem762 = iprot.readString(); + struct.partitionnames.add(_elem762); } } 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 ae20ef7257..361332b600 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 _list674 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list674.size); - long _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list682.size); + long _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem675 = iprot.readI64(); - struct.txnIds.add(_elem675); + _elem683 = iprot.readI64(); + struct.txnIds.add(_elem683); } 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 _list677 = iprot.readListBegin(); - struct.srcTxnToWriteIdList = new ArrayList(_list677.size); - TxnToWriteId _elem678; - for (int _i679 = 0; _i679 < _list677.size; ++_i679) + org.apache.thrift.protocol.TList _list685 = iprot.readListBegin(); + struct.srcTxnToWriteIdList = new ArrayList(_list685.size); + TxnToWriteId _elem686; + for (int _i687 = 0; _i687 < _list685.size; ++_i687) { - _elem678 = new TxnToWriteId(); - _elem678.read(iprot); - struct.srcTxnToWriteIdList.add(_elem678); + _elem686 = new TxnToWriteId(); + _elem686.read(iprot); + struct.srcTxnToWriteIdList.add(_elem686); } 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 _iter680 : struct.txnIds) + for (long _iter688 : struct.txnIds) { - oprot.writeI64(_iter680); + oprot.writeI64(_iter688); } 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 _iter681 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter689 : struct.srcTxnToWriteIdList) { - _iter681.write(oprot); + _iter689.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 _iter682 : struct.txnIds) + for (long _iter690 : struct.txnIds) { - oprot.writeI64(_iter682); + oprot.writeI64(_iter690); } } } @@ -861,9 +861,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { { oprot.writeI32(struct.srcTxnToWriteIdList.size()); - for (TxnToWriteId _iter683 : struct.srcTxnToWriteIdList) + for (TxnToWriteId _iter691 : struct.srcTxnToWriteIdList) { - _iter683.write(oprot); + _iter691.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 _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) + org.apache.thrift.protocol.TList _list692 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list692.size); + long _elem693; + for (int _i694 = 0; _i694 < _list692.size; ++_i694) { - _elem685 = iprot.readI64(); - struct.txnIds.add(_elem685); + _elem693 = iprot.readI64(); + struct.txnIds.add(_elem693); } } 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 _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) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.srcTxnToWriteIdList = new ArrayList(_list695.size); + TxnToWriteId _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem688 = new TxnToWriteId(); - _elem688.read(iprot); - struct.srcTxnToWriteIdList.add(_elem688); + _elem696 = new TxnToWriteId(); + _elem696.read(iprot); + struct.srcTxnToWriteIdList.add(_elem696); } } 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 bb04c0b974..aaf187b4bd 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 _list690 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list690.size); - TxnToWriteId _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list698.size); + TxnToWriteId _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem691 = new TxnToWriteId(); - _elem691.read(iprot); - struct.txnToWriteIds.add(_elem691); + _elem699 = new TxnToWriteId(); + _elem699.read(iprot); + struct.txnToWriteIds.add(_elem699); } 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 _iter693 : struct.txnToWriteIds) + for (TxnToWriteId _iter701 : struct.txnToWriteIds) { - _iter693.write(oprot); + _iter701.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 _iter694 : struct.txnToWriteIds) + for (TxnToWriteId _iter702 : struct.txnToWriteIds) { - _iter694.write(oprot); + _iter702.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 _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) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list703.size); + TxnToWriteId _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem696 = new TxnToWriteId(); - _elem696.read(iprot); - struct.txnToWriteIds.add(_elem696); + _elem704 = new TxnToWriteId(); + _elem704.read(iprot); + struct.txnToWriteIds.add(_elem704); } } 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/ColumnStatistics.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index a7b8c4a1b3..fd4619f0e5 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -532,14 +532,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st case 2: // STATS_OBJ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); - struct.statsObj = new ArrayList(_list214.size); - ColumnStatisticsObj _elem215; - for (int _i216 = 0; _i216 < _list214.size; ++_i216) + org.apache.thrift.protocol.TList _list276 = iprot.readListBegin(); + struct.statsObj = new ArrayList(_list276.size); + ColumnStatisticsObj _elem277; + for (int _i278 = 0; _i278 < _list276.size; ++_i278) { - _elem215 = new ColumnStatisticsObj(); - _elem215.read(iprot); - struct.statsObj.add(_elem215); + _elem277 = new ColumnStatisticsObj(); + _elem277.read(iprot); + struct.statsObj.add(_elem277); } iprot.readListEnd(); } @@ -578,9 +578,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnStatistics s oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statsObj.size())); - for (ColumnStatisticsObj _iter217 : struct.statsObj) + for (ColumnStatisticsObj _iter279 : struct.statsObj) { - _iter217.write(oprot); + _iter279.write(oprot); } oprot.writeListEnd(); } @@ -611,9 +611,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics st struct.statsDesc.write(oprot); { oprot.writeI32(struct.statsObj.size()); - for (ColumnStatisticsObj _iter218 : struct.statsObj) + for (ColumnStatisticsObj _iter280 : struct.statsObj) { - _iter218.write(oprot); + _iter280.write(oprot); } } BitSet optionals = new BitSet(); @@ -633,14 +633,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str struct.statsDesc.read(iprot); struct.setStatsDescIsSet(true); { - org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList(_list219.size); - ColumnStatisticsObj _elem220; - for (int _i221 = 0; _i221 < _list219.size; ++_i221) + org.apache.thrift.protocol.TList _list281 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statsObj = new ArrayList(_list281.size); + ColumnStatisticsObj _elem282; + for (int _i283 = 0; _i283 < _list281.size; ++_i283) { - _elem220 = new ColumnStatisticsObj(); - _elem220.read(iprot); - struct.statsObj.add(_elem220); + _elem282 = new ColumnStatisticsObj(); + _elem282.read(iprot); + struct.statsObj.add(_elem282); } } struct.setStatsObjIsSet(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 bbefc3d74e..5b8d11dd1f 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 @@ -701,14 +701,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 _list634 = iprot.readListBegin(); - struct.writeEventInfos = new ArrayList(_list634.size); - WriteEventInfo _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.writeEventInfos = new ArrayList(_list642.size); + WriteEventInfo _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem635 = new WriteEventInfo(); - _elem635.read(iprot); - struct.writeEventInfos.add(_elem635); + _elem643 = new WriteEventInfo(); + _elem643.read(iprot); + struct.writeEventInfos.add(_elem643); } iprot.readListEnd(); } @@ -763,9 +763,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 _iter637 : struct.writeEventInfos) + for (WriteEventInfo _iter645 : struct.writeEventInfos) { - _iter637.write(oprot); + _iter645.write(oprot); } oprot.writeListEnd(); } @@ -824,9 +824,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest st if (struct.isSetWriteEventInfos()) { { oprot.writeI32(struct.writeEventInfos.size()); - for (WriteEventInfo _iter638 : struct.writeEventInfos) + for (WriteEventInfo _iter646 : struct.writeEventInfos) { - _iter638.write(oprot); + _iter646.write(oprot); } } } @@ -850,14 +850,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest str } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.writeEventInfos = new ArrayList(_list639.size); - WriteEventInfo _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.STRUCT, iprot.readI32()); + struct.writeEventInfos = new ArrayList(_list647.size); + WriteEventInfo _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem640 = new WriteEventInfo(); - _elem640.read(iprot); - struct.writeEventInfos.add(_elem640); + _elem648 = new WriteEventInfo(); + _elem648.read(iprot); + struct.writeEventInfos.add(_elem648); } } 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 7d73a1ea7a..5acd896fd3 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 _map730 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map730.size); - String _key731; - String _val732; - for (int _i733 = 0; _i733 < _map730.size; ++_i733) + org.apache.thrift.protocol.TMap _map738 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map738.size); + String _key739; + String _val740; + for (int _i741 = 0; _i741 < _map738.size; ++_i741) { - _key731 = iprot.readString(); - _val732 = iprot.readString(); - struct.properties.put(_key731, _val732); + _key739 = iprot.readString(); + _val740 = iprot.readString(); + struct.properties.put(_key739, _val740); } 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 _iter734 : struct.properties.entrySet()) + for (Map.Entry _iter742 : struct.properties.entrySet()) { - oprot.writeString(_iter734.getKey()); - oprot.writeString(_iter734.getValue()); + oprot.writeString(_iter742.getKey()); + oprot.writeString(_iter742.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 _iter735 : struct.properties.entrySet()) + for (Map.Entry _iter743 : struct.properties.entrySet()) { - oprot.writeString(_iter735.getKey()); - oprot.writeString(_iter735.getValue()); + oprot.writeString(_iter743.getKey()); + oprot.writeString(_iter743.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 _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) + org.apache.thrift.protocol.TMap _map744 = 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*_map744.size); + String _key745; + String _val746; + for (int _i747 = 0; _i747 < _map744.size; ++_i747) { - _key737 = iprot.readString(); - _val738 = iprot.readString(); - struct.properties.put(_key737, _val738); + _key745 = iprot.readString(); + _val746 = iprot.readString(); + struct.properties.put(_key745, _val746); } } struct.setPropertiesIsSet(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 56779b8082..04695658ec 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 _list578 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list578.size); - ResourceUri _elem579; - for (int _i580 = 0; _i580 < _list578.size; ++_i580) + org.apache.thrift.protocol.TList _list586 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list586.size); + ResourceUri _elem587; + for (int _i588 = 0; _i588 < _list586.size; ++_i588) { - _elem579 = new ResourceUri(); - _elem579.read(iprot); - struct.resourceUris.add(_elem579); + _elem587 = new ResourceUri(); + _elem587.read(iprot); + struct.resourceUris.add(_elem587); } 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 _iter581 : struct.resourceUris) + for (ResourceUri _iter589 : struct.resourceUris) { - _iter581.write(oprot); + _iter589.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 _iter582 : struct.resourceUris) + for (ResourceUri _iter590 : struct.resourceUris) { - _iter582.write(oprot); + _iter590.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 _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) + org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list591.size); + ResourceUri _elem592; + for (int _i593 = 0; _i593 < _list591.size; ++_i593) { - _elem584 = new ResourceUri(); - _elem584.read(iprot); - struct.resourceUris.add(_elem584); + _elem592 = new ResourceUri(); + _elem592.read(iprot); + struct.resourceUris.add(_elem592); } } 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 9f48dbf760..68d9722274 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 _list586 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list586.size); - TxnInfo _elem587; - for (int _i588 = 0; _i588 < _list586.size; ++_i588) + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list594.size); + TxnInfo _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) { - _elem587 = new TxnInfo(); - _elem587.read(iprot); - struct.open_txns.add(_elem587); + _elem595 = new TxnInfo(); + _elem595.read(iprot); + struct.open_txns.add(_elem595); } 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 _iter589 : struct.open_txns) + for (TxnInfo _iter597 : struct.open_txns) { - _iter589.write(oprot); + _iter597.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 _iter590 : struct.open_txns) + for (TxnInfo _iter598 : struct.open_txns) { - _iter590.write(oprot); + _iter598.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 _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) + org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list599.size); + TxnInfo _elem600; + for (int _i601 = 0; _i601 < _list599.size; ++_i601) { - _elem592 = new TxnInfo(); - _elem592.read(iprot); - struct.open_txns.add(_elem592); + _elem600 = new TxnInfo(); + _elem600.read(iprot); + 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/GetOpenTxnsResponse.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index a2c19c236f..c3a106244a 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 _list594 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list594.size); - long _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list602.size); + long _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem595 = iprot.readI64(); - struct.open_txns.add(_elem595); + _elem603 = iprot.readI64(); + struct.open_txns.add(_elem603); } 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 _iter597 : struct.open_txns) + for (long _iter605 : struct.open_txns) { - oprot.writeI64(_iter597); + oprot.writeI64(_iter605); } 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 _iter598 : struct.open_txns) + for (long _iter606 : struct.open_txns) { - oprot.writeI64(_iter598); + oprot.writeI64(_iter606); } } 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 _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) + org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list607.size); + long _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem600 = iprot.readI64(); - struct.open_txns.add(_elem600); + _elem608 = iprot.readI64(); + struct.open_txns.add(_elem608); } } 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 473bc6f42a..9924f20fd4 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 _list565 = iprot.readListBegin(); + struct.processorCapabilities = new ArrayList(_list565.size); + String _elem566; + for (int _i567 = 0; _i567 < _list565.size; ++_i567) + { + _elem566 = iprot.readString(); + struct.processorCapabilities.add(_elem566); + } + 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 _iter565 : struct.names) + for (String _iter568 : struct.names) { - oprot.writeString(_iter565); + oprot.writeString(_iter568); } 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 _iter569 : struct.processorCapabilities) + { + oprot.writeString(_iter569); + } + 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 _iter566 : struct.names) + for (String _iter570 : struct.names) { - oprot.writeString(_iter566); + oprot.writeString(_iter570); } } } if (struct.isSetGet_col_stats()) { oprot.writeBool(struct.get_col_stats); } + if (struct.isSetProcessorCapabilities()) { + { + oprot.writeI32(struct.processorCapabilities.size()); + for (String _iter571 : struct.processorCapabilities) + { + oprot.writeString(_iter571); + } + } + } + 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 _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list567.size); - String _elem568; - for (int _i569 = 0; _i569 < _list567.size; ++_i569) + org.apache.thrift.protocol.TList _list572 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list572.size); + String _elem573; + for (int _i574 = 0; _i574 < _list572.size; ++_i574) { - _elem568 = iprot.readString(); - struct.names.add(_elem568); + _elem573 = iprot.readString(); + struct.names.add(_elem573); } } 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 _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.processorCapabilities = new ArrayList(_list575.size); + String _elem576; + for (int _i577 = 0; _i577 < _list575.size; ++_i577) + { + _elem576 = iprot.readString(); + struct.processorCapabilities.add(_elem576); + } + } + 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 afc29eef2a..d03ba7e155 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 _list570 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list570.size); - Partition _elem571; - for (int _i572 = 0; _i572 < _list570.size; ++_i572) + org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list578.size); + Partition _elem579; + for (int _i580 = 0; _i580 < _list578.size; ++_i580) { - _elem571 = new Partition(); - _elem571.read(iprot); - struct.partitions.add(_elem571); + _elem579 = new Partition(); + _elem579.read(iprot); + struct.partitions.add(_elem579); } 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 _iter573 : struct.partitions) + for (Partition _iter581 : struct.partitions) { - _iter573.write(oprot); + _iter581.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 _iter574 : struct.partitions) + for (Partition _iter582 : struct.partitions) { - _iter574.write(oprot); + _iter582.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 _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) + org.apache.thrift.protocol.TList _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list583.size); + Partition _elem584; + for (int _i585 = 0; _i585 < _list583.size; ++_i585) { - _elem576 = new Partition(); - _elem576.read(iprot); - struct.partitions.add(_elem576); + _elem584 = new Partition(); + _elem584.read(iprot); + struct.partitions.add(_elem584); } } 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 7771bdcf5f..045aa3249f 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 _list650 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list650.size); - String _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list658.size); + String _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem651 = iprot.readString(); - struct.fullTableNames.add(_elem651); + _elem659 = iprot.readString(); + struct.fullTableNames.add(_elem659); } 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 _iter653 : struct.fullTableNames) + for (String _iter661 : struct.fullTableNames) { - oprot.writeString(_iter653); + oprot.writeString(_iter661); } 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 _iter654 : struct.fullTableNames) + for (String _iter662 : struct.fullTableNames) { - oprot.writeString(_iter654); + oprot.writeString(_iter662); } } 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 _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) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list663.size); + String _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem656 = iprot.readString(); - struct.fullTableNames.add(_elem656); + _elem664 = iprot.readString(); + struct.fullTableNames.add(_elem664); } } 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 8996f8bf02..5d4e026c98 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 _list666 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list666.size); - TableValidWriteIds _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list674.size); + TableValidWriteIds _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem667 = new TableValidWriteIds(); - _elem667.read(iprot); - struct.tblValidWriteIds.add(_elem667); + _elem675 = new TableValidWriteIds(); + _elem675.read(iprot); + struct.tblValidWriteIds.add(_elem675); } 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 _iter669 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter677 : struct.tblValidWriteIds) { - _iter669.write(oprot); + _iter677.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 _iter670 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter678 : struct.tblValidWriteIds) { - _iter670.write(oprot); + _iter678.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 _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) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list679.size); + TableValidWriteIds _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem672 = new TableValidWriteIds(); - _elem672.read(iprot); - struct.tblValidWriteIds.add(_elem672); + _elem680 = new TableValidWriteIds(); + _elem680.read(iprot); + struct.tblValidWriteIds.add(_elem680); } } 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 70ec20c638..7edd0ecc35 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 _set714 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set714.size); - long _elem715; - for (int _i716 = 0; _i716 < _set714.size; ++_i716) + org.apache.thrift.protocol.TSet _set722 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set722.size); + long _elem723; + for (int _i724 = 0; _i724 < _set722.size; ++_i724) { - _elem715 = iprot.readI64(); - struct.aborted.add(_elem715); + _elem723 = iprot.readI64(); + struct.aborted.add(_elem723); } 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 _set717 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set717.size); - long _elem718; - for (int _i719 = 0; _i719 < _set717.size; ++_i719) + org.apache.thrift.protocol.TSet _set725 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set725.size); + long _elem726; + for (int _i727 = 0; _i727 < _set725.size; ++_i727) { - _elem718 = iprot.readI64(); - struct.nosuch.add(_elem718); + _elem726 = iprot.readI64(); + struct.nosuch.add(_elem726); } 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 _iter720 : struct.aborted) + for (long _iter728 : struct.aborted) { - oprot.writeI64(_iter720); + oprot.writeI64(_iter728); } 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 _iter721 : struct.nosuch) + for (long _iter729 : struct.nosuch) { - oprot.writeI64(_iter721); + oprot.writeI64(_iter729); } 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 _iter722 : struct.aborted) + for (long _iter730 : struct.aborted) { - oprot.writeI64(_iter722); + oprot.writeI64(_iter730); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter723 : struct.nosuch) + for (long _iter731 : struct.nosuch) { - oprot.writeI64(_iter723); + oprot.writeI64(_iter731); } } } @@ -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 _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) + org.apache.thrift.protocol.TSet _set732 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set732.size); + long _elem733; + for (int _i734 = 0; _i734 < _set732.size; ++_i734) { - _elem725 = iprot.readI64(); - struct.aborted.add(_elem725); + _elem733 = iprot.readI64(); + struct.aborted.add(_elem733); } } struct.setAbortedIsSet(true); { - 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) + org.apache.thrift.protocol.TSet _set735 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set735.size); + long _elem736; + for (int _i737 = 0; _i737 < _set735.size; ++_i737) { - _elem728 = iprot.readI64(); - struct.nosuch.add(_elem728); + _elem736 = iprot.readI64(); + struct.nosuch.add(_elem736); } } 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 f9b5e3dbc7..2b0ffbab12 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 _list698 = iprot.readListBegin(); - struct.component = new ArrayList(_list698.size); - LockComponent _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.component = new ArrayList(_list706.size); + LockComponent _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem699 = new LockComponent(); - _elem699.read(iprot); - struct.component.add(_elem699); + _elem707 = new LockComponent(); + _elem707.read(iprot); + struct.component.add(_elem707); } 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 _iter701 : struct.component) + for (LockComponent _iter709 : struct.component) { - _iter701.write(oprot); + _iter709.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 _iter702 : struct.component) + for (LockComponent _iter710 : struct.component) { - _iter702.write(oprot); + _iter710.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 _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) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list711.size); + LockComponent _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem704 = new LockComponent(); - _elem704.read(iprot); - struct.component.add(_elem704); + _elem712 = new LockComponent(); + _elem712.read(iprot); + struct.component.add(_elem712); } } 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 e4f49080df..a226516a6e 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 _list602 = iprot.readListBegin(); - struct.replSrcTxnIds = new ArrayList(_list602.size); - long _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.replSrcTxnIds = new ArrayList(_list610.size); + long _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem603 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem603); + _elem611 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem611); } 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 _iter605 : struct.replSrcTxnIds) + for (long _iter613 : struct.replSrcTxnIds) { - oprot.writeI64(_iter605); + oprot.writeI64(_iter613); } 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 _iter606 : struct.replSrcTxnIds) + for (long _iter614 : struct.replSrcTxnIds) { - oprot.writeI64(_iter606); + oprot.writeI64(_iter614); } } } @@ -1062,13 +1062,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnRequest struc } if (incoming.get(2)) { { - 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) + org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.replSrcTxnIds = new ArrayList(_list615.size); + long _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem608 = iprot.readI64(); - struct.replSrcTxnIds.add(_elem608); + _elem616 = iprot.readI64(); + struct.replSrcTxnIds.add(_elem616); } } 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 6534dc5d05..9c9c918d21 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 _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, 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 _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, OpenTxnsResponse 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, 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 _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/Partition.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index b2d8d3c120..2db0fbc23e 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -197,7 +197,7 @@ public String getFieldName() { tmpMap.put(_Fields.IS_STATS_COMPLIANT, new org.apache.thrift.meta_data.FieldMetaData("isStatsCompliant", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatistics.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "ColumnStatistics"))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Partition.class, metaDataMap); } @@ -261,7 +261,7 @@ public Partition(Partition other) { this.writeId = other.writeId; this.isStatsCompliant = other.isStatsCompliant; if (other.isSetColStats()) { - this.colStats = new ColumnStatistics(other.colStats); + this.colStats = other.colStats; } } @@ -1206,9 +1206,6 @@ public void validate() throws org.apache.thrift.TException { if (privileges != null) { privileges.validate(); } - if (colStats != null) { - colStats.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -1250,13 +1247,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list240 = iprot.readListBegin(); - struct.values = new ArrayList(_list240.size); - String _elem241; - for (int _i242 = 0; _i242 < _list240.size; ++_i242) + org.apache.thrift.protocol.TList _list232 = iprot.readListBegin(); + struct.values = new ArrayList(_list232.size); + String _elem233; + for (int _i234 = 0; _i234 < _list232.size; ++_i234) { - _elem241 = iprot.readString(); - struct.values.add(_elem241); + _elem233 = iprot.readString(); + struct.values.add(_elem233); } iprot.readListEnd(); } @@ -1309,15 +1306,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 7: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map243 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map243.size); - String _key244; - String _val245; - for (int _i246 = 0; _i246 < _map243.size; ++_i246) + org.apache.thrift.protocol.TMap _map235 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map235.size); + String _key236; + String _val237; + for (int _i238 = 0; _i238 < _map235.size; ++_i238) { - _key244 = iprot.readString(); - _val245 = iprot.readString(); - struct.parameters.put(_key244, _val245); + _key236 = iprot.readString(); + _val237 = iprot.readString(); + struct.parameters.put(_key236, _val237); } iprot.readMapEnd(); } @@ -1385,9 +1382,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter247 : struct.values) + for (String _iter239 : struct.values) { - oprot.writeString(_iter247); + oprot.writeString(_iter239); } oprot.writeListEnd(); } @@ -1418,10 +1415,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter248 : struct.parameters.entrySet()) + for (Map.Entry _iter240 : struct.parameters.entrySet()) { - oprot.writeString(_iter248.getKey()); - oprot.writeString(_iter248.getValue()); + oprot.writeString(_iter240.getKey()); + oprot.writeString(_iter240.getValue()); } oprot.writeMapEnd(); } @@ -1516,9 +1513,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter249 : struct.values) + for (String _iter241 : struct.values) { - oprot.writeString(_iter249); + oprot.writeString(_iter241); } } } @@ -1540,10 +1537,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter250 : struct.parameters.entrySet()) + for (Map.Entry _iter242 : struct.parameters.entrySet()) { - oprot.writeString(_iter250.getKey()); - oprot.writeString(_iter250.getValue()); + oprot.writeString(_iter242.getKey()); + oprot.writeString(_iter242.getValue()); } } } @@ -1570,13 +1567,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list251.size); - String _elem252; - for (int _i253 = 0; _i253 < _list251.size; ++_i253) + org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list243.size); + String _elem244; + for (int _i245 = 0; _i245 < _list243.size; ++_i245) { - _elem252 = iprot.readString(); - struct.values.add(_elem252); + _elem244 = iprot.readString(); + struct.values.add(_elem244); } } struct.setValuesIsSet(true); @@ -1604,15 +1601,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th } if (incoming.get(6)) { { - org.apache.thrift.protocol.TMap _map254 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map254.size); - String _key255; - String _val256; - for (int _i257 = 0; _i257 < _map254.size; ++_i257) + org.apache.thrift.protocol.TMap _map246 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map246.size); + String _key247; + String _val248; + for (int _i249 = 0; _i249 < _map246.size; ++_i249) { - _key255 = iprot.readString(); - _val256 = iprot.readString(); - struct.parameters.put(_key255, _val256); + _key247 = iprot.readString(); + _val248 = iprot.readString(); + struct.parameters.put(_key247, _val248); } } struct.parameters = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(struct.parameters); struct.setParametersIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java index 2974b0c87a..01b9e7d71b 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java @@ -434,14 +434,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpecWithSh case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list276 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list276.size); - PartitionWithoutSD _elem277; - for (int _i278 = 0; _i278 < _list276.size; ++_i278) + org.apache.thrift.protocol.TList _list268 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list268.size); + PartitionWithoutSD _elem269; + for (int _i270 = 0; _i270 < _list268.size; ++_i270) { - _elem277 = new PartitionWithoutSD(); - _elem277.read(iprot); - struct.partitions.add(_elem277); + _elem269 = new PartitionWithoutSD(); + _elem269.read(iprot); + struct.partitions.add(_elem269); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionSpecWithS oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (PartitionWithoutSD _iter279 : struct.partitions) + for (PartitionWithoutSD _iter271 : struct.partitions) { - _iter279.write(oprot); + _iter271.write(oprot); } oprot.writeListEnd(); } @@ -517,9 +517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSh if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (PartitionWithoutSD _iter280 : struct.partitions) + for (PartitionWithoutSD _iter272 : struct.partitions) { - _iter280.write(oprot); + _iter272.write(oprot); } } } @@ -534,14 +534,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSha BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list281 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list281.size); - PartitionWithoutSD _elem282; - for (int _i283 = 0; _i283 < _list281.size; ++_i283) + org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list273.size); + PartitionWithoutSD _elem274; + for (int _i275 = 0; _i275 < _list273.size; ++_i275) { - _elem282 = new PartitionWithoutSD(); - _elem282.read(iprot); - struct.partitions.add(_elem282); + _elem274 = new PartitionWithoutSD(); + _elem274.read(iprot); + struct.partitions.add(_elem274); } } struct.setPartitionsIsSet(true); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java index d0e3101e4c..f00d5b88e7 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java @@ -766,13 +766,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list258 = iprot.readListBegin(); - struct.values = new ArrayList(_list258.size); - String _elem259; - for (int _i260 = 0; _i260 < _list258.size; ++_i260) + org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); + struct.values = new ArrayList(_list250.size); + String _elem251; + for (int _i252 = 0; _i252 < _list250.size; ++_i252) { - _elem259 = iprot.readString(); - struct.values.add(_elem259); + _elem251 = iprot.readString(); + struct.values.add(_elem251); } iprot.readListEnd(); } @@ -808,15 +808,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 5: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map261 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map261.size); - String _key262; - String _val263; - for (int _i264 = 0; _i264 < _map261.size; ++_i264) + org.apache.thrift.protocol.TMap _map253 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map253.size); + String _key254; + String _val255; + for (int _i256 = 0; _i256 < _map253.size; ++_i256) { - _key262 = iprot.readString(); - _val263 = iprot.readString(); - struct.parameters.put(_key262, _val263); + _key254 = iprot.readString(); + _val255 = iprot.readString(); + struct.parameters.put(_key254, _val255); } iprot.readMapEnd(); } @@ -851,9 +851,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter265 : struct.values) + for (String _iter257 : struct.values) { - oprot.writeString(_iter265); + oprot.writeString(_iter257); } oprot.writeListEnd(); } @@ -874,10 +874,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter266 : struct.parameters.entrySet()) + for (Map.Entry _iter258 : struct.parameters.entrySet()) { - oprot.writeString(_iter266.getKey()); - oprot.writeString(_iter266.getValue()); + oprot.writeString(_iter258.getKey()); + oprot.writeString(_iter258.getValue()); } oprot.writeMapEnd(); } @@ -930,9 +930,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter267 : struct.values) + for (String _iter259 : struct.values) { - oprot.writeString(_iter267); + oprot.writeString(_iter259); } } } @@ -948,10 +948,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter268 : struct.parameters.entrySet()) + for (Map.Entry _iter260 : struct.parameters.entrySet()) { - oprot.writeString(_iter268.getKey()); - oprot.writeString(_iter268.getValue()); + oprot.writeString(_iter260.getKey()); + oprot.writeString(_iter260.getValue()); } } } @@ -966,13 +966,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list269.size); - String _elem270; - for (int _i271 = 0; _i271 < _list269.size; ++_i271) + org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list261.size); + String _elem262; + for (int _i263 = 0; _i263 < _list261.size; ++_i263) { - _elem270 = iprot.readString(); - struct.values.add(_elem270); + _elem262 = iprot.readString(); + struct.values.add(_elem262); } } struct.setValuesIsSet(true); @@ -991,15 +991,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s } if (incoming.get(4)) { { - org.apache.thrift.protocol.TMap _map272 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map272.size); - String _key273; - String _val274; - for (int _i275 = 0; _i275 < _map272.size; ++_i275) + org.apache.thrift.protocol.TMap _map264 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map264.size); + String _key265; + String _val266; + for (int _i267 = 0; _i267 < _map264.size; ++_i267) { - _key273 = iprot.readString(); - _val274 = iprot.readString(); - struct.parameters.put(_key273, _val274); + _key265 = iprot.readString(); + _val266 = iprot.readString(); + struct.parameters.put(_key265, _val266); } } struct.setParametersIsSet(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 2db0060614..3e66bcf6a0 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 _list642 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list642.size); - String _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem643 = iprot.readString(); - struct.partNames.add(_elem643); + _elem651 = iprot.readString(); + struct.partNames.add(_elem651); } 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 _iter645 : struct.partNames) + for (String _iter653 : struct.partNames) { - oprot.writeString(_iter645); + oprot.writeString(_iter653); } 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 _iter646 : struct.partNames) + for (String _iter654 : struct.partNames) { - oprot.writeString(_iter646); + oprot.writeString(_iter654); } } } @@ -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 _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) + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list655.size); + String _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem648 = iprot.readString(); - struct.partNames.add(_elem648); + _elem656 = iprot.readString(); + struct.partNames.add(_elem656); } } 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 0d64491dc9..bc5758e943 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 _list740 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list740.size); - ShowCompactResponseElement _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list748.size); + ShowCompactResponseElement _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem741 = new ShowCompactResponseElement(); - _elem741.read(iprot); - struct.compacts.add(_elem741); + _elem749 = new ShowCompactResponseElement(); + _elem749.read(iprot); + struct.compacts.add(_elem749); } 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 _iter743 : struct.compacts) + for (ShowCompactResponseElement _iter751 : struct.compacts) { - _iter743.write(oprot); + _iter751.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 _iter744 : struct.compacts) + for (ShowCompactResponseElement _iter752 : struct.compacts) { - _iter744.write(oprot); + _iter752.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 _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) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list753.size); + ShowCompactResponseElement _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem746 = new ShowCompactResponseElement(); - _elem746.read(iprot); - struct.compacts.add(_elem746); + _elem754 = new ShowCompactResponseElement(); + _elem754.read(iprot); + struct.compacts.add(_elem754); } } 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 c462263c2e..d4bf9fac73 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 _list706 = iprot.readListBegin(); - struct.locks = new ArrayList(_list706.size); - ShowLocksResponseElement _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.locks = new ArrayList(_list714.size); + ShowLocksResponseElement _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem707 = new ShowLocksResponseElement(); - _elem707.read(iprot); - struct.locks.add(_elem707); + _elem715 = new ShowLocksResponseElement(); + _elem715.read(iprot); + struct.locks.add(_elem715); } 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 _iter709 : struct.locks) + for (ShowLocksResponseElement _iter717 : struct.locks) { - _iter709.write(oprot); + _iter717.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 _iter710 : struct.locks) + for (ShowLocksResponseElement _iter718 : struct.locks) { - _iter710.write(oprot); + _iter718.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 _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) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list719.size); + ShowLocksResponseElement _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem712 = new ShowLocksResponseElement(); - _elem712.read(iprot); - struct.locks.add(_elem712); + _elem720 = new ShowLocksResponseElement(); + _elem720.read(iprot); + struct.locks.add(_elem720); } } 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 3499bc5287..5101c0358b 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); @@ -275,7 +281,9 @@ public String getFieldName() { tmpMap.put(_Fields.IS_STATS_COMPLIANT, new org.apache.thrift.meta_data.FieldMetaData("isStatsCompliant", org.apache.thrift.TFieldRequirementType.OPTIONAL, 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatistics.class))); + 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); } @@ -379,8 +387,9 @@ public Table(Table other) { this.writeId = other.writeId; this.isStatsCompliant = other.isStatsCompliant; if (other.isSetColStats()) { - this.colStats = new ColumnStatistics(other.colStats); + 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(); } @@ -2020,9 +2096,6 @@ public void validate() throws org.apache.thrift.TException { if (creationMetadata != null) { creationMetadata.validate(); } - if (colStats != null) { - colStats.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -2129,14 +2202,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw case 9: // PARTITION_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list222.size); - FieldSchema _elem223; - for (int _i224 = 0; _i224 < _list222.size; ++_i224) + org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list214.size); + FieldSchema _elem215; + for (int _i216 = 0; _i216 < _list214.size; ++_i216) { - _elem223 = new FieldSchema(); - _elem223.read(iprot); - struct.partitionKeys.add(_elem223); + _elem215 = new FieldSchema(); + _elem215.read(iprot); + struct.partitionKeys.add(_elem215); } iprot.readListEnd(); } @@ -2148,15 +2221,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw case 10: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map225 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map225.size); - String _key226; - String _val227; - for (int _i228 = 0; _i228 < _map225.size; ++_i228) + org.apache.thrift.protocol.TMap _map217 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map217.size); + String _key218; + String _val219; + for (int _i220 = 0; _i220 < _map217.size; ++_i220) { - _key226 = iprot.readString(); - _val227 = iprot.readString(); - struct.parameters.put(_key226, _val227); + _key218 = iprot.readString(); + _val219 = iprot.readString(); + struct.parameters.put(_key218, _val219); } iprot.readMapEnd(); } @@ -2264,6 +2337,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); } @@ -2315,9 +2396,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter229 : struct.partitionKeys) + for (FieldSchema _iter221 : struct.partitionKeys) { - _iter229.write(oprot); + _iter221.write(oprot); } oprot.writeListEnd(); } @@ -2327,10 +2408,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter230 : struct.parameters.entrySet()) + for (Map.Entry _iter222 : struct.parameters.entrySet()) { - oprot.writeString(_iter230.getKey()); - oprot.writeString(_iter230.getValue()); + oprot.writeString(_iter222.getKey()); + oprot.writeString(_iter222.getValue()); } oprot.writeMapEnd(); } @@ -2406,6 +2487,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(); } @@ -2490,7 +2576,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); } @@ -2518,19 +2607,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetPartitionKeys()) { { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter231 : struct.partitionKeys) + for (FieldSchema _iter223 : struct.partitionKeys) { - _iter231.write(oprot); + _iter223.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter232 : struct.parameters.entrySet()) + for (Map.Entry _iter224 : struct.parameters.entrySet()) { - oprot.writeString(_iter232.getKey()); - oprot.writeString(_iter232.getValue()); + oprot.writeString(_iter224.getKey()); + oprot.writeString(_iter224.getValue()); } } } @@ -2570,12 +2659,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); @@ -2611,29 +2703,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list233.size); - FieldSchema _elem234; - for (int _i235 = 0; _i235 < _list233.size; ++_i235) + org.apache.thrift.protocol.TList _list225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list225.size); + FieldSchema _elem226; + for (int _i227 = 0; _i227 < _list225.size; ++_i227) { - _elem234 = new FieldSchema(); - _elem234.read(iprot); - struct.partitionKeys.add(_elem234); + _elem226 = new FieldSchema(); + _elem226.read(iprot); + struct.partitionKeys.add(_elem226); } } struct.setPartitionKeysIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TMap _map236 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map236.size); - String _key237; - String _val238; - for (int _i239 = 0; _i239 < _map236.size; ++_i239) + org.apache.thrift.protocol.TMap _map228 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map228.size); + String _key229; + String _val230; + for (int _i231 = 0; _i231 < _map228.size; ++_i231) { - _key237 = iprot.readString(); - _val238 = iprot.readString(); - struct.parameters.put(_key237, _val238); + _key229 = iprot.readString(); + _val230 = iprot.readString(); + struct.parameters.put(_key229, _val230); } } struct.setParametersIsSet(true); @@ -2689,6 +2781,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 d0ab3b52e9..ef26de2cb1 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 _list658 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list658.size); - long _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list666.size); + long _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem659 = iprot.readI64(); - struct.invalidWriteIds.add(_elem659); + _elem667 = iprot.readI64(); + struct.invalidWriteIds.add(_elem667); } 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 _iter661 : struct.invalidWriteIds) + for (long _iter669 : struct.invalidWriteIds) { - oprot.writeI64(_iter661); + oprot.writeI64(_iter669); } 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 _iter662 : struct.invalidWriteIds) + for (long _iter670 : struct.invalidWriteIds) { - oprot.writeI64(_iter662); + oprot.writeI64(_iter670); } } 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 _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) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list671.size); + long _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem664 = iprot.readI64(); - struct.invalidWriteIds.add(_elem664); + _elem672 = iprot.readI64(); + struct.invalidWriteIds.add(_elem672); } } 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 f2781ce50f..f4218ee042 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 @@ -128,6 +128,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; @@ -580,6 +582,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; @@ -2179,6 +2183,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); @@ -8830,6 +8860,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); @@ -15089,6 +15151,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"); @@ -21051,6 +21138,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"); @@ -44749,13 +44894,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(); } @@ -44790,9 +44935,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(); } @@ -44831,9 +44976,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); } } } @@ -44848,13 +44993,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); @@ -45508,13 +45653,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(); } @@ -45549,9 +45694,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(); } @@ -45590,9 +45735,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); } } } @@ -45607,13 +45752,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); @@ -50220,16 +50365,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(); } @@ -50264,10 +50409,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(); } @@ -50306,10 +50451,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); } } } @@ -50324,16 +50469,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); @@ -51368,14 +51513,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(); } @@ -51428,9 +51573,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(); } @@ -51485,9 +51630,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); } } } @@ -51508,14 +51653,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); @@ -52669,14 +52814,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(); } @@ -52729,9 +52874,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(); } @@ -52786,9 +52931,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); } } } @@ -52809,14 +52954,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); @@ -53861,14 +54006,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(); } @@ -53921,9 +54066,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(); } @@ -53978,9 +54123,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); } } } @@ -54001,14 +54146,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); @@ -55162,14 +55307,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(); } @@ -55222,9 +55367,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(); } @@ -55279,9 +55424,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); } } } @@ -55302,14 +55447,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); @@ -58438,14 +58583,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(); } @@ -58457,14 +58602,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(); } @@ -58476,14 +58621,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(); } @@ -58495,14 +58640,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(); } @@ -58514,14 +58659,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(); } @@ -58533,14 +58678,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(); } @@ -58571,9 +58716,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(); } @@ -58583,9 +58728,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(); } @@ -58595,9 +58740,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(); } @@ -58607,9 +58752,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(); } @@ -58619,9 +58764,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(); } @@ -58631,9 +58776,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(); } @@ -58685,54 +58830,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); } } } @@ -58749,84 +58894,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); @@ -67976,13 +68121,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(); } @@ -68018,9 +68163,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(); } @@ -68063,9 +68208,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); } } } @@ -68085,13 +68230,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); @@ -70148,13 +70293,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(); } @@ -70189,9 +70334,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(); } @@ -70230,9 +70375,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); } } } @@ -70247,13 +70392,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); @@ -71227,13 +71372,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(); } @@ -71268,9 +71413,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(); } @@ -71309,9 +71454,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); } } } @@ -71326,13 +71471,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); @@ -71989,14 +72134,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialize 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); - Table _elem1163; - for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1210.size); + Table _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1163 = new Table(); - _elem1163.read(iprot); - struct.success.add(_elem1163); + _elem1211 = new Table(); + _elem1211.read(iprot); + struct.success.add(_elem1211); } iprot.readListEnd(); } @@ -72031,9 +72176,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materializ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter1165 : struct.success) + for (Table _iter1213 : struct.success) { - _iter1165.write(oprot); + _iter1213.write(oprot); } oprot.writeListEnd(); } @@ -72072,9 +72217,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialize if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1166 : struct.success) + for (Table _iter1214 : struct.success) { - _iter1166.write(oprot); + _iter1214.write(oprot); } } } @@ -72089,14 +72234,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized 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.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1167.size); - Table _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1215.size); + Table _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1168 = new Table(); - _elem1168.read(iprot); - struct.success.add(_elem1168); + _elem1216 = new Table(); + _elem1216.read(iprot); + struct.success.add(_elem1216); } } struct.setSuccessIsSet(true); @@ -72862,13 +73007,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 _list1170 = iprot.readListBegin(); - struct.success = new ArrayList(_list1170.size); - String _elem1171; - for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) + org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); + struct.success = new ArrayList(_list1218.size); + String _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1171 = iprot.readString(); - struct.success.add(_elem1171); + _elem1219 = iprot.readString(); + struct.success.add(_elem1219); } iprot.readListEnd(); } @@ -72903,9 +73048,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 _iter1173 : struct.success) + for (String _iter1221 : struct.success) { - oprot.writeString(_iter1173); + oprot.writeString(_iter1221); } oprot.writeListEnd(); } @@ -72944,9 +73089,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1174 : struct.success) + for (String _iter1222 : struct.success) { - oprot.writeString(_iter1174); + oprot.writeString(_iter1222); } } } @@ -72961,13 +73106,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 _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list1223.size); + String _elem1224; + for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) { - _elem1176 = iprot.readString(); - struct.success.add(_elem1176); + _elem1224 = iprot.readString(); + struct.success.add(_elem1224); } } struct.setSuccessIsSet(true); @@ -73472,13 +73617,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 _list1178 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1178.size); - String _elem1179; - for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) + org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1226.size); + String _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1179 = iprot.readString(); - struct.tbl_types.add(_elem1179); + _elem1227 = iprot.readString(); + struct.tbl_types.add(_elem1227); } iprot.readListEnd(); } @@ -73514,9 +73659,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 _iter1181 : struct.tbl_types) + for (String _iter1229 : struct.tbl_types) { - oprot.writeString(_iter1181); + oprot.writeString(_iter1229); } oprot.writeListEnd(); } @@ -73559,9 +73704,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 _iter1182 : struct.tbl_types) + for (String _iter1230 : struct.tbl_types) { - oprot.writeString(_iter1182); + oprot.writeString(_iter1230); } } } @@ -73581,13 +73726,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1183.size); - String _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.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1231.size); + String _elem1232; + for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) { - _elem1184 = iprot.readString(); - struct.tbl_types.add(_elem1184); + _elem1232 = iprot.readString(); + struct.tbl_types.add(_elem1232); } } struct.setTbl_typesIsSet(true); @@ -73993,14 +74138,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 _list1186 = iprot.readListBegin(); - struct.success = new ArrayList(_list1186.size); - TableMeta _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); + struct.success = new ArrayList(_list1234.size); + TableMeta _elem1235; + for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) { - _elem1187 = new TableMeta(); - _elem1187.read(iprot); - struct.success.add(_elem1187); + _elem1235 = new TableMeta(); + _elem1235.read(iprot); + struct.success.add(_elem1235); } iprot.readListEnd(); } @@ -74035,9 +74180,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 _iter1189 : struct.success) + for (TableMeta _iter1237 : struct.success) { - _iter1189.write(oprot); + _iter1237.write(oprot); } oprot.writeListEnd(); } @@ -74076,9 +74221,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1190 : struct.success) + for (TableMeta _iter1238 : struct.success) { - _iter1190.write(oprot); + _iter1238.write(oprot); } } } @@ -74093,14 +74238,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 _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1191.size); - TableMeta _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1239.size); + TableMeta _elem1240; + for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) { - _elem1192 = new TableMeta(); - _elem1192.read(iprot); - struct.success.add(_elem1192); + _elem1240 = new TableMeta(); + _elem1240.read(iprot); + struct.success.add(_elem1240); } } struct.setSuccessIsSet(true); @@ -74866,13 +75011,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 _list1194 = iprot.readListBegin(); - struct.success = new ArrayList(_list1194.size); - String _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin(); + struct.success = new ArrayList(_list1242.size); + String _elem1243; + for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { - _elem1195 = iprot.readString(); - struct.success.add(_elem1195); + _elem1243 = iprot.readString(); + struct.success.add(_elem1243); } iprot.readListEnd(); } @@ -74907,9 +75052,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 _iter1197 : struct.success) + for (String _iter1245 : struct.success) { - oprot.writeString(_iter1197); + oprot.writeString(_iter1245); } oprot.writeListEnd(); } @@ -74948,9 +75093,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1198 : struct.success) + for (String _iter1246 : struct.success) { - oprot.writeString(_iter1198); + oprot.writeString(_iter1246); } } } @@ -74965,13 +75110,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 _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1199.size); - String _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1247.size); + String _elem1248; + for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { - _elem1200 = iprot.readString(); - struct.success.add(_elem1200); + _elem1248 = iprot.readString(); + struct.success.add(_elem1248); } } struct.setSuccessIsSet(true); @@ -76424,13 +76569,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 _list1202 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1202.size); - String _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1250.size); + String _elem1251; + for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) { - _elem1203 = iprot.readString(); - struct.tbl_names.add(_elem1203); + _elem1251 = iprot.readString(); + struct.tbl_names.add(_elem1251); } iprot.readListEnd(); } @@ -76461,9 +76606,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 _iter1205 : struct.tbl_names) + for (String _iter1253 : struct.tbl_names) { - oprot.writeString(_iter1205); + oprot.writeString(_iter1253); } oprot.writeListEnd(); } @@ -76500,9 +76645,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 _iter1206 : struct.tbl_names) + for (String _iter1254 : struct.tbl_names) { - oprot.writeString(_iter1206); + oprot.writeString(_iter1254); } } } @@ -76518,13 +76663,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1207.size); - String _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.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1255.size); + String _elem1256; + for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) { - _elem1208 = iprot.readString(); - struct.tbl_names.add(_elem1208); + _elem1256 = iprot.readString(); + struct.tbl_names.add(_elem1256); } } struct.setTbl_namesIsSet(true); @@ -76849,14 +76994,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 _list1210 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1210.size); - Table _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) + org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1258.size); + Table _elem1259; + for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) { - _elem1211 = new Table(); - _elem1211.read(iprot); - struct.success.add(_elem1211); + _elem1259 = new Table(); + _elem1259.read(iprot); + struct.success.add(_elem1259); } iprot.readListEnd(); } @@ -76882,9 +77027,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 _iter1213 : struct.success) + for (Table _iter1261 : struct.success) { - _iter1213.write(oprot); + _iter1261.write(oprot); } oprot.writeListEnd(); } @@ -76915,9 +77060,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1214 : struct.success) + for (Table _iter1262 : struct.success) { - _iter1214.write(oprot); + _iter1262.write(oprot); } } } @@ -76929,14 +77074,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 _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1215.size); - Table _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + 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); + Table _elem1264; + for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) { - _elem1216 = new Table(); - _elem1216.read(iprot); - struct.success.add(_elem1216); + _elem1264 = new Table(); + _elem1264.read(iprot); + struct.success.add(_elem1264); } } struct.setSuccessIsSet(true); @@ -76946,18 +77091,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 { @@ -77022,16 +77167,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; @@ -77040,14 +77185,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 @@ -77055,11 +77200,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; } @@ -77084,7 +77229,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetTableRequest)value); + setReq((GetTablesExtRequest)value); } break; @@ -77117,12 +77262,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; @@ -77151,7 +77296,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()); } @@ -77185,7 +77330,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:"); @@ -77223,15 +77368,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) @@ -77243,7 +77388,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 { @@ -77259,7 +77404,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); @@ -77274,16 +77419,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()) { @@ -77296,11 +77441,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); } @@ -77309,28 +77454,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(); @@ -77349,8 +77491,6 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -77395,60 +77535,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; } @@ -77490,36 +77642,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; @@ -77531,14 +77660,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((NoSuchObjectException)value); - } - break; - } } @@ -77550,9 +77671,6 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -77568,8 +77686,6 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -77578,12 +77694,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; @@ -77605,15 +77721,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; } @@ -77631,16 +77738,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()); } @@ -77667,16 +77769,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; } @@ -77694,7 +77786,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:"); @@ -77712,14 +77804,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(); } @@ -77727,9 +77811,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 { @@ -77748,15 +77829,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) @@ -77767,9 +77848,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 _list1266 = iprot.readListBegin(); + struct.success = new ArrayList(_list1266.size); + ExtendedTableInfo _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + { + _elem1267 = new ExtendedTableInfo(); + _elem1267.read(iprot); + struct.success.add(_elem1267); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -77784,15 +77875,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); } @@ -77802,13 +77884,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 _iter1269 : struct.success) + { + _iter1269.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -77816,27 +77905,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()) { @@ -77845,28 +77929,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 _iter1270 : struct.success) + { + _iter1270.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 _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1271.size); + ExtendedTableInfo _elem1272; + for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) + { + _elem1272 = new ExtendedTableInfo(); + _elem1272.read(iprot); + struct.success.add(_elem1272); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -77874,28 +77967,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 { @@ -77960,16 +78048,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; @@ -77978,14 +78066,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 @@ -77993,11 +78081,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; } @@ -78022,7 +78110,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetTablesRequest)value); + setReq((GetTableRequest)value); } break; @@ -78055,12 +78143,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; @@ -78089,7 +78177,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()); } @@ -78123,7 +78211,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:"); @@ -78161,15 +78249,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) @@ -78181,7 +78269,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 { @@ -78197,7 +78285,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); @@ -78212,16 +78300,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()) { @@ -78234,11 +78322,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); } @@ -78247,31 +78335,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(); @@ -78292,8 +78377,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -78338,53 +78421,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 @@ -78392,14 +78468,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; } @@ -78441,11 +78516,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; } @@ -78464,36 +78539,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; @@ -78509,15 +78561,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; @@ -78535,9 +78579,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -78555,8 +78596,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -78565,12 +78604,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; @@ -78601,15 +78640,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; } @@ -78632,16 +78662,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()); } @@ -78678,16 +78703,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; } @@ -78705,7 +78720,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:"); @@ -78731,14 +78746,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(); } @@ -78767,15 +78774,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) @@ -78787,7 +78794,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 { @@ -78805,22 +78812,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); } @@ -78830,7 +78828,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); @@ -78849,27 +78847,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()) { @@ -78881,10 +78874,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); } @@ -78894,17 +78884,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); } @@ -78914,39 +78901,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(); @@ -78961,10 +78940,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; } @@ -79008,109 +78985,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; @@ -79119,11 +79057,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(); @@ -79136,10 +79071,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(); } @@ -79148,30 +79081,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; } @@ -79182,43 +79106,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; } @@ -79240,22 +79149,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(")"); @@ -79265,8 +79166,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(); } } @@ -79286,15 +79187,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) @@ -79304,19 +79205,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); } @@ -79330,18 +79223,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(); @@ -79350,53 +79238,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); @@ -79405,11 +79283,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 @@ -79486,7 +79364,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, @@ -79494,14 +79372,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) @@ -79516,9 +79394,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); @@ -79531,8 +79409,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 @@ -79543,11 +79421,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; } @@ -79641,7 +79519,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Materialization)value); + setSuccess((GetTablesResult)value); } break; @@ -79713,12 +79591,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; @@ -79789,7 +79667,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()); } @@ -79853,7 +79731,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:"); @@ -79915,15 +79793,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) @@ -79935,7 +79813,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 { @@ -79978,7 +79856,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); @@ -80008,16 +79886,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()) { @@ -80048,11 +79926,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); } @@ -80076,31 +79954,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(); @@ -80115,14 +79987,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; } @@ -80166,187 +80034,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; @@ -80355,18 +80145,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(); } @@ -80378,14 +80162,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(); } @@ -80394,42 +80174,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) { @@ -80439,6 +80192,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; } @@ -80446,73 +80208,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; } @@ -80534,38 +80266,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(")"); @@ -80596,15 +80312,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) @@ -80614,35 +80330,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); } @@ -80656,120 +80356,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"); @@ -80787,6 +80460,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 @@ -80836,6 +80511,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, @@ -80843,18 +80520,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; @@ -80863,7 +80542,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); } @@ -80875,17 +80557,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; } @@ -80957,6 +80663,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(); @@ -80986,6 +80700,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -81006,6 +80723,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -81020,15 +80739,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) { @@ -81063,6 +80791,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) @@ -81082,13 +80815,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; @@ -81136,9 +80879,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"); @@ -81169,6 +80920,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 { @@ -81187,15 +80941,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) @@ -81205,6 +80959,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(); @@ -81241,10 +81004,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); @@ -81266,28 +81034,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); } @@ -81300,20 +81074,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); @@ -81323,28 +81102,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(); @@ -81359,12 +81141,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; } @@ -81405,62 +81189,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() { @@ -81486,53 +81296,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(); @@ -81541,19 +81360,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; @@ -81562,14 +81381,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(); @@ -81582,12 +81404,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(); } @@ -81596,15 +81420,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) { @@ -81614,21 +81447,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; } @@ -81639,32 +81472,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; @@ -81675,22 +81523,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; } @@ -81712,9 +81560,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"); @@ -81723,16 +81579,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(); @@ -81741,6 +81601,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 { @@ -81753,23 +81616,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) @@ -81779,7 +81640,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); @@ -81787,18 +81656,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); } @@ -81812,105 +81682,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"); @@ -81928,8 +81813,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 @@ -81979,9 +81862,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, @@ -81989,20 +81869,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; @@ -82011,11 +81889,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); } @@ -82027,56 +81901,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; } @@ -82148,14 +81983,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(); @@ -82185,9 +82012,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -82208,8 +82032,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -82224,24 +82046,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) { @@ -82276,11 +82089,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) @@ -82300,23 +82108,1241 @@ 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; + } + 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("update_creation_metadata_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + 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 update_creation_metadata_resultStandardSchemeFactory implements SchemeFactory { + public update_creation_metadata_resultStandardScheme getScheme() { + return new update_creation_metadata_resultStandardScheme(); + } + } + + private static class update_creation_metadata_resultStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new 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; @@ -82444,13 +83470,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); - struct.success = new ArrayList(_list1218.size); - String _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); + struct.success = new ArrayList(_list1274.size); + String _elem1275; + for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) { - _elem1219 = iprot.readString(); - struct.success.add(_elem1219); + _elem1275 = iprot.readString(); + struct.success.add(_elem1275); } iprot.readListEnd(); } @@ -82503,9 +83529,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 _iter1221 : struct.success) + for (String _iter1277 : struct.success) { - oprot.writeString(_iter1221); + oprot.writeString(_iter1277); } oprot.writeListEnd(); } @@ -82560,9 +83586,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1222 : struct.success) + for (String _iter1278 : struct.success) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1278); } } } @@ -82583,13 +83609,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 _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1223.size); - String _elem1224; - for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) + org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1279.size); + String _elem1280; + for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) { - _elem1224 = iprot.readString(); - struct.success.add(_elem1224); + _elem1280 = iprot.readString(); + struct.success.add(_elem1280); } } struct.setSuccessIsSet(true); @@ -89386,14 +90412,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 _list1226 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1226.size); - Partition _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1282.size); + Partition _elem1283; + for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) { - _elem1227 = new Partition(); - _elem1227.read(iprot); - struct.new_parts.add(_elem1227); + _elem1283 = new Partition(); + _elem1283.read(iprot); + struct.new_parts.add(_elem1283); } iprot.readListEnd(); } @@ -89419,9 +90445,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 _iter1229 : struct.new_parts) + for (Partition _iter1285 : struct.new_parts) { - _iter1229.write(oprot); + _iter1285.write(oprot); } oprot.writeListEnd(); } @@ -89452,9 +90478,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 _iter1230 : struct.new_parts) + for (Partition _iter1286 : struct.new_parts) { - _iter1230.write(oprot); + _iter1286.write(oprot); } } } @@ -89466,14 +90492,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 _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1231.size); - Partition _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); + Partition _elem1288; + for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) { - _elem1232 = new Partition(); - _elem1232.read(iprot); - struct.new_parts.add(_elem1232); + _elem1288 = new Partition(); + _elem1288.read(iprot); + struct.new_parts.add(_elem1288); } } struct.setNew_partsIsSet(true); @@ -90474,14 +91500,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 _list1234 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1234.size); - PartitionSpec _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1290.size); + PartitionSpec _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1235 = new PartitionSpec(); - _elem1235.read(iprot); - struct.new_parts.add(_elem1235); + _elem1291 = new PartitionSpec(); + _elem1291.read(iprot); + struct.new_parts.add(_elem1291); } iprot.readListEnd(); } @@ -90507,9 +91533,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 _iter1237 : struct.new_parts) + for (PartitionSpec _iter1293 : struct.new_parts) { - _iter1237.write(oprot); + _iter1293.write(oprot); } oprot.writeListEnd(); } @@ -90540,9 +91566,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 _iter1238 : struct.new_parts) + for (PartitionSpec _iter1294 : struct.new_parts) { - _iter1238.write(oprot); + _iter1294.write(oprot); } } } @@ -90554,14 +91580,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 _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1239.size); - PartitionSpec _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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1295.size); + PartitionSpec _elem1296; + for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) { - _elem1240 = new PartitionSpec(); - _elem1240.read(iprot); - struct.new_parts.add(_elem1240); + _elem1296 = new PartitionSpec(); + _elem1296.read(iprot); + struct.new_parts.add(_elem1296); } } struct.setNew_partsIsSet(true); @@ -91737,13 +92763,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 _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(); } @@ -91779,9 +92805,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 _iter1245 : struct.part_vals) + for (String _iter1301 : struct.part_vals) { - oprot.writeString(_iter1245); + oprot.writeString(_iter1301); } oprot.writeListEnd(); } @@ -91824,9 +92850,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 _iter1246 : struct.part_vals) + for (String _iter1302 : struct.part_vals) { - oprot.writeString(_iter1246); + oprot.writeString(_iter1302); } } } @@ -91846,13 +92872,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } 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); @@ -94161,13 +95187,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 _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(); } @@ -94212,9 +95238,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 _iter1253 : struct.part_vals) + for (String _iter1309 : struct.part_vals) { - oprot.writeString(_iter1253); + oprot.writeString(_iter1309); } oprot.writeListEnd(); } @@ -94265,9 +95291,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 _iter1254 : struct.part_vals) + for (String _iter1310 : struct.part_vals) { - oprot.writeString(_iter1254); + oprot.writeString(_iter1310); } } } @@ -94290,13 +95316,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } 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); @@ -98166,13 +99192,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 _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(); } @@ -98216,9 +99242,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 _iter1261 : struct.part_vals) + for (String _iter1317 : struct.part_vals) { - oprot.writeString(_iter1261); + oprot.writeString(_iter1317); } oprot.writeListEnd(); } @@ -98267,9 +99293,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 _iter1262 : struct.part_vals) + for (String _iter1318 : struct.part_vals) { - oprot.writeString(_iter1262); + oprot.writeString(_iter1318); } } } @@ -98292,13 +99318,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } 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); @@ -99537,13 +100563,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 _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(); } @@ -99596,9 +100622,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 _iter1269 : struct.part_vals) + for (String _iter1325 : struct.part_vals) { - oprot.writeString(_iter1269); + oprot.writeString(_iter1325); } oprot.writeListEnd(); } @@ -99655,9 +100681,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 _iter1270 : struct.part_vals) + for (String _iter1326 : struct.part_vals) { - oprot.writeString(_iter1270); + oprot.writeString(_iter1326); } } } @@ -99683,13 +100709,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } 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); @@ -104291,13 +105317,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 _list1274 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1274.size); - String _elem1275; - for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) + org.apache.thrift.protocol.TList _list1330 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1330.size); + String _elem1331; + for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) { - _elem1275 = iprot.readString(); - struct.part_vals.add(_elem1275); + _elem1331 = iprot.readString(); + struct.part_vals.add(_elem1331); } iprot.readListEnd(); } @@ -104333,9 +105359,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 _iter1277 : struct.part_vals) + for (String _iter1333 : struct.part_vals) { - oprot.writeString(_iter1277); + oprot.writeString(_iter1333); } oprot.writeListEnd(); } @@ -104378,9 +105404,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 _iter1278 : struct.part_vals) + for (String _iter1334 : struct.part_vals) { - oprot.writeString(_iter1278); + oprot.writeString(_iter1334); } } } @@ -104400,13 +105426,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1279.size); - String _elem1280; - for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) + org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1335.size); + String _elem1336; + for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) { - _elem1280 = iprot.readString(); - struct.part_vals.add(_elem1280); + _elem1336 = iprot.readString(); + struct.part_vals.add(_elem1336); } } struct.setPart_valsIsSet(true); @@ -105624,15 +106650,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 _map1282 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1282.size); - String _key1283; - String _val1284; - for (int _i1285 = 0; _i1285 < _map1282.size; ++_i1285) + org.apache.thrift.protocol.TMap _map1338 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1338.size); + String _key1339; + String _val1340; + for (int _i1341 = 0; _i1341 < _map1338.size; ++_i1341) { - _key1283 = iprot.readString(); - _val1284 = iprot.readString(); - struct.partitionSpecs.put(_key1283, _val1284); + _key1339 = iprot.readString(); + _val1340 = iprot.readString(); + struct.partitionSpecs.put(_key1339, _val1340); } iprot.readMapEnd(); } @@ -105690,10 +106716,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 _iter1286 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1342 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1286.getKey()); - oprot.writeString(_iter1286.getValue()); + oprot.writeString(_iter1342.getKey()); + oprot.writeString(_iter1342.getValue()); } oprot.writeMapEnd(); } @@ -105756,10 +106782,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1287 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1343 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1287.getKey()); - oprot.writeString(_iter1287.getValue()); + oprot.writeString(_iter1343.getKey()); + oprot.writeString(_iter1343.getValue()); } } } @@ -105783,15 +106809,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 _map1288 = 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*_map1288.size); - String _key1289; - String _val1290; - for (int _i1291 = 0; _i1291 < _map1288.size; ++_i1291) + org.apache.thrift.protocol.TMap _map1344 = 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*_map1344.size); + String _key1345; + String _val1346; + for (int _i1347 = 0; _i1347 < _map1344.size; ++_i1347) { - _key1289 = iprot.readString(); - _val1290 = iprot.readString(); - struct.partitionSpecs.put(_key1289, _val1290); + _key1345 = iprot.readString(); + _val1346 = iprot.readString(); + struct.partitionSpecs.put(_key1345, _val1346); } } struct.setPartitionSpecsIsSet(true); @@ -107237,15 +108263,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 _map1292 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1292.size); - String _key1293; - String _val1294; - for (int _i1295 = 0; _i1295 < _map1292.size; ++_i1295) + org.apache.thrift.protocol.TMap _map1348 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1348.size); + String _key1349; + String _val1350; + for (int _i1351 = 0; _i1351 < _map1348.size; ++_i1351) { - _key1293 = iprot.readString(); - _val1294 = iprot.readString(); - struct.partitionSpecs.put(_key1293, _val1294); + _key1349 = iprot.readString(); + _val1350 = iprot.readString(); + struct.partitionSpecs.put(_key1349, _val1350); } iprot.readMapEnd(); } @@ -107303,10 +108329,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 _iter1296 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1352 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1296.getKey()); - oprot.writeString(_iter1296.getValue()); + oprot.writeString(_iter1352.getKey()); + oprot.writeString(_iter1352.getValue()); } oprot.writeMapEnd(); } @@ -107369,10 +108395,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1297 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1353 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1297.getKey()); - oprot.writeString(_iter1297.getValue()); + oprot.writeString(_iter1353.getKey()); + oprot.writeString(_iter1353.getValue()); } } } @@ -107396,15 +108422,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 _map1298 = 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*_map1298.size); - String _key1299; - String _val1300; - for (int _i1301 = 0; _i1301 < _map1298.size; ++_i1301) + org.apache.thrift.protocol.TMap _map1354 = 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*_map1354.size); + String _key1355; + String _val1356; + for (int _i1357 = 0; _i1357 < _map1354.size; ++_i1357) { - _key1299 = iprot.readString(); - _val1300 = iprot.readString(); - struct.partitionSpecs.put(_key1299, _val1300); + _key1355 = iprot.readString(); + _val1356 = iprot.readString(); + struct.partitionSpecs.put(_key1355, _val1356); } } struct.setPartitionSpecsIsSet(true); @@ -108069,14 +109095,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 _list1302 = iprot.readListBegin(); - struct.success = new ArrayList(_list1302.size); - Partition _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) + org.apache.thrift.protocol.TList _list1358 = iprot.readListBegin(); + struct.success = new ArrayList(_list1358.size); + Partition _elem1359; + for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) { - _elem1303 = new Partition(); - _elem1303.read(iprot); - struct.success.add(_elem1303); + _elem1359 = new Partition(); + _elem1359.read(iprot); + struct.success.add(_elem1359); } iprot.readListEnd(); } @@ -108138,9 +109164,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 _iter1305 : struct.success) + for (Partition _iter1361 : struct.success) { - _iter1305.write(oprot); + _iter1361.write(oprot); } oprot.writeListEnd(); } @@ -108203,9 +109229,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1306 : struct.success) + for (Partition _iter1362 : struct.success) { - _iter1306.write(oprot); + _iter1362.write(oprot); } } } @@ -108229,14 +109255,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 _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1307.size); - Partition _elem1308; - for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) + org.apache.thrift.protocol.TList _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1363.size); + Partition _elem1364; + for (int _i1365 = 0; _i1365 < _list1363.size; ++_i1365) { - _elem1308 = new Partition(); - _elem1308.read(iprot); - struct.success.add(_elem1308); + _elem1364 = new Partition(); + _elem1364.read(iprot); + struct.success.add(_elem1364); } } struct.setSuccessIsSet(true); @@ -108935,13 +109961,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 _list1310 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1310.size); - String _elem1311; - for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312) + org.apache.thrift.protocol.TList _list1366 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1366.size); + String _elem1367; + for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) { - _elem1311 = iprot.readString(); - struct.part_vals.add(_elem1311); + _elem1367 = iprot.readString(); + struct.part_vals.add(_elem1367); } iprot.readListEnd(); } @@ -108961,13 +109987,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 _list1313 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1313.size); - String _elem1314; - for (int _i1315 = 0; _i1315 < _list1313.size; ++_i1315) + org.apache.thrift.protocol.TList _list1369 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1369.size); + String _elem1370; + for (int _i1371 = 0; _i1371 < _list1369.size; ++_i1371) { - _elem1314 = iprot.readString(); - struct.group_names.add(_elem1314); + _elem1370 = iprot.readString(); + struct.group_names.add(_elem1370); } iprot.readListEnd(); } @@ -109003,9 +110029,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 _iter1316 : struct.part_vals) + for (String _iter1372 : struct.part_vals) { - oprot.writeString(_iter1316); + oprot.writeString(_iter1372); } oprot.writeListEnd(); } @@ -109020,9 +110046,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 _iter1317 : struct.group_names) + for (String _iter1373 : struct.group_names) { - oprot.writeString(_iter1317); + oprot.writeString(_iter1373); } oprot.writeListEnd(); } @@ -109071,9 +110097,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 _iter1318 : struct.part_vals) + for (String _iter1374 : struct.part_vals) { - oprot.writeString(_iter1318); + oprot.writeString(_iter1374); } } } @@ -109083,9 +110109,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 _iter1319 : struct.group_names) + for (String _iter1375 : struct.group_names) { - oprot.writeString(_iter1319); + oprot.writeString(_iter1375); } } } @@ -109105,13 +110131,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1320 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1320.size); - String _elem1321; - for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) + org.apache.thrift.protocol.TList _list1376 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1376.size); + String _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1321 = iprot.readString(); - struct.part_vals.add(_elem1321); + _elem1377 = iprot.readString(); + struct.part_vals.add(_elem1377); } } struct.setPart_valsIsSet(true); @@ -109122,13 +110148,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1323.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1379.size); + String _elem1380; + for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) { - _elem1324 = iprot.readString(); - struct.group_names.add(_elem1324); + _elem1380 = iprot.readString(); + struct.group_names.add(_elem1380); } } struct.setGroup_namesIsSet(true); @@ -111897,14 +112923,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 _list1326 = iprot.readListBegin(); - struct.success = new ArrayList(_list1326.size); - Partition _elem1327; - for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) + org.apache.thrift.protocol.TList _list1382 = iprot.readListBegin(); + struct.success = new ArrayList(_list1382.size); + Partition _elem1383; + for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) { - _elem1327 = new Partition(); - _elem1327.read(iprot); - struct.success.add(_elem1327); + _elem1383 = new Partition(); + _elem1383.read(iprot); + struct.success.add(_elem1383); } iprot.readListEnd(); } @@ -111948,9 +112974,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 _iter1329 : struct.success) + for (Partition _iter1385 : struct.success) { - _iter1329.write(oprot); + _iter1385.write(oprot); } oprot.writeListEnd(); } @@ -111997,9 +113023,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1330 : struct.success) + for (Partition _iter1386 : struct.success) { - _iter1330.write(oprot); + _iter1386.write(oprot); } } } @@ -112017,14 +113043,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 _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1331.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1387.size); + Partition _elem1388; + for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) { - _elem1332 = new Partition(); - _elem1332.read(iprot); - struct.success.add(_elem1332); + _elem1388 = new Partition(); + _elem1388.read(iprot); + struct.success.add(_elem1388); } } struct.setSuccessIsSet(true); @@ -112714,13 +113740,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 _list1334 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1334.size); - String _elem1335; - for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) + org.apache.thrift.protocol.TList _list1390 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1390.size); + String _elem1391; + for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) { - _elem1335 = iprot.readString(); - struct.group_names.add(_elem1335); + _elem1391 = iprot.readString(); + struct.group_names.add(_elem1391); } iprot.readListEnd(); } @@ -112764,9 +113790,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 _iter1337 : struct.group_names) + for (String _iter1393 : struct.group_names) { - oprot.writeString(_iter1337); + oprot.writeString(_iter1393); } oprot.writeListEnd(); } @@ -112821,9 +113847,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 _iter1338 : struct.group_names) + for (String _iter1394 : struct.group_names) { - oprot.writeString(_iter1338); + oprot.writeString(_iter1394); } } } @@ -112851,13 +113877,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1339.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1395.size); + String _elem1396; + for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) { - _elem1340 = iprot.readString(); - struct.group_names.add(_elem1340); + _elem1396 = iprot.readString(); + struct.group_names.add(_elem1396); } } struct.setGroup_namesIsSet(true); @@ -113344,14 +114370,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 _list1342 = iprot.readListBegin(); - struct.success = new ArrayList(_list1342.size); - Partition _elem1343; - for (int _i1344 = 0; _i1344 < _list1342.size; ++_i1344) + org.apache.thrift.protocol.TList _list1398 = iprot.readListBegin(); + struct.success = new ArrayList(_list1398.size); + Partition _elem1399; + for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) { - _elem1343 = new Partition(); - _elem1343.read(iprot); - struct.success.add(_elem1343); + _elem1399 = new Partition(); + _elem1399.read(iprot); + struct.success.add(_elem1399); } iprot.readListEnd(); } @@ -113395,9 +114421,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 _iter1345 : struct.success) + for (Partition _iter1401 : struct.success) { - _iter1345.write(oprot); + _iter1401.write(oprot); } oprot.writeListEnd(); } @@ -113444,9 +114470,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1346 : struct.success) + for (Partition _iter1402 : struct.success) { - _iter1346.write(oprot); + _iter1402.write(oprot); } } } @@ -113464,14 +114490,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 _list1347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1347.size); - Partition _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); + Partition _elem1404; + for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) { - _elem1348 = new Partition(); - _elem1348.read(iprot); - struct.success.add(_elem1348); + _elem1404 = new Partition(); + _elem1404.read(iprot); + struct.success.add(_elem1404); } } struct.setSuccessIsSet(true); @@ -114534,14 +115560,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 _list1350 = iprot.readListBegin(); - struct.success = new ArrayList(_list1350.size); - PartitionSpec _elem1351; - for (int _i1352 = 0; _i1352 < _list1350.size; ++_i1352) + org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); + struct.success = new ArrayList(_list1406.size); + PartitionSpec _elem1407; + for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) { - _elem1351 = new PartitionSpec(); - _elem1351.read(iprot); - struct.success.add(_elem1351); + _elem1407 = new PartitionSpec(); + _elem1407.read(iprot); + struct.success.add(_elem1407); } iprot.readListEnd(); } @@ -114585,9 +115611,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 _iter1353 : struct.success) + for (PartitionSpec _iter1409 : struct.success) { - _iter1353.write(oprot); + _iter1409.write(oprot); } oprot.writeListEnd(); } @@ -114634,9 +115660,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1354 : struct.success) + for (PartitionSpec _iter1410 : struct.success) { - _iter1354.write(oprot); + _iter1410.write(oprot); } } } @@ -114654,14 +115680,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 _list1355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1355.size); - PartitionSpec _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1411.size); + PartitionSpec _elem1412; + for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) { - _elem1356 = new PartitionSpec(); - _elem1356.read(iprot); - struct.success.add(_elem1356); + _elem1412 = new PartitionSpec(); + _elem1412.read(iprot); + struct.success.add(_elem1412); } } struct.setSuccessIsSet(true); @@ -115721,13 +116747,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 _list1358 = iprot.readListBegin(); - struct.success = new ArrayList(_list1358.size); - String _elem1359; - for (int _i1360 = 0; _i1360 < _list1358.size; ++_i1360) + org.apache.thrift.protocol.TList _list1414 = iprot.readListBegin(); + struct.success = new ArrayList(_list1414.size); + String _elem1415; + for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) { - _elem1359 = iprot.readString(); - struct.success.add(_elem1359); + _elem1415 = iprot.readString(); + struct.success.add(_elem1415); } iprot.readListEnd(); } @@ -115771,9 +116797,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 _iter1361 : struct.success) + for (String _iter1417 : struct.success) { - oprot.writeString(_iter1361); + oprot.writeString(_iter1417); } oprot.writeListEnd(); } @@ -115820,9 +116846,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1362 : struct.success) + for (String _iter1418 : struct.success) { - oprot.writeString(_iter1362); + oprot.writeString(_iter1418); } } } @@ -115840,13 +116866,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 _list1363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list1419.size); + String _elem1420; + for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) { - _elem1364 = iprot.readString(); - struct.success.add(_elem1364); + _elem1420 = iprot.readString(); + struct.success.add(_elem1420); } } struct.setSuccessIsSet(true); @@ -117377,13 +118403,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 _list1366 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1366.size); - String _elem1367; - for (int _i1368 = 0; _i1368 < _list1366.size; ++_i1368) + org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1422.size); + String _elem1423; + for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) { - _elem1367 = iprot.readString(); - struct.part_vals.add(_elem1367); + _elem1423 = iprot.readString(); + struct.part_vals.add(_elem1423); } iprot.readListEnd(); } @@ -117427,9 +118453,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 _iter1369 : struct.part_vals) + for (String _iter1425 : struct.part_vals) { - oprot.writeString(_iter1369); + oprot.writeString(_iter1425); } oprot.writeListEnd(); } @@ -117478,9 +118504,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 _iter1370 : struct.part_vals) + for (String _iter1426 : struct.part_vals) { - oprot.writeString(_iter1370); + oprot.writeString(_iter1426); } } } @@ -117503,13 +118529,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1371 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1371.size); - String _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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1427.size); + String _elem1428; + for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) { - _elem1372 = iprot.readString(); - struct.part_vals.add(_elem1372); + _elem1428 = iprot.readString(); + struct.part_vals.add(_elem1428); } } struct.setPart_valsIsSet(true); @@ -118000,14 +119026,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 _list1374 = iprot.readListBegin(); - struct.success = new ArrayList(_list1374.size); - Partition _elem1375; - for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + org.apache.thrift.protocol.TList _list1430 = iprot.readListBegin(); + struct.success = new ArrayList(_list1430.size); + Partition _elem1431; + for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) { - _elem1375 = new Partition(); - _elem1375.read(iprot); - struct.success.add(_elem1375); + _elem1431 = new Partition(); + _elem1431.read(iprot); + struct.success.add(_elem1431); } iprot.readListEnd(); } @@ -118051,9 +119077,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 _iter1377 : struct.success) + for (Partition _iter1433 : struct.success) { - _iter1377.write(oprot); + _iter1433.write(oprot); } oprot.writeListEnd(); } @@ -118100,9 +119126,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1378 : struct.success) + for (Partition _iter1434 : struct.success) { - _iter1378.write(oprot); + _iter1434.write(oprot); } } } @@ -118120,14 +119146,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 _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) + org.apache.thrift.protocol.TList _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1435.size); + Partition _elem1436; + for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) { - _elem1380 = new Partition(); - _elem1380.read(iprot); - struct.success.add(_elem1380); + _elem1436 = new Partition(); + _elem1436.read(iprot); + struct.success.add(_elem1436); } } struct.setSuccessIsSet(true); @@ -118899,13 +119925,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 _list1382 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1382.size); - String _elem1383; - for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) + org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1438.size); + String _elem1439; + for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) { - _elem1383 = iprot.readString(); - struct.part_vals.add(_elem1383); + _elem1439 = iprot.readString(); + struct.part_vals.add(_elem1439); } iprot.readListEnd(); } @@ -118933,13 +119959,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 _list1385 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1385.size); - String _elem1386; - for (int _i1387 = 0; _i1387 < _list1385.size; ++_i1387) + org.apache.thrift.protocol.TList _list1441 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1441.size); + String _elem1442; + for (int _i1443 = 0; _i1443 < _list1441.size; ++_i1443) { - _elem1386 = iprot.readString(); - struct.group_names.add(_elem1386); + _elem1442 = iprot.readString(); + struct.group_names.add(_elem1442); } iprot.readListEnd(); } @@ -118975,9 +120001,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 _iter1388 : struct.part_vals) + for (String _iter1444 : struct.part_vals) { - oprot.writeString(_iter1388); + oprot.writeString(_iter1444); } oprot.writeListEnd(); } @@ -118995,9 +120021,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 _iter1389 : struct.group_names) + for (String _iter1445 : struct.group_names) { - oprot.writeString(_iter1389); + oprot.writeString(_iter1445); } oprot.writeListEnd(); } @@ -119049,9 +120075,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 _iter1390 : struct.part_vals) + for (String _iter1446 : struct.part_vals) { - oprot.writeString(_iter1390); + oprot.writeString(_iter1446); } } } @@ -119064,9 +120090,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 _iter1391 : struct.group_names) + for (String _iter1447 : struct.group_names) { - oprot.writeString(_iter1391); + oprot.writeString(_iter1447); } } } @@ -119086,13 +120112,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1392 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1392.size); - String _elem1393; - for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) + org.apache.thrift.protocol.TList _list1448 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1448.size); + String _elem1449; + for (int _i1450 = 0; _i1450 < _list1448.size; ++_i1450) { - _elem1393 = iprot.readString(); - struct.part_vals.add(_elem1393); + _elem1449 = iprot.readString(); + struct.part_vals.add(_elem1449); } } struct.setPart_valsIsSet(true); @@ -119107,13 +120133,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1395.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1451.size); + String _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1396 = iprot.readString(); - struct.group_names.add(_elem1396); + _elem1452 = iprot.readString(); + struct.group_names.add(_elem1452); } } struct.setGroup_namesIsSet(true); @@ -119600,14 +120626,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 _list1398 = iprot.readListBegin(); - struct.success = new ArrayList(_list1398.size); - Partition _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.success = new ArrayList(_list1454.size); + Partition _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1399 = new Partition(); - _elem1399.read(iprot); - struct.success.add(_elem1399); + _elem1455 = new Partition(); + _elem1455.read(iprot); + struct.success.add(_elem1455); } iprot.readListEnd(); } @@ -119651,9 +120677,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 _iter1401 : struct.success) + for (Partition _iter1457 : struct.success) { - _iter1401.write(oprot); + _iter1457.write(oprot); } oprot.writeListEnd(); } @@ -119700,9 +120726,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1402 : struct.success) + for (Partition _iter1458 : struct.success) { - _iter1402.write(oprot); + _iter1458.write(oprot); } } } @@ -119720,14 +120746,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 _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1403.size); - Partition _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1459.size); + Partition _elem1460; + for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) { - _elem1404 = new Partition(); - _elem1404.read(iprot); - struct.success.add(_elem1404); + _elem1460 = new Partition(); + _elem1460.read(iprot); + struct.success.add(_elem1460); } } struct.setSuccessIsSet(true); @@ -120320,13 +121346,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 _list1406 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1406.size); - String _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + 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) { - _elem1407 = iprot.readString(); - struct.part_vals.add(_elem1407); + _elem1463 = iprot.readString(); + struct.part_vals.add(_elem1463); } iprot.readListEnd(); } @@ -120370,9 +121396,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 _iter1409 : struct.part_vals) + for (String _iter1465 : struct.part_vals) { - oprot.writeString(_iter1409); + oprot.writeString(_iter1465); } oprot.writeListEnd(); } @@ -120421,9 +121447,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 _iter1410 : struct.part_vals) + for (String _iter1466 : struct.part_vals) { - oprot.writeString(_iter1410); + oprot.writeString(_iter1466); } } } @@ -120446,13 +121472,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1412 = iprot.readString(); - struct.part_vals.add(_elem1412); + _elem1468 = iprot.readString(); + struct.part_vals.add(_elem1468); } } struct.setPart_valsIsSet(true); @@ -120940,13 +121966,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 _list1414 = iprot.readListBegin(); - struct.success = new ArrayList(_list1414.size); - String _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); + struct.success = new ArrayList(_list1470.size); + String _elem1471; + for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) { - _elem1415 = iprot.readString(); - struct.success.add(_elem1415); + _elem1471 = iprot.readString(); + struct.success.add(_elem1471); } iprot.readListEnd(); } @@ -120990,9 +122016,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 _iter1417 : struct.success) + for (String _iter1473 : struct.success) { - oprot.writeString(_iter1417); + oprot.writeString(_iter1473); } oprot.writeListEnd(); } @@ -121039,9 +122065,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1418 : struct.success) + for (String _iter1474 : struct.success) { - oprot.writeString(_iter1418); + oprot.writeString(_iter1474); } } } @@ -121059,13 +122085,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 _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1419.size); - String _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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1475.size); + String _elem1476; + for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) { - _elem1420 = iprot.readString(); - struct.success.add(_elem1420); + _elem1476 = iprot.readString(); + struct.success.add(_elem1476); } } struct.setSuccessIsSet(true); @@ -122232,14 +123258,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 _list1422 = iprot.readListBegin(); - struct.success = new ArrayList(_list1422.size); - Partition _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + org.apache.thrift.protocol.TList _list1478 = iprot.readListBegin(); + struct.success = new ArrayList(_list1478.size); + Partition _elem1479; + for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) { - _elem1423 = new Partition(); - _elem1423.read(iprot); - struct.success.add(_elem1423); + _elem1479 = new Partition(); + _elem1479.read(iprot); + struct.success.add(_elem1479); } iprot.readListEnd(); } @@ -122283,9 +123309,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 _iter1425 : struct.success) + for (Partition _iter1481 : struct.success) { - _iter1425.write(oprot); + _iter1481.write(oprot); } oprot.writeListEnd(); } @@ -122332,9 +123358,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1426 : struct.success) + for (Partition _iter1482 : struct.success) { - _iter1426.write(oprot); + _iter1482.write(oprot); } } } @@ -122352,14 +123378,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 _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) + 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); + Partition _elem1484; + for (int _i1485 = 0; _i1485 < _list1483.size; ++_i1485) { - _elem1428 = new Partition(); - _elem1428.read(iprot); - struct.success.add(_elem1428); + _elem1484 = new Partition(); + _elem1484.read(iprot); + struct.success.add(_elem1484); } } struct.setSuccessIsSet(true); @@ -123526,14 +124552,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 _list1430 = iprot.readListBegin(); - struct.success = new ArrayList(_list1430.size); - PartitionSpec _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1486 = iprot.readListBegin(); + struct.success = new ArrayList(_list1486.size); + PartitionSpec _elem1487; + for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) { - _elem1431 = new PartitionSpec(); - _elem1431.read(iprot); - struct.success.add(_elem1431); + _elem1487 = new PartitionSpec(); + _elem1487.read(iprot); + struct.success.add(_elem1487); } iprot.readListEnd(); } @@ -123577,9 +124603,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 _iter1433 : struct.success) + for (PartitionSpec _iter1489 : struct.success) { - _iter1433.write(oprot); + _iter1489.write(oprot); } oprot.writeListEnd(); } @@ -123626,9 +124652,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 _iter1434 : struct.success) + for (PartitionSpec _iter1490 : struct.success) { - _iter1434.write(oprot); + _iter1490.write(oprot); } } } @@ -123646,14 +124672,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 _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1435.size); - PartitionSpec _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1491.size); + PartitionSpec _elem1492; + for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) { - _elem1436 = new PartitionSpec(); - _elem1436.read(iprot); - struct.success.add(_elem1436); + _elem1492 = new PartitionSpec(); + _elem1492.read(iprot); + struct.success.add(_elem1492); } } struct.setSuccessIsSet(true); @@ -126237,13 +127263,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 _list1438 = iprot.readListBegin(); - struct.names = new ArrayList(_list1438.size); - String _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1494 = iprot.readListBegin(); + struct.names = new ArrayList(_list1494.size); + String _elem1495; + for (int _i1496 = 0; _i1496 < _list1494.size; ++_i1496) { - _elem1439 = iprot.readString(); - struct.names.add(_elem1439); + _elem1495 = iprot.readString(); + struct.names.add(_elem1495); } iprot.readListEnd(); } @@ -126279,9 +127305,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 _iter1441 : struct.names) + for (String _iter1497 : struct.names) { - oprot.writeString(_iter1441); + oprot.writeString(_iter1497); } oprot.writeListEnd(); } @@ -126324,9 +127350,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1442 : struct.names) + for (String _iter1498 : struct.names) { - oprot.writeString(_iter1442); + oprot.writeString(_iter1498); } } } @@ -126346,13 +127372,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1443.size); - String _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.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1499.size); + String _elem1500; + for (int _i1501 = 0; _i1501 < _list1499.size; ++_i1501) { - _elem1444 = iprot.readString(); - struct.names.add(_elem1444); + _elem1500 = iprot.readString(); + struct.names.add(_elem1500); } } struct.setNamesIsSet(true); @@ -126839,14 +127865,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 _list1446 = iprot.readListBegin(); - struct.success = new ArrayList(_list1446.size); - Partition _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1502 = iprot.readListBegin(); + struct.success = new ArrayList(_list1502.size); + Partition _elem1503; + for (int _i1504 = 0; _i1504 < _list1502.size; ++_i1504) { - _elem1447 = new Partition(); - _elem1447.read(iprot); - struct.success.add(_elem1447); + _elem1503 = new Partition(); + _elem1503.read(iprot); + struct.success.add(_elem1503); } iprot.readListEnd(); } @@ -126890,9 +127916,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 _iter1449 : struct.success) + for (Partition _iter1505 : struct.success) { - _iter1449.write(oprot); + _iter1505.write(oprot); } oprot.writeListEnd(); } @@ -126939,9 +127965,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1450 : struct.success) + for (Partition _iter1506 : struct.success) { - _iter1450.write(oprot); + _iter1506.write(oprot); } } } @@ -126959,14 +127985,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 _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) + org.apache.thrift.protocol.TList _list1507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1507.size); + Partition _elem1508; + for (int _i1509 = 0; _i1509 < _list1507.size; ++_i1509) { - _elem1452 = new Partition(); - _elem1452.read(iprot); - struct.success.add(_elem1452); + _elem1508 = new Partition(); + _elem1508.read(iprot); + struct.success.add(_elem1508); } } struct.setSuccessIsSet(true); @@ -129454,14 +130480,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 _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(); } @@ -129497,9 +130523,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 _iter1457 : struct.new_parts) + for (Partition _iter1513 : struct.new_parts) { - _iter1457.write(oprot); + _iter1513.write(oprot); } oprot.writeListEnd(); } @@ -129542,9 +130568,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 _iter1458 : struct.new_parts) + for (Partition _iter1514 : struct.new_parts) { - _iter1458.write(oprot); + _iter1514.write(oprot); } } } @@ -129564,14 +130590,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } 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); @@ -130624,14 +131650,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 _list1462 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1462.size); - Partition _elem1463; - for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) + org.apache.thrift.protocol.TList _list1518 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1518.size); + Partition _elem1519; + for (int _i1520 = 0; _i1520 < _list1518.size; ++_i1520) { - _elem1463 = new Partition(); - _elem1463.read(iprot); - struct.new_parts.add(_elem1463); + _elem1519 = new Partition(); + _elem1519.read(iprot); + struct.new_parts.add(_elem1519); } iprot.readListEnd(); } @@ -130676,9 +131702,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 _iter1465 : struct.new_parts) + for (Partition _iter1521 : struct.new_parts) { - _iter1465.write(oprot); + _iter1521.write(oprot); } oprot.writeListEnd(); } @@ -130729,9 +131755,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 _iter1466 : struct.new_parts) + for (Partition _iter1522 : struct.new_parts) { - _iter1466.write(oprot); + _iter1522.write(oprot); } } } @@ -130754,14 +131780,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1467.size); - Partition _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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1523.size); + Partition _elem1524; + for (int _i1525 = 0; _i1525 < _list1523.size; ++_i1525) { - _elem1468 = new Partition(); - _elem1468.read(iprot); - struct.new_parts.add(_elem1468); + _elem1524 = new Partition(); + _elem1524.read(iprot); + struct.new_parts.add(_elem1524); } } struct.setNew_partsIsSet(true); @@ -133900,13 +134926,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 _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(); } @@ -133951,9 +134977,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 _iter1473 : struct.part_vals) + for (String _iter1529 : struct.part_vals) { - oprot.writeString(_iter1473); + oprot.writeString(_iter1529); } oprot.writeListEnd(); } @@ -134004,9 +135030,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 _iter1474 : struct.part_vals) + for (String _iter1530 : struct.part_vals) { - oprot.writeString(_iter1474); + oprot.writeString(_iter1530); } } } @@ -134029,13 +135055,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - 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); @@ -135847,13 +136873,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 _list1478 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1478.size); - String _elem1479; - for (int _i1480 = 0; _i1480 < _list1478.size; ++_i1480) + org.apache.thrift.protocol.TList _list1534 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1534.size); + String _elem1535; + for (int _i1536 = 0; _i1536 < _list1534.size; ++_i1536) { - _elem1479 = iprot.readString(); - struct.part_vals.add(_elem1479); + _elem1535 = iprot.readString(); + struct.part_vals.add(_elem1535); } iprot.readListEnd(); } @@ -135887,9 +136913,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 _iter1481 : struct.part_vals) + for (String _iter1537 : struct.part_vals) { - oprot.writeString(_iter1481); + oprot.writeString(_iter1537); } oprot.writeListEnd(); } @@ -135926,9 +136952,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 _iter1482 : struct.part_vals) + for (String _iter1538 : struct.part_vals) { - oprot.writeString(_iter1482); + oprot.writeString(_iter1538); } } } @@ -135943,13 +136969,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 _list1483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list1539.size); + String _elem1540; + for (int _i1541 = 0; _i1541 < _list1539.size; ++_i1541) { - _elem1484 = iprot.readString(); - struct.part_vals.add(_elem1484); + _elem1540 = iprot.readString(); + struct.part_vals.add(_elem1540); } } struct.setPart_valsIsSet(true); @@ -138104,13 +139130,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 _list1486 = iprot.readListBegin(); - struct.success = new ArrayList(_list1486.size); - String _elem1487; - for (int _i1488 = 0; _i1488 < _list1486.size; ++_i1488) + org.apache.thrift.protocol.TList _list1542 = iprot.readListBegin(); + struct.success = new ArrayList(_list1542.size); + String _elem1543; + for (int _i1544 = 0; _i1544 < _list1542.size; ++_i1544) { - _elem1487 = iprot.readString(); - struct.success.add(_elem1487); + _elem1543 = iprot.readString(); + struct.success.add(_elem1543); } iprot.readListEnd(); } @@ -138145,9 +139171,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 _iter1489 : struct.success) + for (String _iter1545 : struct.success) { - oprot.writeString(_iter1489); + oprot.writeString(_iter1545); } oprot.writeListEnd(); } @@ -138186,9 +139212,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1490 : struct.success) + for (String _iter1546 : struct.success) { - oprot.writeString(_iter1490); + oprot.writeString(_iter1546); } } } @@ -138203,13 +139229,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 _list1491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1491.size); - String _elem1492; - for (int _i1493 = 0; _i1493 < _list1491.size; ++_i1493) + org.apache.thrift.protocol.TList _list1547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1547.size); + String _elem1548; + for (int _i1549 = 0; _i1549 < _list1547.size; ++_i1549) { - _elem1492 = iprot.readString(); - struct.success.add(_elem1492); + _elem1548 = iprot.readString(); + struct.success.add(_elem1548); } } struct.setSuccessIsSet(true); @@ -138972,15 +139998,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 _map1494 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1494.size); - String _key1495; - String _val1496; - for (int _i1497 = 0; _i1497 < _map1494.size; ++_i1497) + org.apache.thrift.protocol.TMap _map1550 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1550.size); + String _key1551; + String _val1552; + for (int _i1553 = 0; _i1553 < _map1550.size; ++_i1553) { - _key1495 = iprot.readString(); - _val1496 = iprot.readString(); - struct.success.put(_key1495, _val1496); + _key1551 = iprot.readString(); + _val1552 = iprot.readString(); + struct.success.put(_key1551, _val1552); } iprot.readMapEnd(); } @@ -139015,10 +140041,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 _iter1498 : struct.success.entrySet()) + for (Map.Entry _iter1554 : struct.success.entrySet()) { - oprot.writeString(_iter1498.getKey()); - oprot.writeString(_iter1498.getValue()); + oprot.writeString(_iter1554.getKey()); + oprot.writeString(_iter1554.getValue()); } oprot.writeMapEnd(); } @@ -139057,10 +140083,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 _iter1499 : struct.success.entrySet()) + for (Map.Entry _iter1555 : struct.success.entrySet()) { - oprot.writeString(_iter1499.getKey()); - oprot.writeString(_iter1499.getValue()); + oprot.writeString(_iter1555.getKey()); + oprot.writeString(_iter1555.getValue()); } } } @@ -139075,15 +140101,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 _map1500 = 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*_map1500.size); - String _key1501; - String _val1502; - for (int _i1503 = 0; _i1503 < _map1500.size; ++_i1503) + org.apache.thrift.protocol.TMap _map1556 = 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*_map1556.size); + String _key1557; + String _val1558; + for (int _i1559 = 0; _i1559 < _map1556.size; ++_i1559) { - _key1501 = iprot.readString(); - _val1502 = iprot.readString(); - struct.success.put(_key1501, _val1502); + _key1557 = iprot.readString(); + _val1558 = iprot.readString(); + struct.success.put(_key1557, _val1558); } } struct.setSuccessIsSet(true); @@ -139678,15 +140704,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 _map1504 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1504.size); - String _key1505; - String _val1506; - for (int _i1507 = 0; _i1507 < _map1504.size; ++_i1507) + org.apache.thrift.protocol.TMap _map1560 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1560.size); + String _key1561; + String _val1562; + for (int _i1563 = 0; _i1563 < _map1560.size; ++_i1563) { - _key1505 = iprot.readString(); - _val1506 = iprot.readString(); - struct.part_vals.put(_key1505, _val1506); + _key1561 = iprot.readString(); + _val1562 = iprot.readString(); + struct.part_vals.put(_key1561, _val1562); } iprot.readMapEnd(); } @@ -139730,10 +140756,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 _iter1508 : struct.part_vals.entrySet()) + for (Map.Entry _iter1564 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1508.getKey()); - oprot.writeString(_iter1508.getValue()); + oprot.writeString(_iter1564.getKey()); + oprot.writeString(_iter1564.getValue()); } oprot.writeMapEnd(); } @@ -139784,10 +140810,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1509 : struct.part_vals.entrySet()) + for (Map.Entry _iter1565 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1509.getKey()); - oprot.writeString(_iter1509.getValue()); + oprot.writeString(_iter1565.getKey()); + oprot.writeString(_iter1565.getValue()); } } } @@ -139810,15 +140836,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1510 = 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*_map1510.size); - String _key1511; - String _val1512; - for (int _i1513 = 0; _i1513 < _map1510.size; ++_i1513) + org.apache.thrift.protocol.TMap _map1566 = 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*_map1566.size); + String _key1567; + String _val1568; + for (int _i1569 = 0; _i1569 < _map1566.size; ++_i1569) { - _key1511 = iprot.readString(); - _val1512 = iprot.readString(); - struct.part_vals.put(_key1511, _val1512); + _key1567 = iprot.readString(); + _val1568 = iprot.readString(); + struct.part_vals.put(_key1567, _val1568); } } struct.setPart_valsIsSet(true); @@ -141302,15 +142328,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 _map1514 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1514.size); - String _key1515; - String _val1516; - for (int _i1517 = 0; _i1517 < _map1514.size; ++_i1517) + org.apache.thrift.protocol.TMap _map1570 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1570.size); + String _key1571; + String _val1572; + for (int _i1573 = 0; _i1573 < _map1570.size; ++_i1573) { - _key1515 = iprot.readString(); - _val1516 = iprot.readString(); - struct.part_vals.put(_key1515, _val1516); + _key1571 = iprot.readString(); + _val1572 = iprot.readString(); + struct.part_vals.put(_key1571, _val1572); } iprot.readMapEnd(); } @@ -141354,10 +142380,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 _iter1518 : struct.part_vals.entrySet()) + for (Map.Entry _iter1574 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1518.getKey()); - oprot.writeString(_iter1518.getValue()); + oprot.writeString(_iter1574.getKey()); + oprot.writeString(_iter1574.getValue()); } oprot.writeMapEnd(); } @@ -141408,10 +142434,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1519 : struct.part_vals.entrySet()) + for (Map.Entry _iter1575 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1519.getKey()); - oprot.writeString(_iter1519.getValue()); + oprot.writeString(_iter1575.getKey()); + oprot.writeString(_iter1575.getValue()); } } } @@ -141434,15 +142460,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1520 = 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*_map1520.size); - String _key1521; - String _val1522; - for (int _i1523 = 0; _i1523 < _map1520.size; ++_i1523) + org.apache.thrift.protocol.TMap _map1576 = 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*_map1576.size); + String _key1577; + String _val1578; + for (int _i1579 = 0; _i1579 < _map1576.size; ++_i1579) { - _key1521 = iprot.readString(); - _val1522 = iprot.readString(); - struct.part_vals.put(_key1521, _val1522); + _key1577 = iprot.readString(); + _val1578 = iprot.readString(); + struct.part_vals.put(_key1577, _val1578); } } struct.setPart_valsIsSet(true); @@ -166098,13 +167124,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 _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(); } @@ -166139,9 +167165,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 _iter1527 : struct.success) + for (String _iter1583 : struct.success) { - oprot.writeString(_iter1527); + oprot.writeString(_iter1583); } oprot.writeListEnd(); } @@ -166180,9 +167206,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1528 : struct.success) + for (String _iter1584 : struct.success) { - oprot.writeString(_iter1528); + oprot.writeString(_iter1584); } } } @@ -166197,13 +167223,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 _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); @@ -170258,13 +171284,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 _list1532 = iprot.readListBegin(); - struct.success = new ArrayList(_list1532.size); - String _elem1533; - for (int _i1534 = 0; _i1534 < _list1532.size; ++_i1534) + org.apache.thrift.protocol.TList _list1588 = iprot.readListBegin(); + struct.success = new ArrayList(_list1588.size); + String _elem1589; + for (int _i1590 = 0; _i1590 < _list1588.size; ++_i1590) { - _elem1533 = iprot.readString(); - struct.success.add(_elem1533); + _elem1589 = iprot.readString(); + struct.success.add(_elem1589); } iprot.readListEnd(); } @@ -170299,9 +171325,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 _iter1535 : struct.success) + for (String _iter1591 : struct.success) { - oprot.writeString(_iter1535); + oprot.writeString(_iter1591); } oprot.writeListEnd(); } @@ -170340,9 +171366,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1536 : struct.success) + for (String _iter1592 : struct.success) { - oprot.writeString(_iter1536); + oprot.writeString(_iter1592); } } } @@ -170357,13 +171383,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 _list1537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1537.size); - String _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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1593.size); + String _elem1594; + for (int _i1595 = 0; _i1595 < _list1593.size; ++_i1595) { - _elem1538 = iprot.readString(); - struct.success.add(_elem1538); + _elem1594 = iprot.readString(); + struct.success.add(_elem1594); } } struct.setSuccessIsSet(true); @@ -173654,14 +174680,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 _list1540 = iprot.readListBegin(); - struct.success = new ArrayList(_list1540.size); - Role _elem1541; - for (int _i1542 = 0; _i1542 < _list1540.size; ++_i1542) + org.apache.thrift.protocol.TList _list1596 = iprot.readListBegin(); + struct.success = new ArrayList(_list1596.size); + Role _elem1597; + for (int _i1598 = 0; _i1598 < _list1596.size; ++_i1598) { - _elem1541 = new Role(); - _elem1541.read(iprot); - struct.success.add(_elem1541); + _elem1597 = new Role(); + _elem1597.read(iprot); + struct.success.add(_elem1597); } iprot.readListEnd(); } @@ -173696,9 +174722,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 _iter1543 : struct.success) + for (Role _iter1599 : struct.success) { - _iter1543.write(oprot); + _iter1599.write(oprot); } oprot.writeListEnd(); } @@ -173737,9 +174763,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1544 : struct.success) + for (Role _iter1600 : struct.success) { - _iter1544.write(oprot); + _iter1600.write(oprot); } } } @@ -173754,14 +174780,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 _list1545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1545.size); - Role _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1601.size); + Role _elem1602; + for (int _i1603 = 0; _i1603 < _list1601.size; ++_i1603) { - _elem1546 = new Role(); - _elem1546.read(iprot); - struct.success.add(_elem1546); + _elem1602 = new Role(); + _elem1602.read(iprot); + struct.success.add(_elem1602); } } struct.setSuccessIsSet(true); @@ -176766,13 +177792,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 _list1548 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1548.size); - String _elem1549; - for (int _i1550 = 0; _i1550 < _list1548.size; ++_i1550) + org.apache.thrift.protocol.TList _list1604 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1604.size); + String _elem1605; + for (int _i1606 = 0; _i1606 < _list1604.size; ++_i1606) { - _elem1549 = iprot.readString(); - struct.group_names.add(_elem1549); + _elem1605 = iprot.readString(); + struct.group_names.add(_elem1605); } iprot.readListEnd(); } @@ -176808,9 +177834,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 _iter1551 : struct.group_names) + for (String _iter1607 : struct.group_names) { - oprot.writeString(_iter1551); + oprot.writeString(_iter1607); } oprot.writeListEnd(); } @@ -176853,9 +177879,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 _iter1552 : struct.group_names) + for (String _iter1608 : struct.group_names) { - oprot.writeString(_iter1552); + oprot.writeString(_iter1608); } } } @@ -176876,13 +177902,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1553.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1609.size); + String _elem1610; + for (int _i1611 = 0; _i1611 < _list1609.size; ++_i1611) { - _elem1554 = iprot.readString(); - struct.group_names.add(_elem1554); + _elem1610 = iprot.readString(); + struct.group_names.add(_elem1610); } } struct.setGroup_namesIsSet(true); @@ -178340,14 +179366,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 _list1556 = iprot.readListBegin(); - struct.success = new ArrayList(_list1556.size); - HiveObjectPrivilege _elem1557; - for (int _i1558 = 0; _i1558 < _list1556.size; ++_i1558) + org.apache.thrift.protocol.TList _list1612 = iprot.readListBegin(); + struct.success = new ArrayList(_list1612.size); + HiveObjectPrivilege _elem1613; + for (int _i1614 = 0; _i1614 < _list1612.size; ++_i1614) { - _elem1557 = new HiveObjectPrivilege(); - _elem1557.read(iprot); - struct.success.add(_elem1557); + _elem1613 = new HiveObjectPrivilege(); + _elem1613.read(iprot); + struct.success.add(_elem1613); } iprot.readListEnd(); } @@ -178382,9 +179408,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 _iter1559 : struct.success) + for (HiveObjectPrivilege _iter1615 : struct.success) { - _iter1559.write(oprot); + _iter1615.write(oprot); } oprot.writeListEnd(); } @@ -178423,9 +179449,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1560 : struct.success) + for (HiveObjectPrivilege _iter1616 : struct.success) { - _iter1560.write(oprot); + _iter1616.write(oprot); } } } @@ -178440,14 +179466,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 _list1561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1561.size); - HiveObjectPrivilege _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1617.size); + HiveObjectPrivilege _elem1618; + for (int _i1619 = 0; _i1619 < _list1617.size; ++_i1619) { - _elem1562 = new HiveObjectPrivilege(); - _elem1562.read(iprot); - struct.success.add(_elem1562); + _elem1618 = new HiveObjectPrivilege(); + _elem1618.read(iprot); + struct.success.add(_elem1618); } } struct.setSuccessIsSet(true); @@ -182394,13 +183420,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 _list1564 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1564.size); - String _elem1565; - for (int _i1566 = 0; _i1566 < _list1564.size; ++_i1566) + org.apache.thrift.protocol.TList _list1620 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1620.size); + String _elem1621; + for (int _i1622 = 0; _i1622 < _list1620.size; ++_i1622) { - _elem1565 = iprot.readString(); - struct.group_names.add(_elem1565); + _elem1621 = iprot.readString(); + struct.group_names.add(_elem1621); } iprot.readListEnd(); } @@ -182431,9 +183457,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 _iter1567 : struct.group_names) + for (String _iter1623 : struct.group_names) { - oprot.writeString(_iter1567); + oprot.writeString(_iter1623); } oprot.writeListEnd(); } @@ -182470,9 +183496,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 _iter1568 : struct.group_names) + for (String _iter1624 : struct.group_names) { - oprot.writeString(_iter1568); + oprot.writeString(_iter1624); } } } @@ -182488,13 +183514,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.group_names = new ArrayList(_list1625.size); + String _elem1626; + for (int _i1627 = 0; _i1627 < _list1625.size; ++_i1627) { - _elem1570 = iprot.readString(); - struct.group_names.add(_elem1570); + _elem1626 = iprot.readString(); + struct.group_names.add(_elem1626); } } struct.setGroup_namesIsSet(true); @@ -182897,13 +183923,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 _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(); } @@ -182938,9 +183964,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 _iter1575 : struct.success) + for (String _iter1631 : struct.success) { - oprot.writeString(_iter1575); + oprot.writeString(_iter1631); } oprot.writeListEnd(); } @@ -182979,9 +184005,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1576 : struct.success) + for (String _iter1632 : struct.success) { - oprot.writeString(_iter1576); + oprot.writeString(_iter1632); } } } @@ -182996,13 +184022,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 _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); @@ -188293,13 +189319,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 _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(); } @@ -188325,9 +189351,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 _iter1583 : struct.success) + for (String _iter1639 : struct.success) { - oprot.writeString(_iter1583); + oprot.writeString(_iter1639); } oprot.writeListEnd(); } @@ -188358,9 +189384,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1584 : struct.success) + for (String _iter1640 : struct.success) { - oprot.writeString(_iter1584); + oprot.writeString(_iter1640); } } } @@ -188372,13 +189398,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 _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); @@ -191408,13 +192434,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 _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(); } @@ -191440,9 +192466,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 _iter1591 : struct.success) + for (String _iter1647 : struct.success) { - oprot.writeString(_iter1591); + oprot.writeString(_iter1647); } oprot.writeListEnd(); } @@ -191473,9 +192499,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1592 : struct.success) + for (String _iter1648 : struct.success) { - oprot.writeString(_iter1592); + oprot.writeString(_iter1648); } } } @@ -191487,13 +192513,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 _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); @@ -208614,13 +209640,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 _list1596 = iprot.readListBegin(); - struct.success = new ArrayList(_list1596.size); - String _elem1597; - for (int _i1598 = 0; _i1598 < _list1596.size; ++_i1598) + org.apache.thrift.protocol.TList _list1652 = iprot.readListBegin(); + struct.success = new ArrayList(_list1652.size); + String _elem1653; + for (int _i1654 = 0; _i1654 < _list1652.size; ++_i1654) { - _elem1597 = iprot.readString(); - struct.success.add(_elem1597); + _elem1653 = iprot.readString(); + struct.success.add(_elem1653); } iprot.readListEnd(); } @@ -208646,9 +209672,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 _iter1599 : struct.success) + for (String _iter1655 : struct.success) { - oprot.writeString(_iter1599); + oprot.writeString(_iter1655); } oprot.writeListEnd(); } @@ -208679,9 +209705,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, find_columns_with_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1600 : struct.success) + for (String _iter1656 : struct.success) { - oprot.writeString(_iter1600); + oprot.writeString(_iter1656); } } } @@ -208693,13 +209719,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 _list1601 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1601.size); - String _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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1657.size); + String _elem1658; + for (int _i1659 = 0; _i1659 < _list1657.size; ++_i1659) { - _elem1602 = iprot.readString(); - struct.success.add(_elem1602); + _elem1658 = iprot.readString(); + struct.success.add(_elem1658); } } struct.setSuccessIsSet(true); @@ -245585,14 +246611,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 _list1604 = iprot.readListBegin(); - struct.success = new ArrayList(_list1604.size); - SchemaVersion _elem1605; - for (int _i1606 = 0; _i1606 < _list1604.size; ++_i1606) + org.apache.thrift.protocol.TList _list1660 = iprot.readListBegin(); + struct.success = new ArrayList(_list1660.size); + SchemaVersion _elem1661; + for (int _i1662 = 0; _i1662 < _list1660.size; ++_i1662) { - _elem1605 = new SchemaVersion(); - _elem1605.read(iprot); - struct.success.add(_elem1605); + _elem1661 = new SchemaVersion(); + _elem1661.read(iprot); + struct.success.add(_elem1661); } iprot.readListEnd(); } @@ -245636,9 +246662,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 _iter1607 : struct.success) + for (SchemaVersion _iter1663 : struct.success) { - _iter1607.write(oprot); + _iter1663.write(oprot); } oprot.writeListEnd(); } @@ -245685,9 +246711,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1608 : struct.success) + for (SchemaVersion _iter1664 : struct.success) { - _iter1608.write(oprot); + _iter1664.write(oprot); } } } @@ -245705,14 +246731,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 _list1609 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1609.size); - SchemaVersion _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); + SchemaVersion _elem1666; + for (int _i1667 = 0; _i1667 < _list1665.size; ++_i1667) { - _elem1610 = new SchemaVersion(); - _elem1610.read(iprot); - struct.success.add(_elem1610); + _elem1666 = new SchemaVersion(); + _elem1666.read(iprot); + struct.success.add(_elem1666); } } struct.setSuccessIsSet(true); @@ -254255,14 +255281,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 _list1612 = iprot.readListBegin(); - struct.success = new ArrayList(_list1612.size); - RuntimeStat _elem1613; - for (int _i1614 = 0; _i1614 < _list1612.size; ++_i1614) + org.apache.thrift.protocol.TList _list1668 = iprot.readListBegin(); + struct.success = new ArrayList(_list1668.size); + RuntimeStat _elem1669; + for (int _i1670 = 0; _i1670 < _list1668.size; ++_i1670) { - _elem1613 = new RuntimeStat(); - _elem1613.read(iprot); - struct.success.add(_elem1613); + _elem1669 = new RuntimeStat(); + _elem1669.read(iprot); + struct.success.add(_elem1669); } iprot.readListEnd(); } @@ -254297,9 +255323,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 _iter1615 : struct.success) + for (RuntimeStat _iter1671 : struct.success) { - _iter1615.write(oprot); + _iter1671.write(oprot); } oprot.writeListEnd(); } @@ -254338,9 +255364,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_runtime_stats_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (RuntimeStat _iter1616 : struct.success) + for (RuntimeStat _iter1672 : struct.success) { - _iter1616.write(oprot); + _iter1672.write(oprot); } } } @@ -254355,14 +255381,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 _list1617 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1617.size); - RuntimeStat _elem1618; - for (int _i1619 = 0; _i1619 < _list1617.size; ++_i1619) + org.apache.thrift.protocol.TList _list1673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1673.size); + RuntimeStat _elem1674; + for (int _i1675 = 0; _i1675 < _list1673.size; ++_i1675) { - _elem1618 = new RuntimeStat(); - _elem1618.read(iprot); - struct.success.add(_elem1618); + _elem1674 = new RuntimeStat(); + _elem1674.read(iprot); + struct.success.add(_elem1674); } } 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 f41a02b3cb..e826dedc95 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 @@ -329,6 +329,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 @@ -4088,6 +4094,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); @@ -16466,14 +16526,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 { @@ -16509,9 +16569,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(); @@ -16642,14 +16702,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 { @@ -16685,9 +16745,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(); @@ -17688,18 +17748,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 { @@ -17735,10 +17795,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(); @@ -17942,15 +18002,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 { @@ -18002,9 +18062,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(); @@ -18246,15 +18306,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 { @@ -18306,9 +18366,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(); @@ -18522,15 +18582,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 { @@ -18582,9 +18642,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(); @@ -18826,15 +18886,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 { @@ -18886,9 +18946,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(); @@ -19560,15 +19620,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 { @@ -19578,15 +19638,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 { @@ -19596,15 +19656,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 { @@ -19614,15 +19674,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 { @@ -19632,15 +19692,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 { @@ -19650,15 +19710,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 { @@ -19694,9 +19754,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(); @@ -19711,9 +19771,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(); @@ -19728,9 +19788,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(); @@ -19745,9 +19805,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(); @@ -19762,9 +19822,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(); @@ -19779,9 +19839,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(); @@ -21781,14 +21841,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 { @@ -21826,9 +21886,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(); @@ -22264,14 +22324,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 { @@ -22307,9 +22367,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(); @@ -22511,14 +22571,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 { @@ -22554,9 +22614,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(); @@ -22688,15 +22748,15 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_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; - $elem1029 = new \metastore\Table(); - $xfer += $elem1029->read($input); - $this->success []= $elem1029; + $elem1071 = null; + $elem1071 = new \metastore\Table(); + $xfer += $elem1071->read($input); + $this->success []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -22732,9 +22792,9 @@ class ThriftHiveMetastore_get_all_materialized_view_objects_for_rewriting_result { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1030) + foreach ($this->success as $iter1072) { - $xfer += $iter1030->write($output); + $xfer += $iter1072->write($output); } } $output->writeListEnd(); @@ -22890,14 +22950,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem1036; + $elem1078 = null; + $xfer += $input->readString($elem1078); + $this->success []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -22933,9 +22993,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1037) + foreach ($this->success as $iter1079) { - $xfer += $output->writeString($iter1037); + $xfer += $output->writeString($iter1079); } } $output->writeListEnd(); @@ -23040,14 +23100,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = 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; - $xfer += $input->readString($elem1043); - $this->tbl_types []= $elem1043; + $elem1085 = null; + $xfer += $input->readString($elem1085); + $this->tbl_types []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -23085,9 +23145,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1044) + foreach ($this->tbl_types as $iter1086) { - $xfer += $output->writeString($iter1044); + $xfer += $output->writeString($iter1086); } } $output->writeListEnd(); @@ -23164,15 +23224,15 @@ class ThriftHiveMetastore_get_table_meta_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; - $elem1050 = new \metastore\TableMeta(); - $xfer += $elem1050->read($input); - $this->success []= $elem1050; + $elem1092 = null; + $elem1092 = new \metastore\TableMeta(); + $xfer += $elem1092->read($input); + $this->success []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -23208,9 +23268,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1051) + foreach ($this->success as $iter1093) { - $xfer += $iter1051->write($output); + $xfer += $iter1093->write($output); } } $output->writeListEnd(); @@ -23366,14 +23426,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1094 = 0; + $_etype1097 = 0; + $xfer += $input->readListBegin($_etype1097, $_size1094); + for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) { - $elem1057 = null; - $xfer += $input->readString($elem1057); - $this->success []= $elem1057; + $elem1099 = null; + $xfer += $input->readString($elem1099); + $this->success []= $elem1099; } $xfer += $input->readListEnd(); } else { @@ -23409,9 +23469,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1058) + foreach ($this->success as $iter1100) { - $xfer += $output->writeString($iter1058); + $xfer += $output->writeString($iter1100); } } $output->writeListEnd(); @@ -23726,14 +23786,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = 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; - $xfer += $input->readString($elem1064); - $this->tbl_names []= $elem1064; + $elem1106 = null; + $xfer += $input->readString($elem1106); + $this->tbl_names []= $elem1106; } $xfer += $input->readListEnd(); } else { @@ -23766,9 +23826,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1065) + foreach ($this->tbl_names as $iter1107) { - $xfer += $output->writeString($iter1065); + $xfer += $output->writeString($iter1107); } } $output->writeListEnd(); @@ -23833,15 +23893,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_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) + $_size1108 = 0; + $_etype1111 = 0; + $xfer += $input->readListBegin($_etype1111, $_size1108); + for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) { - $elem1071 = null; - $elem1071 = new \metastore\Table(); - $xfer += $elem1071->read($input); - $this->success []= $elem1071; + $elem1113 = null; + $elem1113 = new \metastore\Table(); + $xfer += $elem1113->read($input); + $this->success []= $elem1113; } $xfer += $input->readListEnd(); } else { @@ -23869,15 +23929,223 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1114) { - $xfer += $iter1072->write($output); + $xfer += $iter1114->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(); + $_size1115 = 0; + $_etype1118 = 0; + $xfer += $input->readListBegin($_etype1118, $_size1115); + for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + { + $elem1120 = null; + $elem1120 = new \metastore\ExtendedTableInfo(); + $xfer += $elem1120->read($input); + $this->success []= $elem1120; + } + $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 $iter1121) + { + $xfer += $iter1121->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; @@ -25071,14 +25339,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $xfer += $input->readString($elem1078); - $this->success []= $elem1078; + $elem1127 = null; + $xfer += $input->readString($elem1127); + $this->success []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -25130,9 +25398,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1079) + foreach ($this->success as $iter1128) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1128); } } $output->writeListEnd(); @@ -26655,15 +26923,15 @@ class ThriftHiveMetastore_add_partitions_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\Partition(); - $xfer += $elem1085->read($input); - $this->new_parts []= $elem1085; + $elem1134 = null; + $elem1134 = new \metastore\Partition(); + $xfer += $elem1134->read($input); + $this->new_parts []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -26691,9 +26959,9 @@ class ThriftHiveMetastore_add_partitions_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(); @@ -26908,15 +27176,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = 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; - $elem1092 = new \metastore\PartitionSpec(); - $xfer += $elem1092->read($input); - $this->new_parts []= $elem1092; + $elem1141 = null; + $elem1141 = new \metastore\PartitionSpec(); + $xfer += $elem1141->read($input); + $this->new_parts []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -26944,9 +27212,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1093) + foreach ($this->new_parts as $iter1142) { - $xfer += $iter1093->write($output); + $xfer += $iter1142->write($output); } } $output->writeListEnd(); @@ -27196,14 +27464,14 @@ class ThriftHiveMetastore_append_partition_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 { @@ -27241,9 +27509,9 @@ class ThriftHiveMetastore_append_partition_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(); @@ -27745,14 +28013,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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 { @@ -27798,9 +28066,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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(); @@ -28654,14 +28922,14 @@ class ThriftHiveMetastore_drop_partition_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 { @@ -28706,9 +28974,9 @@ class ThriftHiveMetastore_drop_partition_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(); @@ -28961,14 +29229,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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 { @@ -29021,9 +29289,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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(); @@ -30037,14 +30305,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1122 = 0; - $_etype1125 = 0; - $xfer += $input->readListBegin($_etype1125, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1127 = null; - $xfer += $input->readString($elem1127); - $this->part_vals []= $elem1127; + $elem1176 = null; + $xfer += $input->readString($elem1176); + $this->part_vals []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -30082,9 +30350,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1128) + foreach ($this->part_vals as $iter1177) { - $xfer += $output->writeString($iter1128); + $xfer += $output->writeString($iter1177); } } $output->writeListEnd(); @@ -30326,17 +30594,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1129 = 0; - $_ktype1130 = 0; - $_vtype1131 = 0; - $xfer += $input->readMapBegin($_ktype1130, $_vtype1131, $_size1129); - for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) + $_size1178 = 0; + $_ktype1179 = 0; + $_vtype1180 = 0; + $xfer += $input->readMapBegin($_ktype1179, $_vtype1180, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $key1134 = ''; - $val1135 = ''; - $xfer += $input->readString($key1134); - $xfer += $input->readString($val1135); - $this->partitionSpecs[$key1134] = $val1135; + $key1183 = ''; + $val1184 = ''; + $xfer += $input->readString($key1183); + $xfer += $input->readString($val1184); + $this->partitionSpecs[$key1183] = $val1184; } $xfer += $input->readMapEnd(); } else { @@ -30392,10 +30660,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1136 => $viter1137) + foreach ($this->partitionSpecs as $kiter1185 => $viter1186) { - $xfer += $output->writeString($kiter1136); - $xfer += $output->writeString($viter1137); + $xfer += $output->writeString($kiter1185); + $xfer += $output->writeString($viter1186); } } $output->writeMapEnd(); @@ -30707,17 +30975,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1138 = 0; - $_ktype1139 = 0; - $_vtype1140 = 0; - $xfer += $input->readMapBegin($_ktype1139, $_vtype1140, $_size1138); - for ($_i1142 = 0; $_i1142 < $_size1138; ++$_i1142) + $_size1187 = 0; + $_ktype1188 = 0; + $_vtype1189 = 0; + $xfer += $input->readMapBegin($_ktype1188, $_vtype1189, $_size1187); + for ($_i1191 = 0; $_i1191 < $_size1187; ++$_i1191) { - $key1143 = ''; - $val1144 = ''; - $xfer += $input->readString($key1143); - $xfer += $input->readString($val1144); - $this->partitionSpecs[$key1143] = $val1144; + $key1192 = ''; + $val1193 = ''; + $xfer += $input->readString($key1192); + $xfer += $input->readString($val1193); + $this->partitionSpecs[$key1192] = $val1193; } $xfer += $input->readMapEnd(); } else { @@ -30773,10 +31041,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1145 => $viter1146) + foreach ($this->partitionSpecs as $kiter1194 => $viter1195) { - $xfer += $output->writeString($kiter1145); - $xfer += $output->writeString($viter1146); + $xfer += $output->writeString($kiter1194); + $xfer += $output->writeString($viter1195); } } $output->writeMapEnd(); @@ -30909,15 +31177,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1147 = 0; - $_etype1150 = 0; - $xfer += $input->readListBegin($_etype1150, $_size1147); - for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) + $_size1196 = 0; + $_etype1199 = 0; + $xfer += $input->readListBegin($_etype1199, $_size1196); + for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) { - $elem1152 = null; - $elem1152 = new \metastore\Partition(); - $xfer += $elem1152->read($input); - $this->success []= $elem1152; + $elem1201 = null; + $elem1201 = new \metastore\Partition(); + $xfer += $elem1201->read($input); + $this->success []= $elem1201; } $xfer += $input->readListEnd(); } else { @@ -30977,9 +31245,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1153) + foreach ($this->success as $iter1202) { - $xfer += $iter1153->write($output); + $xfer += $iter1202->write($output); } } $output->writeListEnd(); @@ -31125,14 +31393,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1154 = 0; - $_etype1157 = 0; - $xfer += $input->readListBegin($_etype1157, $_size1154); - for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) + $_size1203 = 0; + $_etype1206 = 0; + $xfer += $input->readListBegin($_etype1206, $_size1203); + for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) { - $elem1159 = null; - $xfer += $input->readString($elem1159); - $this->part_vals []= $elem1159; + $elem1208 = null; + $xfer += $input->readString($elem1208); + $this->part_vals []= $elem1208; } $xfer += $input->readListEnd(); } else { @@ -31149,14 +31417,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1160 = 0; - $_etype1163 = 0; - $xfer += $input->readListBegin($_etype1163, $_size1160); - for ($_i1164 = 0; $_i1164 < $_size1160; ++$_i1164) + $_size1209 = 0; + $_etype1212 = 0; + $xfer += $input->readListBegin($_etype1212, $_size1209); + for ($_i1213 = 0; $_i1213 < $_size1209; ++$_i1213) { - $elem1165 = null; - $xfer += $input->readString($elem1165); - $this->group_names []= $elem1165; + $elem1214 = null; + $xfer += $input->readString($elem1214); + $this->group_names []= $elem1214; } $xfer += $input->readListEnd(); } else { @@ -31194,9 +31462,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1166) + foreach ($this->part_vals as $iter1215) { - $xfer += $output->writeString($iter1166); + $xfer += $output->writeString($iter1215); } } $output->writeListEnd(); @@ -31216,9 +31484,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1167) + foreach ($this->group_names as $iter1216) { - $xfer += $output->writeString($iter1167); + $xfer += $output->writeString($iter1216); } } $output->writeListEnd(); @@ -31809,15 +32077,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1217 = 0; + $_etype1220 = 0; + $xfer += $input->readListBegin($_etype1220, $_size1217); + for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) { - $elem1173 = null; - $elem1173 = new \metastore\Partition(); - $xfer += $elem1173->read($input); - $this->success []= $elem1173; + $elem1222 = null; + $elem1222 = new \metastore\Partition(); + $xfer += $elem1222->read($input); + $this->success []= $elem1222; } $xfer += $input->readListEnd(); } else { @@ -31861,9 +32129,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1174) + foreach ($this->success as $iter1223) { - $xfer += $iter1174->write($output); + $xfer += $iter1223->write($output); } } $output->writeListEnd(); @@ -32009,14 +32277,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem1180); - $this->group_names []= $elem1180; + $elem1229 = null; + $xfer += $input->readString($elem1229); + $this->group_names []= $elem1229; } $xfer += $input->readListEnd(); } else { @@ -32064,9 +32332,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1181) + foreach ($this->group_names as $iter1230) { - $xfer += $output->writeString($iter1181); + $xfer += $output->writeString($iter1230); } } $output->writeListEnd(); @@ -32155,15 +32423,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_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\Partition(); - $xfer += $elem1187->read($input); - $this->success []= $elem1187; + $elem1236 = null; + $elem1236 = new \metastore\Partition(); + $xfer += $elem1236->read($input); + $this->success []= $elem1236; } $xfer += $input->readListEnd(); } else { @@ -32207,9 +32475,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_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(); @@ -32429,15 +32697,15 @@ class ThriftHiveMetastore_get_partitions_pspec_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; - $elem1194 = new \metastore\PartitionSpec(); - $xfer += $elem1194->read($input); - $this->success []= $elem1194; + $elem1243 = null; + $elem1243 = new \metastore\PartitionSpec(); + $xfer += $elem1243->read($input); + $this->success []= $elem1243; } $xfer += $input->readListEnd(); } else { @@ -32481,9 +32749,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1195) + foreach ($this->success as $iter1244) { - $xfer += $iter1195->write($output); + $xfer += $iter1244->write($output); } } $output->writeListEnd(); @@ -32702,14 +32970,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem1201; + $elem1250 = null; + $xfer += $input->readString($elem1250); + $this->success []= $elem1250; } $xfer += $input->readListEnd(); } else { @@ -32753,9 +33021,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1202) + foreach ($this->success as $iter1251) { - $xfer += $output->writeString($iter1202); + $xfer += $output->writeString($iter1251); } } $output->writeListEnd(); @@ -33086,14 +33354,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem1208); - $this->part_vals []= $elem1208; + $elem1257 = null; + $xfer += $input->readString($elem1257); + $this->part_vals []= $elem1257; } $xfer += $input->readListEnd(); } else { @@ -33138,9 +33406,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1209) + foreach ($this->part_vals as $iter1258) { - $xfer += $output->writeString($iter1209); + $xfer += $output->writeString($iter1258); } } $output->writeListEnd(); @@ -33234,15 +33502,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1215 = new \metastore\Partition(); - $xfer += $elem1215->read($input); - $this->success []= $elem1215; + $elem1264 = null; + $elem1264 = new \metastore\Partition(); + $xfer += $elem1264->read($input); + $this->success []= $elem1264; } $xfer += $input->readListEnd(); } else { @@ -33286,9 +33554,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1216) + foreach ($this->success as $iter1265) { - $xfer += $iter1216->write($output); + $xfer += $iter1265->write($output); } } $output->writeListEnd(); @@ -33435,14 +33703,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1217 = 0; - $_etype1220 = 0; - $xfer += $input->readListBegin($_etype1220, $_size1217); - for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) + $_size1266 = 0; + $_etype1269 = 0; + $xfer += $input->readListBegin($_etype1269, $_size1266); + for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) { - $elem1222 = null; - $xfer += $input->readString($elem1222); - $this->part_vals []= $elem1222; + $elem1271 = null; + $xfer += $input->readString($elem1271); + $this->part_vals []= $elem1271; } $xfer += $input->readListEnd(); } else { @@ -33466,14 +33734,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1223 = 0; - $_etype1226 = 0; - $xfer += $input->readListBegin($_etype1226, $_size1223); - for ($_i1227 = 0; $_i1227 < $_size1223; ++$_i1227) + $_size1272 = 0; + $_etype1275 = 0; + $xfer += $input->readListBegin($_etype1275, $_size1272); + for ($_i1276 = 0; $_i1276 < $_size1272; ++$_i1276) { - $elem1228 = null; - $xfer += $input->readString($elem1228); - $this->group_names []= $elem1228; + $elem1277 = null; + $xfer += $input->readString($elem1277); + $this->group_names []= $elem1277; } $xfer += $input->readListEnd(); } else { @@ -33511,9 +33779,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1229) + foreach ($this->part_vals as $iter1278) { - $xfer += $output->writeString($iter1229); + $xfer += $output->writeString($iter1278); } } $output->writeListEnd(); @@ -33538,9 +33806,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1230) + foreach ($this->group_names as $iter1279) { - $xfer += $output->writeString($iter1230); + $xfer += $output->writeString($iter1279); } } $output->writeListEnd(); @@ -33629,15 +33897,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1236 = new \metastore\Partition(); - $xfer += $elem1236->read($input); - $this->success []= $elem1236; + $elem1285 = null; + $elem1285 = new \metastore\Partition(); + $xfer += $elem1285->read($input); + $this->success []= $elem1285; } $xfer += $input->readListEnd(); } else { @@ -33681,9 +33949,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1237) + foreach ($this->success as $iter1286) { - $xfer += $iter1237->write($output); + $xfer += $iter1286->write($output); } } $output->writeListEnd(); @@ -33804,14 +34072,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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->part_vals []= $elem1243; + $elem1292 = null; + $xfer += $input->readString($elem1292); + $this->part_vals []= $elem1292; } $xfer += $input->readListEnd(); } else { @@ -33856,9 +34124,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1244) + foreach ($this->part_vals as $iter1293) { - $xfer += $output->writeString($iter1244); + $xfer += $output->writeString($iter1293); } } $output->writeListEnd(); @@ -33951,14 +34219,14 @@ class ThriftHiveMetastore_get_partition_names_ps_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; - $xfer += $input->readString($elem1250); - $this->success []= $elem1250; + $elem1299 = null; + $xfer += $input->readString($elem1299); + $this->success []= $elem1299; } $xfer += $input->readListEnd(); } else { @@ -34002,9 +34270,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1251) + foreach ($this->success as $iter1300) { - $xfer += $output->writeString($iter1251); + $xfer += $output->writeString($iter1300); } } $output->writeListEnd(); @@ -34247,15 +34515,15 @@ class ThriftHiveMetastore_get_partitions_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\Partition(); - $xfer += $elem1257->read($input); - $this->success []= $elem1257; + $elem1306 = null; + $elem1306 = new \metastore\Partition(); + $xfer += $elem1306->read($input); + $this->success []= $elem1306; } $xfer += $input->readListEnd(); } else { @@ -34299,9 +34567,9 @@ class ThriftHiveMetastore_get_partitions_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(); @@ -34544,15 +34812,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1264 = new \metastore\PartitionSpec(); - $xfer += $elem1264->read($input); - $this->success []= $elem1264; + $elem1313 = null; + $elem1313 = new \metastore\PartitionSpec(); + $xfer += $elem1313->read($input); + $this->success []= $elem1313; } $xfer += $input->readListEnd(); } else { @@ -34596,9 +34864,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1265) + foreach ($this->success as $iter1314) { - $xfer += $iter1265->write($output); + $xfer += $iter1314->write($output); } } $output->writeListEnd(); @@ -35164,14 +35432,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = 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; - $xfer += $input->readString($elem1271); - $this->names []= $elem1271; + $elem1320 = null; + $xfer += $input->readString($elem1320); + $this->names []= $elem1320; } $xfer += $input->readListEnd(); } else { @@ -35209,9 +35477,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1272) + foreach ($this->names as $iter1321) { - $xfer += $output->writeString($iter1272); + $xfer += $output->writeString($iter1321); } } $output->writeListEnd(); @@ -35300,15 +35568,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem1278; + $elem1327 = null; + $elem1327 = new \metastore\Partition(); + $xfer += $elem1327->read($input); + $this->success []= $elem1327; } $xfer += $input->readListEnd(); } else { @@ -35352,9 +35620,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1279) + foreach ($this->success as $iter1328) { - $xfer += $iter1279->write($output); + $xfer += $iter1328->write($output); } } $output->writeListEnd(); @@ -35903,15 +36171,15 @@ class ThriftHiveMetastore_alter_partitions_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 { @@ -35949,9 +36217,9 @@ class ThriftHiveMetastore_alter_partitions_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(); @@ -36166,15 +36434,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = 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; - $elem1292 = new \metastore\Partition(); - $xfer += $elem1292->read($input); - $this->new_parts []= $elem1292; + $elem1341 = null; + $elem1341 = new \metastore\Partition(); + $xfer += $elem1341->read($input); + $this->new_parts []= $elem1341; } $xfer += $input->readListEnd(); } else { @@ -36220,9 +36488,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1293) + foreach ($this->new_parts as $iter1342) { - $xfer += $iter1293->write($output); + $xfer += $iter1342->write($output); } } $output->writeListEnd(); @@ -36910,14 +37178,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: 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 { @@ -36963,9 +37231,9 @@ class ThriftHiveMetastore_rename_partition_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(); @@ -37360,14 +37628,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = 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->part_vals []= $elem1306; + $elem1355 = null; + $xfer += $input->readString($elem1355); + $this->part_vals []= $elem1355; } $xfer += $input->readListEnd(); } else { @@ -37402,9 +37670,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1307) + foreach ($this->part_vals as $iter1356) { - $xfer += $output->writeString($iter1307); + $xfer += $output->writeString($iter1356); } } $output->writeListEnd(); @@ -37858,14 +38126,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1308 = 0; - $_etype1311 = 0; - $xfer += $input->readListBegin($_etype1311, $_size1308); - for ($_i1312 = 0; $_i1312 < $_size1308; ++$_i1312) + $_size1357 = 0; + $_etype1360 = 0; + $xfer += $input->readListBegin($_etype1360, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $elem1313 = null; - $xfer += $input->readString($elem1313); - $this->success []= $elem1313; + $elem1362 = null; + $xfer += $input->readString($elem1362); + $this->success []= $elem1362; } $xfer += $input->readListEnd(); } else { @@ -37901,9 +38169,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1314) + foreach ($this->success as $iter1363) { - $xfer += $output->writeString($iter1314); + $xfer += $output->writeString($iter1363); } } $output->writeListEnd(); @@ -38063,17 +38331,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1315 = 0; - $_ktype1316 = 0; - $_vtype1317 = 0; - $xfer += $input->readMapBegin($_ktype1316, $_vtype1317, $_size1315); - for ($_i1319 = 0; $_i1319 < $_size1315; ++$_i1319) + $_size1364 = 0; + $_ktype1365 = 0; + $_vtype1366 = 0; + $xfer += $input->readMapBegin($_ktype1365, $_vtype1366, $_size1364); + for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) { - $key1320 = ''; - $val1321 = ''; - $xfer += $input->readString($key1320); - $xfer += $input->readString($val1321); - $this->success[$key1320] = $val1321; + $key1369 = ''; + $val1370 = ''; + $xfer += $input->readString($key1369); + $xfer += $input->readString($val1370); + $this->success[$key1369] = $val1370; } $xfer += $input->readMapEnd(); } else { @@ -38109,10 +38377,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1322 => $viter1323) + foreach ($this->success as $kiter1371 => $viter1372) { - $xfer += $output->writeString($kiter1322); - $xfer += $output->writeString($viter1323); + $xfer += $output->writeString($kiter1371); + $xfer += $output->writeString($viter1372); } } $output->writeMapEnd(); @@ -38232,17 +38500,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1324 = 0; - $_ktype1325 = 0; - $_vtype1326 = 0; - $xfer += $input->readMapBegin($_ktype1325, $_vtype1326, $_size1324); - for ($_i1328 = 0; $_i1328 < $_size1324; ++$_i1328) + $_size1373 = 0; + $_ktype1374 = 0; + $_vtype1375 = 0; + $xfer += $input->readMapBegin($_ktype1374, $_vtype1375, $_size1373); + for ($_i1377 = 0; $_i1377 < $_size1373; ++$_i1377) { - $key1329 = ''; - $val1330 = ''; - $xfer += $input->readString($key1329); - $xfer += $input->readString($val1330); - $this->part_vals[$key1329] = $val1330; + $key1378 = ''; + $val1379 = ''; + $xfer += $input->readString($key1378); + $xfer += $input->readString($val1379); + $this->part_vals[$key1378] = $val1379; } $xfer += $input->readMapEnd(); } else { @@ -38287,10 +38555,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1331 => $viter1332) + foreach ($this->part_vals as $kiter1380 => $viter1381) { - $xfer += $output->writeString($kiter1331); - $xfer += $output->writeString($viter1332); + $xfer += $output->writeString($kiter1380); + $xfer += $output->writeString($viter1381); } } $output->writeMapEnd(); @@ -38612,17 +38880,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1333 = 0; - $_ktype1334 = 0; - $_vtype1335 = 0; - $xfer += $input->readMapBegin($_ktype1334, $_vtype1335, $_size1333); - for ($_i1337 = 0; $_i1337 < $_size1333; ++$_i1337) + $_size1382 = 0; + $_ktype1383 = 0; + $_vtype1384 = 0; + $xfer += $input->readMapBegin($_ktype1383, $_vtype1384, $_size1382); + for ($_i1386 = 0; $_i1386 < $_size1382; ++$_i1386) { - $key1338 = ''; - $val1339 = ''; - $xfer += $input->readString($key1338); - $xfer += $input->readString($val1339); - $this->part_vals[$key1338] = $val1339; + $key1387 = ''; + $val1388 = ''; + $xfer += $input->readString($key1387); + $xfer += $input->readString($val1388); + $this->part_vals[$key1387] = $val1388; } $xfer += $input->readMapEnd(); } else { @@ -38667,10 +38935,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1340 => $viter1341) + foreach ($this->part_vals as $kiter1389 => $viter1390) { - $xfer += $output->writeString($kiter1340); - $xfer += $output->writeString($viter1341); + $xfer += $output->writeString($kiter1389); + $xfer += $output->writeString($viter1390); } } $output->writeMapEnd(); @@ -44149,14 +44417,14 @@ class ThriftHiveMetastore_get_functions_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 { @@ -44192,9 +44460,9 @@ class ThriftHiveMetastore_get_functions_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(); @@ -45063,14 +45331,14 @@ class ThriftHiveMetastore_get_role_names_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; - $xfer += $input->readString($elem1354); - $this->success []= $elem1354; + $elem1403 = null; + $xfer += $input->readString($elem1403); + $this->success []= $elem1403; } $xfer += $input->readListEnd(); } else { @@ -45106,9 +45374,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1355) + foreach ($this->success as $iter1404) { - $xfer += $output->writeString($iter1355); + $xfer += $output->writeString($iter1404); } } $output->writeListEnd(); @@ -45799,15 +46067,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1361 = new \metastore\Role(); - $xfer += $elem1361->read($input); - $this->success []= $elem1361; + $elem1410 = null; + $elem1410 = new \metastore\Role(); + $xfer += $elem1410->read($input); + $this->success []= $elem1410; } $xfer += $input->readListEnd(); } else { @@ -45843,9 +46111,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1362) + foreach ($this->success as $iter1411) { - $xfer += $iter1362->write($output); + $xfer += $iter1411->write($output); } } $output->writeListEnd(); @@ -46507,14 +46775,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem1368); - $this->group_names []= $elem1368; + $elem1417 = null; + $xfer += $input->readString($elem1417); + $this->group_names []= $elem1417; } $xfer += $input->readListEnd(); } else { @@ -46555,9 +46823,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1369) + foreach ($this->group_names as $iter1418) { - $xfer += $output->writeString($iter1369); + $xfer += $output->writeString($iter1418); } } $output->writeListEnd(); @@ -46865,15 +47133,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem1375 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1375->read($input); - $this->success []= $elem1375; + $elem1424 = null; + $elem1424 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1424->read($input); + $this->success []= $elem1424; } $xfer += $input->readListEnd(); } else { @@ -46909,9 +47177,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1376) + foreach ($this->success as $iter1425) { - $xfer += $iter1376->write($output); + $xfer += $iter1425->write($output); } } $output->writeListEnd(); @@ -47779,14 +48047,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = 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->group_names []= $elem1382; + $elem1431 = null; + $xfer += $input->readString($elem1431); + $this->group_names []= $elem1431; } $xfer += $input->readListEnd(); } else { @@ -47819,9 +48087,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1383) + foreach ($this->group_names as $iter1432) { - $xfer += $output->writeString($iter1383); + $xfer += $output->writeString($iter1432); } } $output->writeListEnd(); @@ -47897,14 +48165,14 @@ class ThriftHiveMetastore_set_ugi_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 { @@ -47940,9 +48208,9 @@ class ThriftHiveMetastore_set_ugi_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(); @@ -49059,14 +49327,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_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 { @@ -49094,9 +49362,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_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(); @@ -49735,14 +50003,14 @@ class ThriftHiveMetastore_get_master_keys_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 { @@ -49770,9 +50038,9 @@ class ThriftHiveMetastore_get_master_keys_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(); @@ -53526,14 +53794,14 @@ class ThriftHiveMetastore_find_columns_with_stats_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; - $xfer += $input->readString($elem1410); - $this->success []= $elem1410; + $elem1459 = null; + $xfer += $input->readString($elem1459); + $this->success []= $elem1459; } $xfer += $input->readListEnd(); } else { @@ -53561,9 +53829,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1411) + foreach ($this->success as $iter1460) { - $xfer += $output->writeString($iter1411); + $xfer += $output->writeString($iter1460); } } $output->writeListEnd(); @@ -61734,15 +62002,15 @@ class ThriftHiveMetastore_get_schema_all_versions_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\SchemaVersion(); - $xfer += $elem1417->read($input); - $this->success []= $elem1417; + $elem1466 = null; + $elem1466 = new \metastore\SchemaVersion(); + $xfer += $elem1466->read($input); + $this->success []= $elem1466; } $xfer += $input->readListEnd(); } else { @@ -61786,9 +62054,9 @@ class ThriftHiveMetastore_get_schema_all_versions_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(); @@ -63657,15 +63925,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1419 = 0; - $_etype1422 = 0; - $xfer += $input->readListBegin($_etype1422, $_size1419); - for ($_i1423 = 0; $_i1423 < $_size1419; ++$_i1423) + $_size1468 = 0; + $_etype1471 = 0; + $xfer += $input->readListBegin($_etype1471, $_size1468); + for ($_i1472 = 0; $_i1472 < $_size1468; ++$_i1472) { - $elem1424 = null; - $elem1424 = new \metastore\RuntimeStat(); - $xfer += $elem1424->read($input); - $this->success []= $elem1424; + $elem1473 = null; + $elem1473 = new \metastore\RuntimeStat(); + $xfer += $elem1473->read($input); + $this->success []= $elem1473; } $xfer += $input->readListEnd(); } else { @@ -63701,9 +63969,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1425) + foreach ($this->success as $iter1474) { - $xfer += $iter1425->write($output); + $xfer += $iter1474->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 ec1ed6cde5..bdf331a3aa 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( @@ -6979,65 +6990,291 @@ class CreationMetadata { } -class BooleanColumnStatsData { +class Table { static $_TSPEC; /** * @var int */ - public $numTrues = null; + public $id = null; + /** + * @var string + */ + public $tableName = null; + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $owner = null; /** * @var int */ - public $numFalses = null; + public $createTime = null; /** * @var int */ - public $numNulls = null; + public $lastAccessTime = null; + /** + * @var int + */ + public $retention = null; + /** + * @var \metastore\StorageDescriptor + */ + public $sd = null; + /** + * @var \metastore\FieldSchema[] + */ + public $partitionKeys = null; + /** + * @var array + */ + public $parameters = null; /** * @var string */ - public $bitVectors = null; + public $viewOriginalText = null; + /** + * @var string + */ + public $viewExpandedText = null; + /** + * @var string + */ + public $tableType = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; + /** + * @var bool + */ + public $temporary = false; + /** + * @var bool + */ + public $rewriteEnabled = null; + /** + * @var \metastore\CreationMetadata + */ + public $creationMetadata = null; + /** + * @var string + */ + public $catName = null; + /** + * @var int + */ + public $ownerType = 1; + /** + * @var int + */ + public $writeId = -1; + /** + * @var bool + */ + public $isStatsCompliant = null; + /** + * @var \metastore\ColumnStatistics + */ + public $colStats = null; + /** + * @var int + */ + public $accessType = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'numTrues', + 'var' => 'id', 'type' => TType::I64, ), 2 => array( - 'var' => 'numFalses', - 'type' => TType::I64, + 'var' => 'tableName', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, + 'var' => 'dbName', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'bitVectors', + 'var' => 'owner', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'createTime', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'lastAccessTime', + 'type' => TType::I32, + ), + 7 => array( + 'var' => 'retention', + 'type' => TType::I32, + ), + 8 => array( + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', + ), + 9 => array( + 'var' => 'partitionKeys', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + 10 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 11 => array( + 'var' => 'viewOriginalText', + 'type' => TType::STRING, + ), + 12 => array( + 'var' => 'viewExpandedText', + 'type' => TType::STRING, + ), + 13 => array( + 'var' => 'tableType', + 'type' => TType::STRING, + ), + 14 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), + 15 => array( + 'var' => 'temporary', + 'type' => TType::BOOL, + ), + 16 => array( + 'var' => 'rewriteEnabled', + 'type' => TType::BOOL, + ), + 17 => array( + 'var' => 'creationMetadata', + 'type' => TType::STRUCT, + 'class' => '\metastore\CreationMetadata', + ), + 18 => array( + 'var' => 'catName', 'type' => TType::STRING, ), + 19 => array( + 'var' => 'ownerType', + 'type' => TType::I32, + ), + 20 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 21 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::BOOL, + ), + 22 => array( + 'var' => 'colStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatistics', + ), + 23 => array( + 'var' => 'accessType', + 'type' => TType::BYTE, + ), ); } if (is_array($vals)) { - if (isset($vals['numTrues'])) { - $this->numTrues = $vals['numTrues']; + if (isset($vals['id'])) { + $this->id = $vals['id']; } - if (isset($vals['numFalses'])) { - $this->numFalses = $vals['numFalses']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['owner'])) { + $this->owner = $vals['owner']; + } + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; + } + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; + } + if (isset($vals['retention'])) { + $this->retention = $vals['retention']; + } + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; + } + if (isset($vals['partitionKeys'])) { + $this->partitionKeys = $vals['partitionKeys']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + if (isset($vals['viewOriginalText'])) { + $this->viewOriginalText = $vals['viewOriginalText']; + } + if (isset($vals['viewExpandedText'])) { + $this->viewExpandedText = $vals['viewExpandedText']; + } + if (isset($vals['tableType'])) { + $this->tableType = $vals['tableType']; + } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; + } + if (isset($vals['temporary'])) { + $this->temporary = $vals['temporary']; + } + if (isset($vals['rewriteEnabled'])) { + $this->rewriteEnabled = $vals['rewriteEnabled']; + } + if (isset($vals['creationMetadata'])) { + $this->creationMetadata = $vals['creationMetadata']; + } + if (isset($vals['catName'])) { + $this->catName = $vals['catName']; + } + if (isset($vals['ownerType'])) { + $this->ownerType = $vals['ownerType']; + } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } + if (isset($vals['colStats'])) { + $this->colStats = $vals['colStats']; + } + if (isset($vals['accessType'])) { + $this->accessType = $vals['accessType']; } } } public function getName() { - return 'BooleanColumnStatsData'; + return 'Table'; } public function read($input) @@ -7057,357 +7294,189 @@ class BooleanColumnStatsData { { case 1: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numTrues); + $xfer += $input->readI64($this->id); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numFalses); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readString($this->owner); } else { $xfer += $input->skip($ftype); } break; - default: - $xfer += $input->skip($ftype); + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); + } else { + $xfer += $input->skip($ftype); + } break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('BooleanColumnStatsData'); - if ($this->numTrues !== null) { - $xfer += $output->writeFieldBegin('numTrues', TType::I64, 1); - $xfer += $output->writeI64($this->numTrues); - $xfer += $output->writeFieldEnd(); - } - if ($this->numFalses !== null) { - $xfer += $output->writeFieldBegin('numFalses', TType::I64, 2); - $xfer += $output->writeI64($this->numFalses); - $xfer += $output->writeFieldEnd(); - } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); - $xfer += $output->writeFieldEnd(); - } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); - $xfer += $output->writeString($this->bitVectors); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class DoubleColumnStatsData { - static $_TSPEC; - - /** - * @var double - */ - public $lowValue = null; - /** - * @var double - */ - public $highValue = null; - /** - * @var int - */ - public $numNulls = null; - /** - * @var int - */ - public $numDVs = null; - /** - * @var string - */ - public $bitVectors = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'lowValue', - 'type' => TType::DOUBLE, - ), - 2 => array( - 'var' => 'highValue', - 'type' => TType::DOUBLE, - ), - 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, - ), - 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; - } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; - } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; - } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; - } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; - } - } - } - - public function getName() { - return 'DoubleColumnStatsData'; - } - - 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::DOUBLE) { - $xfer += $input->readDouble($this->lowValue); + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->highValue); + case 7: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->retention); } else { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + case 8: + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); + case 9: + if ($ftype == TType::LST) { + $this->partitionKeys = array(); + $_size190 = 0; + $_etype193 = 0; + $xfer += $input->readListBegin($_etype193, $_size190); + for ($_i194 = 0; $_i194 < $_size190; ++$_i194) + { + $elem195 = null; + $elem195 = new \metastore\FieldSchema(); + $xfer += $elem195->read($input); + $this->partitionKeys []= $elem195; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; - case 5: + case 10: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size196 = 0; + $_ktype197 = 0; + $_vtype198 = 0; + $xfer += $input->readMapBegin($_ktype197, $_vtype198, $_size196); + for ($_i200 = 0; $_i200 < $_size196; ++$_i200) + { + $key201 = ''; + $val202 = ''; + $xfer += $input->readString($key201); + $xfer += $input->readString($val202); + $this->parameters[$key201] = $val202; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readString($this->viewOriginalText); } else { $xfer += $input->skip($ftype); } break; - default: - $xfer += $input->skip($ftype); + case 12: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->viewExpandedText); + } else { + $xfer += $input->skip($ftype); + } break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('DoubleColumnStatsData'); - if ($this->lowValue !== null) { - $xfer += $output->writeFieldBegin('lowValue', TType::DOUBLE, 1); - $xfer += $output->writeDouble($this->lowValue); - $xfer += $output->writeFieldEnd(); - } - if ($this->highValue !== null) { - $xfer += $output->writeFieldBegin('highValue', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->highValue); - $xfer += $output->writeFieldEnd(); - } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); - $xfer += $output->writeFieldEnd(); - } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); - $xfer += $output->writeFieldEnd(); - } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class LongColumnStatsData { - static $_TSPEC; - - /** - * @var int - */ - public $lowValue = null; - /** - * @var int - */ - public $highValue = null; - /** - * @var int - */ - public $numNulls = null; - /** - * @var int - */ - public $numDVs = null; - /** - * @var string - */ - public $bitVectors = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'lowValue', - 'type' => TType::I64, - ), - 2 => array( - 'var' => 'highValue', - 'type' => TType::I64, - ), - 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, - ), - 5 => array( - 'var' => 'bitVectors', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; - } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; - } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; - } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; - } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; - } - } - } - - public function getName() { - return 'LongColumnStatsData'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->lowValue); + case 13: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableType); } else { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->highValue); + case 14: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + case 15: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->temporary); } else { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); + case 16: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->rewriteEnabled); } else { $xfer += $input->skip($ftype); } break; - case 5: + case 17: + if ($ftype == TType::STRUCT) { + $this->creationMetadata = new \metastore\CreationMetadata(); + $xfer += $this->creationMetadata->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 18: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readString($this->catName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 19: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->ownerType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 20: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 21: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; + case 22: + if ($ftype == TType::STRUCT) { + $this->colStats = new \metastore\ColumnStatistics(); + $xfer += $this->colStats->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 23: + if ($ftype == TType::BYTE) { + $xfer += $input->readByte($this->accessType); } else { $xfer += $input->skip($ftype); } @@ -7424,30 +7493,157 @@ class LongColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('LongColumnStatsData'); - if ($this->lowValue !== null) { - $xfer += $output->writeFieldBegin('lowValue', TType::I64, 1); - $xfer += $output->writeI64($this->lowValue); + $xfer += $output->writeStructBegin('Table'); + if ($this->id !== null) { + $xfer += $output->writeFieldBegin('id', TType::I64, 1); + $xfer += $output->writeI64($this->id); $xfer += $output->writeFieldEnd(); } - if ($this->highValue !== null) { - $xfer += $output->writeFieldBegin('highValue', TType::I64, 2); - $xfer += $output->writeI64($this->highValue); + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 2); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); + if ($this->owner !== null) { + $xfer += $output->writeFieldBegin('owner', TType::STRING, 4); + $xfer += $output->writeString($this->owner); $xfer += $output->writeFieldEnd(); } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 5); + $xfer += $output->writeI32($this->createTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 6); + $xfer += $output->writeI32($this->lastAccessTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->retention !== null) { + $xfer += $output->writeFieldBegin('retention', TType::I32, 7); + $xfer += $output->writeI32($this->retention); + $xfer += $output->writeFieldEnd(); + } + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 8); + $xfer += $this->sd->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionKeys !== null) { + if (!is_array($this->partitionKeys)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 9); + { + $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); + { + foreach ($this->partitionKeys as $iter203) + { + $xfer += $iter203->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter204 => $viter205) + { + $xfer += $output->writeString($kiter204); + $xfer += $output->writeString($viter205); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->viewOriginalText !== null) { + $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 11); + $xfer += $output->writeString($this->viewOriginalText); + $xfer += $output->writeFieldEnd(); + } + if ($this->viewExpandedText !== null) { + $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 12); + $xfer += $output->writeString($this->viewExpandedText); + $xfer += $output->writeFieldEnd(); + } + if ($this->tableType !== null) { + $xfer += $output->writeFieldBegin('tableType', TType::STRING, 13); + $xfer += $output->writeString($this->tableType); + $xfer += $output->writeFieldEnd(); + } + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 14); + $xfer += $this->privileges->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->temporary !== null) { + $xfer += $output->writeFieldBegin('temporary', TType::BOOL, 15); + $xfer += $output->writeBool($this->temporary); + $xfer += $output->writeFieldEnd(); + } + if ($this->rewriteEnabled !== null) { + $xfer += $output->writeFieldBegin('rewriteEnabled', TType::BOOL, 16); + $xfer += $output->writeBool($this->rewriteEnabled); + $xfer += $output->writeFieldEnd(); + } + if ($this->creationMetadata !== null) { + if (!is_object($this->creationMetadata)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('creationMetadata', TType::STRUCT, 17); + $xfer += $this->creationMetadata->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->catName !== null) { + $xfer += $output->writeFieldBegin('catName', TType::STRING, 18); + $xfer += $output->writeString($this->catName); + $xfer += $output->writeFieldEnd(); + } + if ($this->ownerType !== null) { + $xfer += $output->writeFieldBegin('ownerType', TType::I32, 19); + $xfer += $output->writeI32($this->ownerType); + $xfer += $output->writeFieldEnd(); + } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 20); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 21); + $xfer += $output->writeBool($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } + if ($this->colStats !== null) { + if (!is_object($this->colStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('colStats', TType::STRUCT, 22); + $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(); @@ -7457,76 +7653,168 @@ class LongColumnStatsData { } -class StringColumnStatsData { +class Partition { static $_TSPEC; /** - * @var int + * @var string[] */ - public $maxColLen = null; + public $values = null; /** - * @var double + * @var string */ - public $avgColLen = null; + public $dbName = null; + /** + * @var string + */ + public $tableName = null; /** * @var int */ - public $numNulls = null; + public $createTime = null; /** * @var int */ - public $numDVs = null; + public $lastAccessTime = null; + /** + * @var \metastore\StorageDescriptor + */ + public $sd = null; + /** + * @var array + */ + public $parameters = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; /** * @var string */ - public $bitVectors = null; + public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var bool + */ + public $isStatsCompliant = null; + /** + * @var \metastore\ColumnStatistics + */ + public $colStats = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'maxColLen', - 'type' => TType::I64, + 'var' => 'values', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'avgColLen', - 'type' => TType::DOUBLE, + 'var' => 'dbName', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, + 'var' => 'tableName', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, + 'var' => 'createTime', + 'type' => TType::I32, ), 5 => array( - 'var' => 'bitVectors', + 'var' => 'lastAccessTime', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', + ), + 7 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 8 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), + 9 => array( + 'var' => 'catName', 'type' => TType::STRING, ), + 10 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 11 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::BOOL, + ), + 12 => array( + 'var' => 'colStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatistics', + ), ); } if (is_array($vals)) { - if (isset($vals['maxColLen'])) { - $this->maxColLen = $vals['maxColLen']; + if (isset($vals['values'])) { + $this->values = $vals['values']; } - if (isset($vals['avgColLen'])) { - $this->avgColLen = $vals['avgColLen']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; + } + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; + } + if (isset($vals['catName'])) { + $this->catName = $vals['catName']; + } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } + if (isset($vals['colStats'])) { + $this->colStats = $vals['colStats']; } } } public function getName() { - return 'StringColumnStatsData'; + return 'Partition'; } public function read($input) @@ -7545,42 +7833,117 @@ class StringColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->maxColLen); + if ($ftype == TType::LST) { + $this->values = array(); + $_size206 = 0; + $_etype209 = 0; + $xfer += $input->readListBegin($_etype209, $_size206); + for ($_i210 = 0; $_i210 < $_size206; ++$_i210) + { + $elem211 = null; + $xfer += $input->readString($elem211); + $this->values []= $elem211; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->avgColLen); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size212 = 0; + $_ktype213 = 0; + $_vtype214 = 0; + $xfer += $input->readMapBegin($_ktype213, $_vtype214, $_size212); + for ($_i216 = 0; $_i216 < $_size212; ++$_i216) + { + $key217 = ''; + $val218 = ''; + $xfer += $input->readString($key217); + $xfer += $input->readString($val218); + $this->parameters[$key217] = $val218; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readString($this->catName); } else { $xfer += $input->skip($ftype); } break; - default: - $xfer += $input->skip($ftype); + case 10: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; + case 12: + if ($ftype == TType::STRUCT) { + $this->colStats = new \metastore\ColumnStatistics(); + $xfer += $this->colStats->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); @@ -7591,30 +7954,99 @@ class StringColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('StringColumnStatsData'); - if ($this->maxColLen !== null) { - $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); - $xfer += $output->writeI64($this->maxColLen); + $xfer += $output->writeStructBegin('Partition'); + if ($this->values !== null) { + if (!is_array($this->values)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('values', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->values)); + { + foreach ($this->values as $iter219) + { + $xfer += $output->writeString($iter219); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } - if ($this->avgColLen !== null) { - $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->avgColLen); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); + $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); - $xfer += $output->writeString($this->bitVectors); + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); + $xfer += $output->writeI32($this->lastAccessTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6); + $xfer += $this->sd->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter220 => $viter221) + { + $xfer += $output->writeString($kiter220); + $xfer += $output->writeString($viter221); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8); + $xfer += $this->privileges->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->catName !== null) { + $xfer += $output->writeFieldBegin('catName', TType::STRING, 9); + $xfer += $output->writeString($this->catName); + $xfer += $output->writeFieldEnd(); + } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 10); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 11); + $xfer += $output->writeBool($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } + if ($this->colStats !== null) { + if (!is_object($this->colStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('colStats', TType::STRUCT, 12); + $xfer += $this->colStats->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7624,65 +8056,100 @@ class StringColumnStatsData { } -class BinaryColumnStatsData { +class PartitionWithoutSD { static $_TSPEC; /** - * @var int + * @var string[] */ - public $maxColLen = null; + public $values = null; /** - * @var double + * @var int */ - public $avgColLen = null; + public $createTime = null; /** * @var int */ - public $numNulls = null; + public $lastAccessTime = null; /** * @var string */ - public $bitVectors = null; + public $relativePath = null; + /** + * @var array + */ + public $parameters = null; + /** + * @var \metastore\PrincipalPrivilegeSet + */ + public $privileges = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'maxColLen', - 'type' => TType::I64, + 'var' => 'values', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 2 => array( - 'var' => 'avgColLen', - 'type' => TType::DOUBLE, + 'var' => 'createTime', + 'type' => TType::I32, ), 3 => array( - 'var' => 'numNulls', - 'type' => TType::I64, + 'var' => 'lastAccessTime', + 'type' => TType::I32, ), 4 => array( - 'var' => 'bitVectors', + 'var' => 'relativePath', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'parameters', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 6 => array( + 'var' => 'privileges', + 'type' => TType::STRUCT, + 'class' => '\metastore\PrincipalPrivilegeSet', + ), ); } if (is_array($vals)) { - if (isset($vals['maxColLen'])) { - $this->maxColLen = $vals['maxColLen']; + if (isset($vals['values'])) { + $this->values = $vals['values']; } - if (isset($vals['avgColLen'])) { - $this->avgColLen = $vals['avgColLen']; + if (isset($vals['createTime'])) { + $this->createTime = $vals['createTime']; } - if (isset($vals['numNulls'])) { - $this->numNulls = $vals['numNulls']; + if (isset($vals['lastAccessTime'])) { + $this->lastAccessTime = $vals['lastAccessTime']; } - if (isset($vals['bitVectors'])) { - $this->bitVectors = $vals['bitVectors']; + if (isset($vals['relativePath'])) { + $this->relativePath = $vals['relativePath']; + } + if (isset($vals['parameters'])) { + $this->parameters = $vals['parameters']; + } + if (isset($vals['privileges'])) { + $this->privileges = $vals['privileges']; } } } public function getName() { - return 'BinaryColumnStatsData'; + return 'PartitionWithoutSD'; } public function read($input) @@ -7701,29 +8168,67 @@ class BinaryColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->maxColLen); + if ($ftype == TType::LST) { + $this->values = array(); + $_size222 = 0; + $_etype225 = 0; + $xfer += $input->readListBegin($_etype225, $_size222); + for ($_i226 = 0; $_i226 < $_size222; ++$_i226) + { + $elem227 = null; + $xfer += $input->readString($elem227); + $this->values []= $elem227; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::DOUBLE) { - $xfer += $input->readDouble($this->avgColLen); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->createTime); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numNulls); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->lastAccessTime); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->bitVectors); + $xfer += $input->readString($this->relativePath); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::MAP) { + $this->parameters = array(); + $_size228 = 0; + $_ktype229 = 0; + $_vtype230 = 0; + $xfer += $input->readMapBegin($_ktype229, $_vtype230, $_size228); + for ($_i232 = 0; $_i232 < $_size228; ++$_i232) + { + $key233 = ''; + $val234 = ''; + $xfer += $input->readString($key233); + $xfer += $input->readString($val234); + $this->parameters[$key233] = $val234; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRUCT) { + $this->privileges = new \metastore\PrincipalPrivilegeSet(); + $xfer += $this->privileges->read($input); } else { $xfer += $input->skip($ftype); } @@ -7740,25 +8245,63 @@ class BinaryColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('BinaryColumnStatsData'); - if ($this->maxColLen !== null) { - $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); - $xfer += $output->writeI64($this->maxColLen); + $xfer += $output->writeStructBegin('PartitionWithoutSD'); + if ($this->values !== null) { + if (!is_array($this->values)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('values', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->values)); + { + foreach ($this->values as $iter235) + { + $xfer += $output->writeString($iter235); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } - if ($this->avgColLen !== null) { - $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); - $xfer += $output->writeDouble($this->avgColLen); + if ($this->createTime !== null) { + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); + $xfer += $output->writeI32($this->createTime); $xfer += $output->writeFieldEnd(); } - if ($this->numNulls !== null) { - $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); - $xfer += $output->writeI64($this->numNulls); + if ($this->lastAccessTime !== null) { + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 3); + $xfer += $output->writeI32($this->lastAccessTime); $xfer += $output->writeFieldEnd(); } - if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); - $xfer += $output->writeString($this->bitVectors); + if ($this->relativePath !== null) { + $xfer += $output->writeFieldBegin('relativePath', TType::STRING, 4); + $xfer += $output->writeString($this->relativePath); + $xfer += $output->writeFieldEnd(); + } + if ($this->parameters !== null) { + if (!is_array($this->parameters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 5); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); + { + foreach ($this->parameters as $kiter236 => $viter237) + { + $xfer += $output->writeString($kiter236); + $xfer += $output->writeString($viter237); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->privileges !== null) { + if (!is_object($this->privileges)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 6); + $xfer += $this->privileges->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7768,43 +8311,49 @@ class BinaryColumnStatsData { } -class Decimal { +class PartitionSpecWithSharedSD { static $_TSPEC; /** - * @var int + * @var \metastore\PartitionWithoutSD[] */ - public $scale = null; + public $partitions = null; /** - * @var string + * @var \metastore\StorageDescriptor */ - public $unscaled = null; + public $sd = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - 3 => array( - 'var' => 'scale', - 'type' => TType::I16, - ), 1 => array( - 'var' => 'unscaled', - 'type' => TType::STRING, + 'var' => 'partitions', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionWithoutSD', + ), + ), + 2 => array( + 'var' => 'sd', + 'type' => TType::STRUCT, + 'class' => '\metastore\StorageDescriptor', ), ); } if (is_array($vals)) { - if (isset($vals['scale'])) { - $this->scale = $vals['scale']; + if (isset($vals['partitions'])) { + $this->partitions = $vals['partitions']; } - if (isset($vals['unscaled'])) { - $this->unscaled = $vals['unscaled']; + if (isset($vals['sd'])) { + $this->sd = $vals['sd']; } } } public function getName() { - return 'Decimal'; + return 'PartitionSpecWithSharedSD'; } public function read($input) @@ -7822,16 +8371,28 @@ class Decimal { } switch ($fid) { - case 3: - if ($ftype == TType::I16) { - $xfer += $input->readI16($this->scale); + case 1: + if ($ftype == TType::LST) { + $this->partitions = array(); + $_size238 = 0; + $_etype241 = 0; + $xfer += $input->readListBegin($_etype241, $_size238); + for ($_i242 = 0; $_i242 < $_size238; ++$_i242) + { + $elem243 = null; + $elem243 = new \metastore\PartitionWithoutSD(); + $xfer += $elem243->read($input); + $this->partitions []= $elem243; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->unscaled); + case 2: + if ($ftype == TType::STRUCT) { + $this->sd = new \metastore\StorageDescriptor(); + $xfer += $this->sd->read($input); } else { $xfer += $input->skip($ftype); } @@ -7848,15 +8409,30 @@ class Decimal { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Decimal'); - if ($this->unscaled !== null) { - $xfer += $output->writeFieldBegin('unscaled', TType::STRING, 1); - $xfer += $output->writeString($this->unscaled); + $xfer += $output->writeStructBegin('PartitionSpecWithSharedSD'); + if ($this->partitions !== null) { + if (!is_array($this->partitions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitions)); + { + foreach ($this->partitions as $iter244) + { + $xfer += $iter244->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } - if ($this->scale !== null) { - $xfer += $output->writeFieldBegin('scale', TType::I16, 3); - $xfer += $output->writeI16($this->scale); + if ($this->sd !== null) { + if (!is_object($this->sd)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 2); + $xfer += $this->sd->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -7866,25 +8442,21 @@ class Decimal { } -class DecimalColumnStatsData { +class BooleanColumnStatsData { static $_TSPEC; /** - * @var \metastore\Decimal - */ - public $lowValue = null; - /** - * @var \metastore\Decimal + * @var int */ - public $highValue = null; + public $numTrues = null; /** * @var int */ - public $numNulls = null; + public $numFalses = null; /** * @var int */ - public $numDVs = null; + public $numNulls = null; /** * @var string */ @@ -7894,42 +8466,33 @@ class DecimalColumnStatsData { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'lowValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Decimal', + 'var' => 'numTrues', + 'type' => TType::I64, ), 2 => array( - 'var' => 'highValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Decimal', + 'var' => 'numFalses', + 'type' => TType::I64, ), 3 => array( 'var' => 'numNulls', 'type' => TType::I64, ), 4 => array( - 'var' => 'numDVs', - 'type' => TType::I64, - ), - 5 => array( 'var' => 'bitVectors', 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['lowValue'])) { - $this->lowValue = $vals['lowValue']; + if (isset($vals['numTrues'])) { + $this->numTrues = $vals['numTrues']; } - if (isset($vals['highValue'])) { - $this->highValue = $vals['highValue']; + if (isset($vals['numFalses'])) { + $this->numFalses = $vals['numFalses']; } if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } - if (isset($vals['numDVs'])) { - $this->numDVs = $vals['numDVs']; - } if (isset($vals['bitVectors'])) { $this->bitVectors = $vals['bitVectors']; } @@ -7937,7 +8500,7 @@ class DecimalColumnStatsData { } public function getName() { - return 'DecimalColumnStatsData'; + return 'BooleanColumnStatsData'; } public function read($input) @@ -7956,17 +8519,15 @@ class DecimalColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->lowValue = new \metastore\Decimal(); - $xfer += $this->lowValue->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numTrues); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->highValue = new \metastore\Decimal(); - $xfer += $this->highValue->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numFalses); } else { $xfer += $input->skip($ftype); } @@ -7979,13 +8540,6 @@ class DecimalColumnStatsData { } break; case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->numDVs); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: if ($ftype == TType::STRING) { $xfer += $input->readString($this->bitVectors); } else { @@ -8004,21 +8558,15 @@ class DecimalColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DecimalColumnStatsData'); - if ($this->lowValue !== null) { - if (!is_object($this->lowValue)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); - $xfer += $this->lowValue->write($output); + $xfer += $output->writeStructBegin('BooleanColumnStatsData'); + if ($this->numTrues !== null) { + $xfer += $output->writeFieldBegin('numTrues', TType::I64, 1); + $xfer += $output->writeI64($this->numTrues); $xfer += $output->writeFieldEnd(); } - if ($this->highValue !== null) { - if (!is_object($this->highValue)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); - $xfer += $this->highValue->write($output); + if ($this->numFalses !== null) { + $xfer += $output->writeFieldBegin('numFalses', TType::I64, 2); + $xfer += $output->writeI64($this->numFalses); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { @@ -8026,13 +8574,8 @@ class DecimalColumnStatsData { $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->numDVs !== null) { - $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); - $xfer += $output->writeI64($this->numDVs); - $xfer += $output->writeFieldEnd(); - } if ($this->bitVectors !== null) { - $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } @@ -8043,32 +8586,76 @@ class DecimalColumnStatsData { } -class Date { +class DoubleColumnStatsData { static $_TSPEC; + /** + * @var double + */ + public $lowValue = null; + /** + * @var double + */ + public $highValue = null; /** * @var int */ - public $daysSinceEpoch = null; + public $numNulls = null; + /** + * @var int + */ + public $numDVs = null; + /** + * @var string + */ + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'daysSinceEpoch', + 'var' => 'lowValue', + 'type' => TType::DOUBLE, + ), + 2 => array( + 'var' => 'highValue', + 'type' => TType::DOUBLE, + ), + 3 => array( + 'var' => 'numNulls', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { - if (isset($vals['daysSinceEpoch'])) { - $this->daysSinceEpoch = $vals['daysSinceEpoch']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; + } + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; + } + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; + } + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; + } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'Date'; + return 'DoubleColumnStatsData'; } public function read($input) @@ -8087,8 +8674,36 @@ class Date { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->daysSinceEpoch); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->lowValue); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->highValue); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -8105,10 +8720,30 @@ class Date { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Date'); - if ($this->daysSinceEpoch !== null) { - $xfer += $output->writeFieldBegin('daysSinceEpoch', TType::I64, 1); - $xfer += $output->writeI64($this->daysSinceEpoch); + $xfer += $output->writeStructBegin('DoubleColumnStatsData'); + if ($this->lowValue !== null) { + $xfer += $output->writeFieldBegin('lowValue', TType::DOUBLE, 1); + $xfer += $output->writeDouble($this->lowValue); + $xfer += $output->writeFieldEnd(); + } + if ($this->highValue !== null) { + $xfer += $output->writeFieldBegin('highValue', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->highValue); + $xfer += $output->writeFieldEnd(); + } + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); + $xfer += $output->writeFieldEnd(); + } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); + $xfer += $output->writeFieldEnd(); + } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -8118,15 +8753,15 @@ class Date { } -class DateColumnStatsData { +class LongColumnStatsData { static $_TSPEC; /** - * @var \metastore\Date + * @var int */ public $lowValue = null; /** - * @var \metastore\Date + * @var int */ public $highValue = null; /** @@ -8147,13 +8782,11 @@ class DateColumnStatsData { self::$_TSPEC = array( 1 => array( 'var' => 'lowValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Date', + 'type' => TType::I64, ), 2 => array( 'var' => 'highValue', - 'type' => TType::STRUCT, - 'class' => '\metastore\Date', + 'type' => TType::I64, ), 3 => array( 'var' => 'numNulls', @@ -8189,7 +8822,7 @@ class DateColumnStatsData { } public function getName() { - return 'DateColumnStatsData'; + return 'LongColumnStatsData'; } public function read($input) @@ -8208,17 +8841,15 @@ class DateColumnStatsData { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->lowValue = new \metastore\Date(); - $xfer += $this->lowValue->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->lowValue); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->highValue = new \metastore\Date(); - $xfer += $this->highValue->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->highValue); } else { $xfer += $input->skip($ftype); } @@ -8256,21 +8887,15 @@ class DateColumnStatsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('DateColumnStatsData'); + $xfer += $output->writeStructBegin('LongColumnStatsData'); if ($this->lowValue !== null) { - if (!is_object($this->lowValue)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); - $xfer += $this->lowValue->write($output); + $xfer += $output->writeFieldBegin('lowValue', TType::I64, 1); + $xfer += $output->writeI64($this->lowValue); $xfer += $output->writeFieldEnd(); } if ($this->highValue !== null) { - if (!is_object($this->highValue)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); - $xfer += $this->highValue->write($output); + $xfer += $output->writeFieldBegin('highValue', TType::I64, 2); + $xfer += $output->writeI64($this->highValue); $xfer += $output->writeFieldEnd(); } if ($this->numNulls !== null) { @@ -8295,105 +8920,76 @@ class DateColumnStatsData { } -class ColumnStatisticsData { +class StringColumnStatsData { static $_TSPEC; /** - * @var \metastore\BooleanColumnStatsData - */ - public $booleanStats = null; - /** - * @var \metastore\LongColumnStatsData - */ - public $longStats = null; - /** - * @var \metastore\DoubleColumnStatsData + * @var int */ - public $doubleStats = null; + public $maxColLen = null; /** - * @var \metastore\StringColumnStatsData + * @var double */ - public $stringStats = null; + public $avgColLen = null; /** - * @var \metastore\BinaryColumnStatsData + * @var int */ - public $binaryStats = null; + public $numNulls = null; /** - * @var \metastore\DecimalColumnStatsData + * @var int */ - public $decimalStats = null; + public $numDVs = null; /** - * @var \metastore\DateColumnStatsData + * @var string */ - public $dateStats = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'booleanStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\BooleanColumnStatsData', + 'var' => 'maxColLen', + 'type' => TType::I64, ), 2 => array( - 'var' => 'longStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\LongColumnStatsData', + 'var' => 'avgColLen', + 'type' => TType::DOUBLE, ), 3 => array( - 'var' => 'doubleStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DoubleColumnStatsData', + 'var' => 'numNulls', + 'type' => TType::I64, ), 4 => array( - 'var' => 'stringStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\StringColumnStatsData', + 'var' => 'numDVs', + 'type' => TType::I64, ), 5 => array( - 'var' => 'binaryStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\BinaryColumnStatsData', - ), - 6 => array( - 'var' => 'decimalStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DecimalColumnStatsData', - ), - 7 => array( - 'var' => 'dateStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\DateColumnStatsData', + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['booleanStats'])) { - $this->booleanStats = $vals['booleanStats']; - } - if (isset($vals['longStats'])) { - $this->longStats = $vals['longStats']; - } - if (isset($vals['doubleStats'])) { - $this->doubleStats = $vals['doubleStats']; + if (isset($vals['maxColLen'])) { + $this->maxColLen = $vals['maxColLen']; } - if (isset($vals['stringStats'])) { - $this->stringStats = $vals['stringStats']; + if (isset($vals['avgColLen'])) { + $this->avgColLen = $vals['avgColLen']; } - if (isset($vals['binaryStats'])) { - $this->binaryStats = $vals['binaryStats']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; } - if (isset($vals['decimalStats'])) { - $this->decimalStats = $vals['decimalStats']; + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; } - if (isset($vals['dateStats'])) { - $this->dateStats = $vals['dateStats']; + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'ColumnStatisticsData'; + return 'StringColumnStatsData'; } public function read($input) @@ -8412,57 +9008,36 @@ class ColumnStatisticsData { switch ($fid) { case 1: - if ($ftype == TType::STRUCT) { - $this->booleanStats = new \metastore\BooleanColumnStatsData(); - $xfer += $this->booleanStats->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->maxColLen); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRUCT) { - $this->longStats = new \metastore\LongColumnStatsData(); - $xfer += $this->longStats->read($input); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->avgColLen); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRUCT) { - $this->doubleStats = new \metastore\DoubleColumnStatsData(); - $xfer += $this->doubleStats->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::STRUCT) { - $this->stringStats = new \metastore\StringColumnStatsData(); - $xfer += $this->stringStats->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRUCT) { - $this->binaryStats = new \metastore\BinaryColumnStatsData(); - $xfer += $this->binaryStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::STRUCT) { - $this->decimalStats = new \metastore\DecimalColumnStatsData(); - $xfer += $this->decimalStats->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::STRUCT) { - $this->dateStats = new \metastore\DateColumnStatsData(); - $xfer += $this->dateStats->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -8479,61 +9054,30 @@ class ColumnStatisticsData { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsData'); - if ($this->booleanStats !== null) { - if (!is_object($this->booleanStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('booleanStats', TType::STRUCT, 1); - $xfer += $this->booleanStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->longStats !== null) { - if (!is_object($this->longStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('longStats', TType::STRUCT, 2); - $xfer += $this->longStats->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->doubleStats !== null) { - if (!is_object($this->doubleStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('doubleStats', TType::STRUCT, 3); - $xfer += $this->doubleStats->write($output); + $xfer += $output->writeStructBegin('StringColumnStatsData'); + if ($this->maxColLen !== null) { + $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); + $xfer += $output->writeI64($this->maxColLen); $xfer += $output->writeFieldEnd(); } - if ($this->stringStats !== null) { - if (!is_object($this->stringStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('stringStats', TType::STRUCT, 4); - $xfer += $this->stringStats->write($output); + if ($this->avgColLen !== null) { + $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->avgColLen); $xfer += $output->writeFieldEnd(); } - if ($this->binaryStats !== null) { - if (!is_object($this->binaryStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('binaryStats', TType::STRUCT, 5); - $xfer += $this->binaryStats->write($output); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->decimalStats !== null) { - if (!is_object($this->decimalStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('decimalStats', TType::STRUCT, 6); - $xfer += $this->decimalStats->write($output); + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } - if ($this->dateStats !== null) { - if (!is_object($this->dateStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('dateStats', TType::STRUCT, 7); - $xfer += $this->dateStats->write($output); + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -8543,55 +9087,65 @@ class ColumnStatisticsData { } -class ColumnStatisticsObj { +class BinaryColumnStatsData { static $_TSPEC; /** - * @var string + * @var int */ - public $colName = null; + public $maxColLen = null; /** - * @var string + * @var double */ - public $colType = null; + public $avgColLen = null; /** - * @var \metastore\ColumnStatisticsData + * @var int */ - public $statsData = null; + public $numNulls = null; + /** + * @var string + */ + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'colName', - 'type' => TType::STRING, + 'var' => 'maxColLen', + 'type' => TType::I64, ), 2 => array( - 'var' => 'colType', - 'type' => TType::STRING, + 'var' => 'avgColLen', + 'type' => TType::DOUBLE, ), 3 => array( - 'var' => 'statsData', - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsData', + 'var' => 'numNulls', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['colName'])) { - $this->colName = $vals['colName']; + if (isset($vals['maxColLen'])) { + $this->maxColLen = $vals['maxColLen']; } - if (isset($vals['colType'])) { - $this->colType = $vals['colType']; + if (isset($vals['avgColLen'])) { + $this->avgColLen = $vals['avgColLen']; } - if (isset($vals['statsData'])) { - $this->statsData = $vals['statsData']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; + } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'ColumnStatisticsObj'; + return 'BinaryColumnStatsData'; } public function read($input) @@ -8610,23 +9164,29 @@ class ColumnStatisticsObj { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->colName); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->maxColLen); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->colType); + if ($ftype == TType::DOUBLE) { + $xfer += $input->readDouble($this->avgColLen); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRUCT) { - $this->statsData = new \metastore\ColumnStatisticsData(); - $xfer += $this->statsData->read($input); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -8643,23 +9203,25 @@ class ColumnStatisticsObj { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsObj'); - if ($this->colName !== null) { - $xfer += $output->writeFieldBegin('colName', TType::STRING, 1); - $xfer += $output->writeString($this->colName); + $xfer += $output->writeStructBegin('BinaryColumnStatsData'); + if ($this->maxColLen !== null) { + $xfer += $output->writeFieldBegin('maxColLen', TType::I64, 1); + $xfer += $output->writeI64($this->maxColLen); $xfer += $output->writeFieldEnd(); } - if ($this->colType !== null) { - $xfer += $output->writeFieldBegin('colType', TType::STRING, 2); - $xfer += $output->writeString($this->colType); + if ($this->avgColLen !== null) { + $xfer += $output->writeFieldBegin('avgColLen', TType::DOUBLE, 2); + $xfer += $output->writeDouble($this->avgColLen); $xfer += $output->writeFieldEnd(); } - if ($this->statsData !== null) { - if (!is_object($this->statsData)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('statsData', TType::STRUCT, 3); - $xfer += $this->statsData->write($output); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); + $xfer += $output->writeFieldEnd(); + } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -8669,87 +9231,43 @@ class ColumnStatisticsObj { } -class ColumnStatisticsDesc { +class Decimal { static $_TSPEC; - /** - * @var bool - */ - public $isTblLevel = null; - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tableName = null; - /** - * @var string - */ - public $partName = null; /** * @var int */ - public $lastAnalyzed = null; + public $scale = null; /** * @var string */ - public $catName = null; + public $unscaled = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - 1 => array( - 'var' => 'isTblLevel', - 'type' => TType::BOOL, - ), - 2 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), 3 => array( - 'var' => 'tableName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'partName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'lastAnalyzed', - 'type' => TType::I64, + 'var' => 'scale', + 'type' => TType::I16, ), - 6 => array( - 'var' => 'catName', + 1 => array( + 'var' => 'unscaled', 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['isTblLevel'])) { - $this->isTblLevel = $vals['isTblLevel']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['partName'])) { - $this->partName = $vals['partName']; - } - if (isset($vals['lastAnalyzed'])) { - $this->lastAnalyzed = $vals['lastAnalyzed']; + if (isset($vals['scale'])) { + $this->scale = $vals['scale']; } - if (isset($vals['catName'])) { - $this->catName = $vals['catName']; + if (isset($vals['unscaled'])) { + $this->unscaled = $vals['unscaled']; } } } public function getName() { - return 'ColumnStatisticsDesc'; + return 'Decimal'; } public function read($input) @@ -8767,44 +9285,16 @@ class ColumnStatisticsDesc { } switch ($fid) { - case 1: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->isTblLevel); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->partName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->lastAnalyzed); + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->scale); } else { $xfer += $input->skip($ftype); } break; - case 6: + case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->catName); + $xfer += $input->readString($this->unscaled); } else { $xfer += $input->skip($ftype); } @@ -8821,35 +9311,15 @@ class ColumnStatisticsDesc { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatisticsDesc'); - if ($this->isTblLevel !== null) { - $xfer += $output->writeFieldBegin('isTblLevel', TType::BOOL, 1); - $xfer += $output->writeBool($this->isTblLevel); + $xfer += $output->writeStructBegin('Decimal'); + if ($this->unscaled !== null) { + $xfer += $output->writeFieldBegin('unscaled', TType::STRING, 1); + $xfer += $output->writeString($this->unscaled); $xfer += $output->writeFieldEnd(); } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); - $xfer += $output->writeString($this->tableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->partName !== null) { - $xfer += $output->writeFieldBegin('partName', TType::STRING, 4); - $xfer += $output->writeString($this->partName); - $xfer += $output->writeFieldEnd(); - } - if ($this->lastAnalyzed !== null) { - $xfer += $output->writeFieldBegin('lastAnalyzed', TType::I64, 5); - $xfer += $output->writeI64($this->lastAnalyzed); - $xfer += $output->writeFieldEnd(); - } - if ($this->catName !== null) { - $xfer += $output->writeFieldBegin('catName', TType::STRING, 6); - $xfer += $output->writeString($this->catName); + if ($this->scale !== null) { + $xfer += $output->writeFieldBegin('scale', TType::I16, 3); + $xfer += $output->writeI16($this->scale); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -8859,60 +9329,78 @@ class ColumnStatisticsDesc { } -class ColumnStatistics { +class DecimalColumnStatsData { static $_TSPEC; /** - * @var \metastore\ColumnStatisticsDesc + * @var \metastore\Decimal */ - public $statsDesc = null; + public $lowValue = null; /** - * @var \metastore\ColumnStatisticsObj[] + * @var \metastore\Decimal */ - public $statsObj = null; + public $highValue = null; /** - * @var bool + * @var int */ - public $isStatsCompliant = null; + public $numNulls = null; + /** + * @var int + */ + public $numDVs = null; + /** + * @var string + */ + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'statsDesc', + 'var' => 'lowValue', 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsDesc', + 'class' => '\metastore\Decimal', ), 2 => array( - 'var' => 'statsObj', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatisticsObj', - ), + 'var' => 'highValue', + 'type' => TType::STRUCT, + 'class' => '\metastore\Decimal', ), 3 => array( - 'var' => 'isStatsCompliant', - 'type' => TType::BOOL, + 'var' => 'numNulls', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'numDVs', + 'type' => TType::I64, + ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['statsDesc'])) { - $this->statsDesc = $vals['statsDesc']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; } - if (isset($vals['statsObj'])) { - $this->statsObj = $vals['statsObj']; + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; } - if (isset($vals['isStatsCompliant'])) { - $this->isStatsCompliant = $vals['isStatsCompliant']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; + } + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; + } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'ColumnStatistics'; + return 'DecimalColumnStatsData'; } public function read($input) @@ -8932,33 +9420,37 @@ class ColumnStatistics { { case 1: if ($ftype == TType::STRUCT) { - $this->statsDesc = new \metastore\ColumnStatisticsDesc(); - $xfer += $this->statsDesc->read($input); + $this->lowValue = new \metastore\Decimal(); + $xfer += $this->lowValue->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::LST) { - $this->statsObj = array(); - $_size190 = 0; - $_etype193 = 0; - $xfer += $input->readListBegin($_etype193, $_size190); - for ($_i194 = 0; $_i194 < $_size190; ++$_i194) - { - $elem195 = null; - $elem195 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem195->read($input); - $this->statsObj []= $elem195; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->highValue = new \metastore\Decimal(); + $xfer += $this->highValue->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->isStatsCompliant); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numNulls); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); } else { $xfer += $input->skip($ftype); } @@ -8975,35 +9467,36 @@ class ColumnStatistics { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ColumnStatistics'); - if ($this->statsDesc !== null) { - if (!is_object($this->statsDesc)) { + $xfer += $output->writeStructBegin('DecimalColumnStatsData'); + if ($this->lowValue !== null) { + if (!is_object($this->lowValue)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('statsDesc', TType::STRUCT, 1); - $xfer += $this->statsDesc->write($output); + $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); + $xfer += $this->lowValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->statsObj !== null) { - if (!is_array($this->statsObj)) { + if ($this->highValue !== null) { + if (!is_object($this->highValue)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('statsObj', TType::LST, 2); - { - $output->writeListBegin(TType::STRUCT, count($this->statsObj)); - { - foreach ($this->statsObj as $iter196) - { - $xfer += $iter196->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); + $xfer += $this->highValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->isStatsCompliant !== null) { - $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 3); - $xfer += $output->writeBool($this->isStatsCompliant); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); + $xfer += $output->writeFieldEnd(); + } + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); + $xfer += $output->writeFieldEnd(); + } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -9013,280 +9506,153 @@ class ColumnStatistics { } -class Table { +class Date { static $_TSPEC; /** * @var int */ - public $id = null; - /** - * @var string - */ - public $tableName = null; - /** - * @var string - */ - public $dbName = null; + public $daysSinceEpoch = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'daysSinceEpoch', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['daysSinceEpoch'])) { + $this->daysSinceEpoch = $vals['daysSinceEpoch']; + } + } + } + + public function getName() { + return 'Date'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->daysSinceEpoch); + } 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('Date'); + if ($this->daysSinceEpoch !== null) { + $xfer += $output->writeFieldBegin('daysSinceEpoch', TType::I64, 1); + $xfer += $output->writeI64($this->daysSinceEpoch); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class DateColumnStatsData { + static $_TSPEC; + /** - * @var string + * @var \metastore\Date */ - public $owner = null; + public $lowValue = null; /** - * @var int + * @var \metastore\Date */ - public $createTime = null; + public $highValue = null; /** * @var int */ - public $lastAccessTime = null; + public $numNulls = null; /** * @var int */ - public $retention = null; - /** - * @var \metastore\StorageDescriptor - */ - public $sd = null; - /** - * @var \metastore\FieldSchema[] - */ - public $partitionKeys = null; - /** - * @var array - */ - public $parameters = null; - /** - * @var string - */ - public $viewOriginalText = null; - /** - * @var string - */ - public $viewExpandedText = null; - /** - * @var string - */ - public $tableType = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ - public $privileges = null; - /** - * @var bool - */ - public $temporary = false; - /** - * @var bool - */ - public $rewriteEnabled = null; - /** - * @var \metastore\CreationMetadata - */ - public $creationMetadata = null; + public $numDVs = null; /** * @var string */ - public $catName = null; - /** - * @var int - */ - public $ownerType = 1; - /** - * @var int - */ - public $writeId = -1; - /** - * @var bool - */ - public $isStatsCompliant = null; - /** - * @var \metastore\ColumnStatistics - */ - public $colStats = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'id', - 'type' => TType::I64, + 'var' => 'lowValue', + 'type' => TType::STRUCT, + 'class' => '\metastore\Date', ), 2 => array( - 'var' => 'tableName', - 'type' => TType::STRING, + 'var' => 'highValue', + 'type' => TType::STRUCT, + 'class' => '\metastore\Date', ), 3 => array( - 'var' => 'dbName', - 'type' => TType::STRING, + 'var' => 'numNulls', + 'type' => TType::I64, ), 4 => array( - 'var' => 'owner', - 'type' => TType::STRING, + 'var' => 'numDVs', + 'type' => TType::I64, ), 5 => array( - 'var' => 'createTime', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, - ), - 7 => array( - 'var' => 'retention', - 'type' => TType::I32, - ), - 8 => array( - 'var' => 'sd', - 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', - ), - 9 => array( - 'var' => 'partitionKeys', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\FieldSchema', - ), - ), - 10 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 11 => array( - 'var' => 'viewOriginalText', - 'type' => TType::STRING, - ), - 12 => array( - 'var' => 'viewExpandedText', - 'type' => TType::STRING, - ), - 13 => array( - 'var' => 'tableType', - 'type' => TType::STRING, - ), - 14 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', - ), - 15 => array( - 'var' => 'temporary', - 'type' => TType::BOOL, - ), - 16 => array( - 'var' => 'rewriteEnabled', - 'type' => TType::BOOL, - ), - 17 => array( - 'var' => 'creationMetadata', - 'type' => TType::STRUCT, - 'class' => '\metastore\CreationMetadata', - ), - 18 => array( - 'var' => 'catName', + 'var' => 'bitVectors', 'type' => TType::STRING, ), - 19 => array( - 'var' => 'ownerType', - 'type' => TType::I32, - ), - 20 => array( - 'var' => 'writeId', - 'type' => TType::I64, - ), - 21 => array( - 'var' => 'isStatsCompliant', - 'type' => TType::BOOL, - ), - 22 => array( - 'var' => 'colStats', - 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatistics', - ), ); } if (is_array($vals)) { - if (isset($vals['id'])) { - $this->id = $vals['id']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['owner'])) { - $this->owner = $vals['owner']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; - } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; - } - if (isset($vals['retention'])) { - $this->retention = $vals['retention']; - } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; - } - if (isset($vals['partitionKeys'])) { - $this->partitionKeys = $vals['partitionKeys']; - } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; - } - if (isset($vals['viewOriginalText'])) { - $this->viewOriginalText = $vals['viewOriginalText']; - } - if (isset($vals['viewExpandedText'])) { - $this->viewExpandedText = $vals['viewExpandedText']; - } - if (isset($vals['tableType'])) { - $this->tableType = $vals['tableType']; - } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; - } - if (isset($vals['temporary'])) { - $this->temporary = $vals['temporary']; - } - if (isset($vals['rewriteEnabled'])) { - $this->rewriteEnabled = $vals['rewriteEnabled']; - } - if (isset($vals['creationMetadata'])) { - $this->creationMetadata = $vals['creationMetadata']; - } - if (isset($vals['catName'])) { - $this->catName = $vals['catName']; + if (isset($vals['lowValue'])) { + $this->lowValue = $vals['lowValue']; } - if (isset($vals['ownerType'])) { - $this->ownerType = $vals['ownerType']; + if (isset($vals['highValue'])) { + $this->highValue = $vals['highValue']; } - if (isset($vals['writeId'])) { - $this->writeId = $vals['writeId']; + if (isset($vals['numNulls'])) { + $this->numNulls = $vals['numNulls']; } - if (isset($vals['isStatsCompliant'])) { - $this->isStatsCompliant = $vals['isStatsCompliant']; + if (isset($vals['numDVs'])) { + $this->numDVs = $vals['numDVs']; } - if (isset($vals['colStats'])) { - $this->colStats = $vals['colStats']; + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; } } } public function getName() { - return 'Table'; + return 'DateColumnStatsData'; } public function read($input) @@ -9305,345 +9671,84 @@ class Table { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->id); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->owner); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->retention); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 9: - if ($ftype == TType::LST) { - $this->partitionKeys = array(); - $_size197 = 0; - $_etype200 = 0; - $xfer += $input->readListBegin($_etype200, $_size197); - for ($_i201 = 0; $_i201 < $_size197; ++$_i201) - { - $elem202 = null; - $elem202 = new \metastore\FieldSchema(); - $xfer += $elem202->read($input); - $this->partitionKeys []= $elem202; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 10: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size203 = 0; - $_ktype204 = 0; - $_vtype205 = 0; - $xfer += $input->readMapBegin($_ktype204, $_vtype205, $_size203); - for ($_i207 = 0; $_i207 < $_size203; ++$_i207) - { - $key208 = ''; - $val209 = ''; - $xfer += $input->readString($key208); - $xfer += $input->readString($val209); - $this->parameters[$key208] = $val209; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 11: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->viewOriginalText); - } else { - $xfer += $input->skip($ftype); - } - break; - case 12: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->viewExpandedText); - } else { - $xfer += $input->skip($ftype); - } - break; - case 13: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 14: if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 15: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->temporary); - } else { - $xfer += $input->skip($ftype); - } - break; - case 16: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->rewriteEnabled); + $this->lowValue = new \metastore\Date(); + $xfer += $this->lowValue->read($input); } else { $xfer += $input->skip($ftype); } break; - case 17: + case 2: if ($ftype == TType::STRUCT) { - $this->creationMetadata = new \metastore\CreationMetadata(); - $xfer += $this->creationMetadata->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 18: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->catName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 19: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->ownerType); + $this->highValue = new \metastore\Date(); + $xfer += $this->highValue->read($input); } else { $xfer += $input->skip($ftype); } break; - case 20: + case 3: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->writeId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 21: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->isStatsCompliant); - } else { - $xfer += $input->skip($ftype); - } - break; - case 22: - if ($ftype == TType::STRUCT) { - $this->colStats = new \metastore\ColumnStatistics(); - $xfer += $this->colStats->read($input); + $xfer += $input->readI64($this->numNulls); } 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('Table'); - if ($this->id !== null) { - $xfer += $output->writeFieldBegin('id', TType::I64, 1); - $xfer += $output->writeI64($this->id); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 2); - $xfer += $output->writeString($this->tableName); - $xfer += $output->writeFieldEnd(); - } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 3); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->owner !== null) { - $xfer += $output->writeFieldBegin('owner', TType::STRING, 4); - $xfer += $output->writeString($this->owner); - $xfer += $output->writeFieldEnd(); - } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 5); - $xfer += $output->writeI32($this->createTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 6); - $xfer += $output->writeI32($this->lastAccessTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->retention !== null) { - $xfer += $output->writeFieldBegin('retention', TType::I32, 7); - $xfer += $output->writeI32($this->retention); - $xfer += $output->writeFieldEnd(); - } - if ($this->sd !== null) { - if (!is_object($this->sd)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 8); - $xfer += $this->sd->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->partitionKeys !== null) { - if (!is_array($this->partitionKeys)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 9); - { - $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); - { - foreach ($this->partitionKeys as $iter210) - { - $xfer += $iter210->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter211 => $viter212) - { - $xfer += $output->writeString($kiter211); - $xfer += $output->writeString($viter212); + $xfer += $input->skip($ftype); } - } - $output->writeMapEnd(); + break; + case 4: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->numDVs); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; } - $xfer += $output->writeFieldEnd(); - } - if ($this->viewOriginalText !== null) { - $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 11); - $xfer += $output->writeString($this->viewOriginalText); - $xfer += $output->writeFieldEnd(); - } - if ($this->viewExpandedText !== null) { - $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 12); - $xfer += $output->writeString($this->viewExpandedText); - $xfer += $output->writeFieldEnd(); - } - if ($this->tableType !== null) { - $xfer += $output->writeFieldBegin('tableType', TType::STRING, 13); - $xfer += $output->writeString($this->tableType); - $xfer += $output->writeFieldEnd(); + $xfer += $input->readFieldEnd(); } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('DateColumnStatsData'); + if ($this->lowValue !== null) { + if (!is_object($this->lowValue)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 14); - $xfer += $this->privileges->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->temporary !== null) { - $xfer += $output->writeFieldBegin('temporary', TType::BOOL, 15); - $xfer += $output->writeBool($this->temporary); - $xfer += $output->writeFieldEnd(); - } - if ($this->rewriteEnabled !== null) { - $xfer += $output->writeFieldBegin('rewriteEnabled', TType::BOOL, 16); - $xfer += $output->writeBool($this->rewriteEnabled); + $xfer += $output->writeFieldBegin('lowValue', TType::STRUCT, 1); + $xfer += $this->lowValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->creationMetadata !== null) { - if (!is_object($this->creationMetadata)) { + if ($this->highValue !== null) { + if (!is_object($this->highValue)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('creationMetadata', TType::STRUCT, 17); - $xfer += $this->creationMetadata->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->catName !== null) { - $xfer += $output->writeFieldBegin('catName', TType::STRING, 18); - $xfer += $output->writeString($this->catName); - $xfer += $output->writeFieldEnd(); - } - if ($this->ownerType !== null) { - $xfer += $output->writeFieldBegin('ownerType', TType::I32, 19); - $xfer += $output->writeI32($this->ownerType); + $xfer += $output->writeFieldBegin('highValue', TType::STRUCT, 2); + $xfer += $this->highValue->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->writeId !== null) { - $xfer += $output->writeFieldBegin('writeId', TType::I64, 20); - $xfer += $output->writeI64($this->writeId); + if ($this->numNulls !== null) { + $xfer += $output->writeFieldBegin('numNulls', TType::I64, 3); + $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } - if ($this->isStatsCompliant !== null) { - $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 21); - $xfer += $output->writeBool($this->isStatsCompliant); + if ($this->numDVs !== null) { + $xfer += $output->writeFieldBegin('numDVs', TType::I64, 4); + $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } - if ($this->colStats !== null) { - if (!is_object($this->colStats)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('colStats', TType::STRUCT, 22); - $xfer += $this->colStats->write($output); + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -9653,168 +9758,105 @@ class Table { } -class Partition { +class ColumnStatisticsData { static $_TSPEC; /** - * @var string[] - */ - public $values = null; - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tableName = null; - /** - * @var int - */ - public $createTime = null; - /** - * @var int - */ - public $lastAccessTime = null; - /** - * @var \metastore\StorageDescriptor + * @var \metastore\BooleanColumnStatsData */ - public $sd = null; + public $booleanStats = null; /** - * @var array + * @var \metastore\LongColumnStatsData */ - public $parameters = null; + public $longStats = null; /** - * @var \metastore\PrincipalPrivilegeSet + * @var \metastore\DoubleColumnStatsData */ - public $privileges = null; + public $doubleStats = null; /** - * @var string + * @var \metastore\StringColumnStatsData */ - public $catName = null; + public $stringStats = null; /** - * @var int + * @var \metastore\BinaryColumnStatsData */ - public $writeId = -1; + public $binaryStats = null; /** - * @var bool + * @var \metastore\DecimalColumnStatsData */ - public $isStatsCompliant = null; + public $decimalStats = null; /** - * @var \metastore\ColumnStatistics + * @var \metastore\DateColumnStatsData */ - public $colStats = null; + public $dateStats = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'values', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'booleanStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\BooleanColumnStatsData', ), 2 => array( - 'var' => 'dbName', - 'type' => TType::STRING, + 'var' => 'longStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\LongColumnStatsData', ), 3 => array( - 'var' => 'tableName', - 'type' => TType::STRING, + 'var' => 'doubleStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\DoubleColumnStatsData', ), 4 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'stringStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\StringColumnStatsData', ), 5 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, + 'var' => 'binaryStats', + 'type' => TType::STRUCT, + 'class' => '\metastore\BinaryColumnStatsData', ), 6 => array( - 'var' => 'sd', + 'var' => 'decimalStats', 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', + 'class' => '\metastore\DecimalColumnStatsData', ), 7 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), - ), - 8 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', - ), - 9 => array( - 'var' => 'catName', - 'type' => TType::STRING, - ), - 10 => array( - 'var' => 'writeId', - 'type' => TType::I64, - ), - 11 => array( - 'var' => 'isStatsCompliant', - 'type' => TType::BOOL, - ), - 12 => array( - 'var' => 'colStats', + 'var' => 'dateStats', 'type' => TType::STRUCT, - 'class' => '\metastore\ColumnStatistics', + 'class' => '\metastore\DateColumnStatsData', ), ); } if (is_array($vals)) { - if (isset($vals['values'])) { - $this->values = $vals['values']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; - } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; - } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; + if (isset($vals['booleanStats'])) { + $this->booleanStats = $vals['booleanStats']; } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['longStats'])) { + $this->longStats = $vals['longStats']; } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; + if (isset($vals['doubleStats'])) { + $this->doubleStats = $vals['doubleStats']; } - if (isset($vals['catName'])) { - $this->catName = $vals['catName']; + if (isset($vals['stringStats'])) { + $this->stringStats = $vals['stringStats']; } - if (isset($vals['writeId'])) { - $this->writeId = $vals['writeId']; + if (isset($vals['binaryStats'])) { + $this->binaryStats = $vals['binaryStats']; } - if (isset($vals['isStatsCompliant'])) { - $this->isStatsCompliant = $vals['isStatsCompliant']; + if (isset($vals['decimalStats'])) { + $this->decimalStats = $vals['decimalStats']; } - if (isset($vals['colStats'])) { - $this->colStats = $vals['colStats']; + if (isset($vals['dateStats'])) { + $this->dateStats = $vals['dateStats']; } } } public function getName() { - return 'Partition'; + return 'ColumnStatisticsData'; } public function read($input) @@ -9833,111 +9875,57 @@ class Partition { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->values = array(); - $_size213 = 0; - $_etype216 = 0; - $xfer += $input->readListBegin($_etype216, $_size213); - for ($_i217 = 0; $_i217 < $_size213; ++$_i217) - { - $elem218 = null; - $xfer += $input->readString($elem218); - $this->values []= $elem218; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->booleanStats = new \metastore\BooleanColumnStatsData(); + $xfer += $this->booleanStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); + if ($ftype == TType::STRUCT) { + $this->longStats = new \metastore\LongColumnStatsData(); + $xfer += $this->longStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tableName); + if ($ftype == TType::STRUCT) { + $this->doubleStats = new \metastore\DoubleColumnStatsData(); + $xfer += $this->doubleStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::STRUCT) { + $this->stringStats = new \metastore\StringColumnStatsData(); + $xfer += $this->stringStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); + if ($ftype == TType::STRUCT) { + $this->binaryStats = new \metastore\BinaryColumnStatsData(); + $xfer += $this->binaryStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); + $this->decimalStats = new \metastore\DecimalColumnStatsData(); + $xfer += $this->decimalStats->read($input); } else { $xfer += $input->skip($ftype); } break; case 7: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size219 = 0; - $_ktype220 = 0; - $_vtype221 = 0; - $xfer += $input->readMapBegin($_ktype220, $_vtype221, $_size219); - for ($_i223 = 0; $_i223 < $_size219; ++$_i223) - { - $key224 = ''; - $val225 = ''; - $xfer += $input->readString($key224); - $xfer += $input->readString($val225); - $this->parameters[$key224] = $val225; - } - $xfer += $input->readMapEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 9: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->catName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 10: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->writeId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 11: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->isStatsCompliant); - } else { - $xfer += $input->skip($ftype); - } - break; - case 12: if ($ftype == TType::STRUCT) { - $this->colStats = new \metastore\ColumnStatistics(); - $xfer += $this->colStats->read($input); + $this->dateStats = new \metastore\DateColumnStatsData(); + $xfer += $this->dateStats->read($input); } else { $xfer += $input->skip($ftype); } @@ -9954,99 +9942,187 @@ class Partition { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Partition'); - if ($this->values !== null) { - if (!is_array($this->values)) { + $xfer += $output->writeStructBegin('ColumnStatisticsData'); + if ($this->booleanStats !== null) { + if (!is_object($this->booleanStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('values', TType::LST, 1); - { - $output->writeListBegin(TType::STRING, count($this->values)); - { - foreach ($this->values as $iter226) - { - $xfer += $output->writeString($iter226); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('booleanStats', TType::STRUCT, 1); + $xfer += $this->booleanStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); - $xfer += $output->writeString($this->dbName); + if ($this->longStats !== null) { + if (!is_object($this->longStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('longStats', TType::STRUCT, 2); + $xfer += $this->longStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->tableName !== null) { - $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); - $xfer += $output->writeString($this->tableName); + if ($this->doubleStats !== null) { + if (!is_object($this->doubleStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('doubleStats', TType::STRUCT, 3); + $xfer += $this->doubleStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 4); - $xfer += $output->writeI32($this->createTime); + if ($this->stringStats !== null) { + if (!is_object($this->stringStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('stringStats', TType::STRUCT, 4); + $xfer += $this->stringStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5); - $xfer += $output->writeI32($this->lastAccessTime); + if ($this->binaryStats !== null) { + if (!is_object($this->binaryStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('binaryStats', TType::STRUCT, 5); + $xfer += $this->binaryStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->sd !== null) { - if (!is_object($this->sd)) { + if ($this->decimalStats !== null) { + if (!is_object($this->decimalStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6); - $xfer += $this->sd->write($output); + $xfer += $output->writeFieldBegin('decimalStats', TType::STRUCT, 6); + $xfer += $this->decimalStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { + if ($this->dateStats !== null) { + if (!is_object($this->dateStats)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter227 => $viter228) - { - $xfer += $output->writeString($kiter227); - $xfer += $output->writeString($viter228); - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('dateStats', TType::STRUCT, 7); + $xfer += $this->dateStats->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ColumnStatisticsObj { + static $_TSPEC; + + /** + * @var string + */ + public $colName = null; + /** + * @var string + */ + public $colType = null; + /** + * @var \metastore\ColumnStatisticsData + */ + public $statsData = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'colName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'colType', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'statsData', + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsData', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['colName'])) { + $this->colName = $vals['colName']; + } + if (isset($vals['colType'])) { + $this->colType = $vals['colType']; + } + if (isset($vals['statsData'])) { + $this->statsData = $vals['statsData']; + } + } + } + + public function getName() { + return 'ColumnStatisticsObj'; + } + + 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->colName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->colType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->statsData = new \metastore\ColumnStatisticsData(); + $xfer += $this->statsData->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8); - $xfer += $this->privileges->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->catName !== null) { - $xfer += $output->writeFieldBegin('catName', TType::STRING, 9); - $xfer += $output->writeString($this->catName); - $xfer += $output->writeFieldEnd(); + $xfer += $input->readFieldEnd(); } - if ($this->writeId !== null) { - $xfer += $output->writeFieldBegin('writeId', TType::I64, 10); - $xfer += $output->writeI64($this->writeId); + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ColumnStatisticsObj'); + if ($this->colName !== null) { + $xfer += $output->writeFieldBegin('colName', TType::STRING, 1); + $xfer += $output->writeString($this->colName); $xfer += $output->writeFieldEnd(); } - if ($this->isStatsCompliant !== null) { - $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 11); - $xfer += $output->writeBool($this->isStatsCompliant); + if ($this->colType !== null) { + $xfer += $output->writeFieldBegin('colType', TType::STRING, 2); + $xfer += $output->writeString($this->colType); $xfer += $output->writeFieldEnd(); } - if ($this->colStats !== null) { - if (!is_object($this->colStats)) { + if ($this->statsData !== null) { + if (!is_object($this->statsData)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('colStats', TType::STRUCT, 12); - $xfer += $this->colStats->write($output); + $xfer += $output->writeFieldBegin('statsData', TType::STRUCT, 3); + $xfer += $this->statsData->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -10056,100 +10132,87 @@ class Partition { } -class PartitionWithoutSD { +class ColumnStatisticsDesc { static $_TSPEC; /** - * @var string[] + * @var bool */ - public $values = null; + public $isTblLevel = null; /** - * @var int + * @var string */ - public $createTime = null; + public $dbName = null; /** - * @var int + * @var string */ - public $lastAccessTime = null; + public $tableName = null; /** * @var string */ - public $relativePath = null; + public $partName = null; /** - * @var array + * @var int */ - public $parameters = null; + public $lastAnalyzed = null; /** - * @var \metastore\PrincipalPrivilegeSet + * @var string */ - public $privileges = null; + public $catName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'values', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'isTblLevel', + 'type' => TType::BOOL, ), 2 => array( - 'var' => 'createTime', - 'type' => TType::I32, + 'var' => 'dbName', + 'type' => TType::STRING, ), 3 => array( - 'var' => 'lastAccessTime', - 'type' => TType::I32, + 'var' => 'tableName', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'relativePath', + 'var' => 'partName', 'type' => TType::STRING, ), 5 => array( - 'var' => 'parameters', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'var' => 'lastAnalyzed', + 'type' => TType::I64, ), 6 => array( - 'var' => 'privileges', - 'type' => TType::STRUCT, - 'class' => '\metastore\PrincipalPrivilegeSet', + 'var' => 'catName', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['values'])) { - $this->values = $vals['values']; + if (isset($vals['isTblLevel'])) { + $this->isTblLevel = $vals['isTblLevel']; } - if (isset($vals['createTime'])) { - $this->createTime = $vals['createTime']; + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; } - if (isset($vals['lastAccessTime'])) { - $this->lastAccessTime = $vals['lastAccessTime']; + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; } - if (isset($vals['relativePath'])) { - $this->relativePath = $vals['relativePath']; + if (isset($vals['partName'])) { + $this->partName = $vals['partName']; } - if (isset($vals['parameters'])) { - $this->parameters = $vals['parameters']; + if (isset($vals['lastAnalyzed'])) { + $this->lastAnalyzed = $vals['lastAnalyzed']; } - if (isset($vals['privileges'])) { - $this->privileges = $vals['privileges']; + if (isset($vals['catName'])) { + $this->catName = $vals['catName']; } } } public function getName() { - return 'PartitionWithoutSD'; + return 'ColumnStatisticsDesc'; } public function read($input) @@ -10168,67 +10231,43 @@ class PartitionWithoutSD { switch ($fid) { case 1: - if ($ftype == TType::LST) { - $this->values = array(); - $_size229 = 0; - $_etype232 = 0; - $xfer += $input->readListBegin($_etype232, $_size229); - for ($_i233 = 0; $_i233 < $_size229; ++$_i233) - { - $elem234 = null; - $xfer += $input->readString($elem234); - $this->values []= $elem234; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->isTblLevel); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->createTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->lastAccessTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tableName); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->relativePath); + $xfer += $input->readString($this->partName); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::MAP) { - $this->parameters = array(); - $_size235 = 0; - $_ktype236 = 0; - $_vtype237 = 0; - $xfer += $input->readMapBegin($_ktype236, $_vtype237, $_size235); - for ($_i239 = 0; $_i239 < $_size235; ++$_i239) - { - $key240 = ''; - $val241 = ''; - $xfer += $input->readString($key240); - $xfer += $input->readString($val241); - $this->parameters[$key240] = $val241; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->lastAnalyzed); } else { $xfer += $input->skip($ftype); } break; case 6: - if ($ftype == TType::STRUCT) { - $this->privileges = new \metastore\PrincipalPrivilegeSet(); - $xfer += $this->privileges->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->catName); } else { $xfer += $input->skip($ftype); } @@ -10245,63 +10284,35 @@ class PartitionWithoutSD { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionWithoutSD'); - if ($this->values !== null) { - if (!is_array($this->values)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('values', TType::LST, 1); - { - $output->writeListBegin(TType::STRING, count($this->values)); - { - foreach ($this->values as $iter242) - { - $xfer += $output->writeString($iter242); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeStructBegin('ColumnStatisticsDesc'); + if ($this->isTblLevel !== null) { + $xfer += $output->writeFieldBegin('isTblLevel', TType::BOOL, 1); + $xfer += $output->writeBool($this->isTblLevel); $xfer += $output->writeFieldEnd(); } - if ($this->createTime !== null) { - $xfer += $output->writeFieldBegin('createTime', TType::I32, 2); - $xfer += $output->writeI32($this->createTime); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); $xfer += $output->writeFieldEnd(); } - if ($this->lastAccessTime !== null) { - $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 3); - $xfer += $output->writeI32($this->lastAccessTime); + if ($this->tableName !== null) { + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3); + $xfer += $output->writeString($this->tableName); $xfer += $output->writeFieldEnd(); } - if ($this->relativePath !== null) { - $xfer += $output->writeFieldBegin('relativePath', TType::STRING, 4); - $xfer += $output->writeString($this->relativePath); + if ($this->partName !== null) { + $xfer += $output->writeFieldBegin('partName', TType::STRING, 4); + $xfer += $output->writeString($this->partName); $xfer += $output->writeFieldEnd(); } - if ($this->parameters !== null) { - if (!is_array($this->parameters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('parameters', TType::MAP, 5); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); - { - foreach ($this->parameters as $kiter243 => $viter244) - { - $xfer += $output->writeString($kiter243); - $xfer += $output->writeString($viter244); - } - } - $output->writeMapEnd(); - } + if ($this->lastAnalyzed !== null) { + $xfer += $output->writeFieldBegin('lastAnalyzed', TType::I64, 5); + $xfer += $output->writeI64($this->lastAnalyzed); $xfer += $output->writeFieldEnd(); } - if ($this->privileges !== null) { - if (!is_object($this->privileges)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 6); - $xfer += $this->privileges->write($output); + if ($this->catName !== null) { + $xfer += $output->writeFieldBegin('catName', TType::STRING, 6); + $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -10311,49 +10322,60 @@ class PartitionWithoutSD { } -class PartitionSpecWithSharedSD { +class ColumnStatistics { static $_TSPEC; /** - * @var \metastore\PartitionWithoutSD[] + * @var \metastore\ColumnStatisticsDesc */ - public $partitions = null; + public $statsDesc = null; /** - * @var \metastore\StorageDescriptor + * @var \metastore\ColumnStatisticsObj[] */ - public $sd = null; + public $statsObj = null; + /** + * @var bool + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'partitions', + 'var' => 'statsDesc', + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsDesc', + ), + 2 => array( + 'var' => 'statsObj', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\metastore\PartitionWithoutSD', + 'class' => '\metastore\ColumnStatisticsObj', ), ), - 2 => array( - 'var' => 'sd', - 'type' => TType::STRUCT, - 'class' => '\metastore\StorageDescriptor', + 3 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::BOOL, ), ); } if (is_array($vals)) { - if (isset($vals['partitions'])) { - $this->partitions = $vals['partitions']; + if (isset($vals['statsDesc'])) { + $this->statsDesc = $vals['statsDesc']; } - if (isset($vals['sd'])) { - $this->sd = $vals['sd']; + if (isset($vals['statsObj'])) { + $this->statsObj = $vals['statsObj']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; } } } public function getName() { - return 'PartitionSpecWithSharedSD'; + return 'ColumnStatistics'; } public function read($input) @@ -10372,27 +10394,34 @@ class PartitionSpecWithSharedSD { switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->statsDesc = new \metastore\ColumnStatisticsDesc(); + $xfer += $this->statsDesc->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::LST) { - $this->partitions = array(); + $this->statsObj = array(); $_size245 = 0; $_etype248 = 0; $xfer += $input->readListBegin($_etype248, $_size245); for ($_i249 = 0; $_i249 < $_size245; ++$_i249) { $elem250 = null; - $elem250 = new \metastore\PartitionWithoutSD(); + $elem250 = new \metastore\ColumnStatisticsObj(); $xfer += $elem250->read($input); - $this->partitions []= $elem250; + $this->statsObj []= $elem250; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::STRUCT) { - $this->sd = new \metastore\StorageDescriptor(); - $xfer += $this->sd->read($input); + case 3: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->isStatsCompliant); } else { $xfer += $input->skip($ftype); } @@ -10409,16 +10438,24 @@ class PartitionSpecWithSharedSD { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('PartitionSpecWithSharedSD'); - if ($this->partitions !== null) { - if (!is_array($this->partitions)) { + $xfer += $output->writeStructBegin('ColumnStatistics'); + if ($this->statsDesc !== null) { + if (!is_object($this->statsDesc)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('partitions', TType::LST, 1); + $xfer += $output->writeFieldBegin('statsDesc', TType::STRUCT, 1); + $xfer += $this->statsDesc->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->statsObj !== null) { + if (!is_array($this->statsObj)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('statsObj', TType::LST, 2); { - $output->writeListBegin(TType::STRUCT, count($this->partitions)); + $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { - foreach ($this->partitions as $iter251) + foreach ($this->statsObj as $iter251) { $xfer += $iter251->write($output); } @@ -10427,12 +10464,9 @@ class PartitionSpecWithSharedSD { } $xfer += $output->writeFieldEnd(); } - if ($this->sd !== null) { - if (!is_object($this->sd)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 2); - $xfer += $this->sd->write($output); + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::BOOL, 3); + $xfer += $output->writeBool($this->isStatsCompliant); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -16169,6 +16203,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)) { @@ -16193,6 +16235,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)) { @@ -16208,6 +16262,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']; + } } } @@ -16268,6 +16328,30 @@ class GetPartitionsByNamesRequest { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::LST) { + $this->processorCapabilities = array(); + $_size502 = 0; + $_etype505 = 0; + $xfer += $input->readListBegin($_etype505, $_size502); + for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + { + $elem507 = null; + $xfer += $input->readString($elem507); + $this->processorCapabilities []= $elem507; + } + $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; @@ -16299,9 +16383,9 @@ class GetPartitionsByNamesRequest { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter502) + foreach ($this->names as $iter508) { - $xfer += $output->writeString($iter502); + $xfer += $output->writeString($iter508); } } $output->writeListEnd(); @@ -16313,6 +16397,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 $iter509) + { + $xfer += $output->writeString($iter509); + } + } + $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; @@ -16371,15 +16477,15 @@ class GetPartitionsByNamesResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size503 = 0; - $_etype506 = 0; - $xfer += $input->readListBegin($_etype506, $_size503); - for ($_i507 = 0; $_i507 < $_size503; ++$_i507) + $_size510 = 0; + $_etype513 = 0; + $xfer += $input->readListBegin($_etype513, $_size510); + for ($_i514 = 0; $_i514 < $_size510; ++$_i514) { - $elem508 = null; - $elem508 = new \metastore\Partition(); - $xfer += $elem508->read($input); - $this->partitions []= $elem508; + $elem515 = null; + $elem515 = new \metastore\Partition(); + $xfer += $elem515->read($input); + $this->partitions []= $elem515; } $xfer += $input->readListEnd(); } else { @@ -16407,9 +16513,9 @@ class GetPartitionsByNamesResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter509) + foreach ($this->partitions as $iter516) { - $xfer += $iter509->write($output); + $xfer += $iter516->write($output); } } $output->writeListEnd(); @@ -16709,15 +16815,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size510 = 0; - $_etype513 = 0; - $xfer += $input->readListBegin($_etype513, $_size510); - for ($_i514 = 0; $_i514 < $_size510; ++$_i514) + $_size517 = 0; + $_etype520 = 0; + $xfer += $input->readListBegin($_etype520, $_size517); + for ($_i521 = 0; $_i521 < $_size517; ++$_i521) { - $elem515 = null; - $elem515 = new \metastore\ResourceUri(); - $xfer += $elem515->read($input); - $this->resourceUris []= $elem515; + $elem522 = null; + $elem522 = new \metastore\ResourceUri(); + $xfer += $elem522->read($input); + $this->resourceUris []= $elem522; } $xfer += $input->readListEnd(); } else { @@ -16787,9 +16893,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter516) + foreach ($this->resourceUris as $iter523) { - $xfer += $iter516->write($output); + $xfer += $iter523->write($output); } } $output->writeListEnd(); @@ -17111,153 +17217,6 @@ class GetOpenTxnsInfoResponse { return 'GetOpenTxnsInfoResponse'; } - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->txn_high_water_mark); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::LST) { - $this->open_txns = array(); - $_size517 = 0; - $_etype520 = 0; - $xfer += $input->readListBegin($_etype520, $_size517); - for ($_i521 = 0; $_i521 < $_size517; ++$_i521) - { - $elem522 = null; - $elem522 = new \metastore\TxnInfo(); - $xfer += $elem522->read($input); - $this->open_txns []= $elem522; - } - $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('GetOpenTxnsInfoResponse'); - if ($this->txn_high_water_mark !== null) { - $xfer += $output->writeFieldBegin('txn_high_water_mark', TType::I64, 1); - $xfer += $output->writeI64($this->txn_high_water_mark); - $xfer += $output->writeFieldEnd(); - } - if ($this->open_txns !== null) { - if (!is_array($this->open_txns)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('open_txns', TType::LST, 2); - { - $output->writeListBegin(TType::STRUCT, count($this->open_txns)); - { - foreach ($this->open_txns as $iter523) - { - $xfer += $iter523->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetOpenTxnsResponse { - static $_TSPEC; - - /** - * @var int - */ - public $txn_high_water_mark = null; - /** - * @var int[] - */ - public $open_txns = null; - /** - * @var int - */ - public $min_open_txn = null; - /** - * @var string - */ - public $abortedBits = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'txn_high_water_mark', - 'type' => TType::I64, - ), - 2 => array( - 'var' => 'open_txns', - 'type' => TType::LST, - 'etype' => TType::I64, - 'elem' => array( - 'type' => TType::I64, - ), - ), - 3 => array( - 'var' => 'min_open_txn', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'abortedBits', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['txn_high_water_mark'])) { - $this->txn_high_water_mark = $vals['txn_high_water_mark']; - } - if (isset($vals['open_txns'])) { - $this->open_txns = $vals['open_txns']; - } - if (isset($vals['min_open_txn'])) { - $this->min_open_txn = $vals['min_open_txn']; - } - if (isset($vals['abortedBits'])) { - $this->abortedBits = $vals['abortedBits']; - } - } - } - - public function getName() { - return 'GetOpenTxnsResponse'; - } - public function read($input) { $xfer = 0; @@ -17289,7 +17248,8 @@ class GetOpenTxnsResponse { for ($_i528 = 0; $_i528 < $_size524; ++$_i528) { $elem529 = null; - $xfer += $input->readI64($elem529); + $elem529 = new \metastore\TxnInfo(); + $xfer += $elem529->read($input); $this->open_txns []= $elem529; } $xfer += $input->readListEnd(); @@ -17297,6 +17257,152 @@ class GetOpenTxnsResponse { $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('GetOpenTxnsInfoResponse'); + if ($this->txn_high_water_mark !== null) { + $xfer += $output->writeFieldBegin('txn_high_water_mark', TType::I64, 1); + $xfer += $output->writeI64($this->txn_high_water_mark); + $xfer += $output->writeFieldEnd(); + } + if ($this->open_txns !== null) { + if (!is_array($this->open_txns)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('open_txns', TType::LST, 2); + { + $output->writeListBegin(TType::STRUCT, count($this->open_txns)); + { + foreach ($this->open_txns as $iter530) + { + $xfer += $iter530->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetOpenTxnsResponse { + static $_TSPEC; + + /** + * @var int + */ + public $txn_high_water_mark = null; + /** + * @var int[] + */ + public $open_txns = null; + /** + * @var int + */ + public $min_open_txn = null; + /** + * @var string + */ + public $abortedBits = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'txn_high_water_mark', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'open_txns', + 'type' => TType::LST, + 'etype' => TType::I64, + 'elem' => array( + 'type' => TType::I64, + ), + ), + 3 => array( + 'var' => 'min_open_txn', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'abortedBits', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['txn_high_water_mark'])) { + $this->txn_high_water_mark = $vals['txn_high_water_mark']; + } + if (isset($vals['open_txns'])) { + $this->open_txns = $vals['open_txns']; + } + if (isset($vals['min_open_txn'])) { + $this->min_open_txn = $vals['min_open_txn']; + } + if (isset($vals['abortedBits'])) { + $this->abortedBits = $vals['abortedBits']; + } + } + } + + public function getName() { + return 'GetOpenTxnsResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->txn_high_water_mark); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::LST) { + $this->open_txns = array(); + $_size531 = 0; + $_etype534 = 0; + $xfer += $input->readListBegin($_etype534, $_size531); + for ($_i535 = 0; $_i535 < $_size531; ++$_i535) + { + $elem536 = null; + $xfer += $input->readI64($elem536); + $this->open_txns []= $elem536; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->min_open_txn); @@ -17337,9 +17443,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter530) + foreach ($this->open_txns as $iter537) { - $xfer += $output->writeI64($iter530); + $xfer += $output->writeI64($iter537); } } $output->writeListEnd(); @@ -17514,14 +17620,14 @@ class OpenTxnRequest { case 6: if ($ftype == TType::LST) { $this->replSrcTxnIds = array(); - $_size531 = 0; - $_etype534 = 0; - $xfer += $input->readListBegin($_etype534, $_size531); - for ($_i535 = 0; $_i535 < $_size531; ++$_i535) + $_size538 = 0; + $_etype541 = 0; + $xfer += $input->readListBegin($_etype541, $_size538); + for ($_i542 = 0; $_i542 < $_size538; ++$_i542) { - $elem536 = null; - $xfer += $input->readI64($elem536); - $this->replSrcTxnIds []= $elem536; + $elem543 = null; + $xfer += $input->readI64($elem543); + $this->replSrcTxnIds []= $elem543; } $xfer += $input->readListEnd(); } else { @@ -17581,9 +17687,9 @@ class OpenTxnRequest { { $output->writeListBegin(TType::I64, count($this->replSrcTxnIds)); { - foreach ($this->replSrcTxnIds as $iter537) + foreach ($this->replSrcTxnIds as $iter544) { - $xfer += $output->writeI64($iter537); + $xfer += $output->writeI64($iter544); } } $output->writeListEnd(); @@ -17652,14 +17758,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size538 = 0; - $_etype541 = 0; - $xfer += $input->readListBegin($_etype541, $_size538); - for ($_i542 = 0; $_i542 < $_size538; ++$_i542) + $_size545 = 0; + $_etype548 = 0; + $xfer += $input->readListBegin($_etype548, $_size545); + for ($_i549 = 0; $_i549 < $_size545; ++$_i549) { - $elem543 = null; - $xfer += $input->readI64($elem543); - $this->txn_ids []= $elem543; + $elem550 = null; + $xfer += $input->readI64($elem550); + $this->txn_ids []= $elem550; } $xfer += $input->readListEnd(); } else { @@ -17687,9 +17793,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter544) + foreach ($this->txn_ids as $iter551) { - $xfer += $output->writeI64($iter544); + $xfer += $output->writeI64($iter551); } } $output->writeListEnd(); @@ -17851,14 +17957,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size545 = 0; - $_etype548 = 0; - $xfer += $input->readListBegin($_etype548, $_size545); - for ($_i549 = 0; $_i549 < $_size545; ++$_i549) + $_size552 = 0; + $_etype555 = 0; + $xfer += $input->readListBegin($_etype555, $_size552); + for ($_i556 = 0; $_i556 < $_size552; ++$_i556) { - $elem550 = null; - $xfer += $input->readI64($elem550); - $this->txn_ids []= $elem550; + $elem557 = null; + $xfer += $input->readI64($elem557); + $this->txn_ids []= $elem557; } $xfer += $input->readListEnd(); } else { @@ -17886,9 +17992,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter551) + foreach ($this->txn_ids as $iter558) { - $xfer += $output->writeI64($iter551); + $xfer += $output->writeI64($iter558); } } $output->writeListEnd(); @@ -18369,14 +18475,14 @@ class ReplLastIdInfo { case 5: if ($ftype == TType::LST) { $this->partitionList = array(); - $_size552 = 0; - $_etype555 = 0; - $xfer += $input->readListBegin($_etype555, $_size552); - for ($_i556 = 0; $_i556 < $_size552; ++$_i556) + $_size559 = 0; + $_etype562 = 0; + $xfer += $input->readListBegin($_etype562, $_size559); + for ($_i563 = 0; $_i563 < $_size559; ++$_i563) { - $elem557 = null; - $xfer += $input->readString($elem557); - $this->partitionList []= $elem557; + $elem564 = null; + $xfer += $input->readString($elem564); + $this->partitionList []= $elem564; } $xfer += $input->readListEnd(); } else { @@ -18431,9 +18537,9 @@ class ReplLastIdInfo { { $output->writeListBegin(TType::STRING, count($this->partitionList)); { - foreach ($this->partitionList as $iter558) + foreach ($this->partitionList as $iter565) { - $xfer += $output->writeString($iter558); + $xfer += $output->writeString($iter565); } } $output->writeListEnd(); @@ -18563,15 +18669,15 @@ class CommitTxnRequest { case 3: if ($ftype == TType::LST) { $this->writeEventInfos = array(); - $_size559 = 0; - $_etype562 = 0; - $xfer += $input->readListBegin($_etype562, $_size559); - for ($_i563 = 0; $_i563 < $_size559; ++$_i563) + $_size566 = 0; + $_etype569 = 0; + $xfer += $input->readListBegin($_etype569, $_size566); + for ($_i570 = 0; $_i570 < $_size566; ++$_i570) { - $elem564 = null; - $elem564 = new \metastore\WriteEventInfo(); - $xfer += $elem564->read($input); - $this->writeEventInfos []= $elem564; + $elem571 = null; + $elem571 = new \metastore\WriteEventInfo(); + $xfer += $elem571->read($input); + $this->writeEventInfos []= $elem571; } $xfer += $input->readListEnd(); } else { @@ -18625,9 +18731,9 @@ class CommitTxnRequest { { $output->writeListBegin(TType::STRUCT, count($this->writeEventInfos)); { - foreach ($this->writeEventInfos as $iter565) + foreach ($this->writeEventInfos as $iter572) { - $xfer += $iter565->write($output); + $xfer += $iter572->write($output); } } $output->writeListEnd(); @@ -18797,14 +18903,14 @@ class ReplTblWriteIdStateRequest { case 6: if ($ftype == TType::LST) { $this->partNames = array(); - $_size566 = 0; - $_etype569 = 0; - $xfer += $input->readListBegin($_etype569, $_size566); - for ($_i570 = 0; $_i570 < $_size566; ++$_i570) + $_size573 = 0; + $_etype576 = 0; + $xfer += $input->readListBegin($_etype576, $_size573); + for ($_i577 = 0; $_i577 < $_size573; ++$_i577) { - $elem571 = null; - $xfer += $input->readString($elem571); - $this->partNames []= $elem571; + $elem578 = null; + $xfer += $input->readString($elem578); + $this->partNames []= $elem578; } $xfer += $input->readListEnd(); } else { @@ -18857,9 +18963,9 @@ class ReplTblWriteIdStateRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter572) + foreach ($this->partNames as $iter579) { - $xfer += $output->writeString($iter572); + $xfer += $output->writeString($iter579); } } $output->writeListEnd(); @@ -18945,14 +19051,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = array(); - $_size573 = 0; - $_etype576 = 0; - $xfer += $input->readListBegin($_etype576, $_size573); - for ($_i577 = 0; $_i577 < $_size573; ++$_i577) + $_size580 = 0; + $_etype583 = 0; + $xfer += $input->readListBegin($_etype583, $_size580); + for ($_i584 = 0; $_i584 < $_size580; ++$_i584) { - $elem578 = null; - $xfer += $input->readString($elem578); - $this->fullTableNames []= $elem578; + $elem585 = null; + $xfer += $input->readString($elem585); + $this->fullTableNames []= $elem585; } $xfer += $input->readListEnd(); } else { @@ -18994,9 +19100,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter579) + foreach ($this->fullTableNames as $iter586) { - $xfer += $output->writeString($iter579); + $xfer += $output->writeString($iter586); } } $output->writeListEnd(); @@ -19128,14 +19234,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = array(); - $_size580 = 0; - $_etype583 = 0; - $xfer += $input->readListBegin($_etype583, $_size580); - for ($_i584 = 0; $_i584 < $_size580; ++$_i584) + $_size587 = 0; + $_etype590 = 0; + $xfer += $input->readListBegin($_etype590, $_size587); + for ($_i591 = 0; $_i591 < $_size587; ++$_i591) { - $elem585 = null; - $xfer += $input->readI64($elem585); - $this->invalidWriteIds []= $elem585; + $elem592 = null; + $xfer += $input->readI64($elem592); + $this->invalidWriteIds []= $elem592; } $xfer += $input->readListEnd(); } else { @@ -19187,9 +19293,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter586) + foreach ($this->invalidWriteIds as $iter593) { - $xfer += $output->writeI64($iter586); + $xfer += $output->writeI64($iter593); } } $output->writeListEnd(); @@ -19264,15 +19370,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = array(); - $_size587 = 0; - $_etype590 = 0; - $xfer += $input->readListBegin($_etype590, $_size587); - for ($_i591 = 0; $_i591 < $_size587; ++$_i591) + $_size594 = 0; + $_etype597 = 0; + $xfer += $input->readListBegin($_etype597, $_size594); + for ($_i598 = 0; $_i598 < $_size594; ++$_i598) { - $elem592 = null; - $elem592 = new \metastore\TableValidWriteIds(); - $xfer += $elem592->read($input); - $this->tblValidWriteIds []= $elem592; + $elem599 = null; + $elem599 = new \metastore\TableValidWriteIds(); + $xfer += $elem599->read($input); + $this->tblValidWriteIds []= $elem599; } $xfer += $input->readListEnd(); } else { @@ -19300,9 +19406,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter593) + foreach ($this->tblValidWriteIds as $iter600) { - $xfer += $iter593->write($output); + $xfer += $iter600->write($output); } } $output->writeListEnd(); @@ -19527,14 +19633,14 @@ class AllocateTableWriteIdsRequest { case 3: if ($ftype == TType::LST) { $this->txnIds = array(); - $_size594 = 0; - $_etype597 = 0; - $xfer += $input->readListBegin($_etype597, $_size594); - for ($_i598 = 0; $_i598 < $_size594; ++$_i598) + $_size601 = 0; + $_etype604 = 0; + $xfer += $input->readListBegin($_etype604, $_size601); + for ($_i605 = 0; $_i605 < $_size601; ++$_i605) { - $elem599 = null; - $xfer += $input->readI64($elem599); - $this->txnIds []= $elem599; + $elem606 = null; + $xfer += $input->readI64($elem606); + $this->txnIds []= $elem606; } $xfer += $input->readListEnd(); } else { @@ -19551,15 +19657,15 @@ class AllocateTableWriteIdsRequest { case 5: if ($ftype == TType::LST) { $this->srcTxnToWriteIdList = 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->srcTxnToWriteIdList []= $elem605; + $elem612 = null; + $elem612 = new \metastore\TxnToWriteId(); + $xfer += $elem612->read($input); + $this->srcTxnToWriteIdList []= $elem612; } $xfer += $input->readListEnd(); } else { @@ -19597,9 +19703,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter606) + foreach ($this->txnIds as $iter613) { - $xfer += $output->writeI64($iter606); + $xfer += $output->writeI64($iter613); } } $output->writeListEnd(); @@ -19619,9 +19725,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::STRUCT, count($this->srcTxnToWriteIdList)); { - foreach ($this->srcTxnToWriteIdList as $iter607) + foreach ($this->srcTxnToWriteIdList as $iter614) { - $xfer += $iter607->write($output); + $xfer += $iter614->write($output); } } $output->writeListEnd(); @@ -19686,15 +19792,15 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size608 = 0; - $_etype611 = 0; - $xfer += $input->readListBegin($_etype611, $_size608); - for ($_i612 = 0; $_i612 < $_size608; ++$_i612) + $_size615 = 0; + $_etype618 = 0; + $xfer += $input->readListBegin($_etype618, $_size615); + for ($_i619 = 0; $_i619 < $_size615; ++$_i619) { - $elem613 = null; - $elem613 = new \metastore\TxnToWriteId(); - $xfer += $elem613->read($input); - $this->txnToWriteIds []= $elem613; + $elem620 = null; + $elem620 = new \metastore\TxnToWriteId(); + $xfer += $elem620->read($input); + $this->txnToWriteIds []= $elem620; } $xfer += $input->readListEnd(); } else { @@ -19722,9 +19828,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter614) + foreach ($this->txnToWriteIds as $iter621) { - $xfer += $iter614->write($output); + $xfer += $iter621->write($output); } } $output->writeListEnd(); @@ -20069,15 +20175,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size615 = 0; - $_etype618 = 0; - $xfer += $input->readListBegin($_etype618, $_size615); - for ($_i619 = 0; $_i619 < $_size615; ++$_i619) + $_size622 = 0; + $_etype625 = 0; + $xfer += $input->readListBegin($_etype625, $_size622); + for ($_i626 = 0; $_i626 < $_size622; ++$_i626) { - $elem620 = null; - $elem620 = new \metastore\LockComponent(); - $xfer += $elem620->read($input); - $this->component []= $elem620; + $elem627 = null; + $elem627 = new \metastore\LockComponent(); + $xfer += $elem627->read($input); + $this->component []= $elem627; } $xfer += $input->readListEnd(); } else { @@ -20133,9 +20239,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter621) + foreach ($this->component as $iter628) { - $xfer += $iter621->write($output); + $xfer += $iter628->write($output); } } $output->writeListEnd(); @@ -21078,15 +21184,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size622 = 0; - $_etype625 = 0; - $xfer += $input->readListBegin($_etype625, $_size622); - for ($_i626 = 0; $_i626 < $_size622; ++$_i626) + $_size629 = 0; + $_etype632 = 0; + $xfer += $input->readListBegin($_etype632, $_size629); + for ($_i633 = 0; $_i633 < $_size629; ++$_i633) { - $elem627 = null; - $elem627 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem627->read($input); - $this->locks []= $elem627; + $elem634 = null; + $elem634 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem634->read($input); + $this->locks []= $elem634; } $xfer += $input->readListEnd(); } else { @@ -21114,9 +21220,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter628) + foreach ($this->locks as $iter635) { - $xfer += $iter628->write($output); + $xfer += $iter635->write($output); } } $output->writeListEnd(); @@ -21391,17 +21497,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size629 = 0; - $_etype632 = 0; - $xfer += $input->readSetBegin($_etype632, $_size629); - for ($_i633 = 0; $_i633 < $_size629; ++$_i633) + $_size636 = 0; + $_etype639 = 0; + $xfer += $input->readSetBegin($_etype639, $_size636); + for ($_i640 = 0; $_i640 < $_size636; ++$_i640) { - $elem634 = null; - $xfer += $input->readI64($elem634); - if (is_scalar($elem634)) { - $this->aborted[$elem634] = true; + $elem641 = null; + $xfer += $input->readI64($elem641); + if (is_scalar($elem641)) { + $this->aborted[$elem641] = true; } else { - $this->aborted []= $elem634; + $this->aborted []= $elem641; } } $xfer += $input->readSetEnd(); @@ -21412,17 +21518,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size635 = 0; - $_etype638 = 0; - $xfer += $input->readSetBegin($_etype638, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readSetBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem640 = null; - $xfer += $input->readI64($elem640); - if (is_scalar($elem640)) { - $this->nosuch[$elem640] = true; + $elem647 = null; + $xfer += $input->readI64($elem647); + if (is_scalar($elem647)) { + $this->nosuch[$elem647] = true; } else { - $this->nosuch []= $elem640; + $this->nosuch []= $elem647; } } $xfer += $input->readSetEnd(); @@ -21451,12 +21557,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter641 => $iter642) + foreach ($this->aborted as $iter648 => $iter649) { - if (is_scalar($iter642)) { - $xfer += $output->writeI64($iter641); + if (is_scalar($iter649)) { + $xfer += $output->writeI64($iter648); } else { - $xfer += $output->writeI64($iter642); + $xfer += $output->writeI64($iter649); } } } @@ -21472,12 +21578,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter643 => $iter644) + foreach ($this->nosuch as $iter650 => $iter651) { - if (is_scalar($iter644)) { - $xfer += $output->writeI64($iter643); + if (is_scalar($iter651)) { + $xfer += $output->writeI64($iter650); } else { - $xfer += $output->writeI64($iter644); + $xfer += $output->writeI64($iter651); } } } @@ -21636,17 +21742,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size645 = 0; - $_ktype646 = 0; - $_vtype647 = 0; - $xfer += $input->readMapBegin($_ktype646, $_vtype647, $_size645); - for ($_i649 = 0; $_i649 < $_size645; ++$_i649) + $_size652 = 0; + $_ktype653 = 0; + $_vtype654 = 0; + $xfer += $input->readMapBegin($_ktype653, $_vtype654, $_size652); + for ($_i656 = 0; $_i656 < $_size652; ++$_i656) { - $key650 = ''; - $val651 = ''; - $xfer += $input->readString($key650); - $xfer += $input->readString($val651); - $this->properties[$key650] = $val651; + $key657 = ''; + $val658 = ''; + $xfer += $input->readString($key657); + $xfer += $input->readString($val658); + $this->properties[$key657] = $val658; } $xfer += $input->readMapEnd(); } else { @@ -21699,10 +21805,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter652 => $viter653) + foreach ($this->properties as $kiter659 => $viter660) { - $xfer += $output->writeString($kiter652); - $xfer += $output->writeString($viter653); + $xfer += $output->writeString($kiter659); + $xfer += $output->writeString($viter660); } } $output->writeMapEnd(); @@ -22697,15 +22803,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) { - $elem659 = null; - $elem659 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem659->read($input); - $this->compacts []= $elem659; + $elem666 = null; + $elem666 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem666->read($input); + $this->compacts []= $elem666; } $xfer += $input->readListEnd(); } else { @@ -22733,9 +22839,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter660) + foreach ($this->compacts as $iter667) { - $xfer += $iter660->write($output); + $xfer += $iter667->write($output); } } $output->writeListEnd(); @@ -22882,14 +22988,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size661 = 0; - $_etype664 = 0; - $xfer += $input->readListBegin($_etype664, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readListBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) { - $elem666 = null; - $xfer += $input->readString($elem666); - $this->partitionnames []= $elem666; + $elem673 = null; + $xfer += $input->readString($elem673); + $this->partitionnames []= $elem673; } $xfer += $input->readListEnd(); } else { @@ -22944,9 +23050,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter667) + foreach ($this->partitionnames as $iter674) { - $xfer += $output->writeString($iter667); + $xfer += $output->writeString($iter674); } } $output->writeListEnd(); @@ -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(); @@ -25386,14 +25492,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readListBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) + $_size749 = 0; + $_etype752 = 0; + $xfer += $input->readListBegin($_etype752, $_size749); + for ($_i753 = 0; $_i753 < $_size749; ++$_i753) { - $elem747 = null; - $xfer += $input->readI64($elem747); - $this->fileIds []= $elem747; + $elem754 = null; + $xfer += $input->readI64($elem754); + $this->fileIds []= $elem754; } $xfer += $input->readListEnd(); } else { @@ -25421,9 +25527,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter748) + foreach ($this->fileIds as $iter755) { - $xfer += $output->writeI64($iter748); + $xfer += $output->writeI64($iter755); } } $output->writeListEnd(); @@ -25563,14 +25669,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size756 = 0; + $_etype759 = 0; + $xfer += $input->readListBegin($_etype759, $_size756); + for ($_i760 = 0; $_i760 < $_size756; ++$_i760) { - $elem754 = null; - $xfer += $input->readI64($elem754); - $this->fileIds []= $elem754; + $elem761 = null; + $xfer += $input->readI64($elem761); + $this->fileIds []= $elem761; } $xfer += $input->readListEnd(); } else { @@ -25580,14 +25686,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem760 = null; - $xfer += $input->readString($elem760); - $this->metadata []= $elem760; + $elem767 = null; + $xfer += $input->readString($elem767); + $this->metadata []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -25622,9 +25728,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter761) + foreach ($this->fileIds as $iter768) { - $xfer += $output->writeI64($iter761); + $xfer += $output->writeI64($iter768); } } $output->writeListEnd(); @@ -25639,9 +25745,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter762) + foreach ($this->metadata as $iter769) { - $xfer += $output->writeString($iter762); + $xfer += $output->writeString($iter769); } } $output->writeListEnd(); @@ -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 += $iter797->write($output); + $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 += $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 fb2747c8c3..16add782ce 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 @@ -67,6 +67,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)') @@ -575,6 +576,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 2be349fbad..540e89356c 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 @@ -343,6 +343,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: @@ -3240,6 +3247,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: @@ -9727,6 +9767,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 @@ -10999,6 +11040,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) @@ -17075,10 +17138,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) @@ -17101,8 +17164,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: @@ -17207,10 +17270,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) @@ -17233,8 +17296,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: @@ -18004,12 +18067,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) @@ -18032,9 +18095,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: @@ -18177,11 +18240,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) @@ -18216,8 +18279,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: @@ -18384,11 +18447,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) @@ -18423,8 +18486,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: @@ -18577,11 +18640,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) @@ -18616,8 +18679,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: @@ -18784,11 +18847,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) @@ -18823,8 +18886,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: @@ -19277,66 +19340,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) @@ -19357,43 +19420,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() @@ -20953,10 +21016,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) @@ -20981,8 +21044,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() @@ -21327,10 +21390,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) @@ -21353,8 +21416,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: @@ -21504,10 +21567,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) @@ -21530,8 +21593,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: @@ -21636,11 +21699,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1024, _size1021) = iprot.readListBegin() - for _i1025 in xrange(_size1021): - _elem1026 = Table() - _elem1026.read(iprot) - self.success.append(_elem1026) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = Table() + _elem1068.read(iprot) + self.success.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -21663,8 +21726,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 iter1027 in self.success: - iter1027.write(oprot) + for iter1069 in self.success: + iter1069.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21788,10 +21851,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1031, _size1028) = iprot.readListBegin() - for _i1032 in xrange(_size1028): - _elem1033 = iprot.readString() - self.success.append(_elem1033) + (_etype1073, _size1070) = iprot.readListBegin() + for _i1074 in xrange(_size1070): + _elem1075 = iprot.readString() + self.success.append(_elem1075) iprot.readListEnd() else: iprot.skip(ftype) @@ -21814,8 +21877,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 iter1034 in self.success: - oprot.writeString(iter1034) + for iter1076 in self.success: + oprot.writeString(iter1076) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21888,10 +21951,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype1038, _size1035) = iprot.readListBegin() - for _i1039 in xrange(_size1035): - _elem1040 = iprot.readString() - self.tbl_types.append(_elem1040) + (_etype1080, _size1077) = iprot.readListBegin() + for _i1081 in xrange(_size1077): + _elem1082 = iprot.readString() + self.tbl_types.append(_elem1082) iprot.readListEnd() else: iprot.skip(ftype) @@ -21916,8 +21979,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 iter1041 in self.tbl_types: - oprot.writeString(iter1041) + for iter1083 in self.tbl_types: + oprot.writeString(iter1083) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21973,11 +22036,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1045, _size1042) = iprot.readListBegin() - for _i1046 in xrange(_size1042): - _elem1047 = TableMeta() - _elem1047.read(iprot) - self.success.append(_elem1047) + (_etype1087, _size1084) = iprot.readListBegin() + for _i1088 in xrange(_size1084): + _elem1089 = TableMeta() + _elem1089.read(iprot) + self.success.append(_elem1089) iprot.readListEnd() else: iprot.skip(ftype) @@ -22000,8 +22063,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 iter1048 in self.success: - iter1048.write(oprot) + for iter1090 in self.success: + iter1090.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22125,10 +22188,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1052, _size1049) = iprot.readListBegin() - for _i1053 in xrange(_size1049): - _elem1054 = iprot.readString() - self.success.append(_elem1054) + (_etype1094, _size1091) = iprot.readListBegin() + for _i1095 in xrange(_size1091): + _elem1096 = iprot.readString() + self.success.append(_elem1096) iprot.readListEnd() else: iprot.skip(ftype) @@ -22151,8 +22214,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 iter1055 in self.success: - oprot.writeString(iter1055) + for iter1097 in self.success: + oprot.writeString(iter1097) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22388,10 +22451,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype1059, _size1056) = iprot.readListBegin() - for _i1060 in xrange(_size1056): - _elem1061 = iprot.readString() - self.tbl_names.append(_elem1061) + (_etype1101, _size1098) = iprot.readListBegin() + for _i1102 in xrange(_size1098): + _elem1103 = iprot.readString() + self.tbl_names.append(_elem1103) iprot.readListEnd() else: iprot.skip(ftype) @@ -22412,8 +22475,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 iter1062 in self.tbl_names: - oprot.writeString(iter1062) + for iter1104 in self.tbl_names: + oprot.writeString(iter1104) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22465,11 +22528,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1066, _size1063) = iprot.readListBegin() - for _i1067 in xrange(_size1063): - _elem1068 = Table() - _elem1068.read(iprot) - self.success.append(_elem1068) + (_etype1108, _size1105) = iprot.readListBegin() + for _i1109 in xrange(_size1105): + _elem1110 = Table() + _elem1110.read(iprot) + self.success.append(_elem1110) iprot.readListEnd() else: iprot.skip(ftype) @@ -22486,10 +22549,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 iter1069 in self.success: - iter1069.write(oprot) + for iter1111 in self.success: + iter1111.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 = [] + (_etype1115, _size1112) = iprot.readListBegin() + for _i1116 in xrange(_size1112): + _elem1117 = ExtendedTableInfo() + _elem1117.read(iprot) + self.success.append(_elem1117) + 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 iter1118 in self.success: + iter1118.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() @@ -22500,6 +22715,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): @@ -23355,10 +23571,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1073, _size1070) = iprot.readListBegin() - for _i1074 in xrange(_size1070): - _elem1075 = iprot.readString() - self.success.append(_elem1075) + (_etype1122, _size1119) = iprot.readListBegin() + for _i1123 in xrange(_size1119): + _elem1124 = iprot.readString() + self.success.append(_elem1124) iprot.readListEnd() else: iprot.skip(ftype) @@ -23393,8 +23609,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 iter1076 in self.success: - oprot.writeString(iter1076) + for iter1125 in self.success: + oprot.writeString(iter1125) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24523,11 +24739,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 = Partition() - _elem1082.read(iprot) - self.new_parts.append(_elem1082) + (_etype1129, _size1126) = iprot.readListBegin() + for _i1130 in xrange(_size1126): + _elem1131 = Partition() + _elem1131.read(iprot) + self.new_parts.append(_elem1131) iprot.readListEnd() else: iprot.skip(ftype) @@ -24544,8 +24760,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() @@ -24703,11 +24919,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1087, _size1084) = iprot.readListBegin() - for _i1088 in xrange(_size1084): - _elem1089 = PartitionSpec() - _elem1089.read(iprot) - self.new_parts.append(_elem1089) + (_etype1136, _size1133) = iprot.readListBegin() + for _i1137 in xrange(_size1133): + _elem1138 = PartitionSpec() + _elem1138.read(iprot) + self.new_parts.append(_elem1138) iprot.readListEnd() else: iprot.skip(ftype) @@ -24724,8 +24940,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 iter1090 in self.new_parts: - iter1090.write(oprot) + for iter1139 in self.new_parts: + iter1139.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24899,10 +25115,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) @@ -24927,8 +25143,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() oprot.writeFieldStop() @@ -25281,10 +25497,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) @@ -25315,8 +25531,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.environment_context is not None: @@ -25911,10 +26127,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) @@ -25944,8 +26160,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: @@ -26118,10 +26334,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) @@ -26157,8 +26373,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() if self.deleteData is not None: @@ -26895,10 +27111,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1122, _size1119) = iprot.readListBegin() - for _i1123 in xrange(_size1119): - _elem1124 = iprot.readString() - self.part_vals.append(_elem1124) + (_etype1171, _size1168) = iprot.readListBegin() + for _i1172 in xrange(_size1168): + _elem1173 = iprot.readString() + self.part_vals.append(_elem1173) iprot.readListEnd() else: iprot.skip(ftype) @@ -26923,8 +27139,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 iter1125 in self.part_vals: - oprot.writeString(iter1125) + for iter1174 in self.part_vals: + oprot.writeString(iter1174) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27083,11 +27299,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1127, _vtype1128, _size1126 ) = iprot.readMapBegin() - for _i1130 in xrange(_size1126): - _key1131 = iprot.readString() - _val1132 = iprot.readString() - self.partitionSpecs[_key1131] = _val1132 + (_ktype1176, _vtype1177, _size1175 ) = iprot.readMapBegin() + for _i1179 in xrange(_size1175): + _key1180 = iprot.readString() + _val1181 = iprot.readString() + self.partitionSpecs[_key1180] = _val1181 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27124,9 +27340,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 kiter1133,viter1134 in self.partitionSpecs.items(): - oprot.writeString(kiter1133) - oprot.writeString(viter1134) + for kiter1182,viter1183 in self.partitionSpecs.items(): + oprot.writeString(kiter1182) + oprot.writeString(viter1183) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27331,11 +27547,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1136, _vtype1137, _size1135 ) = iprot.readMapBegin() - for _i1139 in xrange(_size1135): - _key1140 = iprot.readString() - _val1141 = iprot.readString() - self.partitionSpecs[_key1140] = _val1141 + (_ktype1185, _vtype1186, _size1184 ) = iprot.readMapBegin() + for _i1188 in xrange(_size1184): + _key1189 = iprot.readString() + _val1190 = iprot.readString() + self.partitionSpecs[_key1189] = _val1190 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27372,9 +27588,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 kiter1142,viter1143 in self.partitionSpecs.items(): - oprot.writeString(kiter1142) - oprot.writeString(viter1143) + for kiter1191,viter1192 in self.partitionSpecs.items(): + oprot.writeString(kiter1191) + oprot.writeString(viter1192) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -27457,11 +27673,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1147, _size1144) = iprot.readListBegin() - for _i1148 in xrange(_size1144): - _elem1149 = Partition() - _elem1149.read(iprot) - self.success.append(_elem1149) + (_etype1196, _size1193) = iprot.readListBegin() + for _i1197 in xrange(_size1193): + _elem1198 = Partition() + _elem1198.read(iprot) + self.success.append(_elem1198) iprot.readListEnd() else: iprot.skip(ftype) @@ -27502,8 +27718,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 iter1150 in self.success: - iter1150.write(oprot) + for iter1199 in self.success: + iter1199.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27597,10 +27813,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1154, _size1151) = iprot.readListBegin() - for _i1155 in xrange(_size1151): - _elem1156 = iprot.readString() - self.part_vals.append(_elem1156) + (_etype1203, _size1200) = iprot.readListBegin() + for _i1204 in xrange(_size1200): + _elem1205 = iprot.readString() + self.part_vals.append(_elem1205) iprot.readListEnd() else: iprot.skip(ftype) @@ -27612,10 +27828,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1160, _size1157) = iprot.readListBegin() - for _i1161 in xrange(_size1157): - _elem1162 = iprot.readString() - self.group_names.append(_elem1162) + (_etype1209, _size1206) = iprot.readListBegin() + for _i1210 in xrange(_size1206): + _elem1211 = iprot.readString() + self.group_names.append(_elem1211) iprot.readListEnd() else: iprot.skip(ftype) @@ -27640,8 +27856,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 iter1163 in self.part_vals: - oprot.writeString(iter1163) + for iter1212 in self.part_vals: + oprot.writeString(iter1212) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -27651,8 +27867,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 iter1164 in self.group_names: - oprot.writeString(iter1164) + for iter1213 in self.group_names: + oprot.writeString(iter1213) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28081,11 +28297,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1168, _size1165) = iprot.readListBegin() - for _i1169 in xrange(_size1165): - _elem1170 = Partition() - _elem1170.read(iprot) - self.success.append(_elem1170) + (_etype1217, _size1214) = iprot.readListBegin() + for _i1218 in xrange(_size1214): + _elem1219 = Partition() + _elem1219.read(iprot) + self.success.append(_elem1219) iprot.readListEnd() else: iprot.skip(ftype) @@ -28114,8 +28330,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 iter1171 in self.success: - iter1171.write(oprot) + for iter1220 in self.success: + iter1220.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28209,10 +28425,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1175, _size1172) = iprot.readListBegin() - for _i1176 in xrange(_size1172): - _elem1177 = iprot.readString() - self.group_names.append(_elem1177) + (_etype1224, _size1221) = iprot.readListBegin() + for _i1225 in xrange(_size1221): + _elem1226 = iprot.readString() + self.group_names.append(_elem1226) iprot.readListEnd() else: iprot.skip(ftype) @@ -28245,8 +28461,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 iter1178 in self.group_names: - oprot.writeString(iter1178) + for iter1227 in self.group_names: + oprot.writeString(iter1227) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28307,11 +28523,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1182, _size1179) = iprot.readListBegin() - for _i1183 in xrange(_size1179): - _elem1184 = Partition() - _elem1184.read(iprot) - self.success.append(_elem1184) + (_etype1231, _size1228) = iprot.readListBegin() + for _i1232 in xrange(_size1228): + _elem1233 = Partition() + _elem1233.read(iprot) + self.success.append(_elem1233) iprot.readListEnd() else: iprot.skip(ftype) @@ -28340,8 +28556,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: @@ -28499,11 +28715,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1189, _size1186) = iprot.readListBegin() - for _i1190 in xrange(_size1186): - _elem1191 = PartitionSpec() - _elem1191.read(iprot) - self.success.append(_elem1191) + (_etype1238, _size1235) = iprot.readListBegin() + for _i1239 in xrange(_size1235): + _elem1240 = PartitionSpec() + _elem1240.read(iprot) + self.success.append(_elem1240) iprot.readListEnd() else: iprot.skip(ftype) @@ -28532,8 +28748,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 iter1192 in self.success: - iter1192.write(oprot) + for iter1241 in self.success: + iter1241.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28691,10 +28907,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1196, _size1193) = iprot.readListBegin() - for _i1197 in xrange(_size1193): - _elem1198 = iprot.readString() - self.success.append(_elem1198) + (_etype1245, _size1242) = iprot.readListBegin() + for _i1246 in xrange(_size1242): + _elem1247 = iprot.readString() + self.success.append(_elem1247) iprot.readListEnd() else: iprot.skip(ftype) @@ -28723,8 +28939,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 iter1199 in self.success: - oprot.writeString(iter1199) + for iter1248 in self.success: + oprot.writeString(iter1248) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28964,10 +29180,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in xrange(_size1200): - _elem1205 = iprot.readString() - self.part_vals.append(_elem1205) + (_etype1252, _size1249) = iprot.readListBegin() + for _i1253 in xrange(_size1249): + _elem1254 = iprot.readString() + self.part_vals.append(_elem1254) iprot.readListEnd() else: iprot.skip(ftype) @@ -28997,8 +29213,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 iter1206 in self.part_vals: - oprot.writeString(iter1206) + for iter1255 in self.part_vals: + oprot.writeString(iter1255) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29062,11 +29278,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1210, _size1207) = iprot.readListBegin() - for _i1211 in xrange(_size1207): - _elem1212 = Partition() - _elem1212.read(iprot) - self.success.append(_elem1212) + (_etype1259, _size1256) = iprot.readListBegin() + for _i1260 in xrange(_size1256): + _elem1261 = Partition() + _elem1261.read(iprot) + self.success.append(_elem1261) iprot.readListEnd() else: iprot.skip(ftype) @@ -29095,8 +29311,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 iter1213 in self.success: - iter1213.write(oprot) + for iter1262 in self.success: + iter1262.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29183,10 +29399,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1217, _size1214) = iprot.readListBegin() - for _i1218 in xrange(_size1214): - _elem1219 = iprot.readString() - self.part_vals.append(_elem1219) + (_etype1266, _size1263) = iprot.readListBegin() + for _i1267 in xrange(_size1263): + _elem1268 = iprot.readString() + self.part_vals.append(_elem1268) iprot.readListEnd() else: iprot.skip(ftype) @@ -29203,10 +29419,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1223, _size1220) = iprot.readListBegin() - for _i1224 in xrange(_size1220): - _elem1225 = iprot.readString() - self.group_names.append(_elem1225) + (_etype1272, _size1269) = iprot.readListBegin() + for _i1273 in xrange(_size1269): + _elem1274 = iprot.readString() + self.group_names.append(_elem1274) iprot.readListEnd() else: iprot.skip(ftype) @@ -29231,8 +29447,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 iter1226 in self.part_vals: - oprot.writeString(iter1226) + for iter1275 in self.part_vals: + oprot.writeString(iter1275) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29246,8 +29462,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 iter1227 in self.group_names: - oprot.writeString(iter1227) + for iter1276 in self.group_names: + oprot.writeString(iter1276) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29309,11 +29525,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in xrange(_size1228): - _elem1233 = Partition() - _elem1233.read(iprot) - self.success.append(_elem1233) + (_etype1280, _size1277) = iprot.readListBegin() + for _i1281 in xrange(_size1277): + _elem1282 = Partition() + _elem1282.read(iprot) + self.success.append(_elem1282) iprot.readListEnd() else: iprot.skip(ftype) @@ -29342,8 +29558,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 iter1234 in self.success: - iter1234.write(oprot) + for iter1283 in self.success: + iter1283.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29424,10 +29640,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in xrange(_size1235): - _elem1240 = iprot.readString() - self.part_vals.append(_elem1240) + (_etype1287, _size1284) = iprot.readListBegin() + for _i1288 in xrange(_size1284): + _elem1289 = iprot.readString() + self.part_vals.append(_elem1289) iprot.readListEnd() else: iprot.skip(ftype) @@ -29457,8 +29673,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 iter1241 in self.part_vals: - oprot.writeString(iter1241) + for iter1290 in self.part_vals: + oprot.writeString(iter1290) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -29522,10 +29738,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in xrange(_size1242): - _elem1247 = iprot.readString() - self.success.append(_elem1247) + (_etype1294, _size1291) = iprot.readListBegin() + for _i1295 in xrange(_size1291): + _elem1296 = iprot.readString() + self.success.append(_elem1296) iprot.readListEnd() else: iprot.skip(ftype) @@ -29554,8 +29770,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 iter1248 in self.success: - oprot.writeString(iter1248) + for iter1297 in self.success: + oprot.writeString(iter1297) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29726,11 +29942,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1252, _size1249) = iprot.readListBegin() - for _i1253 in xrange(_size1249): - _elem1254 = Partition() - _elem1254.read(iprot) - self.success.append(_elem1254) + (_etype1301, _size1298) = iprot.readListBegin() + for _i1302 in xrange(_size1298): + _elem1303 = Partition() + _elem1303.read(iprot) + self.success.append(_elem1303) iprot.readListEnd() else: iprot.skip(ftype) @@ -29759,8 +29975,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: @@ -29931,11 +30147,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in xrange(_size1256): - _elem1261 = PartitionSpec() - _elem1261.read(iprot) - self.success.append(_elem1261) + (_etype1308, _size1305) = iprot.readListBegin() + for _i1309 in xrange(_size1305): + _elem1310 = PartitionSpec() + _elem1310.read(iprot) + self.success.append(_elem1310) iprot.readListEnd() else: iprot.skip(ftype) @@ -29964,8 +30180,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 iter1262 in self.success: - iter1262.write(oprot) + for iter1311 in self.success: + iter1311.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30385,10 +30601,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in xrange(_size1263): - _elem1268 = iprot.readString() - self.names.append(_elem1268) + (_etype1315, _size1312) = iprot.readListBegin() + for _i1316 in xrange(_size1312): + _elem1317 = iprot.readString() + self.names.append(_elem1317) iprot.readListEnd() else: iprot.skip(ftype) @@ -30413,8 +30629,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 iter1269 in self.names: - oprot.writeString(iter1269) + for iter1318 in self.names: + oprot.writeString(iter1318) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30473,11 +30689,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1273, _size1270) = iprot.readListBegin() - for _i1274 in xrange(_size1270): - _elem1275 = Partition() - _elem1275.read(iprot) - self.success.append(_elem1275) + (_etype1322, _size1319) = iprot.readListBegin() + for _i1323 in xrange(_size1319): + _elem1324 = Partition() + _elem1324.read(iprot) + self.success.append(_elem1324) iprot.readListEnd() else: iprot.skip(ftype) @@ -30506,8 +30722,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 iter1276 in self.success: - iter1276.write(oprot) + for iter1325 in self.success: + iter1325.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30916,11 +31132,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) @@ -30945,8 +31161,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() oprot.writeFieldStop() @@ -31099,11 +31315,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1287, _size1284) = iprot.readListBegin() - for _i1288 in xrange(_size1284): - _elem1289 = Partition() - _elem1289.read(iprot) - self.new_parts.append(_elem1289) + (_etype1336, _size1333) = iprot.readListBegin() + for _i1337 in xrange(_size1333): + _elem1338 = Partition() + _elem1338.read(iprot) + self.new_parts.append(_elem1338) iprot.readListEnd() else: iprot.skip(ftype) @@ -31134,8 +31350,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 iter1290 in self.new_parts: - iter1290.write(oprot) + for iter1339 in self.new_parts: + iter1339.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -31638,10 +31854,10 @@ def read(self, iprot): elif fid == 3: 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) @@ -31672,8 +31888,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 iter1297 in self.part_vals: - oprot.writeString(iter1297) + for iter1346 in self.part_vals: + oprot.writeString(iter1346) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -31974,10 +32190,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1301, _size1298) = iprot.readListBegin() - for _i1302 in xrange(_size1298): - _elem1303 = iprot.readString() - self.part_vals.append(_elem1303) + (_etype1350, _size1347) = iprot.readListBegin() + for _i1351 in xrange(_size1347): + _elem1352 = iprot.readString() + self.part_vals.append(_elem1352) iprot.readListEnd() else: iprot.skip(ftype) @@ -31999,8 +32215,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 iter1304 in self.part_vals: - oprot.writeString(iter1304) + for iter1353 in self.part_vals: + oprot.writeString(iter1353) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -32358,10 +32574,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1308, _size1305) = iprot.readListBegin() - for _i1309 in xrange(_size1305): - _elem1310 = iprot.readString() - self.success.append(_elem1310) + (_etype1357, _size1354) = iprot.readListBegin() + for _i1358 in xrange(_size1354): + _elem1359 = iprot.readString() + self.success.append(_elem1359) iprot.readListEnd() else: iprot.skip(ftype) @@ -32384,8 +32600,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 iter1311 in self.success: - oprot.writeString(iter1311) + for iter1360 in self.success: + oprot.writeString(iter1360) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32509,11 +32725,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1313, _vtype1314, _size1312 ) = iprot.readMapBegin() - for _i1316 in xrange(_size1312): - _key1317 = iprot.readString() - _val1318 = iprot.readString() - self.success[_key1317] = _val1318 + (_ktype1362, _vtype1363, _size1361 ) = iprot.readMapBegin() + for _i1365 in xrange(_size1361): + _key1366 = iprot.readString() + _val1367 = iprot.readString() + self.success[_key1366] = _val1367 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32536,9 +32752,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 kiter1319,viter1320 in self.success.items(): - oprot.writeString(kiter1319) - oprot.writeString(viter1320) + for kiter1368,viter1369 in self.success.items(): + oprot.writeString(kiter1368) + oprot.writeString(viter1369) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32614,11 +32830,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1322, _vtype1323, _size1321 ) = iprot.readMapBegin() - for _i1325 in xrange(_size1321): - _key1326 = iprot.readString() - _val1327 = iprot.readString() - self.part_vals[_key1326] = _val1327 + (_ktype1371, _vtype1372, _size1370 ) = iprot.readMapBegin() + for _i1374 in xrange(_size1370): + _key1375 = iprot.readString() + _val1376 = iprot.readString() + self.part_vals[_key1375] = _val1376 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32648,9 +32864,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 kiter1328,viter1329 in self.part_vals.items(): - oprot.writeString(kiter1328) - oprot.writeString(viter1329) + for kiter1377,viter1378 in self.part_vals.items(): + oprot.writeString(kiter1377) + oprot.writeString(viter1378) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -32864,11 +33080,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1331, _vtype1332, _size1330 ) = iprot.readMapBegin() - for _i1334 in xrange(_size1330): - _key1335 = iprot.readString() - _val1336 = iprot.readString() - self.part_vals[_key1335] = _val1336 + (_ktype1380, _vtype1381, _size1379 ) = iprot.readMapBegin() + for _i1383 in xrange(_size1379): + _key1384 = iprot.readString() + _val1385 = iprot.readString() + self.part_vals[_key1384] = _val1385 iprot.readMapEnd() else: iprot.skip(ftype) @@ -32898,9 +33114,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 kiter1337,viter1338 in self.part_vals.items(): - oprot.writeString(kiter1337) - oprot.writeString(viter1338) + for kiter1386,viter1387 in self.part_vals.items(): + oprot.writeString(kiter1386) + oprot.writeString(viter1387) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -36926,10 +37142,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) @@ -36952,8 +37168,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: @@ -37641,10 +37857,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1349, _size1346) = iprot.readListBegin() - for _i1350 in xrange(_size1346): - _elem1351 = iprot.readString() - self.success.append(_elem1351) + (_etype1398, _size1395) = iprot.readListBegin() + for _i1399 in xrange(_size1395): + _elem1400 = iprot.readString() + self.success.append(_elem1400) iprot.readListEnd() else: iprot.skip(ftype) @@ -37667,8 +37883,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 iter1352 in self.success: - oprot.writeString(iter1352) + for iter1401 in self.success: + oprot.writeString(iter1401) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38182,11 +38398,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1356, _size1353) = iprot.readListBegin() - for _i1357 in xrange(_size1353): - _elem1358 = Role() - _elem1358.read(iprot) - self.success.append(_elem1358) + (_etype1405, _size1402) = iprot.readListBegin() + for _i1406 in xrange(_size1402): + _elem1407 = Role() + _elem1407.read(iprot) + self.success.append(_elem1407) iprot.readListEnd() else: iprot.skip(ftype) @@ -38209,8 +38425,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 iter1359 in self.success: - iter1359.write(oprot) + for iter1408 in self.success: + iter1408.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -38719,10 +38935,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1363, _size1360) = iprot.readListBegin() - for _i1364 in xrange(_size1360): - _elem1365 = iprot.readString() - self.group_names.append(_elem1365) + (_etype1412, _size1409) = iprot.readListBegin() + for _i1413 in xrange(_size1409): + _elem1414 = iprot.readString() + self.group_names.append(_elem1414) iprot.readListEnd() else: iprot.skip(ftype) @@ -38747,8 +38963,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 iter1366 in self.group_names: - oprot.writeString(iter1366) + for iter1415 in self.group_names: + oprot.writeString(iter1415) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38975,11 +39191,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1370, _size1367) = iprot.readListBegin() - for _i1371 in xrange(_size1367): - _elem1372 = HiveObjectPrivilege() - _elem1372.read(iprot) - self.success.append(_elem1372) + (_etype1419, _size1416) = iprot.readListBegin() + for _i1420 in xrange(_size1416): + _elem1421 = HiveObjectPrivilege() + _elem1421.read(iprot) + self.success.append(_elem1421) iprot.readListEnd() else: iprot.skip(ftype) @@ -39002,8 +39218,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 iter1373 in self.success: - iter1373.write(oprot) + for iter1422 in self.success: + iter1422.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -39673,10 +39889,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1377, _size1374) = iprot.readListBegin() - for _i1378 in xrange(_size1374): - _elem1379 = iprot.readString() - self.group_names.append(_elem1379) + (_etype1426, _size1423) = iprot.readListBegin() + for _i1427 in xrange(_size1423): + _elem1428 = iprot.readString() + self.group_names.append(_elem1428) iprot.readListEnd() else: iprot.skip(ftype) @@ -39697,8 +39913,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 iter1380 in self.group_names: - oprot.writeString(iter1380) + for iter1429 in self.group_names: + oprot.writeString(iter1429) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39753,10 +39969,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) @@ -39779,8 +39995,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() if self.o1 is not None: @@ -40712,10 +40928,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) @@ -40732,8 +40948,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() @@ -41260,10 +41476,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) @@ -41280,8 +41496,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() @@ -44294,10 +44510,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1405, _size1402) = iprot.readListBegin() - for _i1406 in xrange(_size1402): - _elem1407 = iprot.readString() - self.success.append(_elem1407) + (_etype1454, _size1451) = iprot.readListBegin() + for _i1455 in xrange(_size1451): + _elem1456 = iprot.readString() + self.success.append(_elem1456) iprot.readListEnd() else: iprot.skip(ftype) @@ -44314,8 +44530,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 iter1408 in self.success: - oprot.writeString(iter1408) + for iter1457 in self.success: + oprot.writeString(iter1457) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50625,11 +50841,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1412, _size1409) = iprot.readListBegin() - for _i1413 in xrange(_size1409): - _elem1414 = SchemaVersion() - _elem1414.read(iprot) - self.success.append(_elem1414) + (_etype1461, _size1458) = iprot.readListBegin() + for _i1462 in xrange(_size1458): + _elem1463 = SchemaVersion() + _elem1463.read(iprot) + self.success.append(_elem1463) iprot.readListEnd() else: iprot.skip(ftype) @@ -50658,8 +50874,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: @@ -52134,11 +52350,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1419, _size1416) = iprot.readListBegin() - for _i1420 in xrange(_size1416): - _elem1421 = RuntimeStat() - _elem1421.read(iprot) - self.success.append(_elem1421) + (_etype1468, _size1465) = iprot.readListBegin() + for _i1469 in xrange(_size1465): + _elem1470 = RuntimeStat() + _elem1470.read(iprot) + self.success.append(_elem1470) iprot.readListEnd() else: iprot.skip(ftype) @@ -52161,8 +52377,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 iter1422 in self.success: - iter1422.write(oprot) + for iter1471 in self.success: + iter1471.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 617a3a2227..4e269a690b 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 @@ -4913,28 +4930,85 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class BooleanColumnStatsData: +class Table: """ Attributes: - - numTrues - - numFalses - - numNulls - - bitVectors + - id + - tableName + - dbName + - owner + - createTime + - lastAccessTime + - retention + - sd + - partitionKeys + - parameters + - viewOriginalText + - viewExpandedText + - tableType + - privileges + - temporary + - rewriteEnabled + - creationMetadata + - catName + - ownerType + - writeId + - isStatsCompliant + - colStats + - accessType """ thrift_spec = ( None, # 0 - (1, TType.I64, 'numTrues', None, None, ), # 1 - (2, TType.I64, 'numFalses', None, None, ), # 2 - (3, TType.I64, 'numNulls', None, None, ), # 3 - (4, TType.STRING, 'bitVectors', None, None, ), # 4 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'tableName', None, None, ), # 2 + (3, TType.STRING, 'dbName', None, None, ), # 3 + (4, TType.STRING, 'owner', None, None, ), # 4 + (5, TType.I32, 'createTime', None, None, ), # 5 + (6, TType.I32, 'lastAccessTime', None, None, ), # 6 + (7, TType.I32, 'retention', None, None, ), # 7 + (8, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 8 + (9, TType.LIST, 'partitionKeys', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 9 + (10, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 10 + (11, TType.STRING, 'viewOriginalText', None, None, ), # 11 + (12, TType.STRING, 'viewExpandedText', None, None, ), # 12 + (13, TType.STRING, 'tableType', None, None, ), # 13 + (14, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 14 + (15, TType.BOOL, 'temporary', None, False, ), # 15 + (16, TType.BOOL, 'rewriteEnabled', None, None, ), # 16 + (17, TType.STRUCT, 'creationMetadata', (CreationMetadata, CreationMetadata.thrift_spec), None, ), # 17 + (18, TType.STRING, 'catName', None, None, ), # 18 + (19, TType.I32, 'ownerType', None, 1, ), # 19 + (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, numTrues=None, numFalses=None, numNulls=None, bitVectors=None,): - self.numTrues = numTrues - self.numFalses = numFalses - self.numNulls = numNulls - self.bitVectors = bitVectors + 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 + self.owner = owner + self.createTime = createTime + self.lastAccessTime = lastAccessTime + self.retention = retention + self.sd = sd + self.partitionKeys = partitionKeys + self.parameters = parameters + self.viewOriginalText = viewOriginalText + self.viewExpandedText = viewExpandedText + self.tableType = tableType + self.privileges = privileges + self.temporary = temporary + self.rewriteEnabled = rewriteEnabled + self.creationMetadata = creationMetadata + self.catName = catName + self.ownerType = ownerType + 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: @@ -4947,22 +5021,133 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.numTrues = iprot.readI64() + self.id = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.I64: - self.numFalses = iprot.readI64() + if ftype == TType.STRING: + self.tableName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.numNulls = iprot.readI64() + if ftype == TType.STRING: + self.dbName = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.bitVectors = iprot.readString() + self.owner = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.createTime = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.lastAccessTime = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.retention = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRUCT: + self.sd = StorageDescriptor() + self.sd.read(iprot) + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.partitionKeys = [] + (_etype192, _size189) = iprot.readListBegin() + for _i193 in xrange(_size189): + _elem194 = FieldSchema() + _elem194.read(iprot) + self.partitionKeys.append(_elem194) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.MAP: + self.parameters = {} + (_ktype196, _vtype197, _size195 ) = iprot.readMapBegin() + for _i199 in xrange(_size195): + _key200 = iprot.readString() + _val201 = iprot.readString() + self.parameters[_key200] = _val201 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.viewOriginalText = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.viewExpandedText = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRING: + self.tableType = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 14: + if ftype == TType.STRUCT: + self.privileges = PrincipalPrivilegeSet() + self.privileges.read(iprot) + else: + iprot.skip(ftype) + elif fid == 15: + if ftype == TType.BOOL: + self.temporary = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 16: + if ftype == TType.BOOL: + self.rewriteEnabled = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRUCT: + self.creationMetadata = CreationMetadata() + self.creationMetadata.read(iprot) + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.STRING: + self.catName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 19: + if ftype == TType.I32: + self.ownerType = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.BOOL: + self.isStatsCompliant = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.STRUCT: + self.colStats = ColumnStatistics() + self.colStats.read(iprot) + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.BYTE: + self.accessType = iprot.readByte() else: iprot.skip(ftype) else: @@ -4974,80 +5159,197 @@ 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('BooleanColumnStatsData') - if self.numTrues is not None: - oprot.writeFieldBegin('numTrues', TType.I64, 1) - oprot.writeI64(self.numTrues) + oprot.writeStructBegin('Table') + if self.id is not None: + oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeI64(self.id) oprot.writeFieldEnd() - if self.numFalses is not None: - oprot.writeFieldBegin('numFalses', TType.I64, 2) - oprot.writeI64(self.numFalses) + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName) oprot.writeFieldEnd() - if self.numNulls is not None: - oprot.writeFieldBegin('numNulls', TType.I64, 3) - oprot.writeI64(self.numNulls) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 3) + oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.bitVectors is not None: - oprot.writeFieldBegin('bitVectors', TType.STRING, 4) - oprot.writeString(self.bitVectors) + if self.owner is not None: + oprot.writeFieldBegin('owner', TType.STRING, 4) + oprot.writeString(self.owner) oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.numTrues is None: - raise TProtocol.TProtocolException(message='Required field numTrues is unset!') - if self.numFalses is None: - raise TProtocol.TProtocolException(message='Required field numFalses is unset!') - if self.numNulls is None: - raise TProtocol.TProtocolException(message='Required field numNulls is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.numTrues) - value = (value * 31) ^ hash(self.numFalses) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.bitVectors) - 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__ - + if self.createTime is not None: + oprot.writeFieldBegin('createTime', TType.I32, 5) + oprot.writeI32(self.createTime) + oprot.writeFieldEnd() + if self.lastAccessTime is not None: + oprot.writeFieldBegin('lastAccessTime', TType.I32, 6) + oprot.writeI32(self.lastAccessTime) + oprot.writeFieldEnd() + if self.retention is not None: + oprot.writeFieldBegin('retention', TType.I32, 7) + oprot.writeI32(self.retention) + oprot.writeFieldEnd() + if self.sd is not None: + oprot.writeFieldBegin('sd', TType.STRUCT, 8) + self.sd.write(oprot) + oprot.writeFieldEnd() + if self.partitionKeys is not None: + oprot.writeFieldBegin('partitionKeys', TType.LIST, 9) + oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) + for iter202 in self.partitionKeys: + iter202.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.parameters is not None: + oprot.writeFieldBegin('parameters', TType.MAP, 10) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) + for kiter203,viter204 in self.parameters.items(): + oprot.writeString(kiter203) + oprot.writeString(viter204) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.viewOriginalText is not None: + oprot.writeFieldBegin('viewOriginalText', TType.STRING, 11) + oprot.writeString(self.viewOriginalText) + oprot.writeFieldEnd() + if self.viewExpandedText is not None: + oprot.writeFieldBegin('viewExpandedText', TType.STRING, 12) + oprot.writeString(self.viewExpandedText) + oprot.writeFieldEnd() + if self.tableType is not None: + oprot.writeFieldBegin('tableType', TType.STRING, 13) + oprot.writeString(self.tableType) + oprot.writeFieldEnd() + if self.privileges is not None: + oprot.writeFieldBegin('privileges', TType.STRUCT, 14) + self.privileges.write(oprot) + oprot.writeFieldEnd() + if self.temporary is not None: + oprot.writeFieldBegin('temporary', TType.BOOL, 15) + oprot.writeBool(self.temporary) + oprot.writeFieldEnd() + if self.rewriteEnabled is not None: + oprot.writeFieldBegin('rewriteEnabled', TType.BOOL, 16) + oprot.writeBool(self.rewriteEnabled) + oprot.writeFieldEnd() + if self.creationMetadata is not None: + oprot.writeFieldBegin('creationMetadata', TType.STRUCT, 17) + self.creationMetadata.write(oprot) + oprot.writeFieldEnd() + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 18) + oprot.writeString(self.catName) + oprot.writeFieldEnd() + if self.ownerType is not None: + oprot.writeFieldBegin('ownerType', TType.I32, 19) + oprot.writeI32(self.ownerType) + oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 20) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 21) + oprot.writeBool(self.isStatsCompliant) + oprot.writeFieldEnd() + if self.colStats is not None: + 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() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.id) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.owner) + value = (value * 31) ^ hash(self.createTime) + value = (value * 31) ^ hash(self.lastAccessTime) + value = (value * 31) ^ hash(self.retention) + value = (value * 31) ^ hash(self.sd) + value = (value * 31) ^ hash(self.partitionKeys) + value = (value * 31) ^ hash(self.parameters) + value = (value * 31) ^ hash(self.viewOriginalText) + value = (value * 31) ^ hash(self.viewExpandedText) + value = (value * 31) ^ hash(self.tableType) + value = (value * 31) ^ hash(self.privileges) + value = (value * 31) ^ hash(self.temporary) + value = (value * 31) ^ hash(self.rewriteEnabled) + value = (value * 31) ^ hash(self.creationMetadata) + value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.ownerType) + 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): + 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 DoubleColumnStatsData: +class Partition: """ Attributes: - - lowValue - - highValue - - numNulls - - numDVs - - bitVectors + - values + - dbName + - tableName + - createTime + - lastAccessTime + - sd + - parameters + - privileges + - catName + - writeId + - isStatsCompliant + - colStats """ thrift_spec = ( None, # 0 - (1, TType.DOUBLE, 'lowValue', None, None, ), # 1 - (2, TType.DOUBLE, 'highValue', None, None, ), # 2 - (3, TType.I64, 'numNulls', None, None, ), # 3 - (4, TType.I64, 'numDVs', None, None, ), # 4 - (5, TType.STRING, 'bitVectors', None, None, ), # 5 + (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1 + (2, TType.STRING, 'dbName', None, None, ), # 2 + (3, TType.STRING, 'tableName', None, None, ), # 3 + (4, TType.I32, 'createTime', None, None, ), # 4 + (5, TType.I32, 'lastAccessTime', None, None, ), # 5 + (6, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 6 + (7, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 7 + (8, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 8 + (9, TType.STRING, 'catName', None, None, ), # 9 + (10, TType.I64, 'writeId', None, -1, ), # 10 + (11, TType.BOOL, 'isStatsCompliant', None, None, ), # 11 + (12, TType.STRUCT, 'colStats', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 12 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): - self.lowValue = lowValue - self.highValue = highValue - self.numNulls = numNulls - self.numDVs = numDVs - self.bitVectors = bitVectors + def __init__(self, values=None, dbName=None, tableName=None, createTime=None, lastAccessTime=None, sd=None, parameters=None, privileges=None, catName=None, writeId=thrift_spec[10][4], isStatsCompliant=None, colStats=None,): + self.values = values + self.dbName = dbName + self.tableName = tableName + self.createTime = createTime + self.lastAccessTime = lastAccessTime + self.sd = sd + self.parameters = parameters + self.privileges = privileges + self.catName = catName + self.writeId = writeId + self.isStatsCompliant = isStatsCompliant + self.colStats = colStats 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: @@ -5059,28 +5361,77 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.DOUBLE: - self.lowValue = iprot.readDouble() + if ftype == TType.LIST: + self.values = [] + (_etype208, _size205) = iprot.readListBegin() + for _i209 in xrange(_size205): + _elem210 = iprot.readString() + self.values.append(_elem210) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.DOUBLE: - self.highValue = iprot.readDouble() + if ftype == TType.STRING: + self.dbName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.numNulls = iprot.readI64() + if ftype == TType.STRING: + self.tableName = iprot.readString() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I64: - self.numDVs = iprot.readI64() + if ftype == TType.I32: + self.createTime = iprot.readI32() else: iprot.skip(ftype) elif fid == 5: + if ftype == TType.I32: + self.lastAccessTime = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.sd = StorageDescriptor() + self.sd.read(iprot) + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.MAP: + self.parameters = {} + (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() + for _i215 in xrange(_size211): + _key216 = iprot.readString() + _val217 = iprot.readString() + self.parameters[_key216] = _val217 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRUCT: + self.privileges = PrincipalPrivilegeSet() + self.privileges.read(iprot) + else: + iprot.skip(ftype) + elif fid == 9: if ftype == TType.STRING: - self.bitVectors = iprot.readString() + self.catName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.BOOL: + self.isStatsCompliant = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRUCT: + self.colStats = ColumnStatistics() + self.colStats.read(iprot) else: iprot.skip(ftype) else: @@ -5092,45 +5443,83 @@ 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('DoubleColumnStatsData') - if self.lowValue is not None: - oprot.writeFieldBegin('lowValue', TType.DOUBLE, 1) - oprot.writeDouble(self.lowValue) + oprot.writeStructBegin('Partition') + if self.values is not None: + oprot.writeFieldBegin('values', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.values)) + for iter218 in self.values: + oprot.writeString(iter218) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.highValue is not None: - oprot.writeFieldBegin('highValue', TType.DOUBLE, 2) - oprot.writeDouble(self.highValue) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.numNulls is not None: - oprot.writeFieldBegin('numNulls', TType.I64, 3) - oprot.writeI64(self.numNulls) + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName) oprot.writeFieldEnd() - if self.numDVs is not None: - oprot.writeFieldBegin('numDVs', TType.I64, 4) - oprot.writeI64(self.numDVs) + if self.createTime is not None: + oprot.writeFieldBegin('createTime', TType.I32, 4) + oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.bitVectors is not None: - oprot.writeFieldBegin('bitVectors', TType.STRING, 5) - oprot.writeString(self.bitVectors) + if self.lastAccessTime is not None: + oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) + oprot.writeI32(self.lastAccessTime) + oprot.writeFieldEnd() + if self.sd is not None: + oprot.writeFieldBegin('sd', TType.STRUCT, 6) + self.sd.write(oprot) + oprot.writeFieldEnd() + if self.parameters is not None: + oprot.writeFieldBegin('parameters', TType.MAP, 7) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) + for kiter219,viter220 in self.parameters.items(): + oprot.writeString(kiter219) + oprot.writeString(viter220) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.privileges is not None: + oprot.writeFieldBegin('privileges', TType.STRUCT, 8) + self.privileges.write(oprot) + oprot.writeFieldEnd() + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName) + oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 10) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 11) + oprot.writeBool(self.isStatsCompliant) + oprot.writeFieldEnd() + if self.colStats is not None: + oprot.writeFieldBegin('colStats', TType.STRUCT, 12) + self.colStats.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.numNulls is None: - raise TProtocol.TProtocolException(message='Required field numNulls is unset!') - if self.numDVs is None: - raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - value = (value * 31) ^ hash(self.bitVectors) + value = (value * 31) ^ hash(self.values) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.createTime) + value = (value * 31) ^ hash(self.lastAccessTime) + value = (value * 31) ^ hash(self.sd) + value = (value * 31) ^ hash(self.parameters) + value = (value * 31) ^ hash(self.privileges) + value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.isStatsCompliant) + value = (value * 31) ^ hash(self.colStats) return value def __repr__(self): @@ -5144,31 +5533,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class LongColumnStatsData: +class PartitionWithoutSD: """ Attributes: - - lowValue - - highValue - - numNulls - - numDVs - - bitVectors + - values + - createTime + - lastAccessTime + - relativePath + - parameters + - privileges """ thrift_spec = ( None, # 0 - (1, TType.I64, 'lowValue', None, None, ), # 1 - (2, TType.I64, 'highValue', None, None, ), # 2 - (3, TType.I64, 'numNulls', None, None, ), # 3 - (4, TType.I64, 'numDVs', None, None, ), # 4 - (5, TType.STRING, 'bitVectors', None, None, ), # 5 + (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1 + (2, TType.I32, 'createTime', None, None, ), # 2 + (3, TType.I32, 'lastAccessTime', None, None, ), # 3 + (4, TType.STRING, 'relativePath', None, None, ), # 4 + (5, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 5 + (6, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 6 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): - self.lowValue = lowValue - self.highValue = highValue - self.numNulls = numNulls - self.numDVs = numDVs - self.bitVectors = bitVectors + def __init__(self, values=None, createTime=None, lastAccessTime=None, relativePath=None, parameters=None, privileges=None,): + self.values = values + self.createTime = createTime + self.lastAccessTime = lastAccessTime + self.relativePath = relativePath + self.parameters = parameters + self.privileges = privileges 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: @@ -5180,28 +5572,45 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.lowValue = iprot.readI64() + if ftype == TType.LIST: + self.values = [] + (_etype224, _size221) = iprot.readListBegin() + for _i225 in xrange(_size221): + _elem226 = iprot.readString() + self.values.append(_elem226) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.I64: - self.highValue = iprot.readI64() + if ftype == TType.I32: + self.createTime = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.numNulls = iprot.readI64() + if ftype == TType.I32: + self.lastAccessTime = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I64: - self.numDVs = iprot.readI64() + if ftype == TType.STRING: + self.relativePath = iprot.readString() else: iprot.skip(ftype) elif fid == 5: - if ftype == TType.STRING: - self.bitVectors = iprot.readString() + if ftype == TType.MAP: + self.parameters = {} + (_ktype228, _vtype229, _size227 ) = iprot.readMapBegin() + for _i231 in xrange(_size227): + _key232 = iprot.readString() + _val233 = iprot.readString() + self.parameters[_key232] = _val233 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.privileges = PrincipalPrivilegeSet() + self.privileges.read(iprot) else: iprot.skip(ftype) else: @@ -5213,45 +5622,53 @@ 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('LongColumnStatsData') - if self.lowValue is not None: - oprot.writeFieldBegin('lowValue', TType.I64, 1) - oprot.writeI64(self.lowValue) + oprot.writeStructBegin('PartitionWithoutSD') + if self.values is not None: + oprot.writeFieldBegin('values', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.values)) + for iter234 in self.values: + oprot.writeString(iter234) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.highValue is not None: - oprot.writeFieldBegin('highValue', TType.I64, 2) - oprot.writeI64(self.highValue) + if self.createTime is not None: + oprot.writeFieldBegin('createTime', TType.I32, 2) + oprot.writeI32(self.createTime) oprot.writeFieldEnd() - if self.numNulls is not None: - oprot.writeFieldBegin('numNulls', TType.I64, 3) - oprot.writeI64(self.numNulls) + if self.lastAccessTime is not None: + oprot.writeFieldBegin('lastAccessTime', TType.I32, 3) + oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() - if self.numDVs is not None: - oprot.writeFieldBegin('numDVs', TType.I64, 4) - oprot.writeI64(self.numDVs) + if self.relativePath is not None: + oprot.writeFieldBegin('relativePath', TType.STRING, 4) + oprot.writeString(self.relativePath) oprot.writeFieldEnd() - if self.bitVectors is not None: - oprot.writeFieldBegin('bitVectors', TType.STRING, 5) - oprot.writeString(self.bitVectors) + if self.parameters is not None: + oprot.writeFieldBegin('parameters', TType.MAP, 5) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) + for kiter235,viter236 in self.parameters.items(): + oprot.writeString(kiter235) + oprot.writeString(viter236) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.privileges is not None: + oprot.writeFieldBegin('privileges', TType.STRUCT, 6) + self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.numNulls is None: - raise TProtocol.TProtocolException(message='Required field numNulls is unset!') - if self.numDVs is None: - raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - value = (value * 31) ^ hash(self.bitVectors) + value = (value * 31) ^ hash(self.values) + value = (value * 31) ^ hash(self.createTime) + value = (value * 31) ^ hash(self.lastAccessTime) + value = (value * 31) ^ hash(self.relativePath) + value = (value * 31) ^ hash(self.parameters) + value = (value * 31) ^ hash(self.privileges) return value def __repr__(self): @@ -5265,31 +5682,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class StringColumnStatsData: +class PartitionSpecWithSharedSD: """ Attributes: - - maxColLen - - avgColLen - - numNulls - - numDVs - - bitVectors + - partitions + - sd """ thrift_spec = ( None, # 0 - (1, TType.I64, 'maxColLen', None, None, ), # 1 - (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 - (3, TType.I64, 'numNulls', None, None, ), # 3 - (4, TType.I64, 'numDVs', None, None, ), # 4 - (5, TType.STRING, 'bitVectors', None, None, ), # 5 + (1, TType.LIST, 'partitions', (TType.STRUCT,(PartitionWithoutSD, PartitionWithoutSD.thrift_spec)), None, ), # 1 + (2, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 2 ) - def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, numDVs=None, bitVectors=None,): - self.maxColLen = maxColLen - self.avgColLen = avgColLen - self.numNulls = numNulls - self.numDVs = numDVs - self.bitVectors = bitVectors + def __init__(self, partitions=None, sd=None,): + self.partitions = partitions + self.sd = sd 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: @@ -5301,28 +5709,20 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.maxColLen = iprot.readI64() + if ftype == TType.LIST: + self.partitions = [] + (_etype240, _size237) = iprot.readListBegin() + for _i241 in xrange(_size237): + _elem242 = PartitionWithoutSD() + _elem242.read(iprot) + self.partitions.append(_elem242) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.DOUBLE: - self.avgColLen = iprot.readDouble() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I64: - self.numNulls = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I64: - self.numDVs = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.bitVectors = iprot.readString() + if ftype == TType.STRUCT: + self.sd = StorageDescriptor() + self.sd.read(iprot) else: iprot.skip(ftype) else: @@ -5334,49 +5734,29 @@ 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('StringColumnStatsData') - if self.maxColLen is not None: - oprot.writeFieldBegin('maxColLen', TType.I64, 1) - oprot.writeI64(self.maxColLen) - oprot.writeFieldEnd() - if self.avgColLen is not None: - oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) - oprot.writeDouble(self.avgColLen) - oprot.writeFieldEnd() - if self.numNulls is not None: - oprot.writeFieldBegin('numNulls', TType.I64, 3) - oprot.writeI64(self.numNulls) - oprot.writeFieldEnd() - if self.numDVs is not None: - oprot.writeFieldBegin('numDVs', TType.I64, 4) - oprot.writeI64(self.numDVs) + oprot.writeStructBegin('PartitionSpecWithSharedSD') + if self.partitions is not None: + oprot.writeFieldBegin('partitions', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.partitions)) + for iter243 in self.partitions: + iter243.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.bitVectors is not None: - oprot.writeFieldBegin('bitVectors', TType.STRING, 5) - oprot.writeString(self.bitVectors) + if self.sd is not None: + oprot.writeFieldBegin('sd', TType.STRUCT, 2) + self.sd.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.maxColLen is None: - raise TProtocol.TProtocolException(message='Required field maxColLen is unset!') - if self.avgColLen is None: - raise TProtocol.TProtocolException(message='Required field avgColLen is unset!') - if self.numNulls is None: - raise TProtocol.TProtocolException(message='Required field numNulls is unset!') - if self.numDVs is None: - raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - value = (value * 31) ^ hash(self.bitVectors) + value = (value * 31) ^ hash(self.partitions) + value = (value * 31) ^ hash(self.sd) return value def __repr__(self): @@ -5390,26 +5770,26 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class BinaryColumnStatsData: +class BooleanColumnStatsData: """ Attributes: - - maxColLen - - avgColLen + - numTrues + - numFalses - numNulls - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.I64, 'maxColLen', None, None, ), # 1 - (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 + (1, TType.I64, 'numTrues', None, None, ), # 1 + (2, TType.I64, 'numFalses', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.STRING, 'bitVectors', None, None, ), # 4 ) - def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, bitVectors=None,): - self.maxColLen = maxColLen - self.avgColLen = avgColLen + def __init__(self, numTrues=None, numFalses=None, numNulls=None, bitVectors=None,): + self.numTrues = numTrues + self.numFalses = numFalses self.numNulls = numNulls self.bitVectors = bitVectors @@ -5424,12 +5804,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.maxColLen = iprot.readI64() + self.numTrues = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.DOUBLE: - self.avgColLen = iprot.readDouble() + if ftype == TType.I64: + self.numFalses = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: @@ -5451,14 +5831,14 @@ 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('BinaryColumnStatsData') - if self.maxColLen is not None: - oprot.writeFieldBegin('maxColLen', TType.I64, 1) - oprot.writeI64(self.maxColLen) + oprot.writeStructBegin('BooleanColumnStatsData') + if self.numTrues is not None: + oprot.writeFieldBegin('numTrues', TType.I64, 1) + oprot.writeI64(self.numTrues) oprot.writeFieldEnd() - if self.avgColLen is not None: - oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) - oprot.writeDouble(self.avgColLen) + if self.numFalses is not None: + oprot.writeFieldBegin('numFalses', TType.I64, 2) + oprot.writeI64(self.numFalses) oprot.writeFieldEnd() if self.numNulls is not None: oprot.writeFieldBegin('numNulls', TType.I64, 3) @@ -5472,10 +5852,10 @@ def write(self, oprot): oprot.writeStructEnd() def validate(self): - if self.maxColLen is None: - raise TProtocol.TProtocolException(message='Required field maxColLen is unset!') - if self.avgColLen is None: - raise TProtocol.TProtocolException(message='Required field avgColLen is unset!') + if self.numTrues is None: + raise TProtocol.TProtocolException(message='Required field numTrues is unset!') + if self.numFalses is None: + raise TProtocol.TProtocolException(message='Required field numFalses is unset!') if self.numNulls is None: raise TProtocol.TProtocolException(message='Required field numNulls is unset!') return @@ -5483,8 +5863,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) + value = (value * 31) ^ hash(self.numTrues) + value = (value * 31) ^ hash(self.numFalses) value = (value * 31) ^ hash(self.numNulls) value = (value * 31) ^ hash(self.bitVectors) return value @@ -5500,23 +5880,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Decimal: +class DoubleColumnStatsData: """ - Attributes: - - scale - - unscaled + Attributes: + - lowValue + - highValue + - numNulls + - numDVs + - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'unscaled', None, None, ), # 1 - None, # 2 - (3, TType.I16, 'scale', None, None, ), # 3 + (1, TType.DOUBLE, 'lowValue', None, None, ), # 1 + (2, TType.DOUBLE, 'highValue', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, scale=None, unscaled=None,): - self.scale = scale - self.unscaled = unscaled + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): + self.lowValue = lowValue + self.highValue = highValue + self.numNulls = numNulls + self.numDVs = numDVs + self.bitVectors = bitVectors 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: @@ -5527,14 +5915,29 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 3: - if ftype == TType.I16: - self.scale = iprot.readI16() + if fid == 1: + if ftype == TType.DOUBLE: + self.lowValue = iprot.readDouble() else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: + if ftype == TType.DOUBLE: + self.highValue = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.numNulls = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.numDVs = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: if ftype == TType.STRING: - self.unscaled = iprot.readString() + self.bitVectors = iprot.readString() else: iprot.skip(ftype) else: @@ -5546,30 +5949,45 @@ 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('Decimal') - if self.unscaled is not None: - oprot.writeFieldBegin('unscaled', TType.STRING, 1) - oprot.writeString(self.unscaled) + oprot.writeStructBegin('DoubleColumnStatsData') + if self.lowValue is not None: + oprot.writeFieldBegin('lowValue', TType.DOUBLE, 1) + oprot.writeDouble(self.lowValue) oprot.writeFieldEnd() - if self.scale is not None: - oprot.writeFieldBegin('scale', TType.I16, 3) - oprot.writeI16(self.scale) + if self.highValue is not None: + oprot.writeFieldBegin('highValue', TType.DOUBLE, 2) + oprot.writeDouble(self.highValue) + oprot.writeFieldEnd() + if self.numNulls is not None: + oprot.writeFieldBegin('numNulls', TType.I64, 3) + oprot.writeI64(self.numNulls) + oprot.writeFieldEnd() + if self.numDVs is not None: + oprot.writeFieldBegin('numDVs', TType.I64, 4) + oprot.writeI64(self.numDVs) + oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.scale is None: - raise TProtocol.TProtocolException(message='Required field scale is unset!') - if self.unscaled is None: - raise TProtocol.TProtocolException(message='Required field unscaled is unset!') + if self.numNulls is None: + raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.numDVs is None: + raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.scale) - value = (value * 31) ^ hash(self.unscaled) + value = (value * 31) ^ hash(self.lowValue) + value = (value * 31) ^ hash(self.highValue) + value = (value * 31) ^ hash(self.numNulls) + value = (value * 31) ^ hash(self.numDVs) + value = (value * 31) ^ hash(self.bitVectors) return value def __repr__(self): @@ -5583,7 +6001,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class DecimalColumnStatsData: +class LongColumnStatsData: """ Attributes: - lowValue @@ -5595,8 +6013,8 @@ class DecimalColumnStatsData: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'lowValue', (Decimal, Decimal.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'highValue', (Decimal, Decimal.thrift_spec), None, ), # 2 + (1, TType.I64, 'lowValue', None, None, ), # 1 + (2, TType.I64, 'highValue', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 (5, TType.STRING, 'bitVectors', None, None, ), # 5 @@ -5619,15 +6037,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.lowValue = Decimal() - self.lowValue.read(iprot) + if ftype == TType.I64: + self.lowValue = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRUCT: - self.highValue = Decimal() - self.highValue.read(iprot) + if ftype == TType.I64: + self.highValue = iprot.readI64() else: iprot.skip(ftype) elif fid == 3: @@ -5654,14 +6070,14 @@ 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('DecimalColumnStatsData') + oprot.writeStructBegin('LongColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) - self.lowValue.write(oprot) + oprot.writeFieldBegin('lowValue', TType.I64, 1) + oprot.writeI64(self.lowValue) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin('highValue', TType.STRUCT, 2) - self.highValue.write(oprot) + oprot.writeFieldBegin('highValue', TType.I64, 2) + oprot.writeI64(self.highValue) oprot.writeFieldEnd() if self.numNulls is not None: oprot.writeFieldBegin('numNulls', TType.I64, 3) @@ -5706,19 +6122,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Date: +class StringColumnStatsData: """ Attributes: - - daysSinceEpoch + - maxColLen + - avgColLen + - numNulls + - numDVs + - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.I64, 'daysSinceEpoch', None, None, ), # 1 + (1, TType.I64, 'maxColLen', None, None, ), # 1 + (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, daysSinceEpoch=None,): - self.daysSinceEpoch = daysSinceEpoch + def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, numDVs=None, bitVectors=None,): + self.maxColLen = maxColLen + self.avgColLen = avgColLen + self.numNulls = numNulls + self.numDVs = numDVs + self.bitVectors = bitVectors 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: @@ -5731,7 +6159,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.daysSinceEpoch = iprot.readI64() + self.maxColLen = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.DOUBLE: + self.avgColLen = iprot.readDouble() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.numNulls = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.numDVs = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString() else: iprot.skip(ftype) else: @@ -5743,23 +6191,49 @@ 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('Date') - if self.daysSinceEpoch is not None: - oprot.writeFieldBegin('daysSinceEpoch', TType.I64, 1) - oprot.writeI64(self.daysSinceEpoch) + oprot.writeStructBegin('StringColumnStatsData') + if self.maxColLen is not None: + oprot.writeFieldBegin('maxColLen', TType.I64, 1) + oprot.writeI64(self.maxColLen) + oprot.writeFieldEnd() + if self.avgColLen is not None: + oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) + oprot.writeDouble(self.avgColLen) + oprot.writeFieldEnd() + if self.numNulls is not None: + oprot.writeFieldBegin('numNulls', TType.I64, 3) + oprot.writeI64(self.numNulls) + oprot.writeFieldEnd() + if self.numDVs is not None: + oprot.writeFieldBegin('numDVs', TType.I64, 4) + oprot.writeI64(self.numDVs) + oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.daysSinceEpoch is None: - raise TProtocol.TProtocolException(message='Required field daysSinceEpoch is unset!') + if self.maxColLen is None: + raise TProtocol.TProtocolException(message='Required field maxColLen is unset!') + if self.avgColLen is None: + raise TProtocol.TProtocolException(message='Required field avgColLen is unset!') + if self.numNulls is None: + raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.numDVs is None: + raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.daysSinceEpoch) + value = (value * 31) ^ hash(self.maxColLen) + value = (value * 31) ^ hash(self.avgColLen) + value = (value * 31) ^ hash(self.numNulls) + value = (value * 31) ^ hash(self.numDVs) + value = (value * 31) ^ hash(self.bitVectors) return value def __repr__(self): @@ -5773,30 +6247,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class DateColumnStatsData: +class BinaryColumnStatsData: """ Attributes: - - lowValue - - highValue + - maxColLen + - avgColLen - numNulls - - numDVs - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'lowValue', (Date, Date.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'highValue', (Date, Date.thrift_spec), None, ), # 2 + (1, TType.I64, 'maxColLen', None, None, ), # 1 + (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 - (4, TType.I64, 'numDVs', None, None, ), # 4 - (5, TType.STRING, 'bitVectors', None, None, ), # 5 + (4, TType.STRING, 'bitVectors', None, None, ), # 4 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): - self.lowValue = lowValue - self.highValue = highValue + def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, bitVectors=None,): + self.maxColLen = maxColLen + self.avgColLen = avgColLen self.numNulls = numNulls - self.numDVs = numDVs self.bitVectors = bitVectors def read(self, iprot): @@ -5809,15 +6280,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.lowValue = Date() - self.lowValue.read(iprot) + if ftype == TType.I64: + self.maxColLen = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRUCT: - self.highValue = Date() - self.highValue.read(iprot) + if ftype == TType.DOUBLE: + self.avgColLen = iprot.readDouble() else: iprot.skip(ftype) elif fid == 3: @@ -5826,11 +6295,6 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I64: - self.numDVs = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 5: if ftype == TType.STRING: self.bitVectors = iprot.readString() else: @@ -5844,44 +6308,41 @@ 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('DateColumnStatsData') - if self.lowValue is not None: - oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) - self.lowValue.write(oprot) + oprot.writeStructBegin('BinaryColumnStatsData') + if self.maxColLen is not None: + oprot.writeFieldBegin('maxColLen', TType.I64, 1) + oprot.writeI64(self.maxColLen) oprot.writeFieldEnd() - if self.highValue is not None: - oprot.writeFieldBegin('highValue', TType.STRUCT, 2) - self.highValue.write(oprot) + if self.avgColLen is not None: + oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) + oprot.writeDouble(self.avgColLen) oprot.writeFieldEnd() if self.numNulls is not None: oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() - if self.numDVs is not None: - oprot.writeFieldBegin('numDVs', TType.I64, 4) - oprot.writeI64(self.numDVs) - oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 4) oprot.writeString(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.maxColLen is None: + raise TProtocol.TProtocolException(message='Required field maxColLen is unset!') + if self.avgColLen is None: + raise TProtocol.TProtocolException(message='Required field avgColLen is unset!') if self.numNulls is None: raise TProtocol.TProtocolException(message='Required field numNulls is unset!') - if self.numDVs is None: - raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) + value = (value * 31) ^ hash(self.maxColLen) + value = (value * 31) ^ hash(self.avgColLen) value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) value = (value * 31) ^ hash(self.bitVectors) return value @@ -5896,37 +6357,23 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatisticsData: +class Decimal: """ Attributes: - - booleanStats - - longStats - - doubleStats - - stringStats - - binaryStats - - decimalStats - - dateStats + - scale + - unscaled """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'booleanStats', (BooleanColumnStatsData, BooleanColumnStatsData.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'longStats', (LongColumnStatsData, LongColumnStatsData.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'doubleStats', (DoubleColumnStatsData, DoubleColumnStatsData.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'stringStats', (StringColumnStatsData, StringColumnStatsData.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'binaryStats', (BinaryColumnStatsData, BinaryColumnStatsData.thrift_spec), None, ), # 5 - (6, TType.STRUCT, 'decimalStats', (DecimalColumnStatsData, DecimalColumnStatsData.thrift_spec), None, ), # 6 - (7, TType.STRUCT, 'dateStats', (DateColumnStatsData, DateColumnStatsData.thrift_spec), None, ), # 7 + (1, TType.STRING, 'unscaled', None, None, ), # 1 + None, # 2 + (3, TType.I16, 'scale', None, None, ), # 3 ) - def __init__(self, booleanStats=None, longStats=None, doubleStats=None, stringStats=None, binaryStats=None, decimalStats=None, dateStats=None,): - self.booleanStats = booleanStats - self.longStats = longStats - self.doubleStats = doubleStats - self.stringStats = stringStats - self.binaryStats = binaryStats - self.decimalStats = decimalStats - self.dateStats = dateStats + def __init__(self, scale=None, unscaled=None,): + self.scale = scale + self.unscaled = unscaled 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: @@ -5937,46 +6384,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.booleanStats = BooleanColumnStatsData() - self.booleanStats.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.longStats = LongColumnStatsData() - self.longStats.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.doubleStats = DoubleColumnStatsData() - self.doubleStats.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.stringStats = StringColumnStatsData() - self.stringStats.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRUCT: - self.binaryStats = BinaryColumnStatsData() - self.binaryStats.read(iprot) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRUCT: - self.decimalStats = DecimalColumnStatsData() - self.decimalStats.read(iprot) + if fid == 3: + if ftype == TType.I16: + self.scale = iprot.readI16() else: iprot.skip(ftype) - elif fid == 7: - if ftype == TType.STRUCT: - self.dateStats = DateColumnStatsData() - self.dateStats.read(iprot) + elif fid == 1: + if ftype == TType.STRING: + self.unscaled = iprot.readString() else: iprot.skip(ftype) else: @@ -5988,51 +6403,30 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('ColumnStatisticsData') - if self.booleanStats is not None: - oprot.writeFieldBegin('booleanStats', TType.STRUCT, 1) - self.booleanStats.write(oprot) - oprot.writeFieldEnd() - if self.longStats is not None: - oprot.writeFieldBegin('longStats', TType.STRUCT, 2) - self.longStats.write(oprot) - oprot.writeFieldEnd() - if self.doubleStats is not None: - oprot.writeFieldBegin('doubleStats', TType.STRUCT, 3) - self.doubleStats.write(oprot) - oprot.writeFieldEnd() - if self.stringStats is not None: - oprot.writeFieldBegin('stringStats', TType.STRUCT, 4) - self.stringStats.write(oprot) - oprot.writeFieldEnd() - if self.binaryStats is not None: - oprot.writeFieldBegin('binaryStats', TType.STRUCT, 5) - self.binaryStats.write(oprot) - oprot.writeFieldEnd() - if self.decimalStats is not None: - oprot.writeFieldBegin('decimalStats', TType.STRUCT, 6) - self.decimalStats.write(oprot) + oprot.writeStructBegin('Decimal') + if self.unscaled is not None: + oprot.writeFieldBegin('unscaled', TType.STRING, 1) + oprot.writeString(self.unscaled) oprot.writeFieldEnd() - if self.dateStats is not None: - oprot.writeFieldBegin('dateStats', TType.STRUCT, 7) - self.dateStats.write(oprot) + if self.scale is not None: + oprot.writeFieldBegin('scale', TType.I16, 3) + oprot.writeI16(self.scale) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.scale is None: + raise TProtocol.TProtocolException(message='Required field scale is unset!') + if self.unscaled is None: + raise TProtocol.TProtocolException(message='Required field unscaled is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.booleanStats) - value = (value * 31) ^ hash(self.longStats) - value = (value * 31) ^ hash(self.doubleStats) - value = (value * 31) ^ hash(self.stringStats) - value = (value * 31) ^ hash(self.binaryStats) - value = (value * 31) ^ hash(self.decimalStats) - value = (value * 31) ^ hash(self.dateStats) + value = (value * 31) ^ hash(self.scale) + value = (value * 31) ^ hash(self.unscaled) return value def __repr__(self): @@ -6046,25 +6440,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatisticsObj: +class DecimalColumnStatsData: """ Attributes: - - colName - - colType - - statsData + - lowValue + - highValue + - numNulls + - numDVs + - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'colName', None, None, ), # 1 - (2, TType.STRING, 'colType', None, None, ), # 2 - (3, TType.STRUCT, 'statsData', (ColumnStatisticsData, ColumnStatisticsData.thrift_spec), None, ), # 3 + (1, TType.STRUCT, 'lowValue', (Decimal, Decimal.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'highValue', (Decimal, Decimal.thrift_spec), None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, colName=None, colType=None, statsData=None,): - self.colName = colName - self.colType = colType - self.statsData = statsData + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): + self.lowValue = lowValue + self.highValue = highValue + self.numNulls = numNulls + self.numDVs = numDVs + self.bitVectors = bitVectors 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: @@ -6076,19 +6476,30 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.colName = iprot.readString() + if ftype == TType.STRUCT: + self.lowValue = Decimal() + self.lowValue.read(iprot) else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.colType = iprot.readString() + if ftype == TType.STRUCT: + self.highValue = Decimal() + self.highValue.read(iprot) else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRUCT: - self.statsData = ColumnStatisticsData() - self.statsData.read(iprot) + if ftype == TType.I64: + self.numNulls = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.numDVs = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString() else: iprot.skip(ftype) else: @@ -6100,37 +6511,45 @@ 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('ColumnStatisticsObj') - if self.colName is not None: - oprot.writeFieldBegin('colName', TType.STRING, 1) - oprot.writeString(self.colName) + oprot.writeStructBegin('DecimalColumnStatsData') + if self.lowValue is not None: + oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) + self.lowValue.write(oprot) oprot.writeFieldEnd() - if self.colType is not None: - oprot.writeFieldBegin('colType', TType.STRING, 2) - oprot.writeString(self.colType) + if self.highValue is not None: + oprot.writeFieldBegin('highValue', TType.STRUCT, 2) + self.highValue.write(oprot) oprot.writeFieldEnd() - if self.statsData is not None: - oprot.writeFieldBegin('statsData', TType.STRUCT, 3) - self.statsData.write(oprot) + if self.numNulls is not None: + oprot.writeFieldBegin('numNulls', TType.I64, 3) + oprot.writeI64(self.numNulls) + oprot.writeFieldEnd() + if self.numDVs is not None: + oprot.writeFieldBegin('numDVs', TType.I64, 4) + oprot.writeI64(self.numDVs) + oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.colName is None: - raise TProtocol.TProtocolException(message='Required field colName is unset!') - if self.colType is None: - raise TProtocol.TProtocolException(message='Required field colType is unset!') - if self.statsData is None: - raise TProtocol.TProtocolException(message='Required field statsData is unset!') + if self.numNulls is None: + raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.numDVs is None: + raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.colName) - value = (value * 31) ^ hash(self.colType) - value = (value * 31) ^ hash(self.statsData) + value = (value * 31) ^ hash(self.lowValue) + value = (value * 31) ^ hash(self.highValue) + value = (value * 31) ^ hash(self.numNulls) + value = (value * 31) ^ hash(self.numDVs) + value = (value * 31) ^ hash(self.bitVectors) return value def __repr__(self): @@ -6144,34 +6563,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatisticsDesc: +class Date: """ Attributes: - - isTblLevel - - dbName - - tableName - - partName - - lastAnalyzed - - catName + - daysSinceEpoch """ thrift_spec = ( None, # 0 - (1, TType.BOOL, 'isTblLevel', None, None, ), # 1 - (2, TType.STRING, 'dbName', None, None, ), # 2 - (3, TType.STRING, 'tableName', None, None, ), # 3 - (4, TType.STRING, 'partName', None, None, ), # 4 - (5, TType.I64, 'lastAnalyzed', None, None, ), # 5 - (6, TType.STRING, 'catName', None, None, ), # 6 + (1, TType.I64, 'daysSinceEpoch', None, None, ), # 1 ) - def __init__(self, isTblLevel=None, dbName=None, tableName=None, partName=None, lastAnalyzed=None, catName=None,): - self.isTblLevel = isTblLevel - self.dbName = dbName - self.tableName = tableName - self.partName = partName - self.lastAnalyzed = lastAnalyzed - self.catName = catName + def __init__(self, daysSinceEpoch=None,): + self.daysSinceEpoch = daysSinceEpoch 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: @@ -6183,33 +6587,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.BOOL: - self.isTblLevel = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.tableName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.partName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: if ftype == TType.I64: - self.lastAnalyzed = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRING: - self.catName = iprot.readString() + self.daysSinceEpoch = iprot.readI64() else: iprot.skip(ftype) else: @@ -6221,52 +6600,23 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('ColumnStatisticsDesc') - if self.isTblLevel is not None: - oprot.writeFieldBegin('isTblLevel', TType.BOOL, 1) - oprot.writeBool(self.isTblLevel) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 2) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 3) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.partName is not None: - oprot.writeFieldBegin('partName', TType.STRING, 4) - oprot.writeString(self.partName) - oprot.writeFieldEnd() - if self.lastAnalyzed is not None: - oprot.writeFieldBegin('lastAnalyzed', TType.I64, 5) - oprot.writeI64(self.lastAnalyzed) - oprot.writeFieldEnd() - if self.catName is not None: - oprot.writeFieldBegin('catName', TType.STRING, 6) - oprot.writeString(self.catName) + oprot.writeStructBegin('Date') + if self.daysSinceEpoch is not None: + oprot.writeFieldBegin('daysSinceEpoch', TType.I64, 1) + oprot.writeI64(self.daysSinceEpoch) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.isTblLevel is None: - raise TProtocol.TProtocolException(message='Required field isTblLevel is unset!') - if self.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tableName is None: - raise TProtocol.TProtocolException(message='Required field tableName is unset!') + if self.daysSinceEpoch is None: + raise TProtocol.TProtocolException(message='Required field daysSinceEpoch is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.isTblLevel) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partName) - value = (value * 31) ^ hash(self.lastAnalyzed) - value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.daysSinceEpoch) return value def __repr__(self): @@ -6280,25 +6630,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class ColumnStatistics: +class DateColumnStatsData: """ Attributes: - - statsDesc - - statsObj - - isStatsCompliant + - lowValue + - highValue + - numNulls + - numDVs + - bitVectors """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'statsDesc', (ColumnStatisticsDesc, ColumnStatisticsDesc.thrift_spec), None, ), # 1 - (2, TType.LIST, 'statsObj', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 2 - (3, TType.BOOL, 'isStatsCompliant', None, None, ), # 3 + (1, TType.STRUCT, 'lowValue', (Date, Date.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'highValue', (Date, Date.thrift_spec), None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, statsDesc=None, statsObj=None, isStatsCompliant=None,): - self.statsDesc = statsDesc - self.statsObj = statsObj - self.isStatsCompliant = isStatsCompliant + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): + self.lowValue = lowValue + self.highValue = highValue + self.numNulls = numNulls + self.numDVs = numDVs + self.bitVectors = bitVectors 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: @@ -6311,24 +6667,29 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.statsDesc = ColumnStatisticsDesc() - self.statsDesc.read(iprot) + self.lowValue = Date() + self.lowValue.read(iprot) else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.LIST: - self.statsObj = [] - (_etype192, _size189) = iprot.readListBegin() - for _i193 in xrange(_size189): - _elem194 = ColumnStatisticsObj() - _elem194.read(iprot) - self.statsObj.append(_elem194) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.highValue = Date() + self.highValue.read(iprot) else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.BOOL: - self.isStatsCompliant = iprot.readBool() + if ftype == TType.I64: + self.numNulls = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.numDVs = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString() else: iprot.skip(ftype) else: @@ -6340,38 +6701,45 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('ColumnStatistics') - if self.statsDesc is not None: - oprot.writeFieldBegin('statsDesc', TType.STRUCT, 1) - self.statsDesc.write(oprot) + oprot.writeStructBegin('DateColumnStatsData') + if self.lowValue is not None: + oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) + self.lowValue.write(oprot) oprot.writeFieldEnd() - if self.statsObj is not None: - oprot.writeFieldBegin('statsObj', TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter195 in self.statsObj: - iter195.write(oprot) - oprot.writeListEnd() + if self.highValue is not None: + oprot.writeFieldBegin('highValue', TType.STRUCT, 2) + self.highValue.write(oprot) oprot.writeFieldEnd() - if self.isStatsCompliant is not None: - oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 3) - oprot.writeBool(self.isStatsCompliant) + if self.numNulls is not None: + oprot.writeFieldBegin('numNulls', TType.I64, 3) + oprot.writeI64(self.numNulls) + oprot.writeFieldEnd() + if self.numDVs is not None: + oprot.writeFieldBegin('numDVs', TType.I64, 4) + oprot.writeI64(self.numDVs) + oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.statsDesc is None: - raise TProtocol.TProtocolException(message='Required field statsDesc is unset!') - if self.statsObj is None: - raise TProtocol.TProtocolException(message='Required field statsObj is unset!') + if self.numNulls is None: + raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.numDVs is None: + raise TProtocol.TProtocolException(message='Required field numDVs is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.statsDesc) - value = (value * 31) ^ hash(self.statsObj) - value = (value * 31) ^ hash(self.isStatsCompliant) + value = (value * 31) ^ hash(self.lowValue) + value = (value * 31) ^ hash(self.highValue) + value = (value * 31) ^ hash(self.numNulls) + value = (value * 31) ^ hash(self.numDVs) + value = (value * 31) ^ hash(self.bitVectors) return value def __repr__(self): @@ -6385,82 +6753,37 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Table: +class ColumnStatisticsData: """ Attributes: - - id - - tableName - - dbName - - owner - - createTime - - lastAccessTime - - retention - - sd - - partitionKeys - - parameters - - viewOriginalText - - viewExpandedText - - tableType - - privileges - - temporary - - rewriteEnabled - - creationMetadata - - catName - - ownerType - - writeId - - isStatsCompliant - - colStats + - booleanStats + - longStats + - doubleStats + - stringStats + - binaryStats + - decimalStats + - dateStats """ thrift_spec = ( None, # 0 - (1, TType.I64, 'id', None, None, ), # 1 - (2, TType.STRING, 'tableName', None, None, ), # 2 - (3, TType.STRING, 'dbName', None, None, ), # 3 - (4, TType.STRING, 'owner', None, None, ), # 4 - (5, TType.I32, 'createTime', None, None, ), # 5 - (6, TType.I32, 'lastAccessTime', None, None, ), # 6 - (7, TType.I32, 'retention', None, None, ), # 7 - (8, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 8 - (9, TType.LIST, 'partitionKeys', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 9 - (10, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 10 - (11, TType.STRING, 'viewOriginalText', None, None, ), # 11 - (12, TType.STRING, 'viewExpandedText', None, None, ), # 12 - (13, TType.STRING, 'tableType', None, None, ), # 13 - (14, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 14 - (15, TType.BOOL, 'temporary', None, False, ), # 15 - (16, TType.BOOL, 'rewriteEnabled', None, None, ), # 16 - (17, TType.STRUCT, 'creationMetadata', (CreationMetadata, CreationMetadata.thrift_spec), None, ), # 17 - (18, TType.STRING, 'catName', None, None, ), # 18 - (19, TType.I32, 'ownerType', None, 1, ), # 19 - (20, TType.I64, 'writeId', None, -1, ), # 20 - (21, TType.BOOL, 'isStatsCompliant', None, None, ), # 21 - (22, TType.STRUCT, 'colStats', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 22 + (1, TType.STRUCT, 'booleanStats', (BooleanColumnStatsData, BooleanColumnStatsData.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'longStats', (LongColumnStatsData, LongColumnStatsData.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'doubleStats', (DoubleColumnStatsData, DoubleColumnStatsData.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'stringStats', (StringColumnStatsData, StringColumnStatsData.thrift_spec), None, ), # 4 + (5, TType.STRUCT, 'binaryStats', (BinaryColumnStatsData, BinaryColumnStatsData.thrift_spec), None, ), # 5 + (6, TType.STRUCT, 'decimalStats', (DecimalColumnStatsData, DecimalColumnStatsData.thrift_spec), None, ), # 6 + (7, TType.STRUCT, 'dateStats', (DateColumnStatsData, DateColumnStatsData.thrift_spec), None, ), # 7 ) - 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,): - self.id = id - self.tableName = tableName - self.dbName = dbName - self.owner = owner - self.createTime = createTime - self.lastAccessTime = lastAccessTime - self.retention = retention - self.sd = sd - self.partitionKeys = partitionKeys - self.parameters = parameters - self.viewOriginalText = viewOriginalText - self.viewExpandedText = viewExpandedText - self.tableType = tableType - self.privileges = privileges - self.temporary = temporary - self.rewriteEnabled = rewriteEnabled - self.creationMetadata = creationMetadata - self.catName = catName - self.ownerType = ownerType - self.writeId = writeId - self.isStatsCompliant = isStatsCompliant - self.colStats = colStats + def __init__(self, booleanStats=None, longStats=None, doubleStats=None, stringStats=None, binaryStats=None, decimalStats=None, dateStats=None,): + self.booleanStats = booleanStats + self.longStats = longStats + self.doubleStats = doubleStats + self.stringStats = stringStats + self.binaryStats = binaryStats + self.decimalStats = decimalStats + self.dateStats = dateStats 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: @@ -6472,129 +6795,45 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.id = iprot.readI64() + if ftype == TType.STRUCT: + self.booleanStats = BooleanColumnStatsData() + self.booleanStats.read(iprot) else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.tableName = iprot.readString() + if ftype == TType.STRUCT: + self.longStats = LongColumnStatsData() + self.longStats.read(iprot) else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.dbName = iprot.readString() + if ftype == TType.STRUCT: + self.doubleStats = DoubleColumnStatsData() + self.doubleStats.read(iprot) else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.STRING: - self.owner = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.createTime = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.I32: - self.retention = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 8: if ftype == TType.STRUCT: - self.sd = StorageDescriptor() - self.sd.read(iprot) - else: - iprot.skip(ftype) - elif fid == 9: - if ftype == TType.LIST: - self.partitionKeys = [] - (_etype199, _size196) = iprot.readListBegin() - for _i200 in xrange(_size196): - _elem201 = FieldSchema() - _elem201.read(iprot) - self.partitionKeys.append(_elem201) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 10: - if ftype == TType.MAP: - self.parameters = {} - (_ktype203, _vtype204, _size202 ) = iprot.readMapBegin() - for _i206 in xrange(_size202): - _key207 = iprot.readString() - _val208 = iprot.readString() - self.parameters[_key207] = _val208 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 11: - if ftype == TType.STRING: - self.viewOriginalText = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 12: - if ftype == TType.STRING: - self.viewExpandedText = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 13: - if ftype == TType.STRING: - self.tableType = iprot.readString() + self.stringStats = StringColumnStatsData() + self.stringStats.read(iprot) else: iprot.skip(ftype) - elif fid == 14: + elif fid == 5: if ftype == TType.STRUCT: - self.privileges = PrincipalPrivilegeSet() - self.privileges.read(iprot) - else: - iprot.skip(ftype) - elif fid == 15: - if ftype == TType.BOOL: - self.temporary = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 16: - if ftype == TType.BOOL: - self.rewriteEnabled = iprot.readBool() + self.binaryStats = BinaryColumnStatsData() + self.binaryStats.read(iprot) else: iprot.skip(ftype) - elif fid == 17: + elif fid == 6: if ftype == TType.STRUCT: - self.creationMetadata = CreationMetadata() - self.creationMetadata.read(iprot) - else: - iprot.skip(ftype) - elif fid == 18: - if ftype == TType.STRING: - self.catName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 19: - if ftype == TType.I32: - self.ownerType = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 20: - if ftype == TType.I64: - self.writeId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 21: - if ftype == TType.BOOL: - self.isStatsCompliant = iprot.readBool() + self.decimalStats = DecimalColumnStatsData() + self.decimalStats.read(iprot) else: iprot.skip(ftype) - elif fid == 22: + elif fid == 7: if ftype == TType.STRUCT: - self.colStats = ColumnStatistics() - self.colStats.read(iprot) + self.dateStats = DateColumnStatsData() + self.dateStats.read(iprot) else: iprot.skip(ftype) else: @@ -6606,101 +6845,34 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('Table') - if self.id is not None: - oprot.writeFieldBegin('id', TType.I64, 1) - oprot.writeI64(self.id) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 2) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 3) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.owner is not None: - oprot.writeFieldBegin('owner', TType.STRING, 4) - oprot.writeString(self.owner) - oprot.writeFieldEnd() - if self.createTime is not None: - oprot.writeFieldBegin('createTime', TType.I32, 5) - oprot.writeI32(self.createTime) - oprot.writeFieldEnd() - if self.lastAccessTime is not None: - oprot.writeFieldBegin('lastAccessTime', TType.I32, 6) - oprot.writeI32(self.lastAccessTime) - oprot.writeFieldEnd() - if self.retention is not None: - oprot.writeFieldBegin('retention', TType.I32, 7) - oprot.writeI32(self.retention) - oprot.writeFieldEnd() - if self.sd is not None: - oprot.writeFieldBegin('sd', TType.STRUCT, 8) - self.sd.write(oprot) - oprot.writeFieldEnd() - if self.partitionKeys is not None: - oprot.writeFieldBegin('partitionKeys', TType.LIST, 9) - oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter209 in self.partitionKeys: - iter209.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.parameters is not None: - oprot.writeFieldBegin('parameters', TType.MAP, 10) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter210,viter211 in self.parameters.items(): - oprot.writeString(kiter210) - oprot.writeString(viter211) - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.viewOriginalText is not None: - oprot.writeFieldBegin('viewOriginalText', TType.STRING, 11) - oprot.writeString(self.viewOriginalText) - oprot.writeFieldEnd() - if self.viewExpandedText is not None: - oprot.writeFieldBegin('viewExpandedText', TType.STRING, 12) - oprot.writeString(self.viewExpandedText) - oprot.writeFieldEnd() - if self.tableType is not None: - oprot.writeFieldBegin('tableType', TType.STRING, 13) - oprot.writeString(self.tableType) - oprot.writeFieldEnd() - if self.privileges is not None: - oprot.writeFieldBegin('privileges', TType.STRUCT, 14) - self.privileges.write(oprot) - oprot.writeFieldEnd() - if self.temporary is not None: - oprot.writeFieldBegin('temporary', TType.BOOL, 15) - oprot.writeBool(self.temporary) - oprot.writeFieldEnd() - if self.rewriteEnabled is not None: - oprot.writeFieldBegin('rewriteEnabled', TType.BOOL, 16) - oprot.writeBool(self.rewriteEnabled) + oprot.writeStructBegin('ColumnStatisticsData') + if self.booleanStats is not None: + oprot.writeFieldBegin('booleanStats', TType.STRUCT, 1) + self.booleanStats.write(oprot) oprot.writeFieldEnd() - if self.creationMetadata is not None: - oprot.writeFieldBegin('creationMetadata', TType.STRUCT, 17) - self.creationMetadata.write(oprot) + if self.longStats is not None: + oprot.writeFieldBegin('longStats', TType.STRUCT, 2) + self.longStats.write(oprot) oprot.writeFieldEnd() - if self.catName is not None: - oprot.writeFieldBegin('catName', TType.STRING, 18) - oprot.writeString(self.catName) + if self.doubleStats is not None: + oprot.writeFieldBegin('doubleStats', TType.STRUCT, 3) + self.doubleStats.write(oprot) oprot.writeFieldEnd() - if self.ownerType is not None: - oprot.writeFieldBegin('ownerType', TType.I32, 19) - oprot.writeI32(self.ownerType) + if self.stringStats is not None: + oprot.writeFieldBegin('stringStats', TType.STRUCT, 4) + self.stringStats.write(oprot) oprot.writeFieldEnd() - if self.writeId is not None: - oprot.writeFieldBegin('writeId', TType.I64, 20) - oprot.writeI64(self.writeId) + if self.binaryStats is not None: + oprot.writeFieldBegin('binaryStats', TType.STRUCT, 5) + self.binaryStats.write(oprot) oprot.writeFieldEnd() - if self.isStatsCompliant is not None: - oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 21) - oprot.writeBool(self.isStatsCompliant) + if self.decimalStats is not None: + oprot.writeFieldBegin('decimalStats', TType.STRUCT, 6) + self.decimalStats.write(oprot) oprot.writeFieldEnd() - if self.colStats is not None: - oprot.writeFieldBegin('colStats', TType.STRUCT, 22) - self.colStats.write(oprot) + if self.dateStats is not None: + oprot.writeFieldBegin('dateStats', TType.STRUCT, 7) + self.dateStats.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6711,28 +6883,13 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.id) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.owner) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.retention) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.partitionKeys) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.viewOriginalText) - value = (value * 31) ^ hash(self.viewExpandedText) - value = (value * 31) ^ hash(self.tableType) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.temporary) - value = (value * 31) ^ hash(self.rewriteEnabled) - value = (value * 31) ^ hash(self.creationMetadata) - value = (value * 31) ^ hash(self.catName) - value = (value * 31) ^ hash(self.ownerType) - value = (value * 31) ^ hash(self.writeId) - value = (value * 31) ^ hash(self.isStatsCompliant) - value = (value * 31) ^ hash(self.colStats) + value = (value * 31) ^ hash(self.booleanStats) + value = (value * 31) ^ hash(self.longStats) + value = (value * 31) ^ hash(self.doubleStats) + value = (value * 31) ^ hash(self.stringStats) + value = (value * 31) ^ hash(self.binaryStats) + value = (value * 31) ^ hash(self.decimalStats) + value = (value * 31) ^ hash(self.dateStats) return value def __repr__(self): @@ -6746,52 +6903,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class Partition: +class ColumnStatisticsObj: """ Attributes: - - values - - dbName - - tableName - - createTime - - lastAccessTime - - sd - - parameters - - privileges - - catName - - writeId - - isStatsCompliant - - colStats + - colName + - colType + - statsData """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1 - (2, TType.STRING, 'dbName', None, None, ), # 2 - (3, TType.STRING, 'tableName', None, None, ), # 3 - (4, TType.I32, 'createTime', None, None, ), # 4 - (5, TType.I32, 'lastAccessTime', None, None, ), # 5 - (6, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 6 - (7, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 7 - (8, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 8 - (9, TType.STRING, 'catName', None, None, ), # 9 - (10, TType.I64, 'writeId', None, -1, ), # 10 - (11, TType.BOOL, 'isStatsCompliant', None, None, ), # 11 - (12, TType.STRUCT, 'colStats', (ColumnStatistics, ColumnStatistics.thrift_spec), None, ), # 12 + (1, TType.STRING, 'colName', None, None, ), # 1 + (2, TType.STRING, 'colType', None, None, ), # 2 + (3, TType.STRUCT, 'statsData', (ColumnStatisticsData, ColumnStatisticsData.thrift_spec), None, ), # 3 ) - def __init__(self, values=None, dbName=None, tableName=None, createTime=None, lastAccessTime=None, sd=None, parameters=None, privileges=None, catName=None, writeId=thrift_spec[10][4], isStatsCompliant=None, colStats=None,): - self.values = values - self.dbName = dbName - self.tableName = tableName - self.createTime = createTime - self.lastAccessTime = lastAccessTime - self.sd = sd - self.parameters = parameters - self.privileges = privileges - self.catName = catName - self.writeId = writeId - self.isStatsCompliant = isStatsCompliant - self.colStats = colStats + def __init__(self, colName=None, colType=None, statsData=None,): + self.colName = colName + self.colType = colType + self.statsData = statsData 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: @@ -6803,77 +6933,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.values = [] - (_etype215, _size212) = iprot.readListBegin() - for _i216 in xrange(_size212): - _elem217 = iprot.readString() - self.values.append(_elem217) - iprot.readListEnd() + if ftype == TType.STRING: + self.colName = iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.colType = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.tableName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.createTime = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRUCT: - self.sd = StorageDescriptor() - self.sd.read(iprot) - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.MAP: - self.parameters = {} - (_ktype219, _vtype220, _size218 ) = iprot.readMapBegin() - for _i222 in xrange(_size218): - _key223 = iprot.readString() - _val224 = iprot.readString() - self.parameters[_key223] = _val224 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 8: - if ftype == TType.STRUCT: - self.privileges = PrincipalPrivilegeSet() - self.privileges.read(iprot) - else: - iprot.skip(ftype) - elif fid == 9: - if ftype == TType.STRING: - self.catName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 10: - if ftype == TType.I64: - self.writeId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 11: - if ftype == TType.BOOL: - self.isStatsCompliant = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 12: if ftype == TType.STRUCT: - self.colStats = ColumnStatistics() - self.colStats.read(iprot) + self.statsData = ColumnStatisticsData() + self.statsData.read(iprot) else: iprot.skip(ftype) else: @@ -6885,83 +6957,37 @@ 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('Partition') - if self.values is not None: - oprot.writeFieldBegin('values', TType.LIST, 1) - oprot.writeListBegin(TType.STRING, len(self.values)) - for iter225 in self.values: - oprot.writeString(iter225) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 2) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin('tableName', TType.STRING, 3) - oprot.writeString(self.tableName) - oprot.writeFieldEnd() - if self.createTime is not None: - oprot.writeFieldBegin('createTime', TType.I32, 4) - oprot.writeI32(self.createTime) - oprot.writeFieldEnd() - if self.lastAccessTime is not None: - oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) - oprot.writeI32(self.lastAccessTime) - oprot.writeFieldEnd() - if self.sd is not None: - oprot.writeFieldBegin('sd', TType.STRUCT, 6) - self.sd.write(oprot) - oprot.writeFieldEnd() - if self.parameters is not None: - oprot.writeFieldBegin('parameters', TType.MAP, 7) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter226,viter227 in self.parameters.items(): - oprot.writeString(kiter226) - oprot.writeString(viter227) - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.privileges is not None: - oprot.writeFieldBegin('privileges', TType.STRUCT, 8) - self.privileges.write(oprot) - oprot.writeFieldEnd() - if self.catName is not None: - oprot.writeFieldBegin('catName', TType.STRING, 9) - oprot.writeString(self.catName) - oprot.writeFieldEnd() - if self.writeId is not None: - oprot.writeFieldBegin('writeId', TType.I64, 10) - oprot.writeI64(self.writeId) + oprot.writeStructBegin('ColumnStatisticsObj') + if self.colName is not None: + oprot.writeFieldBegin('colName', TType.STRING, 1) + oprot.writeString(self.colName) oprot.writeFieldEnd() - if self.isStatsCompliant is not None: - oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 11) - oprot.writeBool(self.isStatsCompliant) + if self.colType is not None: + oprot.writeFieldBegin('colType', TType.STRING, 2) + oprot.writeString(self.colType) oprot.writeFieldEnd() - if self.colStats is not None: - oprot.writeFieldBegin('colStats', TType.STRUCT, 12) - self.colStats.write(oprot) + if self.statsData is not None: + oprot.writeFieldBegin('statsData', TType.STRUCT, 3) + self.statsData.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.colName is None: + raise TProtocol.TProtocolException(message='Required field colName is unset!') + if self.colType is None: + raise TProtocol.TProtocolException(message='Required field colType is unset!') + if self.statsData is None: + raise TProtocol.TProtocolException(message='Required field statsData is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.catName) - value = (value * 31) ^ hash(self.writeId) - value = (value * 31) ^ hash(self.isStatsCompliant) - value = (value * 31) ^ hash(self.colStats) + value = (value * 31) ^ hash(self.colName) + value = (value * 31) ^ hash(self.colType) + value = (value * 31) ^ hash(self.statsData) return value def __repr__(self): @@ -6975,34 +7001,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class PartitionWithoutSD: +class ColumnStatisticsDesc: """ Attributes: - - values - - createTime - - lastAccessTime - - relativePath - - parameters - - privileges + - isTblLevel + - dbName + - tableName + - partName + - lastAnalyzed + - catName """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'values', (TType.STRING,None), None, ), # 1 - (2, TType.I32, 'createTime', None, None, ), # 2 - (3, TType.I32, 'lastAccessTime', None, None, ), # 3 - (4, TType.STRING, 'relativePath', None, None, ), # 4 - (5, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 5 - (6, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 6 + (1, TType.BOOL, 'isTblLevel', None, None, ), # 1 + (2, TType.STRING, 'dbName', None, None, ), # 2 + (3, TType.STRING, 'tableName', None, None, ), # 3 + (4, TType.STRING, 'partName', None, None, ), # 4 + (5, TType.I64, 'lastAnalyzed', None, None, ), # 5 + (6, TType.STRING, 'catName', None, None, ), # 6 ) - def __init__(self, values=None, createTime=None, lastAccessTime=None, relativePath=None, parameters=None, privileges=None,): - self.values = values - self.createTime = createTime - self.lastAccessTime = lastAccessTime - self.relativePath = relativePath - self.parameters = parameters - self.privileges = privileges + def __init__(self, isTblLevel=None, dbName=None, tableName=None, partName=None, lastAnalyzed=None, catName=None,): + self.isTblLevel = isTblLevel + self.dbName = dbName + self.tableName = tableName + self.partName = partName + self.lastAnalyzed = lastAnalyzed + self.catName = catName 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: @@ -7014,45 +7040,33 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.values = [] - (_etype231, _size228) = iprot.readListBegin() - for _i232 in xrange(_size228): - _elem233 = iprot.readString() - self.values.append(_elem233) - iprot.readListEnd() + if ftype == TType.BOOL: + self.isTblLevel = iprot.readBool() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.I32: - self.createTime = iprot.readI32() + if ftype == TType.STRING: + self.dbName = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() + if ftype == TType.STRING: + self.tableName = iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.relativePath = iprot.readString() + self.partName = iprot.readString() else: iprot.skip(ftype) elif fid == 5: - if ftype == TType.MAP: - self.parameters = {} - (_ktype235, _vtype236, _size234 ) = iprot.readMapBegin() - for _i238 in xrange(_size234): - _key239 = iprot.readString() - _val240 = iprot.readString() - self.parameters[_key239] = _val240 - iprot.readMapEnd() + if ftype == TType.I64: + self.lastAnalyzed = iprot.readI64() else: iprot.skip(ftype) elif fid == 6: - if ftype == TType.STRUCT: - self.privileges = PrincipalPrivilegeSet() - self.privileges.read(iprot) + if ftype == TType.STRING: + self.catName = iprot.readString() else: iprot.skip(ftype) else: @@ -7064,53 +7078,52 @@ 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('PartitionWithoutSD') - if self.values is not None: - oprot.writeFieldBegin('values', TType.LIST, 1) - oprot.writeListBegin(TType.STRING, len(self.values)) - for iter241 in self.values: - oprot.writeString(iter241) - oprot.writeListEnd() + oprot.writeStructBegin('ColumnStatisticsDesc') + if self.isTblLevel is not None: + oprot.writeFieldBegin('isTblLevel', TType.BOOL, 1) + oprot.writeBool(self.isTblLevel) oprot.writeFieldEnd() - if self.createTime is not None: - oprot.writeFieldBegin('createTime', TType.I32, 2) - oprot.writeI32(self.createTime) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.lastAccessTime is not None: - oprot.writeFieldBegin('lastAccessTime', TType.I32, 3) - oprot.writeI32(self.lastAccessTime) + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName) oprot.writeFieldEnd() - if self.relativePath is not None: - oprot.writeFieldBegin('relativePath', TType.STRING, 4) - oprot.writeString(self.relativePath) + if self.partName is not None: + oprot.writeFieldBegin('partName', TType.STRING, 4) + oprot.writeString(self.partName) oprot.writeFieldEnd() - if self.parameters is not None: - oprot.writeFieldBegin('parameters', TType.MAP, 5) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter242,viter243 in self.parameters.items(): - oprot.writeString(kiter242) - oprot.writeString(viter243) - oprot.writeMapEnd() + if self.lastAnalyzed is not None: + oprot.writeFieldBegin('lastAnalyzed', TType.I64, 5) + oprot.writeI64(self.lastAnalyzed) oprot.writeFieldEnd() - if self.privileges is not None: - oprot.writeFieldBegin('privileges', TType.STRUCT, 6) - self.privileges.write(oprot) + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.isTblLevel is None: + raise TProtocol.TProtocolException(message='Required field isTblLevel is unset!') + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tableName is None: + raise TProtocol.TProtocolException(message='Required field tableName is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.relativePath) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) + value = (value * 31) ^ hash(self.isTblLevel) + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tableName) + value = (value * 31) ^ hash(self.partName) + value = (value * 31) ^ hash(self.lastAnalyzed) + value = (value * 31) ^ hash(self.catName) return value def __repr__(self): @@ -7124,22 +7137,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class PartitionSpecWithSharedSD: +class ColumnStatistics: """ Attributes: - - partitions - - sd + - statsDesc + - statsObj + - isStatsCompliant """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'partitions', (TType.STRUCT,(PartitionWithoutSD, PartitionWithoutSD.thrift_spec)), None, ), # 1 - (2, TType.STRUCT, 'sd', (StorageDescriptor, StorageDescriptor.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'statsDesc', (ColumnStatisticsDesc, ColumnStatisticsDesc.thrift_spec), None, ), # 1 + (2, TType.LIST, 'statsObj', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 2 + (3, TType.BOOL, 'isStatsCompliant', None, None, ), # 3 ) - def __init__(self, partitions=None, sd=None,): - self.partitions = partitions - self.sd = sd + def __init__(self, statsDesc=None, statsObj=None, isStatsCompliant=None,): + self.statsDesc = statsDesc + self.statsObj = statsObj + self.isStatsCompliant = isStatsCompliant 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: @@ -7151,20 +7167,25 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.statsDesc = ColumnStatisticsDesc() + self.statsDesc.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.LIST: - self.partitions = [] + self.statsObj = [] (_etype247, _size244) = iprot.readListBegin() for _i248 in xrange(_size244): - _elem249 = PartitionWithoutSD() + _elem249 = ColumnStatisticsObj() _elem249.read(iprot) - self.partitions.append(_elem249) + self.statsObj.append(_elem249) iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.sd = StorageDescriptor() - self.sd.read(iprot) + elif fid == 3: + if ftype == TType.BOOL: + self.isStatsCompliant = iprot.readBool() else: iprot.skip(ftype) else: @@ -7176,29 +7197,38 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('PartitionSpecWithSharedSD') - if self.partitions is not None: - oprot.writeFieldBegin('partitions', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter250 in self.partitions: + oprot.writeStructBegin('ColumnStatistics') + if self.statsDesc is not None: + oprot.writeFieldBegin('statsDesc', TType.STRUCT, 1) + self.statsDesc.write(oprot) + oprot.writeFieldEnd() + if self.statsObj is not None: + oprot.writeFieldBegin('statsObj', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) + for iter250 in self.statsObj: iter250.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.sd is not None: - oprot.writeFieldBegin('sd', TType.STRUCT, 2) - self.sd.write(oprot) + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 3) + oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.statsDesc is None: + raise TProtocol.TProtocolException(message='Required field statsDesc is unset!') + if self.statsObj is None: + raise TProtocol.TProtocolException(message='Required field statsObj is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.partitions) - value = (value * 31) ^ hash(self.sd) + value = (value * 31) ^ hash(self.statsDesc) + value = (value * 31) ^ hash(self.statsObj) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -11248,6 +11278,8 @@ class GetPartitionsByNamesRequest: - tbl_name - names - get_col_stats + - processorCapabilities + - processorIdentifier """ thrift_spec = ( @@ -11256,13 +11288,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: @@ -11298,6 +11334,21 @@ def read(self, iprot): self.get_col_stats = iprot.readBool() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.processorCapabilities = [] + (_etype504, _size501) = iprot.readListBegin() + for _i505 in xrange(_size501): + _elem506 = iprot.readString() + self.processorCapabilities.append(_elem506) + 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() @@ -11319,14 +11370,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 iter501 in self.names: - oprot.writeString(iter501) + for iter507 in self.names: + oprot.writeString(iter507) 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 iter508 in self.processorCapabilities: + oprot.writeString(iter508) + 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() @@ -11344,6 +11406,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): @@ -11383,11 +11447,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype505, _size502) = iprot.readListBegin() - for _i506 in xrange(_size502): - _elem507 = Partition() - _elem507.read(iprot) - self.partitions.append(_elem507) + (_etype512, _size509) = iprot.readListBegin() + for _i513 in xrange(_size509): + _elem514 = Partition() + _elem514.read(iprot) + self.partitions.append(_elem514) iprot.readListEnd() else: iprot.skip(ftype) @@ -11404,8 +11468,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 iter508 in self.partitions: - iter508.write(oprot) + for iter515 in self.partitions: + iter515.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11596,11 +11660,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype512, _size509) = iprot.readListBegin() - for _i513 in xrange(_size509): - _elem514 = ResourceUri() - _elem514.read(iprot) - self.resourceUris.append(_elem514) + (_etype519, _size516) = iprot.readListBegin() + for _i520 in xrange(_size516): + _elem521 = ResourceUri() + _elem521.read(iprot) + self.resourceUris.append(_elem521) iprot.readListEnd() else: iprot.skip(ftype) @@ -11650,8 +11714,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 iter515 in self.resourceUris: - iter515.write(oprot) + for iter522 in self.resourceUris: + iter522.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: @@ -11900,11 +11964,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype519, _size516) = iprot.readListBegin() - for _i520 in xrange(_size516): - _elem521 = TxnInfo() - _elem521.read(iprot) - self.open_txns.append(_elem521) + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = TxnInfo() + _elem528.read(iprot) + self.open_txns.append(_elem528) iprot.readListEnd() else: iprot.skip(ftype) @@ -11925,8 +11989,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 iter522 in self.open_txns: - iter522.write(oprot) + for iter529 in self.open_txns: + iter529.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11997,10 +12061,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = iprot.readI64() - self.open_txns.append(_elem528) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = iprot.readI64() + self.open_txns.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -12031,8 +12095,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 iter529 in self.open_txns: - oprot.writeI64(iter529) + for iter536 in self.open_txns: + oprot.writeI64(iter536) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -12144,10 +12208,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.replSrcTxnIds = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = iprot.readI64() - self.replSrcTxnIds.append(_elem535) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = iprot.readI64() + self.replSrcTxnIds.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -12189,8 +12253,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 iter536 in self.replSrcTxnIds: - oprot.writeI64(iter536) + for iter543 in self.replSrcTxnIds: + oprot.writeI64(iter543) oprot.writeListEnd() oprot.writeFieldEnd() if self.txn_type is not None: @@ -12258,10 +12322,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) @@ -12278,8 +12342,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() @@ -12413,10 +12477,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype547, _size544) = iprot.readListBegin() - for _i548 in xrange(_size544): - _elem549 = iprot.readI64() - self.txn_ids.append(_elem549) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = iprot.readI64() + self.txn_ids.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -12433,8 +12497,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 iter550 in self.txn_ids: - oprot.writeI64(iter550) + for iter557 in self.txn_ids: + oprot.writeI64(iter557) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12771,10 +12835,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) @@ -12812,8 +12876,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: @@ -12900,11 +12964,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.writeEventInfos = [] - (_etype561, _size558) = iprot.readListBegin() - for _i562 in xrange(_size558): - _elem563 = WriteEventInfo() - _elem563.read(iprot) - self.writeEventInfos.append(_elem563) + (_etype568, _size565) = iprot.readListBegin() + for _i569 in xrange(_size565): + _elem570 = WriteEventInfo() + _elem570.read(iprot) + self.writeEventInfos.append(_elem570) iprot.readListEnd() else: iprot.skip(ftype) @@ -12941,8 +13005,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 iter564 in self.writeEventInfos: - iter564.write(oprot) + for iter571 in self.writeEventInfos: + iter571.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.keyValue is not None: @@ -13048,10 +13112,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partNames = [] - (_etype568, _size565) = iprot.readListBegin() - for _i569 in xrange(_size565): - _elem570 = iprot.readString() - self.partNames.append(_elem570) + (_etype575, _size572) = iprot.readListBegin() + for _i576 in xrange(_size572): + _elem577 = iprot.readString() + self.partNames.append(_elem577) iprot.readListEnd() else: iprot.skip(ftype) @@ -13088,8 +13152,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 iter571 in self.partNames: - oprot.writeString(iter571) + for iter578 in self.partNames: + oprot.writeString(iter578) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13162,10 +13226,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype575, _size572) = iprot.readListBegin() - for _i576 in xrange(_size572): - _elem577 = iprot.readString() - self.fullTableNames.append(_elem577) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = iprot.readString() + self.fullTableNames.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -13192,8 +13256,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 iter578 in self.fullTableNames: - oprot.writeString(iter578) + for iter585 in self.fullTableNames: + oprot.writeString(iter585) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -13279,10 +13343,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype582, _size579) = iprot.readListBegin() - for _i583 in xrange(_size579): - _elem584 = iprot.readI64() - self.invalidWriteIds.append(_elem584) + (_etype589, _size586) = iprot.readListBegin() + for _i590 in xrange(_size586): + _elem591 = iprot.readI64() + self.invalidWriteIds.append(_elem591) iprot.readListEnd() else: iprot.skip(ftype) @@ -13317,8 +13381,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 iter585 in self.invalidWriteIds: - oprot.writeI64(iter585) + for iter592 in self.invalidWriteIds: + oprot.writeI64(iter592) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -13390,11 +13454,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype589, _size586) = iprot.readListBegin() - for _i590 in xrange(_size586): - _elem591 = TableValidWriteIds() - _elem591.read(iprot) - self.tblValidWriteIds.append(_elem591) + (_etype596, _size593) = iprot.readListBegin() + for _i597 in xrange(_size593): + _elem598 = TableValidWriteIds() + _elem598.read(iprot) + self.tblValidWriteIds.append(_elem598) iprot.readListEnd() else: iprot.skip(ftype) @@ -13411,8 +13475,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 iter592 in self.tblValidWriteIds: - iter592.write(oprot) + for iter599 in self.tblValidWriteIds: + iter599.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13570,10 +13634,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype596, _size593) = iprot.readListBegin() - for _i597 in xrange(_size593): - _elem598 = iprot.readI64() - self.txnIds.append(_elem598) + (_etype603, _size600) = iprot.readListBegin() + for _i604 in xrange(_size600): + _elem605 = iprot.readI64() + self.txnIds.append(_elem605) iprot.readListEnd() else: iprot.skip(ftype) @@ -13585,11 +13649,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype602, _size599) = iprot.readListBegin() - for _i603 in xrange(_size599): - _elem604 = TxnToWriteId() - _elem604.read(iprot) - self.srcTxnToWriteIdList.append(_elem604) + (_etype609, _size606) = iprot.readListBegin() + for _i610 in xrange(_size606): + _elem611 = TxnToWriteId() + _elem611.read(iprot) + self.srcTxnToWriteIdList.append(_elem611) iprot.readListEnd() else: iprot.skip(ftype) @@ -13614,8 +13678,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 iter605 in self.txnIds: - oprot.writeI64(iter605) + for iter612 in self.txnIds: + oprot.writeI64(iter612) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: @@ -13625,8 +13689,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 iter606 in self.srcTxnToWriteIdList: - iter606.write(oprot) + for iter613 in self.srcTxnToWriteIdList: + iter613.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13686,11 +13750,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype610, _size607) = iprot.readListBegin() - for _i611 in xrange(_size607): - _elem612 = TxnToWriteId() - _elem612.read(iprot) - self.txnToWriteIds.append(_elem612) + (_etype617, _size614) = iprot.readListBegin() + for _i618 in xrange(_size614): + _elem619 = TxnToWriteId() + _elem619.read(iprot) + self.txnToWriteIds.append(_elem619) iprot.readListEnd() else: iprot.skip(ftype) @@ -13707,8 +13771,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 iter613 in self.txnToWriteIds: - iter613.write(oprot) + for iter620 in self.txnToWriteIds: + iter620.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13936,11 +14000,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype617, _size614) = iprot.readListBegin() - for _i618 in xrange(_size614): - _elem619 = LockComponent() - _elem619.read(iprot) - self.component.append(_elem619) + (_etype624, _size621) = iprot.readListBegin() + for _i625 in xrange(_size621): + _elem626 = LockComponent() + _elem626.read(iprot) + self.component.append(_elem626) iprot.readListEnd() else: iprot.skip(ftype) @@ -13977,8 +14041,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 iter620 in self.component: - iter620.write(oprot) + for iter627 in self.component: + iter627.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -14676,11 +14740,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype624, _size621) = iprot.readListBegin() - for _i625 in xrange(_size621): - _elem626 = ShowLocksResponseElement() - _elem626.read(iprot) - self.locks.append(_elem626) + (_etype631, _size628) = iprot.readListBegin() + for _i632 in xrange(_size628): + _elem633 = ShowLocksResponseElement() + _elem633.read(iprot) + self.locks.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) @@ -14697,8 +14761,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 iter627 in self.locks: - iter627.write(oprot) + for iter634 in self.locks: + iter634.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14913,20 +14977,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype631, _size628) = iprot.readSetBegin() - for _i632 in xrange(_size628): - _elem633 = iprot.readI64() - self.aborted.add(_elem633) + (_etype638, _size635) = iprot.readSetBegin() + for _i639 in xrange(_size635): + _elem640 = iprot.readI64() + self.aborted.add(_elem640) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype637, _size634) = iprot.readSetBegin() - for _i638 in xrange(_size634): - _elem639 = iprot.readI64() - self.nosuch.add(_elem639) + (_etype644, _size641) = iprot.readSetBegin() + for _i645 in xrange(_size641): + _elem646 = iprot.readI64() + self.nosuch.add(_elem646) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14943,15 +15007,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 iter640 in self.aborted: - oprot.writeI64(iter640) + for iter647 in self.aborted: + oprot.writeI64(iter647) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter641 in self.nosuch: - oprot.writeI64(iter641) + for iter648 in self.nosuch: + oprot.writeI64(iter648) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15048,11 +15112,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype643, _vtype644, _size642 ) = iprot.readMapBegin() - for _i646 in xrange(_size642): - _key647 = iprot.readString() - _val648 = iprot.readString() - self.properties[_key647] = _val648 + (_ktype650, _vtype651, _size649 ) = iprot.readMapBegin() + for _i653 in xrange(_size649): + _key654 = iprot.readString() + _val655 = iprot.readString() + self.properties[_key654] = _val655 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15089,9 +15153,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 kiter649,viter650 in self.properties.items(): - oprot.writeString(kiter649) - oprot.writeString(viter650) + for kiter656,viter657 in self.properties.items(): + oprot.writeString(kiter656) + oprot.writeString(viter657) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15808,11 +15872,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = ShowCompactResponseElement() - _elem656.read(iprot) - self.compacts.append(_elem656) + (_etype661, _size658) = iprot.readListBegin() + for _i662 in xrange(_size658): + _elem663 = ShowCompactResponseElement() + _elem663.read(iprot) + self.compacts.append(_elem663) iprot.readListEnd() else: iprot.skip(ftype) @@ -15829,8 +15893,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 iter657 in self.compacts: - iter657.write(oprot) + for iter664 in self.compacts: + iter664.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15919,10 +15983,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype661, _size658) = iprot.readListBegin() - for _i662 in xrange(_size658): - _elem663 = iprot.readString() - self.partitionnames.append(_elem663) + (_etype668, _size665) = iprot.readListBegin() + for _i669 in xrange(_size665): + _elem670 = iprot.readString() + self.partitionnames.append(_elem670) iprot.readListEnd() else: iprot.skip(ftype) @@ -15960,8 +16024,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 iter664 in self.partitionnames: - oprot.writeString(iter664) + for iter671 in self.partitionnames: + oprot.writeString(iter671) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType 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: @@ -18432,12 +18502,266 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.BOOL: - self.getColumnStats = iprot.readBool() + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + 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() + 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('GetTableRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.capabilities is not None: + oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) + self.capabilities.write(oprot) + oprot.writeFieldEnd() + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.getColumnStats is not None: + 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() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + 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.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.capabilities) + 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): + 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 GetTableResult: + """ + Attributes: + - table + - isStatsCompliant + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 + ) + + def __init__(self, table=None, isStatsCompliant=None,): + self.table = table + self.isStatsCompliant = isStatsCompliant + + 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.table = Table() + self.table.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.isStatsCompliant = iprot.readBool() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetTableResult') + if self.table is not None: + oprot.writeFieldBegin('table', TType.STRUCT, 1) + self.table.write(oprot) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) + oprot.writeBool(self.isStatsCompliant) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.table is None: + raise TProtocol.TProtocolException(message='Required field table is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.table) + value = (value * 31) ^ hash(self.isStatsCompliant) + 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 GetTablesRequest: + """ + Attributes: + - dbName + - tblNames + - capabilities + - catName + - processorCapabilities + - processorIdentifier + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (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, 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: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.tblNames = [] + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readString() + self.tblNames.append(_elem800) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.capabilities = ClientCapabilities() + self.capabilities.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + 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: @@ -18449,14 +18773,17 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('GetTableRequest') + oprot.writeStructBegin('GetTablesRequest') if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 1) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.tblName is not None: - oprot.writeFieldBegin('tblName', TType.STRING, 2) - oprot.writeString(self.tblName) + if self.tblNames is not None: + oprot.writeFieldBegin('tblNames', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.tblNames)) + for iter807 in self.tblNames: + oprot.writeString(iter807) + oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) @@ -18466,13 +18793,16 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 4) oprot.writeString(self.catName) oprot.writeFieldEnd() - if self.validWriteIdList is not None: - oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) - oprot.writeString(self.validWriteIdList) + 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.getColumnStats is not None: - oprot.writeFieldBegin('getColumnStats', TType.BOOL, 7) - oprot.writeBool(self.getColumnStats) + if self.processorIdentifier is not None: + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 6) + oprot.writeString(self.processorIdentifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18480,19 +18810,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: raise TProtocol.TProtocolException(message='Required field dbName is unset!') - 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.dbName) - value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.tblNames) value = (value * 31) ^ hash(self.capabilities) 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): @@ -18506,22 +18834,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetTableResult: +class GetTablesResult: """ Attributes: - - table - - isStatsCompliant + - tables """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 - (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 + (1, TType.LIST, 'tables', (TType.STRUCT,(Table, Table.thrift_spec)), None, ), # 1 ) - def __init__(self, table=None, isStatsCompliant=None,): - self.table = table - self.isStatsCompliant = isStatsCompliant + def __init__(self, tables=None,): + self.tables = tables 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: @@ -18533,14 +18858,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.table = Table() - self.table.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.BOOL: - self.isStatsCompliant = iprot.readBool() + if ftype == TType.LIST: + self.tables = [] + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = Table() + _elem814.read(iprot) + self.tables.append(_elem814) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -18552,28 +18877,26 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('GetTableResult') - if self.table is not None: - oprot.writeFieldBegin('table', TType.STRUCT, 1) - self.table.write(oprot) - oprot.writeFieldEnd() - if self.isStatsCompliant is not None: - oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) - oprot.writeBool(self.isStatsCompliant) + oprot.writeStructBegin('GetTablesResult') + if self.tables is not None: + oprot.writeFieldBegin('tables', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.tables)) + for iter815 in self.tables: + iter815.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.table is None: - raise TProtocol.TProtocolException(message='Required field table is unset!') + if self.tables is None: + raise TProtocol.TProtocolException(message='Required field tables is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.table) - value = (value * 31) ^ hash(self.isStatsCompliant) + value = (value * 31) ^ hash(self.tables) return value def __repr__(self): @@ -18587,28 +18910,37 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetTablesRequest: +class GetTablesExtRequest: """ Attributes: - - dbName - - tblNames - - capabilities - - catName + - catalog + - database + - tableNamePattern + - requestedFields + - limit + - processorCapabilities + - processorIdentifier """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (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 + (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, dbName=None, tblNames=None, capabilities=None, catName=None,): - self.dbName = dbName - self.tblNames = tblNames - self.capabilities = capabilities - self.catName = catName + 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: @@ -18621,28 +18953,42 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.catalog = iprot.readString() else: iprot.skip(ftype) 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) - iprot.readListEnd() + if ftype == TType.STRING: + self.database = iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRUCT: - self.capabilities = ClientCapabilities() - self.capabilities.read(iprot) + 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.catName = iprot.readString() + self.processorIdentifier = iprot.readString() else: iprot.skip(ftype) else: @@ -18654,41 +19000,62 @@ 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('GetTablesRequest') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) + oprot.writeStructBegin('GetTablesExtRequest') + if self.catalog is not None: + oprot.writeFieldBegin('catalog', TType.STRING, 1) + oprot.writeString(self.catalog) oprot.writeFieldEnd() - 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) - oprot.writeListEnd() + if self.database is not None: + oprot.writeFieldBegin('database', TType.STRING, 2) + oprot.writeString(self.database) oprot.writeFieldEnd() - if self.capabilities is not None: - oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) - self.capabilities.write(oprot) + if self.tableNamePattern is not None: + oprot.writeFieldBegin('tableNamePattern', TType.STRING, 3) + oprot.writeString(self.tableNamePattern) oprot.writeFieldEnd() - if self.catName is not None: - oprot.writeFieldBegin('catName', TType.STRING, 4) - oprot.writeString(self.catName) + 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.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') + 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.dbName) - value = (value * 31) ^ hash(self.tblNames) - value = (value * 31) ^ hash(self.capabilities) - value = (value * 31) ^ hash(self.catName) + 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): @@ -18702,19 +19069,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetTablesResult: +class ExtendedTableInfo: """ Attributes: - - tables + - tblName + - accessType + - processorCapabilities """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'tables', (TType.STRUCT,(Table, Table.thrift_spec)), None, ), # 1 + (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, tables=None,): - self.tables = tables + 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: @@ -18726,13 +19099,22 @@ def read(self, iprot): 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.tables = [] - (_etype791, _size788) = iprot.readListBegin() - for _i792 in xrange(_size788): - _elem793 = Table() - _elem793.read(iprot) - self.tables.append(_elem793) + self.processorCapabilities = [] + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = iprot.readString() + self.processorCapabilities.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -18745,26 +19127,36 @@ 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('GetTablesResult') - 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) + 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.tables is None: - raise TProtocol.TProtocolException(message='Required field tables is unset!') + 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.tables) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.accessType) + value = (value * 31) ^ hash(self.processorCapabilities) return value def __repr__(self): @@ -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 f6da7ebb4b..8a5de311fc 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"} @@ -1134,6 +1142,151 @@ class CreationMetadata ::Thrift::Struct.generate_accessors self end +class Table + include ::Thrift::Struct, ::Thrift::Struct_Union + ID = 1 + TABLENAME = 2 + DBNAME = 3 + OWNER = 4 + CREATETIME = 5 + LASTACCESSTIME = 6 + RETENTION = 7 + SD = 8 + PARTITIONKEYS = 9 + PARAMETERS = 10 + VIEWORIGINALTEXT = 11 + VIEWEXPANDEDTEXT = 12 + TABLETYPE = 13 + PRIVILEGES = 14 + TEMPORARY = 15 + REWRITEENABLED = 16 + CREATIONMETADATA = 17 + CATNAME = 18 + OWNERTYPE = 19 + WRITEID = 20 + ISSTATSCOMPLIANT = 21 + COLSTATS = 22 + ACCESSTYPE = 23 + + FIELDS = { + ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'}, + CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, + LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, + RETENTION => {:type => ::Thrift::Types::I32, :name => 'retention'}, + SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor}, + PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}}, + PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, + VIEWORIGINALTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewOriginalText'}, + VIEWEXPANDEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewExpandedText'}, + TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'}, + PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, + TEMPORARY => {:type => ::Thrift::Types::BOOL, :name => 'temporary', :default => false, :optional => true}, + REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true}, + CREATIONMETADATA => {:type => ::Thrift::Types::STRUCT, :name => 'creationMetadata', :class => ::CreationMetadata, :optional => true}, + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + 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}, + ACCESSTYPE => {:type => ::Thrift::Types::BYTE, :name => 'accessType', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + unless @ownerType.nil? || ::PrincipalType::VALID_VALUES.include?(@ownerType) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ownerType!') + end + end + + ::Thrift::Struct.generate_accessors self +end + +class Partition + include ::Thrift::Struct, ::Thrift::Struct_Union + VALUES = 1 + DBNAME = 2 + TABLENAME = 3 + CREATETIME = 4 + LASTACCESSTIME = 5 + SD = 6 + PARAMETERS = 7 + PRIVILEGES = 8 + CATNAME = 9 + WRITEID = 10 + ISSTATSCOMPLIANT = 11 + COLSTATS = 12 + + FIELDS = { + VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, + CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, + LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, + SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor}, + PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, + PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + 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} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionWithoutSD + include ::Thrift::Struct, ::Thrift::Struct_Union + VALUES = 1 + CREATETIME = 2 + LASTACCESSTIME = 3 + RELATIVEPATH = 4 + PARAMETERS = 5 + PRIVILEGES = 6 + + FIELDS = { + VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}}, + CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, + LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, + RELATIVEPATH => {:type => ::Thrift::Types::STRING, :name => 'relativePath'}, + PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, + PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionSpecWithSharedSD + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITIONS = 1 + SD = 2 + + FIELDS = { + PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PartitionWithoutSD}}, + SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + class BooleanColumnStatsData include ::Thrift::Struct, ::Thrift::Struct_Union NUMTRUES = 1 @@ -1486,149 +1639,6 @@ class ColumnStatistics ::Thrift::Struct.generate_accessors self end -class Table - include ::Thrift::Struct, ::Thrift::Struct_Union - ID = 1 - TABLENAME = 2 - DBNAME = 3 - OWNER = 4 - CREATETIME = 5 - LASTACCESSTIME = 6 - RETENTION = 7 - SD = 8 - PARTITIONKEYS = 9 - PARAMETERS = 10 - VIEWORIGINALTEXT = 11 - VIEWEXPANDEDTEXT = 12 - TABLETYPE = 13 - PRIVILEGES = 14 - TEMPORARY = 15 - REWRITEENABLED = 16 - CREATIONMETADATA = 17 - CATNAME = 18 - OWNERTYPE = 19 - WRITEID = 20 - ISSTATSCOMPLIANT = 21 - COLSTATS = 22 - - FIELDS = { - ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true}, - TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'}, - CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, - LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, - RETENTION => {:type => ::Thrift::Types::I32, :name => 'retention'}, - SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor}, - PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}}, - PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, - VIEWORIGINALTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewOriginalText'}, - VIEWEXPANDEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewExpandedText'}, - TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'}, - PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, - TEMPORARY => {:type => ::Thrift::Types::BOOL, :name => 'temporary', :default => false, :optional => true}, - REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true}, - CREATIONMETADATA => {:type => ::Thrift::Types::STRUCT, :name => 'creationMetadata', :class => ::CreationMetadata, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, - 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} - } - - def struct_fields; FIELDS; end - - def validate - unless @ownerType.nil? || ::PrincipalType::VALID_VALUES.include?(@ownerType) - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ownerType!') - end - end - - ::Thrift::Struct.generate_accessors self -end - -class Partition - include ::Thrift::Struct, ::Thrift::Struct_Union - VALUES = 1 - DBNAME = 2 - TABLENAME = 3 - CREATETIME = 4 - LASTACCESSTIME = 5 - SD = 6 - PARAMETERS = 7 - PRIVILEGES = 8 - CATNAME = 9 - WRITEID = 10 - ISSTATSCOMPLIANT = 11 - COLSTATS = 12 - - FIELDS = { - VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}}, - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, - CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, - LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, - SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor}, - PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, - PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, - 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} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self -end - -class PartitionWithoutSD - include ::Thrift::Struct, ::Thrift::Struct_Union - VALUES = 1 - CREATETIME = 2 - LASTACCESSTIME = 3 - RELATIVEPATH = 4 - PARAMETERS = 5 - PRIVILEGES = 6 - - FIELDS = { - VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}}, - CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, - LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'}, - RELATIVEPATH => {:type => ::Thrift::Types::STRING, :name => 'relativePath'}, - PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, - PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self -end - -class PartitionSpecWithSharedSD - include ::Thrift::Struct, ::Thrift::Struct_Union - PARTITIONS = 1 - SD = 2 - - FIELDS = { - PARTITIONS => {:type => ::Thrift::Types::LIST, :name => 'partitions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PartitionWithoutSD}}, - SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self -end - class PartitionListComposingSpec include ::Thrift::Struct, ::Thrift::Struct_Union PARTITIONS = 1 @@ -2506,12 +2516,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 75d4de20bd..b8b725bbac 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 @@ -723,6 +723,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() @@ -4291,6 +4307,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() @@ -8087,6 +8114,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 c55a6801a9..f947ee1918 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 static void setProcessorCapabilities(final String[] capabilities) { + processorCapabilities = capabilities; + } + + public static void setProcessorIdentifier(final String id) { + 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,21 @@ 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, int limit) throws MetaException, TException { + if (catName == null) + catName = getDefaultCatalog(conf); + GetTablesExtRequest req = new GetTablesExtRequest(catName, dbName, tablePattern, requestedFields); + req.setLimit(limit); + if (processorIdentifier != null) + req.setProcessorIdentifier(processorIdentifier); + if (processorCapabilities != null) + req.setProcessorCapabilities(Arrays.asList(processorCapabilities)); + return client.get_tables_ext(req); + } + @Override public List
getAllMaterializedViewObjectsForRewriting() throws TException { try { @@ -3813,6 +3864,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); } @@ -3855,4 +3910,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 8999d55905..aa7e8dfcbd 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; @@ -344,6 +346,22 @@ void dropCatalog(String catName) List
getAllMaterializedViewObjectsForRewriting() 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, + 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 9dd2580b66..7d5d5b7895 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, @@ -433,6 +437,63 @@ struct CreationMetadata { 6: optional i64 materializationTime } +// table information +struct Table { + 1: optional i64 id, // id of the table. It will be ignored if set. It's only for + // read purposed + 2: string tableName, // name of the table + 3: string dbName, // database name ('default') + 4: string owner, // owner of this table + 5: i32 createTime, // creation time of the table + 6: i32 lastAccessTime, // last access time (usually this will be filled from HDFS and shouldn't be relied on) + 7: i32 retention, // retention time + 8: StorageDescriptor sd, // storage descriptor of the table + 9: list partitionKeys, // partition keys of the table. only primitive types are supported + 10: map parameters, // to store comments or any other user level parameters + 11: string viewOriginalText, // original view text, null for non-view + 12: string viewExpandedText, // expanded view text, null for non-view + 13: string tableType, // table type enum, e.g. EXTERNAL_TABLE + 14: optional PrincipalPrivilegeSet privileges, + 15: optional bool temporary=false, + 16: optional bool rewriteEnabled, // rewrite enabled or not + 17: optional CreationMetadata creationMetadata, // only for MVs, it stores table names used and txn list at MV creation + 18: optional string catName, // Name of the catalog the table is in + 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 + 23: optional byte accessType +} + +struct Partition { + 1: list values // string value is converted to appropriate partition key type + 2: string dbName, + 3: string tableName, + 4: i32 createTime, + 5: i32 lastAccessTime, + 6: StorageDescriptor sd, + 7: map parameters, + 8: optional PrincipalPrivilegeSet privileges, + 9: optional string catName, + 10: optional i64 writeId=-1, + 11: optional bool isStatsCompliant, + 12: optional ColumnStatistics colStats // column statistics for partition +} + +struct PartitionWithoutSD { + 1: list values // string value is converted to appropriate partition key type + 2: i32 createTime, + 3: i32 lastAccessTime, + 4: string relativePath, + 5: map parameters, + 6: optional PrincipalPrivilegeSet privileges +} + +struct PartitionSpecWithSharedSD { + 1: list partitions, + 2: StorageDescriptor sd, +} + // column statistics struct BooleanColumnStatsData { @@ -531,62 +592,6 @@ struct ColumnStatistics { // the calling query? } -// table information -struct Table { - 1: optional i64 id, // id of the table. It will be ignored if set. It's only for - // read purposed - 2: string tableName, // name of the table - 3: string dbName, // database name ('default') - 4: string owner, // owner of this table - 5: i32 createTime, // creation time of the table - 6: i32 lastAccessTime, // last access time (usually this will be filled from HDFS and shouldn't be relied on) - 7: i32 retention, // retention time - 8: StorageDescriptor sd, // storage descriptor of the table - 9: list partitionKeys, // partition keys of the table. only primitive types are supported - 10: map parameters, // to store comments or any other user level parameters - 11: string viewOriginalText, // original view text, null for non-view - 12: string viewExpandedText, // expanded view text, null for non-view - 13: string tableType, // table type enum, e.g. EXTERNAL_TABLE - 14: optional PrincipalPrivilegeSet privileges, - 15: optional bool temporary=false, - 16: optional bool rewriteEnabled, // rewrite enabled or not - 17: optional CreationMetadata creationMetadata, // only for MVs, it stores table names used and txn list at MV creation - 18: optional string catName, // Name of the catalog the table is in - 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 -} - -struct Partition { - 1: list values // string value is converted to appropriate partition key type - 2: string dbName, - 3: string tableName, - 4: i32 createTime, - 5: i32 lastAccessTime, - 6: StorageDescriptor sd, - 7: map parameters, - 8: optional PrincipalPrivilegeSet privileges, - 9: optional string catName, - 10: optional i64 writeId=-1, - 11: optional bool isStatsCompliant, - 12: optional ColumnStatistics colStats // column statistics for partition -} - -struct PartitionWithoutSD { - 1: list values // string value is converted to appropriate partition key type - 2: i32 createTime, - 3: i32 lastAccessTime, - 4: string relativePath, - 5: map parameters, - 6: optional PrincipalPrivilegeSet privileges -} - -struct PartitionSpecWithSharedSD { - 1: list partitions, - 2: StorageDescriptor sd, -} - struct PartitionListComposingSpec { 1: list partitions } @@ -841,7 +846,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 { @@ -865,6 +872,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, @@ -1331,7 +1345,6 @@ enum ClientCapability { INSERT_ONLY_TABLES = 2 } - struct ClientCapabilities { 1: required list values } @@ -1342,7 +1355,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 { @@ -1354,13 +1369,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, @@ -1789,7 +1823,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. @@ -1948,6 +1984,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 1a694fb980..e6e13ec454 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 @@ -33,6 +33,7 @@ import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Modifier; import java.net.InetAddress; import java.net.UnknownHostException; import java.nio.ByteBuffer; @@ -278,6 +279,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 +631,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(IHMSHandler.class); + if (Modifier.isPrivate(constructor.getModifiers())) + throw new IllegalArgumentException("Illegal implementation for metadata transformer. Constructor is private"); + transformer = (IMetaStoreMetadataTransformer) constructor.newInstance(this); + } catch (NoSuchMethodException | InstantiationException | IllegalAccessException + | IllegalArgumentException | InvocationTargetException e) { + LOG.error("Unable to create instance of class " + className, e); + throw new IllegalArgumentException(e); + } } /** @@ -3028,17 +3050,86 @@ 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(); + 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); + + for (Map.Entry> entry : retMap.entrySet()) { + ret.add(convertTableToExtendedTable(entry.getKey(), entry.getValue(), req.getRequestedFields())); + } + } else { + for (Table table : tObjects) { + ret.add(convertTableToExtendedTable(table, 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 ExtendedTableInfo convertTableToExtendedTable (Table table, + List processorCapabilities, int mask) { + ExtendedTableInfo 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); + + return extTable; + } + @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 +3145,17 @@ private Table getTableInternal(String catName, String dbname, String name, "insert-only tables", "get_table_req"); } + 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 +3166,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 { @@ -4924,6 +5025,13 @@ public GetPartitionsResponse get_partitions_with_specs(GetPartitionsRequest requ List partitions = getMS() .getPartitionSpecsByFilterAndProjection(table, request.getProjectionSpec(), request.getFilterSpec()); + List processorCapabilities = request.getProcessorCapabilities(); + String processorId = request.getProcessorIdentifier(); + if (processorCapabilities != null && processorCapabilities.size() > 0) { + if (transformer != null) { + partitions = transformer.transformPartitions(partitions, processorCapabilities, processorId); + } + } List partitionSpecs = MetaStoreServerUtils.getPartitionspecsGroupedByStorageDescriptor(table, partitions); response = new GetPartitionsResponse(); @@ -6454,12 +6562,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]; @@ -6498,6 +6613,11 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam } } + if (transformer != null) { + if (processorCapabilities != null && processorCapabilities.size() > 0) { + ret = transformer.transformPartitions(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..d33c36e5cc --- /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 List 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..c407798114 --- /dev/null +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java @@ -0,0 +1,406 @@ +/* + * 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 org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class MetastoreDefaultTransformer implements IMetaStoreMetadataTransformer { + public static final Logger LOG = LoggerFactory.getLogger(MetastoreDefaultTransformer.class); + private IHMSHandler hmsHandler = null; + + private static final String CONNECTORREAD = "CONNECTORREAD".intern(); + private static final String CONNECTORWRITE = "CONNECTORWRITE".intern(); + private static final String EXTWRITE = "EXTWRITE".intern(); + private static final String EXTREAD = "EXTREAD".intern(); + private static final String HIVEACIDWRITE = "HIVEACIDWRITE".intern(); + private static final String HIVEBUCKET2 = "HIVEBUCKET2".intern(); + private static final String HIVECACHEINVALIDATE = "HIVECACHEINVALIDATE".intern(); + private static final String HIVEFULLACIDREAD = "HIVEFULLACIDREAD".intern(); + private static final String HIVEFULLACIDWRITE = "HIVEFULLACIDWRITE".intern(); + private static final String HIVEMANAGEDINSERTREAD = "HIVEMANAGEDINSERTREAD".intern(); + private static final String HIVEMANAGEDINSERTWRITE = "HIVEMANAGEDINSERTWRITE".intern(); + private static final String HIVEMANAGESTATS = "HIVEMANAGESTATS".intern(); + private static final String HIVEMQT = "HIVEMQT".intern(); + private static final String HIVEONLYMQTWRITE = "HIVEONLYMQTWRITE".intern(); + private static final String HIVESQL = "HIVESQL".intern(); + private static final String OBJCAPABILITIES = "OBJCAPABILITIES".intern(); + + public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException { + this.hmsHandler = handler; + } + + @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 = new HashMap>(); + + for (Table table : objects) { + 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.debug("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(HIVEMANAGESTATS); + } + + 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(HIVEMANAGESTATS); + 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.debug("EXTREAD Matches, accessType=" + ACCESSTYPE_READONLY); + newTable.setAccessType(ACCESSTYPE_READONLY); + } else { + LOG.debug("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; + } + } + + LOG.info("Transformer return list of " + objects.size()); + return ret; + } + + @Override + public List transformPartitions(List objects, List processorCapabilities, String processorId) throws MetaException { + LOG.info("Starting translation for partition for processor " + processorId + " on list " + objects.size()); + List ret = new ArrayList<>(); + Map tableCache = new HashMap<>(); + int tableBuckets = 0; + int partBuckets = 0; + + for (Partition partition : objects) { + String tableName = partition.getTableName(); + String dbName = partition.getDbName(); + Table table = null; + + if (tableCache.containsKey(dbName + "." + tableName)) { + table = tableCache.get(dbName + "." + tableName); + } else { + try { + table = hmsHandler.get_table_core(MetaStoreUtils.getDefaultCatalog(null), dbName, tableName); + } catch (Exception e) { + throw new MetaException("Could not load table " + tableName + ":" + e.getMessage()); + } + tableCache.put(dbName + "." + tableName, table); + } + Map params = table.getParameters(); + String tableType = table.getTableType(); + String tCapabilities = params.get(OBJCAPABILITIES); + tableBuckets = table.getSd().getNumBuckets(); + partBuckets = partition.getSd().getNumBuckets(); + LOG.info("Number of original part buckets=" + partBuckets); + + if (tCapabilities == null) { + LOG.debug("Table " + table.getTableName() + " has no specific required capabilities"); + + switch (tableType) { + case "EXTERNAL_TABLE": + if (partBuckets > 0 && !processorCapabilities.contains(HIVEBUCKET2)) { + Partition newPartition = new Partition(partition); + StorageDescriptor newSd = new StorageDescriptor(partition.getSd()); + newSd.setNumBuckets(-1); // remove bucketing info + newPartition.setSd(newSd); + ret.add(newPartition); + } else { + ret.add(partition); + } + break; + case "MANAGED_TABLE": + String txnal = params.get("transactional"); + if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table + if (partBuckets > 0 && !processorCapabilities.contains(HIVEBUCKET2)) { + Partition newPartition = new Partition(partition); + StorageDescriptor newSd = new StorageDescriptor(partition.getSd()); + newSd.setNumBuckets(-1); // remove bucketing info + newPartition.setSd(newSd); + ret.add(newPartition); + break; + } + } + // INSERT or FULL ACID table, bucketing info to be retained + ret.add(partition); + break; + default: + ret.add(partition); + break; + } + } else { // table has capabilities + tCapabilities = tCapabilities.replaceAll("\\s","").toUpperCase(); // remove spaces between tCapabilities + toUppercase + List requiredCapabilities = Arrays.asList(tCapabilities.split(",")); + if (partBuckets <= 0 || processorCapabilities.containsAll(requiredCapabilities)) { + ret.add(partition); + continue; + } + + switch (tableType) { + case "EXTERNAL_TABLE": + if (requiredCapabilities.contains(HIVEBUCKET2) && !processorCapabilities.contains(HIVEBUCKET2)) { + Partition newPartition = new Partition(partition); + StorageDescriptor newSd = new StorageDescriptor(partition.getSd()); + newSd.setNumBuckets(-1); // removing bucketing if HIVEBUCKET2 isnt specified + newPartition.setSd(newSd); + LOG.info("Removed bucketing information from partition"); + ret.add(newPartition); + break; + } + case "MANAGED_TABLE": + String txnal = params.get("transactional"); + if (txnal == null || txnal.equalsIgnoreCase("FALSE")) { // non-ACID MANAGED table + if (!processorCapabilities.contains(HIVEBUCKET2)) { + Partition newPartition = new Partition(partition); + StorageDescriptor newSd = new StorageDescriptor(partition.getSd()); + newSd.setNumBuckets(-1); // remove bucketing info + newPartition.setSd(newSd); + ret.add(newPartition); + break; + } + } + ret.add(partition); + break; + default: + ret.add(partition); + break; + } + } + } + LOG.info("Returning partition set of size " + ret.size()); + return ret; + } +} 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 459c7c23ff..4878a47b2d 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,15 @@ 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, 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..4a45f094e3 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,14 +44,25 @@ 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; import org.apache.hadoop.hive.metastore.client.builder.DatabaseBuilder; +import org.apache.hadoop.hive.metastore.client.builder.PartitionBuilder; import org.apache.hadoop.hive.metastore.client.builder.TableBuilder; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; @@ -121,6 +132,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 +155,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 +3365,781 @@ 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<>(); + int buckets = 32; + + String tblName = basetblName; + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + tProps.put("TBLTYPE", TableType.EXTERNAL_TABLE); + tProps.put("BUCKETS", buckets); + 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(buckets, 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(buckets, 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(buckets, 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()); + + resetHMSClient(); + + tblName = "test_ext_sparkbucketed_wc"; + properties = new StringBuilder(); + properties.append("EXTERNAL").append("=").append("TRUE"); + properties.append(";"); + properties.append(CAPABILITIES_KEY).append("=").append("SPARKDECIMAL,SPARKBUCKET,EXTREAD"); + tProps.put("TBLNAME", tblName); + tProps.put("PROPERTIES", properties.toString()); + tProps.put("BUCKETS", buckets); + tbl = createTableWithCapabilities(tProps); + + setHMSClient("testTransformerExternalTableSpark", (new String[] { "HIVEFULLACIDREAD", "CONNECTORREAD"})); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_NONE, tbl2.getAccessType()); // requires EXTREAD for RO + assertEquals(buckets, tbl2.getSd().getNumBuckets()); + + setHMSClient("testTransformerExternalTableSpark", (new String[] { "EXTREAD", "CONNECTORREAD"})); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READONLY, tbl2.getAccessType()); // requires EXTREAD for RO + assertEquals(buckets, tbl2.getSd().getNumBuckets()); + + setHMSClient("testTransformerExternalTableSpark", (new String[] { "SPARKBUCKET", "SPARKDECIMAL", "EXTREAD" })); + tbl2 = client.getTable(dbName, tblName); + assertEquals("Table access type does not match the expected value:" + tblName, + ACCESSTYPE_READWRITE, tbl2.getAccessType()); + assertEquals(buckets, tbl2.getSd().getNumBuckets()); // client has SPARKBUCKET capability + + resetHMSClient(); + + } 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"; + int count = 10; + 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", count); + tProps.put("TBLTYPE", type); + + setHMSClient("test_get_tables_ext", (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, 2000); + LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); + assertEquals("Return list size does not match expected size:extTables", count, 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()); + } + + requestedFields = (new GetTablesRequestBuilder().with(GetTablesExtRequestFields.ACCESS_TYPE)).bitValue(); + extTables = client.getTablesExt(null, dbName, "*", requestedFields, 2000); + LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); + assertEquals("Return list size does not match expected size", count, extTables.size()); + for (ExtendedTableInfo tableInfo : extTables) { + assertNull("Return value should not contain capabilities", tableInfo.getProcessorCapabilities()); + assertTrue("AccessType expected to be set", tableInfo.getAccessType() > 0); + } + + requestedFields = (new GetTablesRequestBuilder().with(GetTablesExtRequestFields.ALL)).bitValue(); + extTables = client.getTablesExt(null, dbName, "*", requestedFields, 2000); + LOG.debug("Return list size=" + extTables.size() + ",bitValue=" + requestedFields); + assertEquals("Return list size does not match expected size", count, extTables.size()); + for (ExtendedTableInfo tableInfo : extTables) { + assertEquals("Capability set size does not match", capabilities.size(), tableInfo.getProcessorCapabilities().size()); + assertTrue("AccessType expected to be set", tableInfo.getAccessType() > 0); + } + } catch (Exception e) { + System.err.println(StringUtils.stringifyException(e)); + System.err.println("testGetTablesExt() failed."); + throw e; + } finally { + resetHMSClient(); + } + } + + @Test + public void testGetPartitionsByNames() throws Exception { + try { + resetHMSClient(); + + final String dbName = "db1"; + String tblName = "test_get_parts_by_names"; + int count = 1; + int pCount = 10; + int bucketCount = 100; + Map tProps = new HashMap<>(); + + tProps.put("DBNAME", dbName); + tProps.put("TBLNAME", tblName); + + List capabilities = new ArrayList<>(); + TableType type = TableType.MANAGED_TABLE; + + capabilities.add("HIVEFULLACIDWRITE"); + capabilities.add("HIVEFULLACIDREAD"); + capabilities.add("HIVECACHEINVALIDATE"); + capabilities.add("CONNECTORREAD"); + capabilities.add("CONNECTORWRITE"); + + // tProps.put("CAPABILITIES", capabilities); + tProps.put("TBLTYPE", type); + tProps.put("PARTITIONS", pCount); + + setHMSClient("TestGetPartitionByNames", (String[])(capabilities.toArray(new String[0]))); + + Table table = createTableWithCapabilities(tProps); + + List partNames = new ArrayList<>(); + List partValues = new ArrayList<>(); + for (int i = 1; i <= pCount; i++) { + partValues.add("partcol=" + i); + } + List parts = client.getPartitionsByNames(dbName, tblName, partValues, false); + assertEquals("Return list size does not match expected size", pCount, parts.size()); + + tblName = "test_gp_ext_bucketed_wc"; + StringBuilder 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("TBLTYPE", TableType.EXTERNAL_TABLE); + tProps.put("BUCKETS", bucketCount); + tProps.put("PROPERTIES", properties.toString()); + table = createTableWithCapabilities(tProps); + + assertEquals("Table bucket count does not match", bucketCount, table.getSd().getNumBuckets()); + parts = client.getPartitionsByNames(dbName, tblName, partValues, false); + LOG.debug("Return list size=" + parts.size()); + + for (Partition part : parts) { + assertEquals("Partition bucket count does not match", -1, part.getSd().getNumBuckets()); + } + + // processor has capabilities + capabilities.clear(); + capabilities.add("HIVEBUCKET2"); + setHMSClient("TestGetPartitionByNamesHB2", (String[])(capabilities.toArray(new String[0]))); + assertEquals("Table bucket count does not match", bucketCount, table.getSd().getNumBuckets()); + parts = client.getPartitionsByNames(dbName, tblName, partValues, false); + + for (Partition part : parts) { + assertEquals("Partition bucket count does not match", -1, part.getSd().getNumBuckets()); + } + + tblName = "test_parts_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()); + table = createTableWithCapabilities(tProps); + + capabilities.clear(); + capabilities.add("CONNECTORREAD"); + setHMSClient("TestGetPartitionByNames", (String[])(capabilities.toArray(new String[0]))); + parts = client.getPartitionsByNames(dbName, tblName, partValues, false); + assertEquals("Partition count does not match", pCount, parts.size()); + + } catch (Exception e) { + System.err.println(StringUtils.stringifyException(e)); + System.err.println("testGetPartitionsByNames() 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(); + int partitionCount = ((Integer)props.getOrDefault("PARTITIONS", 0)).intValue(); + + 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"); + + if (partitionCount > 0) { + builder.addPartCol("partcol", "string"); + } + + Table tbl = builder.create(client, conf); + LOG.info("Table " + tblName + " created:type=" + type.name()); + + if (partitionCount > 0) { + List partitions = new ArrayList<>(); + + List> partValues = new ArrayList<>(); + for (int i = 1; i <= partitionCount; i++) { + partValues.add(Lists.newArrayList("" + i)); + } + + for(List vals : partValues){ + addPartition(client, tbl, vals); + } + } + + 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; + } + + private void addPartition(IMetaStoreClient client, Table table, List values) + throws TException { + PartitionBuilder partitionBuilder = new PartitionBuilder().inTable(table); + values.forEach(val -> partitionBuilder.addValue(val)); + Partition p = partitionBuilder.build(conf); + p.getSd().setNumBuckets(-1); // PartitionBuilder uses 0 as default whereas we use -1 for Tables. + client.add_partition(p); + } }