You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by mi...@apache.org on 2017/09/19 20:49:57 UTC
[01/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Repository: hive
Updated Branches:
refs/heads/master 32e854ef1 -> 9a1498439
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
index 7570895..c67a781 100644
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
@@ -8565,6 +8565,337 @@ class DropPartitionsRequest:
def __ne__(self, other):
return not (self == other)
+class PartitionValuesRequest:
+ """
+ Attributes:
+ - dbName
+ - tblName
+ - partitionKeys
+ - applyDistinct
+ - filter
+ - partitionOrder
+ - ascending
+ - maxParts
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.STRING, 'dbName', None, None, ), # 1
+ (2, TType.STRING, 'tblName', None, None, ), # 2
+ (3, TType.LIST, 'partitionKeys', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 3
+ (4, TType.BOOL, 'applyDistinct', None, True, ), # 4
+ (5, TType.STRING, 'filter', None, None, ), # 5
+ (6, TType.LIST, 'partitionOrder', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 6
+ (7, TType.BOOL, 'ascending', None, True, ), # 7
+ (8, TType.I64, 'maxParts', None, -1, ), # 8
+ )
+
+ def __init__(self, dbName=None, tblName=None, partitionKeys=None, applyDistinct=thrift_spec[4][4], filter=None, partitionOrder=None, ascending=thrift_spec[7][4], maxParts=thrift_spec[8][4],):
+ self.dbName = dbName
+ self.tblName = tblName
+ self.partitionKeys = partitionKeys
+ self.applyDistinct = applyDistinct
+ self.filter = filter
+ self.partitionOrder = partitionOrder
+ self.ascending = ascending
+ self.maxParts = maxParts
+
+ 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.STRING:
+ self.tblName = iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 3:
+ if ftype == TType.LIST:
+ self.partitionKeys = []
+ (_etype430, _size427) = iprot.readListBegin()
+ for _i431 in xrange(_size427):
+ _elem432 = FieldSchema()
+ _elem432.read(iprot)
+ self.partitionKeys.append(_elem432)
+ iprot.readListEnd()
+ else:
+ iprot.skip(ftype)
+ elif fid == 4:
+ if ftype == TType.BOOL:
+ self.applyDistinct = iprot.readBool()
+ else:
+ iprot.skip(ftype)
+ elif fid == 5:
+ if ftype == TType.STRING:
+ self.filter = iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 6:
+ if ftype == TType.LIST:
+ self.partitionOrder = []
+ (_etype436, _size433) = iprot.readListBegin()
+ for _i437 in xrange(_size433):
+ _elem438 = FieldSchema()
+ _elem438.read(iprot)
+ self.partitionOrder.append(_elem438)
+ iprot.readListEnd()
+ else:
+ iprot.skip(ftype)
+ elif fid == 7:
+ if ftype == TType.BOOL:
+ self.ascending = iprot.readBool()
+ else:
+ iprot.skip(ftype)
+ elif fid == 8:
+ if ftype == TType.I64:
+ self.maxParts = iprot.readI64()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('PartitionValuesRequest')
+ 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.partitionKeys is not None:
+ oprot.writeFieldBegin('partitionKeys', TType.LIST, 3)
+ oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys))
+ for iter439 in self.partitionKeys:
+ iter439.write(oprot)
+ oprot.writeListEnd()
+ oprot.writeFieldEnd()
+ if self.applyDistinct is not None:
+ oprot.writeFieldBegin('applyDistinct', TType.BOOL, 4)
+ oprot.writeBool(self.applyDistinct)
+ oprot.writeFieldEnd()
+ if self.filter is not None:
+ oprot.writeFieldBegin('filter', TType.STRING, 5)
+ oprot.writeString(self.filter)
+ oprot.writeFieldEnd()
+ if self.partitionOrder is not None:
+ oprot.writeFieldBegin('partitionOrder', TType.LIST, 6)
+ oprot.writeListBegin(TType.STRUCT, len(self.partitionOrder))
+ for iter440 in self.partitionOrder:
+ iter440.write(oprot)
+ oprot.writeListEnd()
+ oprot.writeFieldEnd()
+ if self.ascending is not None:
+ oprot.writeFieldBegin('ascending', TType.BOOL, 7)
+ oprot.writeBool(self.ascending)
+ oprot.writeFieldEnd()
+ if self.maxParts is not None:
+ oprot.writeFieldBegin('maxParts', TType.I64, 8)
+ oprot.writeI64(self.maxParts)
+ 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!')
+ if self.partitionKeys is None:
+ raise TProtocol.TProtocolException(message='Required field partitionKeys 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.partitionKeys)
+ value = (value * 31) ^ hash(self.applyDistinct)
+ value = (value * 31) ^ hash(self.filter)
+ value = (value * 31) ^ hash(self.partitionOrder)
+ value = (value * 31) ^ hash(self.ascending)
+ value = (value * 31) ^ hash(self.maxParts)
+ 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 PartitionValuesRow:
+ """
+ Attributes:
+ - row
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.LIST, 'row', (TType.STRING,None), None, ), # 1
+ )
+
+ def __init__(self, row=None,):
+ self.row = row
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.LIST:
+ self.row = []
+ (_etype444, _size441) = iprot.readListBegin()
+ for _i445 in xrange(_size441):
+ _elem446 = iprot.readString()
+ self.row.append(_elem446)
+ iprot.readListEnd()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('PartitionValuesRow')
+ if self.row is not None:
+ oprot.writeFieldBegin('row', TType.LIST, 1)
+ oprot.writeListBegin(TType.STRING, len(self.row))
+ for iter447 in self.row:
+ oprot.writeString(iter447)
+ oprot.writeListEnd()
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ if self.row is None:
+ raise TProtocol.TProtocolException(message='Required field row is unset!')
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.row)
+ 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 PartitionValuesResponse:
+ """
+ Attributes:
+ - partitionValues
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.LIST, 'partitionValues', (TType.STRUCT,(PartitionValuesRow, PartitionValuesRow.thrift_spec)), None, ), # 1
+ )
+
+ def __init__(self, partitionValues=None,):
+ self.partitionValues = partitionValues
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.LIST:
+ self.partitionValues = []
+ (_etype451, _size448) = iprot.readListBegin()
+ for _i452 in xrange(_size448):
+ _elem453 = PartitionValuesRow()
+ _elem453.read(iprot)
+ self.partitionValues.append(_elem453)
+ iprot.readListEnd()
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('PartitionValuesResponse')
+ if self.partitionValues is not None:
+ oprot.writeFieldBegin('partitionValues', TType.LIST, 1)
+ oprot.writeListBegin(TType.STRUCT, len(self.partitionValues))
+ for iter454 in self.partitionValues:
+ iter454.write(oprot)
+ oprot.writeListEnd()
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ if self.partitionValues is None:
+ raise TProtocol.TProtocolException(message='Required field partitionValues is unset!')
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.partitionValues)
+ 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 ResourceUri:
"""
Attributes:
@@ -8725,11 +9056,11 @@ class Function:
elif fid == 8:
if ftype == TType.LIST:
self.resourceUris = []
- (_etype430, _size427) = iprot.readListBegin()
- for _i431 in xrange(_size427):
- _elem432 = ResourceUri()
- _elem432.read(iprot)
- self.resourceUris.append(_elem432)
+ (_etype458, _size455) = iprot.readListBegin()
+ for _i459 in xrange(_size455):
+ _elem460 = ResourceUri()
+ _elem460.read(iprot)
+ self.resourceUris.append(_elem460)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -8774,8 +9105,8 @@ class Function:
if self.resourceUris is not None:
oprot.writeFieldBegin('resourceUris', TType.LIST, 8)
oprot.writeListBegin(TType.STRUCT, len(self.resourceUris))
- for iter433 in self.resourceUris:
- iter433.write(oprot)
+ for iter461 in self.resourceUris:
+ iter461.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -9019,11 +9350,11 @@ class GetOpenTxnsInfoResponse:
elif fid == 2:
if ftype == TType.LIST:
self.open_txns = []
- (_etype437, _size434) = iprot.readListBegin()
- for _i438 in xrange(_size434):
- _elem439 = TxnInfo()
- _elem439.read(iprot)
- self.open_txns.append(_elem439)
+ (_etype465, _size462) = iprot.readListBegin()
+ for _i466 in xrange(_size462):
+ _elem467 = TxnInfo()
+ _elem467.read(iprot)
+ self.open_txns.append(_elem467)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -9044,8 +9375,8 @@ class GetOpenTxnsInfoResponse:
if self.open_txns is not None:
oprot.writeFieldBegin('open_txns', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.open_txns))
- for iter440 in self.open_txns:
- iter440.write(oprot)
+ for iter468 in self.open_txns:
+ iter468.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -9116,10 +9447,10 @@ class GetOpenTxnsResponse:
elif fid == 2:
if ftype == TType.LIST:
self.open_txns = []
- (_etype444, _size441) = iprot.readListBegin()
- for _i445 in xrange(_size441):
- _elem446 = iprot.readI64()
- self.open_txns.append(_elem446)
+ (_etype472, _size469) = iprot.readListBegin()
+ for _i473 in xrange(_size469):
+ _elem474 = iprot.readI64()
+ self.open_txns.append(_elem474)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -9150,8 +9481,8 @@ class GetOpenTxnsResponse:
if self.open_txns is not None:
oprot.writeFieldBegin('open_txns', TType.LIST, 2)
oprot.writeListBegin(TType.I64, len(self.open_txns))
- for iter447 in self.open_txns:
- oprot.writeI64(iter447)
+ for iter475 in self.open_txns:
+ oprot.writeI64(iter475)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.min_open_txn is not None:
@@ -9330,10 +9661,10 @@ class OpenTxnsResponse:
if fid == 1:
if ftype == TType.LIST:
self.txn_ids = []
- (_etype451, _size448) = iprot.readListBegin()
- for _i452 in xrange(_size448):
- _elem453 = iprot.readI64()
- self.txn_ids.append(_elem453)
+ (_etype479, _size476) = iprot.readListBegin()
+ for _i480 in xrange(_size476):
+ _elem481 = iprot.readI64()
+ self.txn_ids.append(_elem481)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -9350,8 +9681,8 @@ class OpenTxnsResponse:
if self.txn_ids is not None:
oprot.writeFieldBegin('txn_ids', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.txn_ids))
- for iter454 in self.txn_ids:
- oprot.writeI64(iter454)
+ for iter482 in self.txn_ids:
+ oprot.writeI64(iter482)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -9472,10 +9803,10 @@ class AbortTxnsRequest:
if fid == 1:
if ftype == TType.LIST:
self.txn_ids = []
- (_etype458, _size455) = iprot.readListBegin()
- for _i459 in xrange(_size455):
- _elem460 = iprot.readI64()
- self.txn_ids.append(_elem460)
+ (_etype486, _size483) = iprot.readListBegin()
+ for _i487 in xrange(_size483):
+ _elem488 = iprot.readI64()
+ self.txn_ids.append(_elem488)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -9492,8 +9823,8 @@ class AbortTxnsRequest:
if self.txn_ids is not None:
oprot.writeFieldBegin('txn_ids', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.txn_ids))
- for iter461 in self.txn_ids:
- oprot.writeI64(iter461)
+ for iter489 in self.txn_ids:
+ oprot.writeI64(iter489)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -9788,11 +10119,11 @@ class LockRequest:
if fid == 1:
if ftype == TType.LIST:
self.component = []
- (_etype465, _size462) = iprot.readListBegin()
- for _i466 in xrange(_size462):
- _elem467 = LockComponent()
- _elem467.read(iprot)
- self.component.append(_elem467)
+ (_etype493, _size490) = iprot.readListBegin()
+ for _i494 in xrange(_size490):
+ _elem495 = LockComponent()
+ _elem495.read(iprot)
+ self.component.append(_elem495)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -9829,8 +10160,8 @@ class LockRequest:
if self.component is not None:
oprot.writeFieldBegin('component', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.component))
- for iter468 in self.component:
- iter468.write(oprot)
+ for iter496 in self.component:
+ iter496.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.txnid is not None:
@@ -10528,11 +10859,11 @@ class ShowLocksResponse:
if fid == 1:
if ftype == TType.LIST:
self.locks = []
- (_etype472, _size469) = iprot.readListBegin()
- for _i473 in xrange(_size469):
- _elem474 = ShowLocksResponseElement()
- _elem474.read(iprot)
- self.locks.append(_elem474)
+ (_etype500, _size497) = iprot.readListBegin()
+ for _i501 in xrange(_size497):
+ _elem502 = ShowLocksResponseElement()
+ _elem502.read(iprot)
+ self.locks.append(_elem502)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -10549,8 +10880,8 @@ class ShowLocksResponse:
if self.locks is not None:
oprot.writeFieldBegin('locks', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.locks))
- for iter475 in self.locks:
- iter475.write(oprot)
+ for iter503 in self.locks:
+ iter503.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -10765,20 +11096,20 @@ class HeartbeatTxnRangeResponse:
if fid == 1:
if ftype == TType.SET:
self.aborted = set()
- (_etype479, _size476) = iprot.readSetBegin()
- for _i480 in xrange(_size476):
- _elem481 = iprot.readI64()
- self.aborted.add(_elem481)
+ (_etype507, _size504) = iprot.readSetBegin()
+ for _i508 in xrange(_size504):
+ _elem509 = iprot.readI64()
+ self.aborted.add(_elem509)
iprot.readSetEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.SET:
self.nosuch = set()
- (_etype485, _size482) = iprot.readSetBegin()
- for _i486 in xrange(_size482):
- _elem487 = iprot.readI64()
- self.nosuch.add(_elem487)
+ (_etype513, _size510) = iprot.readSetBegin()
+ for _i514 in xrange(_size510):
+ _elem515 = iprot.readI64()
+ self.nosuch.add(_elem515)
iprot.readSetEnd()
else:
iprot.skip(ftype)
@@ -10795,15 +11126,15 @@ class HeartbeatTxnRangeResponse:
if self.aborted is not None:
oprot.writeFieldBegin('aborted', TType.SET, 1)
oprot.writeSetBegin(TType.I64, len(self.aborted))
- for iter488 in self.aborted:
- oprot.writeI64(iter488)
+ for iter516 in self.aborted:
+ oprot.writeI64(iter516)
oprot.writeSetEnd()
oprot.writeFieldEnd()
if self.nosuch is not None:
oprot.writeFieldBegin('nosuch', TType.SET, 2)
oprot.writeSetBegin(TType.I64, len(self.nosuch))
- for iter489 in self.nosuch:
- oprot.writeI64(iter489)
+ for iter517 in self.nosuch:
+ oprot.writeI64(iter517)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -10900,11 +11231,11 @@ class CompactionRequest:
elif fid == 6:
if ftype == TType.MAP:
self.properties = {}
- (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin()
- for _i494 in xrange(_size490):
- _key495 = iprot.readString()
- _val496 = iprot.readString()
- self.properties[_key495] = _val496
+ (_ktype519, _vtype520, _size518 ) = iprot.readMapBegin()
+ for _i522 in xrange(_size518):
+ _key523 = iprot.readString()
+ _val524 = iprot.readString()
+ self.properties[_key523] = _val524
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -10941,9 +11272,9 @@ class CompactionRequest:
if self.properties is not None:
oprot.writeFieldBegin('properties', TType.MAP, 6)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties))
- for kiter497,viter498 in self.properties.items():
- oprot.writeString(kiter497)
- oprot.writeString(viter498)
+ for kiter525,viter526 in self.properties.items():
+ oprot.writeString(kiter525)
+ oprot.writeString(viter526)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -11378,11 +11709,11 @@ class ShowCompactResponse:
if fid == 1:
if ftype == TType.LIST:
self.compacts = []
- (_etype502, _size499) = iprot.readListBegin()
- for _i503 in xrange(_size499):
- _elem504 = ShowCompactResponseElement()
- _elem504.read(iprot)
- self.compacts.append(_elem504)
+ (_etype530, _size527) = iprot.readListBegin()
+ for _i531 in xrange(_size527):
+ _elem532 = ShowCompactResponseElement()
+ _elem532.read(iprot)
+ self.compacts.append(_elem532)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -11399,8 +11730,8 @@ class ShowCompactResponse:
if self.compacts is not None:
oprot.writeFieldBegin('compacts', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.compacts))
- for iter505 in self.compacts:
- iter505.write(oprot)
+ for iter533 in self.compacts:
+ iter533.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -11481,10 +11812,10 @@ class AddDynamicPartitions:
elif fid == 4:
if ftype == TType.LIST:
self.partitionnames = []
- (_etype509, _size506) = iprot.readListBegin()
- for _i510 in xrange(_size506):
- _elem511 = iprot.readString()
- self.partitionnames.append(_elem511)
+ (_etype537, _size534) = iprot.readListBegin()
+ for _i538 in xrange(_size534):
+ _elem539 = iprot.readString()
+ self.partitionnames.append(_elem539)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -11518,8 +11849,8 @@ class AddDynamicPartitions:
if self.partitionnames is not None:
oprot.writeFieldBegin('partitionnames', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.partitionnames))
- for iter512 in self.partitionnames:
- oprot.writeString(iter512)
+ for iter540 in self.partitionnames:
+ oprot.writeString(iter540)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.operationType is not None:
@@ -11818,11 +12149,11 @@ class NotificationEventResponse:
if fid == 1:
if ftype == TType.LIST:
self.events = []
- (_etype516, _size513) = iprot.readListBegin()
- for _i517 in xrange(_size513):
- _elem518 = NotificationEvent()
- _elem518.read(iprot)
- self.events.append(_elem518)
+ (_etype544, _size541) = iprot.readListBegin()
+ for _i545 in xrange(_size541):
+ _elem546 = NotificationEvent()
+ _elem546.read(iprot)
+ self.events.append(_elem546)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -11839,8 +12170,8 @@ class NotificationEventResponse:
if self.events is not None:
oprot.writeFieldBegin('events', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.events))
- for iter519 in self.events:
- iter519.write(oprot)
+ for iter547 in self.events:
+ iter547.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -12121,20 +12452,20 @@ class InsertEventRequestData:
elif fid == 2:
if ftype == TType.LIST:
self.filesAdded = []
- (_etype523, _size520) = iprot.readListBegin()
- for _i524 in xrange(_size520):
- _elem525 = iprot.readString()
- self.filesAdded.append(_elem525)
+ (_etype551, _size548) = iprot.readListBegin()
+ for _i552 in xrange(_size548):
+ _elem553 = iprot.readString()
+ self.filesAdded.append(_elem553)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.filesAddedChecksum = []
- (_etype529, _size526) = iprot.readListBegin()
- for _i530 in xrange(_size526):
- _elem531 = iprot.readString()
- self.filesAddedChecksum.append(_elem531)
+ (_etype557, _size554) = iprot.readListBegin()
+ for _i558 in xrange(_size554):
+ _elem559 = iprot.readString()
+ self.filesAddedChecksum.append(_elem559)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12155,15 +12486,15 @@ class InsertEventRequestData:
if self.filesAdded is not None:
oprot.writeFieldBegin('filesAdded', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.filesAdded))
- for iter532 in self.filesAdded:
- oprot.writeString(iter532)
+ for iter560 in self.filesAdded:
+ oprot.writeString(iter560)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.filesAddedChecksum is not None:
oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum))
- for iter533 in self.filesAddedChecksum:
- oprot.writeString(iter533)
+ for iter561 in self.filesAddedChecksum:
+ oprot.writeString(iter561)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -12318,10 +12649,10 @@ class FireEventRequest:
elif fid == 5:
if ftype == TType.LIST:
self.partitionVals = []
- (_etype537, _size534) = iprot.readListBegin()
- for _i538 in xrange(_size534):
- _elem539 = iprot.readString()
- self.partitionVals.append(_elem539)
+ (_etype565, _size562) = iprot.readListBegin()
+ for _i566 in xrange(_size562):
+ _elem567 = iprot.readString()
+ self.partitionVals.append(_elem567)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12354,8 +12685,8 @@ class FireEventRequest:
if self.partitionVals is not None:
oprot.writeFieldBegin('partitionVals', TType.LIST, 5)
oprot.writeListBegin(TType.STRING, len(self.partitionVals))
- for iter540 in self.partitionVals:
- oprot.writeString(iter540)
+ for iter568 in self.partitionVals:
+ oprot.writeString(iter568)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -12542,12 +12873,12 @@ class GetFileMetadataByExprResult:
if fid == 1:
if ftype == TType.MAP:
self.metadata = {}
- (_ktype542, _vtype543, _size541 ) = iprot.readMapBegin()
- for _i545 in xrange(_size541):
- _key546 = iprot.readI64()
- _val547 = MetadataPpdResult()
- _val547.read(iprot)
- self.metadata[_key546] = _val547
+ (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin()
+ for _i573 in xrange(_size569):
+ _key574 = iprot.readI64()
+ _val575 = MetadataPpdResult()
+ _val575.read(iprot)
+ self.metadata[_key574] = _val575
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -12569,9 +12900,9 @@ class GetFileMetadataByExprResult:
if self.metadata is not None:
oprot.writeFieldBegin('metadata', TType.MAP, 1)
oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata))
- for kiter548,viter549 in self.metadata.items():
- oprot.writeI64(kiter548)
- viter549.write(oprot)
+ for kiter576,viter577 in self.metadata.items():
+ oprot.writeI64(kiter576)
+ viter577.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.isSupported is not None:
@@ -12641,10 +12972,10 @@ class GetFileMetadataByExprRequest:
if fid == 1:
if ftype == TType.LIST:
self.fileIds = []
- (_etype553, _size550) = iprot.readListBegin()
- for _i554 in xrange(_size550):
- _elem555 = iprot.readI64()
- self.fileIds.append(_elem555)
+ (_etype581, _size578) = iprot.readListBegin()
+ for _i582 in xrange(_size578):
+ _elem583 = iprot.readI64()
+ self.fileIds.append(_elem583)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12676,8 +13007,8 @@ class GetFileMetadataByExprRequest:
if self.fileIds is not None:
oprot.writeFieldBegin('fileIds', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.fileIds))
- for iter556 in self.fileIds:
- oprot.writeI64(iter556)
+ for iter584 in self.fileIds:
+ oprot.writeI64(iter584)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.expr is not None:
@@ -12751,11 +13082,11 @@ class GetFileMetadataResult:
if fid == 1:
if ftype == TType.MAP:
self.metadata = {}
- (_ktype558, _vtype559, _size557 ) = iprot.readMapBegin()
- for _i561 in xrange(_size557):
- _key562 = iprot.readI64()
- _val563 = iprot.readString()
- self.metadata[_key562] = _val563
+ (_ktype586, _vtype587, _size585 ) = iprot.readMapBegin()
+ for _i589 in xrange(_size585):
+ _key590 = iprot.readI64()
+ _val591 = iprot.readString()
+ self.metadata[_key590] = _val591
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -12777,9 +13108,9 @@ class GetFileMetadataResult:
if self.metadata is not None:
oprot.writeFieldBegin('metadata', TType.MAP, 1)
oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata))
- for kiter564,viter565 in self.metadata.items():
- oprot.writeI64(kiter564)
- oprot.writeString(viter565)
+ for kiter592,viter593 in self.metadata.items():
+ oprot.writeI64(kiter592)
+ oprot.writeString(viter593)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.isSupported is not None:
@@ -12840,10 +13171,10 @@ class GetFileMetadataRequest:
if fid == 1:
if ftype == TType.LIST:
self.fileIds = []
- (_etype569, _size566) = iprot.readListBegin()
- for _i570 in xrange(_size566):
- _elem571 = iprot.readI64()
- self.fileIds.append(_elem571)
+ (_etype597, _size594) = iprot.readListBegin()
+ for _i598 in xrange(_size594):
+ _elem599 = iprot.readI64()
+ self.fileIds.append(_elem599)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12860,8 +13191,8 @@ class GetFileMetadataRequest:
if self.fileIds is not None:
oprot.writeFieldBegin('fileIds', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.fileIds))
- for iter572 in self.fileIds:
- oprot.writeI64(iter572)
+ for iter600 in self.fileIds:
+ oprot.writeI64(iter600)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -12967,20 +13298,20 @@ class PutFileMetadataRequest:
if fid == 1:
if ftype == TType.LIST:
self.fileIds = []
- (_etype576, _size573) = iprot.readListBegin()
- for _i577 in xrange(_size573):
- _elem578 = iprot.readI64()
- self.fileIds.append(_elem578)
+ (_etype604, _size601) = iprot.readListBegin()
+ for _i605 in xrange(_size601):
+ _elem606 = iprot.readI64()
+ self.fileIds.append(_elem606)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.metadata = []
- (_etype582, _size579) = iprot.readListBegin()
- for _i583 in xrange(_size579):
- _elem584 = iprot.readString()
- self.metadata.append(_elem584)
+ (_etype610, _size607) = iprot.readListBegin()
+ for _i611 in xrange(_size607):
+ _elem612 = iprot.readString()
+ self.metadata.append(_elem612)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13002,15 +13333,15 @@ class PutFileMetadataRequest:
if self.fileIds is not None:
oprot.writeFieldBegin('fileIds', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.fileIds))
- for iter585 in self.fileIds:
- oprot.writeI64(iter585)
+ for iter613 in self.fileIds:
+ oprot.writeI64(iter613)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.metadata is not None:
oprot.writeFieldBegin('metadata', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.metadata))
- for iter586 in self.metadata:
- oprot.writeString(iter586)
+ for iter614 in self.metadata:
+ oprot.writeString(iter614)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.type is not None:
@@ -13118,10 +13449,10 @@ class ClearFileMetadataRequest:
if fid == 1:
if ftype == TType.LIST:
self.fileIds = []
- (_etype590, _size587) = iprot.readListBegin()
- for _i591 in xrange(_size587):
- _elem592 = iprot.readI64()
- self.fileIds.append(_elem592)
+ (_etype618, _size615) = iprot.readListBegin()
+ for _i619 in xrange(_size615):
+ _elem620 = iprot.readI64()
+ self.fileIds.append(_elem620)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13138,8 +13469,8 @@ class ClearFileMetadataRequest:
if self.fileIds is not None:
oprot.writeFieldBegin('fileIds', TType.LIST, 1)
oprot.writeListBegin(TType.I64, len(self.fileIds))
- for iter593 in self.fileIds:
- oprot.writeI64(iter593)
+ for iter621 in self.fileIds:
+ oprot.writeI64(iter621)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -13368,11 +13699,11 @@ class GetAllFunctionsResponse:
if fid == 1:
if ftype == TType.LIST:
self.functions = []
- (_etype597, _size594) = iprot.readListBegin()
- for _i598 in xrange(_size594):
- _elem599 = Function()
- _elem599.read(iprot)
- self.functions.append(_elem599)
+ (_etype625, _size622) = iprot.readListBegin()
+ for _i626 in xrange(_size622):
+ _elem627 = Function()
+ _elem627.read(iprot)
+ self.functions.append(_elem627)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13389,8 +13720,8 @@ class GetAllFunctionsResponse:
if self.functions is not None:
oprot.writeFieldBegin('functions', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.functions))
- for iter600 in self.functions:
- iter600.write(oprot)
+ for iter628 in self.functions:
+ iter628.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -13442,10 +13773,10 @@ class ClientCapabilities:
if fid == 1:
if ftype == TType.LIST:
self.values = []
- (_etype604, _size601) = iprot.readListBegin()
- for _i605 in xrange(_size601):
- _elem606 = iprot.readI32()
- self.values.append(_elem606)
+ (_etype632, _size629) = iprot.readListBegin()
+ for _i633 in xrange(_size629):
+ _elem634 = iprot.readI32()
+ self.values.append(_elem634)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13462,8 +13793,8 @@ class ClientCapabilities:
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 1)
oprot.writeListBegin(TType.I32, len(self.values))
- for iter607 in self.values:
- oprot.writeI32(iter607)
+ for iter635 in self.values:
+ oprot.writeI32(iter635)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -13692,10 +14023,10 @@ class GetTablesRequest:
elif fid == 2:
if ftype == TType.LIST:
self.tblNames = []
- (_etype611, _size608) = iprot.readListBegin()
- for _i612 in xrange(_size608):
- _elem613 = iprot.readString()
- self.tblNames.append(_elem613)
+ (_etype639, _size636) = iprot.readListBegin()
+ for _i640 in xrange(_size636):
+ _elem641 = iprot.readString()
+ self.tblNames.append(_elem641)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13722,8 +14053,8 @@ class GetTablesRequest:
if self.tblNames is not None:
oprot.writeFieldBegin('tblNames', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.tblNames))
- for iter614 in self.tblNames:
- oprot.writeString(iter614)
+ for iter642 in self.tblNames:
+ oprot.writeString(iter642)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.capabilities is not None:
@@ -13783,11 +14114,11 @@ class GetTablesResult:
if fid == 1:
if ftype == TType.LIST:
self.tables = []
- (_etype618, _size615) = iprot.readListBegin()
- for _i619 in xrange(_size615):
- _elem620 = Table()
- _elem620.read(iprot)
- self.tables.append(_elem620)
+ (_etype646, _size643) = iprot.readListBegin()
+ for _i647 in xrange(_size643):
+ _elem648 = Table()
+ _elem648.read(iprot)
+ self.tables.append(_elem648)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13804,8 +14135,8 @@ class GetTablesResult:
if self.tables is not None:
oprot.writeFieldBegin('tables', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.tables))
- for iter621 in self.tables:
- iter621.write(oprot)
+ for iter649 in self.tables:
+ iter649.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
index ea73b34..ddb7e18 100644
--- a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
+++ b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
@@ -1901,6 +1901,73 @@ class DropPartitionsRequest
::Thrift::Struct.generate_accessors self
end
+class PartitionValuesRequest
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ DBNAME = 1
+ TBLNAME = 2
+ PARTITIONKEYS = 3
+ APPLYDISTINCT = 4
+ FILTER = 5
+ PARTITIONORDER = 6
+ ASCENDING = 7
+ MAXPARTS = 8
+
+ FIELDS = {
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
+ TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'},
+ PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
+ APPLYDISTINCT => {:type => ::Thrift::Types::BOOL, :name => 'applyDistinct', :default => true, :optional => true},
+ FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter', :optional => true},
+ PARTITIONORDER => {:type => ::Thrift::Types::LIST, :name => 'partitionOrder', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}, :optional => true},
+ ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :default => true, :optional => true},
+ MAXPARTS => {:type => ::Thrift::Types::I64, :name => 'maxParts', :default => -1, :optional => true}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitionKeys is unset!') unless @partitionKeys
+ end
+
+ ::Thrift::Struct.generate_accessors self
+end
+
+class PartitionValuesRow
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ ROW = 1
+
+ FIELDS = {
+ ROW => {:type => ::Thrift::Types::LIST, :name => 'row', :element => {:type => ::Thrift::Types::STRING}}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field row is unset!') unless @row
+ end
+
+ ::Thrift::Struct.generate_accessors self
+end
+
+class PartitionValuesResponse
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ PARTITIONVALUES = 1
+
+ FIELDS = {
+ PARTITIONVALUES => {:type => ::Thrift::Types::LIST, :name => 'partitionValues', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PartitionValuesRow}}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitionValues is unset!') unless @partitionValues
+ end
+
+ ::Thrift::Struct.generate_accessors self
+end
+
class ResourceUri
include ::Thrift::Struct, ::Thrift::Struct_Union
RESOURCETYPE = 1
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
index 1c97139..7df14f8 100644
--- a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
+++ b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
@@ -1064,6 +1064,23 @@ module ThriftHiveMetastore
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result')
end
+ def get_partition_values(request)
+ send_get_partition_values(request)
+ return recv_get_partition_values()
+ end
+
+ def send_get_partition_values(request)
+ send_message('get_partition_values', Get_partition_values_args, :request => request)
+ end
+
+ def recv_get_partition_values()
+ result = receive_message(Get_partition_values_result)
+ return result.success unless result.success.nil?
+ raise result.o1 unless result.o1.nil?
+ raise result.o2 unless result.o2.nil?
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_values failed: unknown result')
+ end
+
def get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
return recv_get_partitions_ps()
@@ -3517,6 +3534,19 @@ module ThriftHiveMetastore
write_result(result, oprot, 'get_partition_names', seqid)
end
+ def process_get_partition_values(seqid, iprot, oprot)
+ args = read_args(iprot, Get_partition_values_args)
+ result = Get_partition_values_result.new()
+ begin
+ result.success = @handler.get_partition_values(args.request)
+ rescue ::MetaException => o1
+ result.o1 = o1
+ rescue ::NoSuchObjectException => o2
+ result.o2 = o2
+ end
+ write_result(result, oprot, 'get_partition_values', seqid)
+ end
+
def process_get_partitions_ps(seqid, iprot, oprot)
args = read_args(iprot, Get_partitions_ps_args)
result = Get_partitions_ps_result.new()
@@ -7065,6 +7095,42 @@ module ThriftHiveMetastore
::Thrift::Struct.generate_accessors self
end
+ class Get_partition_values_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ REQUEST = 1
+
+ FIELDS = {
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::PartitionValuesRequest}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class Get_partition_values_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ SUCCESS = 0
+ O1 = 1
+ O2 = 2
+
+ FIELDS = {
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::PartitionValuesResponse},
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
class Get_partitions_ps_args
include ::Thrift::Struct, ::Thrift::Struct_Union
DB_NAME = 1
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/main/thrift/hive_metastore.thrift
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift
index 090c3e3..8908ff2 100644
--- a/standalone-metastore/src/main/thrift/hive_metastore.thrift
+++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift
@@ -636,6 +636,25 @@ struct DropPartitionsRequest {
8: optional bool needResult=true
}
+struct PartitionValuesRequest {
+ 1: required string dbName,
+ 2: required string tblName,
+ 3: required list<FieldSchema> partitionKeys;
+ 4: optional bool applyDistinct = true;
+ 5: optional string filter;
+ 6: optional list<FieldSchema> partitionOrder;
+ 7: optional bool ascending = true;
+ 8: optional i64 maxParts = -1;
+}
+
+struct PartitionValuesRow {
+ 1: required list<string> row;
+}
+
+struct PartitionValuesResponse {
+ 1: required list<PartitionValuesRow> partitionValues;
+}
+
enum FunctionType {
JAVA = 1,
}
@@ -1274,6 +1293,9 @@ service ThriftHiveMetastore extends fb303.FacebookService
list<string> get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)
throws(1:NoSuchObjectException o1, 2:MetaException o2)
+ PartitionValuesResponse get_partition_values(1:PartitionValuesRequest request)
+ throws(1:MetaException o1, 2:NoSuchObjectException o2);
+
// get_partition*_ps methods allow filtering by a partial partition specification,
// as needed for dynamic partitions. The values that are not restricted should
// be empty strings. Nulls were considered (instead of "") but caused errors in
[03/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
index f0f0a57..8cf9e33 100644
--- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
+++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
@@ -12377,6 +12377,502 @@ class DropPartitionsRequest {
}
+class PartitionValuesRequest {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $dbName = null;
+ /**
+ * @var string
+ */
+ public $tblName = null;
+ /**
+ * @var \metastore\FieldSchema[]
+ */
+ public $partitionKeys = null;
+ /**
+ * @var bool
+ */
+ public $applyDistinct = true;
+ /**
+ * @var string
+ */
+ public $filter = null;
+ /**
+ * @var \metastore\FieldSchema[]
+ */
+ public $partitionOrder = null;
+ /**
+ * @var bool
+ */
+ public $ascending = true;
+ /**
+ * @var int
+ */
+ public $maxParts = -1;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'dbName',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'tblName',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'partitionKeys',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\FieldSchema',
+ ),
+ ),
+ 4 => array(
+ 'var' => 'applyDistinct',
+ 'type' => TType::BOOL,
+ ),
+ 5 => array(
+ 'var' => 'filter',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'partitionOrder',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\FieldSchema',
+ ),
+ ),
+ 7 => array(
+ 'var' => 'ascending',
+ 'type' => TType::BOOL,
+ ),
+ 8 => array(
+ 'var' => 'maxParts',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['dbName'])) {
+ $this->dbName = $vals['dbName'];
+ }
+ if (isset($vals['tblName'])) {
+ $this->tblName = $vals['tblName'];
+ }
+ if (isset($vals['partitionKeys'])) {
+ $this->partitionKeys = $vals['partitionKeys'];
+ }
+ if (isset($vals['applyDistinct'])) {
+ $this->applyDistinct = $vals['applyDistinct'];
+ }
+ if (isset($vals['filter'])) {
+ $this->filter = $vals['filter'];
+ }
+ if (isset($vals['partitionOrder'])) {
+ $this->partitionOrder = $vals['partitionOrder'];
+ }
+ if (isset($vals['ascending'])) {
+ $this->ascending = $vals['ascending'];
+ }
+ if (isset($vals['maxParts'])) {
+ $this->maxParts = $vals['maxParts'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'PartitionValuesRequest';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->dbName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->tblName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->partitionKeys = array();
+ $_size427 = 0;
+ $_etype430 = 0;
+ $xfer += $input->readListBegin($_etype430, $_size427);
+ for ($_i431 = 0; $_i431 < $_size427; ++$_i431)
+ {
+ $elem432 = null;
+ $elem432 = new \metastore\FieldSchema();
+ $xfer += $elem432->read($input);
+ $this->partitionKeys []= $elem432;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->applyDistinct);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->filter);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::LST) {
+ $this->partitionOrder = array();
+ $_size433 = 0;
+ $_etype436 = 0;
+ $xfer += $input->readListBegin($_etype436, $_size433);
+ for ($_i437 = 0; $_i437 < $_size433; ++$_i437)
+ {
+ $elem438 = null;
+ $elem438 = new \metastore\FieldSchema();
+ $xfer += $elem438->read($input);
+ $this->partitionOrder []= $elem438;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->ascending);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->maxParts);
+ } 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('PartitionValuesRequest');
+ if ($this->dbName !== null) {
+ $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1);
+ $xfer += $output->writeString($this->dbName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->tblName !== null) {
+ $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2);
+ $xfer += $output->writeString($this->tblName);
+ $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, 3);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->partitionKeys));
+ {
+ foreach ($this->partitionKeys as $iter439)
+ {
+ $xfer += $iter439->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->applyDistinct !== null) {
+ $xfer += $output->writeFieldBegin('applyDistinct', TType::BOOL, 4);
+ $xfer += $output->writeBool($this->applyDistinct);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->filter !== null) {
+ $xfer += $output->writeFieldBegin('filter', TType::STRING, 5);
+ $xfer += $output->writeString($this->filter);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->partitionOrder !== null) {
+ if (!is_array($this->partitionOrder)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('partitionOrder', TType::LST, 6);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->partitionOrder));
+ {
+ foreach ($this->partitionOrder as $iter440)
+ {
+ $xfer += $iter440->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ascending !== null) {
+ $xfer += $output->writeFieldBegin('ascending', TType::BOOL, 7);
+ $xfer += $output->writeBool($this->ascending);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->maxParts !== null) {
+ $xfer += $output->writeFieldBegin('maxParts', TType::I64, 8);
+ $xfer += $output->writeI64($this->maxParts);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class PartitionValuesRow {
+ static $_TSPEC;
+
+ /**
+ * @var string[]
+ */
+ public $row = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'row',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['row'])) {
+ $this->row = $vals['row'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'PartitionValuesRow';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::LST) {
+ $this->row = array();
+ $_size441 = 0;
+ $_etype444 = 0;
+ $xfer += $input->readListBegin($_etype444, $_size441);
+ for ($_i445 = 0; $_i445 < $_size441; ++$_i445)
+ {
+ $elem446 = null;
+ $xfer += $input->readString($elem446);
+ $this->row []= $elem446;
+ }
+ $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('PartitionValuesRow');
+ if ($this->row !== null) {
+ if (!is_array($this->row)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('row', TType::LST, 1);
+ {
+ $output->writeListBegin(TType::STRING, count($this->row));
+ {
+ foreach ($this->row as $iter447)
+ {
+ $xfer += $output->writeString($iter447);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class PartitionValuesResponse {
+ static $_TSPEC;
+
+ /**
+ * @var \metastore\PartitionValuesRow[]
+ */
+ public $partitionValues = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'partitionValues',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\PartitionValuesRow',
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['partitionValues'])) {
+ $this->partitionValues = $vals['partitionValues'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'PartitionValuesResponse';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::LST) {
+ $this->partitionValues = array();
+ $_size448 = 0;
+ $_etype451 = 0;
+ $xfer += $input->readListBegin($_etype451, $_size448);
+ for ($_i452 = 0; $_i452 < $_size448; ++$_i452)
+ {
+ $elem453 = null;
+ $elem453 = new \metastore\PartitionValuesRow();
+ $xfer += $elem453->read($input);
+ $this->partitionValues []= $elem453;
+ }
+ $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('PartitionValuesResponse');
+ if ($this->partitionValues !== null) {
+ if (!is_array($this->partitionValues)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('partitionValues', TType::LST, 1);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->partitionValues));
+ {
+ foreach ($this->partitionValues as $iter454)
+ {
+ $xfer += $iter454->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
class ResourceUri {
static $_TSPEC;
@@ -12652,15 +13148,15 @@ class Function {
case 8:
if ($ftype == TType::LST) {
$this->resourceUris = array();
- $_size427 = 0;
- $_etype430 = 0;
- $xfer += $input->readListBegin($_etype430, $_size427);
- for ($_i431 = 0; $_i431 < $_size427; ++$_i431)
+ $_size455 = 0;
+ $_etype458 = 0;
+ $xfer += $input->readListBegin($_etype458, $_size455);
+ for ($_i459 = 0; $_i459 < $_size455; ++$_i459)
{
- $elem432 = null;
- $elem432 = new \metastore\ResourceUri();
- $xfer += $elem432->read($input);
- $this->resourceUris []= $elem432;
+ $elem460 = null;
+ $elem460 = new \metastore\ResourceUri();
+ $xfer += $elem460->read($input);
+ $this->resourceUris []= $elem460;
}
$xfer += $input->readListEnd();
} else {
@@ -12723,9 +13219,9 @@ class Function {
{
$output->writeListBegin(TType::STRUCT, count($this->resourceUris));
{
- foreach ($this->resourceUris as $iter433)
+ foreach ($this->resourceUris as $iter461)
{
- $xfer += $iter433->write($output);
+ $xfer += $iter461->write($output);
}
}
$output->writeListEnd();
@@ -13067,15 +13563,15 @@ class GetOpenTxnsInfoResponse {
case 2:
if ($ftype == TType::LST) {
$this->open_txns = array();
- $_size434 = 0;
- $_etype437 = 0;
- $xfer += $input->readListBegin($_etype437, $_size434);
- for ($_i438 = 0; $_i438 < $_size434; ++$_i438)
+ $_size462 = 0;
+ $_etype465 = 0;
+ $xfer += $input->readListBegin($_etype465, $_size462);
+ for ($_i466 = 0; $_i466 < $_size462; ++$_i466)
{
- $elem439 = null;
- $elem439 = new \metastore\TxnInfo();
- $xfer += $elem439->read($input);
- $this->open_txns []= $elem439;
+ $elem467 = null;
+ $elem467 = new \metastore\TxnInfo();
+ $xfer += $elem467->read($input);
+ $this->open_txns []= $elem467;
}
$xfer += $input->readListEnd();
} else {
@@ -13108,9 +13604,9 @@ class GetOpenTxnsInfoResponse {
{
$output->writeListBegin(TType::STRUCT, count($this->open_txns));
{
- foreach ($this->open_txns as $iter440)
+ foreach ($this->open_txns as $iter468)
{
- $xfer += $iter440->write($output);
+ $xfer += $iter468->write($output);
}
}
$output->writeListEnd();
@@ -13214,14 +13710,14 @@ class GetOpenTxnsResponse {
case 2:
if ($ftype == TType::LST) {
$this->open_txns = array();
- $_size441 = 0;
- $_etype444 = 0;
- $xfer += $input->readListBegin($_etype444, $_size441);
- for ($_i445 = 0; $_i445 < $_size441; ++$_i445)
+ $_size469 = 0;
+ $_etype472 = 0;
+ $xfer += $input->readListBegin($_etype472, $_size469);
+ for ($_i473 = 0; $_i473 < $_size469; ++$_i473)
{
- $elem446 = null;
- $xfer += $input->readI64($elem446);
- $this->open_txns []= $elem446;
+ $elem474 = null;
+ $xfer += $input->readI64($elem474);
+ $this->open_txns []= $elem474;
}
$xfer += $input->readListEnd();
} else {
@@ -13268,9 +13764,9 @@ class GetOpenTxnsResponse {
{
$output->writeListBegin(TType::I64, count($this->open_txns));
{
- foreach ($this->open_txns as $iter447)
+ foreach ($this->open_txns as $iter475)
{
- $xfer += $output->writeI64($iter447);
+ $xfer += $output->writeI64($iter475);
}
}
$output->writeListEnd();
@@ -13488,14 +13984,14 @@ class OpenTxnsResponse {
case 1:
if ($ftype == TType::LST) {
$this->txn_ids = array();
- $_size448 = 0;
- $_etype451 = 0;
- $xfer += $input->readListBegin($_etype451, $_size448);
- for ($_i452 = 0; $_i452 < $_size448; ++$_i452)
+ $_size476 = 0;
+ $_etype479 = 0;
+ $xfer += $input->readListBegin($_etype479, $_size476);
+ for ($_i480 = 0; $_i480 < $_size476; ++$_i480)
{
- $elem453 = null;
- $xfer += $input->readI64($elem453);
- $this->txn_ids []= $elem453;
+ $elem481 = null;
+ $xfer += $input->readI64($elem481);
+ $this->txn_ids []= $elem481;
}
$xfer += $input->readListEnd();
} else {
@@ -13523,9 +14019,9 @@ class OpenTxnsResponse {
{
$output->writeListBegin(TType::I64, count($this->txn_ids));
{
- foreach ($this->txn_ids as $iter454)
+ foreach ($this->txn_ids as $iter482)
{
- $xfer += $output->writeI64($iter454);
+ $xfer += $output->writeI64($iter482);
}
}
$output->writeListEnd();
@@ -13664,14 +14160,14 @@ class AbortTxnsRequest {
case 1:
if ($ftype == TType::LST) {
$this->txn_ids = array();
- $_size455 = 0;
- $_etype458 = 0;
- $xfer += $input->readListBegin($_etype458, $_size455);
- for ($_i459 = 0; $_i459 < $_size455; ++$_i459)
+ $_size483 = 0;
+ $_etype486 = 0;
+ $xfer += $input->readListBegin($_etype486, $_size483);
+ for ($_i487 = 0; $_i487 < $_size483; ++$_i487)
{
- $elem460 = null;
- $xfer += $input->readI64($elem460);
- $this->txn_ids []= $elem460;
+ $elem488 = null;
+ $xfer += $input->readI64($elem488);
+ $this->txn_ids []= $elem488;
}
$xfer += $input->readListEnd();
} else {
@@ -13699,9 +14195,9 @@ class AbortTxnsRequest {
{
$output->writeListBegin(TType::I64, count($this->txn_ids));
{
- foreach ($this->txn_ids as $iter461)
+ foreach ($this->txn_ids as $iter489)
{
- $xfer += $output->writeI64($iter461);
+ $xfer += $output->writeI64($iter489);
}
}
$output->writeListEnd();
@@ -14121,15 +14617,15 @@ class LockRequest {
case 1:
if ($ftype == TType::LST) {
$this->component = array();
- $_size462 = 0;
- $_etype465 = 0;
- $xfer += $input->readListBegin($_etype465, $_size462);
- for ($_i466 = 0; $_i466 < $_size462; ++$_i466)
+ $_size490 = 0;
+ $_etype493 = 0;
+ $xfer += $input->readListBegin($_etype493, $_size490);
+ for ($_i494 = 0; $_i494 < $_size490; ++$_i494)
{
- $elem467 = null;
- $elem467 = new \metastore\LockComponent();
- $xfer += $elem467->read($input);
- $this->component []= $elem467;
+ $elem495 = null;
+ $elem495 = new \metastore\LockComponent();
+ $xfer += $elem495->read($input);
+ $this->component []= $elem495;
}
$xfer += $input->readListEnd();
} else {
@@ -14185,9 +14681,9 @@ class LockRequest {
{
$output->writeListBegin(TType::STRUCT, count($this->component));
{
- foreach ($this->component as $iter468)
+ foreach ($this->component as $iter496)
{
- $xfer += $iter468->write($output);
+ $xfer += $iter496->write($output);
}
}
$output->writeListEnd();
@@ -15130,15 +15626,15 @@ class ShowLocksResponse {
case 1:
if ($ftype == TType::LST) {
$this->locks = array();
- $_size469 = 0;
- $_etype472 = 0;
- $xfer += $input->readListBegin($_etype472, $_size469);
- for ($_i473 = 0; $_i473 < $_size469; ++$_i473)
+ $_size497 = 0;
+ $_etype500 = 0;
+ $xfer += $input->readListBegin($_etype500, $_size497);
+ for ($_i501 = 0; $_i501 < $_size497; ++$_i501)
{
- $elem474 = null;
- $elem474 = new \metastore\ShowLocksResponseElement();
- $xfer += $elem474->read($input);
- $this->locks []= $elem474;
+ $elem502 = null;
+ $elem502 = new \metastore\ShowLocksResponseElement();
+ $xfer += $elem502->read($input);
+ $this->locks []= $elem502;
}
$xfer += $input->readListEnd();
} else {
@@ -15166,9 +15662,9 @@ class ShowLocksResponse {
{
$output->writeListBegin(TType::STRUCT, count($this->locks));
{
- foreach ($this->locks as $iter475)
+ foreach ($this->locks as $iter503)
{
- $xfer += $iter475->write($output);
+ $xfer += $iter503->write($output);
}
}
$output->writeListEnd();
@@ -15443,17 +15939,17 @@ class HeartbeatTxnRangeResponse {
case 1:
if ($ftype == TType::SET) {
$this->aborted = array();
- $_size476 = 0;
- $_etype479 = 0;
- $xfer += $input->readSetBegin($_etype479, $_size476);
- for ($_i480 = 0; $_i480 < $_size476; ++$_i480)
+ $_size504 = 0;
+ $_etype507 = 0;
+ $xfer += $input->readSetBegin($_etype507, $_size504);
+ for ($_i508 = 0; $_i508 < $_size504; ++$_i508)
{
- $elem481 = null;
- $xfer += $input->readI64($elem481);
- if (is_scalar($elem481)) {
- $this->aborted[$elem481] = true;
+ $elem509 = null;
+ $xfer += $input->readI64($elem509);
+ if (is_scalar($elem509)) {
+ $this->aborted[$elem509] = true;
} else {
- $this->aborted []= $elem481;
+ $this->aborted []= $elem509;
}
}
$xfer += $input->readSetEnd();
@@ -15464,17 +15960,17 @@ class HeartbeatTxnRangeResponse {
case 2:
if ($ftype == TType::SET) {
$this->nosuch = array();
- $_size482 = 0;
- $_etype485 = 0;
- $xfer += $input->readSetBegin($_etype485, $_size482);
- for ($_i486 = 0; $_i486 < $_size482; ++$_i486)
+ $_size510 = 0;
+ $_etype513 = 0;
+ $xfer += $input->readSetBegin($_etype513, $_size510);
+ for ($_i514 = 0; $_i514 < $_size510; ++$_i514)
{
- $elem487 = null;
- $xfer += $input->readI64($elem487);
- if (is_scalar($elem487)) {
- $this->nosuch[$elem487] = true;
+ $elem515 = null;
+ $xfer += $input->readI64($elem515);
+ if (is_scalar($elem515)) {
+ $this->nosuch[$elem515] = true;
} else {
- $this->nosuch []= $elem487;
+ $this->nosuch []= $elem515;
}
}
$xfer += $input->readSetEnd();
@@ -15503,12 +15999,12 @@ class HeartbeatTxnRangeResponse {
{
$output->writeSetBegin(TType::I64, count($this->aborted));
{
- foreach ($this->aborted as $iter488 => $iter489)
+ foreach ($this->aborted as $iter516 => $iter517)
{
- if (is_scalar($iter489)) {
- $xfer += $output->writeI64($iter488);
+ if (is_scalar($iter517)) {
+ $xfer += $output->writeI64($iter516);
} else {
- $xfer += $output->writeI64($iter489);
+ $xfer += $output->writeI64($iter517);
}
}
}
@@ -15524,12 +16020,12 @@ class HeartbeatTxnRangeResponse {
{
$output->writeSetBegin(TType::I64, count($this->nosuch));
{
- foreach ($this->nosuch as $iter490 => $iter491)
+ foreach ($this->nosuch as $iter518 => $iter519)
{
- if (is_scalar($iter491)) {
- $xfer += $output->writeI64($iter490);
+ if (is_scalar($iter519)) {
+ $xfer += $output->writeI64($iter518);
} else {
- $xfer += $output->writeI64($iter491);
+ $xfer += $output->writeI64($iter519);
}
}
}
@@ -15688,17 +16184,17 @@ class CompactionRequest {
case 6:
if ($ftype == TType::MAP) {
$this->properties = array();
- $_size492 = 0;
- $_ktype493 = 0;
- $_vtype494 = 0;
- $xfer += $input->readMapBegin($_ktype493, $_vtype494, $_size492);
- for ($_i496 = 0; $_i496 < $_size492; ++$_i496)
+ $_size520 = 0;
+ $_ktype521 = 0;
+ $_vtype522 = 0;
+ $xfer += $input->readMapBegin($_ktype521, $_vtype522, $_size520);
+ for ($_i524 = 0; $_i524 < $_size520; ++$_i524)
{
- $key497 = '';
- $val498 = '';
- $xfer += $input->readString($key497);
- $xfer += $input->readString($val498);
- $this->properties[$key497] = $val498;
+ $key525 = '';
+ $val526 = '';
+ $xfer += $input->readString($key525);
+ $xfer += $input->readString($val526);
+ $this->properties[$key525] = $val526;
}
$xfer += $input->readMapEnd();
} else {
@@ -15751,10 +16247,10 @@ class CompactionRequest {
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties));
{
- foreach ($this->properties as $kiter499 => $viter500)
+ foreach ($this->properties as $kiter527 => $viter528)
{
- $xfer += $output->writeString($kiter499);
- $xfer += $output->writeString($viter500);
+ $xfer += $output->writeString($kiter527);
+ $xfer += $output->writeString($viter528);
}
}
$output->writeMapEnd();
@@ -16341,15 +16837,15 @@ class ShowCompactResponse {
case 1:
if ($ftype == TType::LST) {
$this->compacts = array();
- $_size501 = 0;
- $_etype504 = 0;
- $xfer += $input->readListBegin($_etype504, $_size501);
- for ($_i505 = 0; $_i505 < $_size501; ++$_i505)
+ $_size529 = 0;
+ $_etype532 = 0;
+ $xfer += $input->readListBegin($_etype532, $_size529);
+ for ($_i533 = 0; $_i533 < $_size529; ++$_i533)
{
- $elem506 = null;
- $elem506 = new \metastore\ShowCompactResponseElement();
- $xfer += $elem506->read($input);
- $this->compacts []= $elem506;
+ $elem534 = null;
+ $elem534 = new \metastore\ShowCompactResponseElement();
+ $xfer += $elem534->read($input);
+ $this->compacts []= $elem534;
}
$xfer += $input->readListEnd();
} else {
@@ -16377,9 +16873,9 @@ class ShowCompactResponse {
{
$output->writeListBegin(TType::STRUCT, count($this->compacts));
{
- foreach ($this->compacts as $iter507)
+ foreach ($this->compacts as $iter535)
{
- $xfer += $iter507->write($output);
+ $xfer += $iter535->write($output);
}
}
$output->writeListEnd();
@@ -16508,14 +17004,14 @@ class AddDynamicPartitions {
case 4:
if ($ftype == TType::LST) {
$this->partitionnames = array();
- $_size508 = 0;
- $_etype511 = 0;
- $xfer += $input->readListBegin($_etype511, $_size508);
- for ($_i512 = 0; $_i512 < $_size508; ++$_i512)
+ $_size536 = 0;
+ $_etype539 = 0;
+ $xfer += $input->readListBegin($_etype539, $_size536);
+ for ($_i540 = 0; $_i540 < $_size536; ++$_i540)
{
- $elem513 = null;
- $xfer += $input->readString($elem513);
- $this->partitionnames []= $elem513;
+ $elem541 = null;
+ $xfer += $input->readString($elem541);
+ $this->partitionnames []= $elem541;
}
$xfer += $input->readListEnd();
} else {
@@ -16565,9 +17061,9 @@ class AddDynamicPartitions {
{
$output->writeListBegin(TType::STRING, count($this->partitionnames));
{
- foreach ($this->partitionnames as $iter514)
+ foreach ($this->partitionnames as $iter542)
{
- $xfer += $output->writeString($iter514);
+ $xfer += $output->writeString($iter542);
}
}
$output->writeListEnd();
@@ -16948,15 +17444,15 @@ class NotificationEventResponse {
case 1:
if ($ftype == TType::LST) {
$this->events = array();
- $_size515 = 0;
- $_etype518 = 0;
- $xfer += $input->readListBegin($_etype518, $_size515);
- for ($_i519 = 0; $_i519 < $_size515; ++$_i519)
+ $_size543 = 0;
+ $_etype546 = 0;
+ $xfer += $input->readListBegin($_etype546, $_size543);
+ for ($_i547 = 0; $_i547 < $_size543; ++$_i547)
{
- $elem520 = null;
- $elem520 = new \metastore\NotificationEvent();
- $xfer += $elem520->read($input);
- $this->events []= $elem520;
+ $elem548 = null;
+ $elem548 = new \metastore\NotificationEvent();
+ $xfer += $elem548->read($input);
+ $this->events []= $elem548;
}
$xfer += $input->readListEnd();
} else {
@@ -16984,9 +17480,9 @@ class NotificationEventResponse {
{
$output->writeListBegin(TType::STRUCT, count($this->events));
{
- foreach ($this->events as $iter521)
+ foreach ($this->events as $iter549)
{
- $xfer += $iter521->write($output);
+ $xfer += $iter549->write($output);
}
}
$output->writeListEnd();
@@ -17331,14 +17827,14 @@ class InsertEventRequestData {
case 2:
if ($ftype == TType::LST) {
$this->filesAdded = array();
- $_size522 = 0;
- $_etype525 = 0;
- $xfer += $input->readListBegin($_etype525, $_size522);
- for ($_i526 = 0; $_i526 < $_size522; ++$_i526)
+ $_size550 = 0;
+ $_etype553 = 0;
+ $xfer += $input->readListBegin($_etype553, $_size550);
+ for ($_i554 = 0; $_i554 < $_size550; ++$_i554)
{
- $elem527 = null;
- $xfer += $input->readString($elem527);
- $this->filesAdded []= $elem527;
+ $elem555 = null;
+ $xfer += $input->readString($elem555);
+ $this->filesAdded []= $elem555;
}
$xfer += $input->readListEnd();
} else {
@@ -17348,14 +17844,14 @@ class InsertEventRequestData {
case 3:
if ($ftype == TType::LST) {
$this->filesAddedChecksum = array();
- $_size528 = 0;
- $_etype531 = 0;
- $xfer += $input->readListBegin($_etype531, $_size528);
- for ($_i532 = 0; $_i532 < $_size528; ++$_i532)
+ $_size556 = 0;
+ $_etype559 = 0;
+ $xfer += $input->readListBegin($_etype559, $_size556);
+ for ($_i560 = 0; $_i560 < $_size556; ++$_i560)
{
- $elem533 = null;
- $xfer += $input->readString($elem533);
- $this->filesAddedChecksum []= $elem533;
+ $elem561 = null;
+ $xfer += $input->readString($elem561);
+ $this->filesAddedChecksum []= $elem561;
}
$xfer += $input->readListEnd();
} else {
@@ -17388,9 +17884,9 @@ class InsertEventRequestData {
{
$output->writeListBegin(TType::STRING, count($this->filesAdded));
{
- foreach ($this->filesAdded as $iter534)
+ foreach ($this->filesAdded as $iter562)
{
- $xfer += $output->writeString($iter534);
+ $xfer += $output->writeString($iter562);
}
}
$output->writeListEnd();
@@ -17405,9 +17901,9 @@ class InsertEventRequestData {
{
$output->writeListBegin(TType::STRING, count($this->filesAddedChecksum));
{
- foreach ($this->filesAddedChecksum as $iter535)
+ foreach ($this->filesAddedChecksum as $iter563)
{
- $xfer += $output->writeString($iter535);
+ $xfer += $output->writeString($iter563);
}
}
$output->writeListEnd();
@@ -17625,14 +18121,14 @@ class FireEventRequest {
case 5:
if ($ftype == TType::LST) {
$this->partitionVals = array();
- $_size536 = 0;
- $_etype539 = 0;
- $xfer += $input->readListBegin($_etype539, $_size536);
- for ($_i540 = 0; $_i540 < $_size536; ++$_i540)
+ $_size564 = 0;
+ $_etype567 = 0;
+ $xfer += $input->readListBegin($_etype567, $_size564);
+ for ($_i568 = 0; $_i568 < $_size564; ++$_i568)
{
- $elem541 = null;
- $xfer += $input->readString($elem541);
- $this->partitionVals []= $elem541;
+ $elem569 = null;
+ $xfer += $input->readString($elem569);
+ $this->partitionVals []= $elem569;
}
$xfer += $input->readListEnd();
} else {
@@ -17683,9 +18179,9 @@ class FireEventRequest {
{
$output->writeListBegin(TType::STRING, count($this->partitionVals));
{
- foreach ($this->partitionVals as $iter542)
+ foreach ($this->partitionVals as $iter570)
{
- $xfer += $output->writeString($iter542);
+ $xfer += $output->writeString($iter570);
}
}
$output->writeListEnd();
@@ -17913,18 +18409,18 @@ class GetFileMetadataByExprResult {
case 1:
if ($ftype == TType::MAP) {
$this->metadata = array();
- $_size543 = 0;
- $_ktype544 = 0;
- $_vtype545 = 0;
- $xfer += $input->readMapBegin($_ktype544, $_vtype545, $_size543);
- for ($_i547 = 0; $_i547 < $_size543; ++$_i547)
+ $_size571 = 0;
+ $_ktype572 = 0;
+ $_vtype573 = 0;
+ $xfer += $input->readMapBegin($_ktype572, $_vtype573, $_size571);
+ for ($_i575 = 0; $_i575 < $_size571; ++$_i575)
{
- $key548 = 0;
- $val549 = new \metastore\MetadataPpdResult();
- $xfer += $input->readI64($key548);
- $val549 = new \metastore\MetadataPpdResult();
- $xfer += $val549->read($input);
- $this->metadata[$key548] = $val549;
+ $key576 = 0;
+ $val577 = new \metastore\MetadataPpdResult();
+ $xfer += $input->readI64($key576);
+ $val577 = new \metastore\MetadataPpdResult();
+ $xfer += $val577->read($input);
+ $this->metadata[$key576] = $val577;
}
$xfer += $input->readMapEnd();
} else {
@@ -17959,10 +18455,10 @@ class GetFileMetadataByExprResult {
{
$output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata));
{
- foreach ($this->metadata as $kiter550 => $viter551)
+ foreach ($this->metadata as $kiter578 => $viter579)
{
- $xfer += $output->writeI64($kiter550);
- $xfer += $viter551->write($output);
+ $xfer += $output->writeI64($kiter578);
+ $xfer += $viter579->write($output);
}
}
$output->writeMapEnd();
@@ -18064,14 +18560,14 @@ class GetFileMetadataByExprRequest {
case 1:
if ($ftype == TType::LST) {
$this->fileIds = array();
- $_size552 = 0;
- $_etype555 = 0;
- $xfer += $input->readListBegin($_etype555, $_size552);
- for ($_i556 = 0; $_i556 < $_size552; ++$_i556)
+ $_size580 = 0;
+ $_etype583 = 0;
+ $xfer += $input->readListBegin($_etype583, $_size580);
+ for ($_i584 = 0; $_i584 < $_size580; ++$_i584)
{
- $elem557 = null;
- $xfer += $input->readI64($elem557);
- $this->fileIds []= $elem557;
+ $elem585 = null;
+ $xfer += $input->readI64($elem585);
+ $this->fileIds []= $elem585;
}
$xfer += $input->readListEnd();
} else {
@@ -18120,9 +18616,9 @@ class GetFileMetadataByExprRequest {
{
$output->writeListBegin(TType::I64, count($this->fileIds));
{
- foreach ($this->fileIds as $iter558)
+ foreach ($this->fileIds as $iter586)
{
- $xfer += $output->writeI64($iter558);
+ $xfer += $output->writeI64($iter586);
}
}
$output->writeListEnd();
@@ -18216,17 +18712,17 @@ class GetFileMetadataResult {
case 1:
if ($ftype == TType::MAP) {
$this->metadata = array();
- $_size559 = 0;
- $_ktype560 = 0;
- $_vtype561 = 0;
- $xfer += $input->readMapBegin($_ktype560, $_vtype561, $_size559);
- for ($_i563 = 0; $_i563 < $_size559; ++$_i563)
+ $_size587 = 0;
+ $_ktype588 = 0;
+ $_vtype589 = 0;
+ $xfer += $input->readMapBegin($_ktype588, $_vtype589, $_size587);
+ for ($_i591 = 0; $_i591 < $_size587; ++$_i591)
{
- $key564 = 0;
- $val565 = '';
- $xfer += $input->readI64($key564);
- $xfer += $input->readString($val565);
- $this->metadata[$key564] = $val565;
+ $key592 = 0;
+ $val593 = '';
+ $xfer += $input->readI64($key592);
+ $xfer += $input->readString($val593);
+ $this->metadata[$key592] = $val593;
}
$xfer += $input->readMapEnd();
} else {
@@ -18261,10 +18757,10 @@ class GetFileMetadataResult {
{
$output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata));
{
- foreach ($this->metadata as $kiter566 => $viter567)
+ foreach ($this->metadata as $kiter594 => $viter595)
{
- $xfer += $output->writeI64($kiter566);
- $xfer += $output->writeString($viter567);
+ $xfer += $output->writeI64($kiter594);
+ $xfer += $output->writeString($viter595);
}
}
$output->writeMapEnd();
@@ -18333,14 +18829,14 @@ class GetFileMetadataRequest {
case 1:
if ($ftype == TType::LST) {
$this->fileIds = array();
- $_size568 = 0;
- $_etype571 = 0;
- $xfer += $input->readListBegin($_etype571, $_size568);
- for ($_i572 = 0; $_i572 < $_size568; ++$_i572)
+ $_size596 = 0;
+ $_etype599 = 0;
+ $xfer += $input->readListBegin($_etype599, $_size596);
+ for ($_i600 = 0; $_i600 < $_size596; ++$_i600)
{
- $elem573 = null;
- $xfer += $input->readI64($elem573);
- $this->fileIds []= $elem573;
+ $elem601 = null;
+ $xfer += $input->readI64($elem601);
+ $this->fileIds []= $elem601;
}
$xfer += $input->readListEnd();
} else {
@@ -18368,9 +18864,9 @@ class GetFileMetadataRequest {
{
$output->writeListBegin(TType::I64, count($this->fileIds));
{
- foreach ($this->fileIds as $iter574)
+ foreach ($this->fileIds as $iter602)
{
- $xfer += $output->writeI64($iter574);
+ $xfer += $output->writeI64($iter602);
}
}
$output->writeListEnd();
@@ -18510,14 +19006,14 @@ class PutFileMetadataRequest {
case 1:
if ($ftype == TType::LST) {
$this->fileIds = array();
- $_size575 = 0;
- $_etype578 = 0;
- $xfer += $input->readListBegin($_etype578, $_size575);
- for ($_i579 = 0; $_i579 < $_size575; ++$_i579)
+ $_size603 = 0;
+ $_etype606 = 0;
+ $xfer += $input->readListBegin($_etype606, $_size603);
+ for ($_i607 = 0; $_i607 < $_size603; ++$_i607)
{
- $elem580 = null;
- $xfer += $input->readI64($elem580);
- $this->fileIds []= $elem580;
+ $elem608 = null;
+ $xfer += $input->readI64($elem608);
+ $this->fileIds []= $elem608;
}
$xfer += $input->readListEnd();
} else {
@@ -18527,14 +19023,14 @@ class PutFileMetadataRequest {
case 2:
if ($ftype == TType::LST) {
$this->metadata = array();
- $_size581 = 0;
- $_etype584 = 0;
- $xfer += $input->readListBegin($_etype584, $_size581);
- for ($_i585 = 0; $_i585 < $_size581; ++$_i585)
+ $_size609 = 0;
+ $_etype612 = 0;
+ $xfer += $input->readListBegin($_etype612, $_size609);
+ for ($_i613 = 0; $_i613 < $_size609; ++$_i613)
{
- $elem586 = null;
- $xfer += $input->readString($elem586);
- $this->metadata []= $elem586;
+ $elem614 = null;
+ $xfer += $input->readString($elem614);
+ $this->metadata []= $elem614;
}
$xfer += $input->readListEnd();
} else {
@@ -18569,9 +19065,9 @@ class PutFileMetadataRequest {
{
$output->writeListBegin(TType::I64, count($this->fileIds));
{
- foreach ($this->fileIds as $iter587)
+ foreach ($this->fileIds as $iter615)
{
- $xfer += $output->writeI64($iter587);
+ $xfer += $output->writeI64($iter615);
}
}
$output->writeListEnd();
@@ -18586,9 +19082,9 @@ class PutFileMetadataRequest {
{
$output->writeListBegin(TType::STRING, count($this->metadata));
{
- foreach ($this->metadata as $iter588)
+ foreach ($this->metadata as $iter616)
{
- $xfer += $output->writeString($iter588);
+ $xfer += $output->writeString($iter616);
}
}
$output->writeListEnd();
@@ -18707,14 +19203,14 @@ class ClearFileMetadataRequest {
case 1:
if ($ftype == TType::LST) {
$this->fileIds = array();
- $_size589 = 0;
- $_etype592 = 0;
- $xfer += $input->readListBegin($_etype592, $_size589);
- for ($_i593 = 0; $_i593 < $_size589; ++$_i593)
+ $_size617 = 0;
+ $_etype620 = 0;
+ $xfer += $input->readListBegin($_etype620, $_size617);
+ for ($_i621 = 0; $_i621 < $_size617; ++$_i621)
{
- $elem594 = null;
- $xfer += $input->readI64($elem594);
- $this->fileIds []= $elem594;
+ $elem622 = null;
+ $xfer += $input->readI64($elem622);
+ $this->fileIds []= $elem622;
}
$xfer += $input->readListEnd();
} else {
@@ -18742,9 +19238,9 @@ class ClearFileMetadataRequest {
{
$output->writeListBegin(TType::I64, count($this->fileIds));
{
- foreach ($this->fileIds as $iter595)
+ foreach ($this->fileIds as $iter623)
{
- $xfer += $output->writeI64($iter595);
+ $xfer += $output->writeI64($iter623);
}
}
$output->writeListEnd();
@@ -19028,15 +19524,15 @@ class GetAllFunctionsResponse {
case 1:
if ($ftype == TType::LST) {
$this->functions = array();
- $_size596 = 0;
- $_etype599 = 0;
- $xfer += $input->readListBegin($_etype599, $_size596);
- for ($_i600 = 0; $_i600 < $_size596; ++$_i600)
+ $_size624 = 0;
+ $_etype627 = 0;
+ $xfer += $input->readListBegin($_etype627, $_size624);
+ for ($_i628 = 0; $_i628 < $_size624; ++$_i628)
{
- $elem601 = null;
- $elem601 = new \metastore\Function();
- $xfer += $elem601->read($input);
- $this->functions []= $elem601;
+ $elem629 = null;
+ $elem629 = new \metastore\Function();
+ $xfer += $elem629->read($input);
+ $this->functions []= $elem629;
}
$xfer += $input->readListEnd();
} else {
@@ -19064,9 +19560,9 @@ class GetAllFunctionsResponse {
{
$output->writeListBegin(TType::STRUCT, count($this->functions));
{
- foreach ($this->functions as $iter602)
+ foreach ($this->functions as $iter630)
{
- $xfer += $iter602->write($output);
+ $xfer += $iter630->write($output);
}
}
$output->writeListEnd();
@@ -19130,14 +19626,14 @@ class ClientCapabilities {
case 1:
if ($ftype == TType::LST) {
$this->values = array();
- $_size603 = 0;
- $_etype606 = 0;
- $xfer += $input->readListBegin($_etype606, $_size603);
- for ($_i607 = 0; $_i607 < $_size603; ++$_i607)
+ $_size631 = 0;
+ $_etype634 = 0;
+ $xfer += $input->readListBegin($_etype634, $_size631);
+ for ($_i635 = 0; $_i635 < $_size631; ++$_i635)
{
- $elem608 = null;
- $xfer += $input->readI32($elem608);
- $this->values []= $elem608;
+ $elem636 = null;
+ $xfer += $input->readI32($elem636);
+ $this->values []= $elem636;
}
$xfer += $input->readListEnd();
} else {
@@ -19165,9 +19661,9 @@ class ClientCapabilities {
{
$output->writeListBegin(TType::I32, count($this->values));
{
- foreach ($this->values as $iter609)
+ foreach ($this->values as $iter637)
{
- $xfer += $output->writeI32($iter609);
+ $xfer += $output->writeI32($iter637);
}
}
$output->writeListEnd();
@@ -19467,14 +19963,14 @@ class GetTablesRequest {
case 2:
if ($ftype == TType::LST) {
$this->tblNames = array();
- $_size610 = 0;
- $_etype613 = 0;
- $xfer += $input->readListBegin($_etype613, $_size610);
- for ($_i614 = 0; $_i614 < $_size610; ++$_i614)
+ $_size638 = 0;
+ $_etype641 = 0;
+ $xfer += $input->readListBegin($_etype641, $_size638);
+ for ($_i642 = 0; $_i642 < $_size638; ++$_i642)
{
- $elem615 = null;
- $xfer += $input->readString($elem615);
- $this->tblNames []= $elem615;
+ $elem643 = null;
+ $xfer += $input->readString($elem643);
+ $this->tblNames []= $elem643;
}
$xfer += $input->readListEnd();
} else {
@@ -19515,9 +20011,9 @@ class GetTablesRequest {
{
$output->writeListBegin(TType::STRING, count($this->tblNames));
{
- foreach ($this->tblNames as $iter616)
+ foreach ($this->tblNames as $iter644)
{
- $xfer += $output->writeString($iter616);
+ $xfer += $output->writeString($iter644);
}
}
$output->writeListEnd();
@@ -19590,15 +20086,15 @@ class GetTablesResult {
case 1:
if ($ftype == TType::LST) {
$this->tables = array();
- $_size617 = 0;
- $_etype620 = 0;
- $xfer += $input->readListBegin($_etype620, $_size617);
- for ($_i621 = 0; $_i621 < $_size617; ++$_i621)
+ $_size645 = 0;
+ $_etype648 = 0;
+ $xfer += $input->readListBegin($_etype648, $_size645);
+ for ($_i649 = 0; $_i649 < $_size645; ++$_i649)
{
- $elem622 = null;
- $elem622 = new \metastore\Table();
- $xfer += $elem622->read($input);
- $this->tables []= $elem622;
+ $elem650 = null;
+ $elem650 = new \metastore\Table();
+ $xfer += $elem650->read($input);
+ $this->tables []= $elem650;
}
$xfer += $input->readListEnd();
} else {
@@ -19626,9 +20122,9 @@ class GetTablesResult {
{
$output->writeListBegin(TType::STRUCT, count($this->tables));
{
- foreach ($this->tables as $iter623)
+ foreach ($this->tables as $iter651)
{
- $xfer += $iter623->write($output);
+ $xfer += $iter651->write($output);
}
}
$output->writeListEnd();
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
index 14527e6..de9ad1b 100755
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
@@ -86,6 +86,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)')
print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)')
print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)')
+ print(' PartitionValuesResponse get_partition_values(PartitionValuesRequest request)')
print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)')
print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)')
print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)')
@@ -626,6 +627,12 @@ elif cmd == 'get_partition_names':
sys.exit(1)
pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),))
+elif cmd == 'get_partition_values':
+ if len(args) != 1:
+ print('get_partition_values requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.get_partition_values(eval(args[0]),))
+
elif cmd == 'get_partitions_ps':
if len(args) != 4:
print('get_partitions_ps requires 4 args')
[02/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
index 7bf5898..3457901 100644
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
@@ -543,6 +543,13 @@ class Iface(fb303.FacebookService.Iface):
"""
pass
+ def get_partition_values(self, request):
+ """
+ Parameters:
+ - request
+ """
+ pass
+
def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
"""
Parameters:
@@ -3635,6 +3642,41 @@ class Client(fb303.FacebookService.Client, Iface):
raise result.o2
raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result")
+ def get_partition_values(self, request):
+ """
+ Parameters:
+ - request
+ """
+ self.send_get_partition_values(request)
+ return self.recv_get_partition_values()
+
+ def send_get_partition_values(self, request):
+ self._oprot.writeMessageBegin('get_partition_values', TMessageType.CALL, self._seqid)
+ args = get_partition_values_args()
+ args.request = request
+ args.write(self._oprot)
+ self._oprot.writeMessageEnd()
+ self._oprot.trans.flush()
+
+ def recv_get_partition_values(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
+ if mtype == TMessageType.EXCEPTION:
+ x = TApplicationException()
+ x.read(iprot)
+ iprot.readMessageEnd()
+ raise x
+ result = get_partition_values_result()
+ result.read(iprot)
+ iprot.readMessageEnd()
+ if result.success is not None:
+ return result.success
+ if result.o1 is not None:
+ raise result.o1
+ if result.o2 is not None:
+ raise result.o2
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_values failed: unknown result")
+
def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
"""
Parameters:
@@ -7151,6 +7193,7 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth
self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec
self._processMap["get_partition_names"] = Processor.process_get_partition_names
+ self._processMap["get_partition_values"] = Processor.process_get_partition_values
self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps
self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth
self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps
@@ -8864,6 +8907,31 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
oprot.writeMessageEnd()
oprot.trans.flush()
+ def process_get_partition_values(self, seqid, iprot, oprot):
+ args = get_partition_values_args()
+ args.read(iprot)
+ iprot.readMessageEnd()
+ result = get_partition_values_result()
+ try:
+ result.success = self._handler.get_partition_values(args.request)
+ msg_type = TMessageType.REPLY
+ except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
+ raise
+ except MetaException as o1:
+ msg_type = TMessageType.REPLY
+ result.o1 = o1
+ except NoSuchObjectException as o2:
+ msg_type = TMessageType.REPLY
+ result.o2 = o2
+ except Exception as ex:
+ msg_type = TMessageType.EXCEPTION
+ logging.exception(ex)
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
+ oprot.writeMessageBegin("get_partition_values", msg_type, seqid)
+ result.write(oprot)
+ oprot.writeMessageEnd()
+ oprot.trans.flush()
+
def process_get_partitions_ps(self, seqid, iprot, oprot):
args = get_partitions_ps_args()
args.read(iprot)
@@ -12072,10 +12140,10 @@ class get_databases_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype625, _size622) = iprot.readListBegin()
- for _i626 in xrange(_size622):
- _elem627 = iprot.readString()
- self.success.append(_elem627)
+ (_etype653, _size650) = iprot.readListBegin()
+ for _i654 in xrange(_size650):
+ _elem655 = iprot.readString()
+ self.success.append(_elem655)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12098,8 +12166,8 @@ class get_databases_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter628 in self.success:
- oprot.writeString(iter628)
+ for iter656 in self.success:
+ oprot.writeString(iter656)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -12204,10 +12272,10 @@ class get_all_databases_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype632, _size629) = iprot.readListBegin()
- for _i633 in xrange(_size629):
- _elem634 = iprot.readString()
- self.success.append(_elem634)
+ (_etype660, _size657) = iprot.readListBegin()
+ for _i661 in xrange(_size657):
+ _elem662 = iprot.readString()
+ self.success.append(_elem662)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -12230,8 +12298,8 @@ class get_all_databases_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter635 in self.success:
- oprot.writeString(iter635)
+ for iter663 in self.success:
+ oprot.writeString(iter663)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -13001,12 +13069,12 @@ class get_type_all_result:
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype637, _vtype638, _size636 ) = iprot.readMapBegin()
- for _i640 in xrange(_size636):
- _key641 = iprot.readString()
- _val642 = Type()
- _val642.read(iprot)
- self.success[_key641] = _val642
+ (_ktype665, _vtype666, _size664 ) = iprot.readMapBegin()
+ for _i668 in xrange(_size664):
+ _key669 = iprot.readString()
+ _val670 = Type()
+ _val670.read(iprot)
+ self.success[_key669] = _val670
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -13029,9 +13097,9 @@ class get_type_all_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
- for kiter643,viter644 in self.success.items():
- oprot.writeString(kiter643)
- viter644.write(oprot)
+ for kiter671,viter672 in self.success.items():
+ oprot.writeString(kiter671)
+ viter672.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.o2 is not None:
@@ -13174,11 +13242,11 @@ class get_fields_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype648, _size645) = iprot.readListBegin()
- for _i649 in xrange(_size645):
- _elem650 = FieldSchema()
- _elem650.read(iprot)
- self.success.append(_elem650)
+ (_etype676, _size673) = iprot.readListBegin()
+ for _i677 in xrange(_size673):
+ _elem678 = FieldSchema()
+ _elem678.read(iprot)
+ self.success.append(_elem678)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13213,8 +13281,8 @@ class get_fields_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter651 in self.success:
- iter651.write(oprot)
+ for iter679 in self.success:
+ iter679.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -13381,11 +13449,11 @@ class get_fields_with_environment_context_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype655, _size652) = iprot.readListBegin()
- for _i656 in xrange(_size652):
- _elem657 = FieldSchema()
- _elem657.read(iprot)
- self.success.append(_elem657)
+ (_etype683, _size680) = iprot.readListBegin()
+ for _i684 in xrange(_size680):
+ _elem685 = FieldSchema()
+ _elem685.read(iprot)
+ self.success.append(_elem685)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13420,8 +13488,8 @@ class get_fields_with_environment_context_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter658 in self.success:
- iter658.write(oprot)
+ for iter686 in self.success:
+ iter686.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -13574,11 +13642,11 @@ class get_schema_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype662, _size659) = iprot.readListBegin()
- for _i663 in xrange(_size659):
- _elem664 = FieldSchema()
- _elem664.read(iprot)
- self.success.append(_elem664)
+ (_etype690, _size687) = iprot.readListBegin()
+ for _i691 in xrange(_size687):
+ _elem692 = FieldSchema()
+ _elem692.read(iprot)
+ self.success.append(_elem692)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13613,8 +13681,8 @@ class get_schema_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter665 in self.success:
- iter665.write(oprot)
+ for iter693 in self.success:
+ iter693.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -13781,11 +13849,11 @@ class get_schema_with_environment_context_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype669, _size666) = iprot.readListBegin()
- for _i670 in xrange(_size666):
- _elem671 = FieldSchema()
- _elem671.read(iprot)
- self.success.append(_elem671)
+ (_etype697, _size694) = iprot.readListBegin()
+ for _i698 in xrange(_size694):
+ _elem699 = FieldSchema()
+ _elem699.read(iprot)
+ self.success.append(_elem699)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -13820,8 +13888,8 @@ class get_schema_with_environment_context_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter672 in self.success:
- iter672.write(oprot)
+ for iter700 in self.success:
+ iter700.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -14268,44 +14336,44 @@ class create_table_with_constraints_args:
elif fid == 2:
if ftype == TType.LIST:
self.primaryKeys = []
- (_etype676, _size673) = iprot.readListBegin()
- for _i677 in xrange(_size673):
- _elem678 = SQLPrimaryKey()
- _elem678.read(iprot)
- self.primaryKeys.append(_elem678)
+ (_etype704, _size701) = iprot.readListBegin()
+ for _i705 in xrange(_size701):
+ _elem706 = SQLPrimaryKey()
+ _elem706.read(iprot)
+ self.primaryKeys.append(_elem706)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.foreignKeys = []
- (_etype682, _size679) = iprot.readListBegin()
- for _i683 in xrange(_size679):
- _elem684 = SQLForeignKey()
- _elem684.read(iprot)
- self.foreignKeys.append(_elem684)
+ (_etype710, _size707) = iprot.readListBegin()
+ for _i711 in xrange(_size707):
+ _elem712 = SQLForeignKey()
+ _elem712.read(iprot)
+ self.foreignKeys.append(_elem712)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.uniqueConstraints = []
- (_etype688, _size685) = iprot.readListBegin()
- for _i689 in xrange(_size685):
- _elem690 = SQLUniqueConstraint()
- _elem690.read(iprot)
- self.uniqueConstraints.append(_elem690)
+ (_etype716, _size713) = iprot.readListBegin()
+ for _i717 in xrange(_size713):
+ _elem718 = SQLUniqueConstraint()
+ _elem718.read(iprot)
+ self.uniqueConstraints.append(_elem718)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.notNullConstraints = []
- (_etype694, _size691) = iprot.readListBegin()
- for _i695 in xrange(_size691):
- _elem696 = SQLNotNullConstraint()
- _elem696.read(iprot)
- self.notNullConstraints.append(_elem696)
+ (_etype722, _size719) = iprot.readListBegin()
+ for _i723 in xrange(_size719):
+ _elem724 = SQLNotNullConstraint()
+ _elem724.read(iprot)
+ self.notNullConstraints.append(_elem724)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -14326,29 +14394,29 @@ class create_table_with_constraints_args:
if self.primaryKeys is not None:
oprot.writeFieldBegin('primaryKeys', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys))
- for iter697 in self.primaryKeys:
- iter697.write(oprot)
+ for iter725 in self.primaryKeys:
+ iter725.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 iter698 in self.foreignKeys:
- iter698.write(oprot)
+ for iter726 in self.foreignKeys:
+ iter726.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.uniqueConstraints is not None:
oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4)
oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints))
- for iter699 in self.uniqueConstraints:
- iter699.write(oprot)
+ for iter727 in self.uniqueConstraints:
+ iter727.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.notNullConstraints is not None:
oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5)
oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints))
- for iter700 in self.notNullConstraints:
- iter700.write(oprot)
+ for iter728 in self.notNullConstraints:
+ iter728.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15614,10 +15682,10 @@ class truncate_table_args:
elif fid == 3:
if ftype == TType.LIST:
self.partNames = []
- (_etype704, _size701) = iprot.readListBegin()
- for _i705 in xrange(_size701):
- _elem706 = iprot.readString()
- self.partNames.append(_elem706)
+ (_etype732, _size729) = iprot.readListBegin()
+ for _i733 in xrange(_size729):
+ _elem734 = iprot.readString()
+ self.partNames.append(_elem734)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15642,8 +15710,8 @@ class truncate_table_args:
if self.partNames is not None:
oprot.writeFieldBegin('partNames', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.partNames))
- for iter707 in self.partNames:
- oprot.writeString(iter707)
+ for iter735 in self.partNames:
+ oprot.writeString(iter735)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -15843,10 +15911,10 @@ class get_tables_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype711, _size708) = iprot.readListBegin()
- for _i712 in xrange(_size708):
- _elem713 = iprot.readString()
- self.success.append(_elem713)
+ (_etype739, _size736) = iprot.readListBegin()
+ for _i740 in xrange(_size736):
+ _elem741 = iprot.readString()
+ self.success.append(_elem741)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -15869,8 +15937,8 @@ class get_tables_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter714 in self.success:
- oprot.writeString(iter714)
+ for iter742 in self.success:
+ oprot.writeString(iter742)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -16020,10 +16088,10 @@ class get_tables_by_type_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype718, _size715) = iprot.readListBegin()
- for _i719 in xrange(_size715):
- _elem720 = iprot.readString()
- self.success.append(_elem720)
+ (_etype746, _size743) = iprot.readListBegin()
+ for _i747 in xrange(_size743):
+ _elem748 = iprot.readString()
+ self.success.append(_elem748)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16046,8 +16114,8 @@ class get_tables_by_type_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter721 in self.success:
- oprot.writeString(iter721)
+ for iter749 in self.success:
+ oprot.writeString(iter749)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -16120,10 +16188,10 @@ class get_table_meta_args:
elif fid == 3:
if ftype == TType.LIST:
self.tbl_types = []
- (_etype725, _size722) = iprot.readListBegin()
- for _i726 in xrange(_size722):
- _elem727 = iprot.readString()
- self.tbl_types.append(_elem727)
+ (_etype753, _size750) = iprot.readListBegin()
+ for _i754 in xrange(_size750):
+ _elem755 = iprot.readString()
+ self.tbl_types.append(_elem755)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16148,8 +16216,8 @@ class get_table_meta_args:
if self.tbl_types is not None:
oprot.writeFieldBegin('tbl_types', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.tbl_types))
- for iter728 in self.tbl_types:
- oprot.writeString(iter728)
+ for iter756 in self.tbl_types:
+ oprot.writeString(iter756)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -16205,11 +16273,11 @@ class get_table_meta_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype732, _size729) = iprot.readListBegin()
- for _i733 in xrange(_size729):
- _elem734 = TableMeta()
- _elem734.read(iprot)
- self.success.append(_elem734)
+ (_etype760, _size757) = iprot.readListBegin()
+ for _i761 in xrange(_size757):
+ _elem762 = TableMeta()
+ _elem762.read(iprot)
+ self.success.append(_elem762)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16232,8 +16300,8 @@ class get_table_meta_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter735 in self.success:
- iter735.write(oprot)
+ for iter763 in self.success:
+ iter763.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -16357,10 +16425,10 @@ class get_all_tables_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype739, _size736) = iprot.readListBegin()
- for _i740 in xrange(_size736):
- _elem741 = iprot.readString()
- self.success.append(_elem741)
+ (_etype767, _size764) = iprot.readListBegin()
+ for _i768 in xrange(_size764):
+ _elem769 = iprot.readString()
+ self.success.append(_elem769)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16383,8 +16451,8 @@ class get_all_tables_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter742 in self.success:
- oprot.writeString(iter742)
+ for iter770 in self.success:
+ oprot.writeString(iter770)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -16620,10 +16688,10 @@ class get_table_objects_by_name_args:
elif fid == 2:
if ftype == TType.LIST:
self.tbl_names = []
- (_etype746, _size743) = iprot.readListBegin()
- for _i747 in xrange(_size743):
- _elem748 = iprot.readString()
- self.tbl_names.append(_elem748)
+ (_etype774, _size771) = iprot.readListBegin()
+ for _i775 in xrange(_size771):
+ _elem776 = iprot.readString()
+ self.tbl_names.append(_elem776)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16644,8 +16712,8 @@ class get_table_objects_by_name_args:
if self.tbl_names is not None:
oprot.writeFieldBegin('tbl_names', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.tbl_names))
- for iter749 in self.tbl_names:
- oprot.writeString(iter749)
+ for iter777 in self.tbl_names:
+ oprot.writeString(iter777)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -16697,11 +16765,11 @@ class get_table_objects_by_name_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype753, _size750) = iprot.readListBegin()
- for _i754 in xrange(_size750):
- _elem755 = Table()
- _elem755.read(iprot)
- self.success.append(_elem755)
+ (_etype781, _size778) = iprot.readListBegin()
+ for _i782 in xrange(_size778):
+ _elem783 = Table()
+ _elem783.read(iprot)
+ self.success.append(_elem783)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -16718,8 +16786,8 @@ class get_table_objects_by_name_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter756 in self.success:
- iter756.write(oprot)
+ for iter784 in self.success:
+ iter784.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -17202,10 +17270,10 @@ class get_table_names_by_filter_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype760, _size757) = iprot.readListBegin()
- for _i761 in xrange(_size757):
- _elem762 = iprot.readString()
- self.success.append(_elem762)
+ (_etype788, _size785) = iprot.readListBegin()
+ for _i789 in xrange(_size785):
+ _elem790 = iprot.readString()
+ self.success.append(_elem790)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -17240,8 +17308,8 @@ class get_table_names_by_filter_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter763 in self.success:
- oprot.writeString(iter763)
+ for iter791 in self.success:
+ oprot.writeString(iter791)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -18211,11 +18279,11 @@ class add_partitions_args:
if fid == 1:
if ftype == TType.LIST:
self.new_parts = []
- (_etype767, _size764) = iprot.readListBegin()
- for _i768 in xrange(_size764):
- _elem769 = Partition()
- _elem769.read(iprot)
- self.new_parts.append(_elem769)
+ (_etype795, _size792) = iprot.readListBegin()
+ for _i796 in xrange(_size792):
+ _elem797 = Partition()
+ _elem797.read(iprot)
+ self.new_parts.append(_elem797)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -18232,8 +18300,8 @@ class add_partitions_args:
if self.new_parts is not None:
oprot.writeFieldBegin('new_parts', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
- for iter770 in self.new_parts:
- iter770.write(oprot)
+ for iter798 in self.new_parts:
+ iter798.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -18391,11 +18459,11 @@ class add_partitions_pspec_args:
if fid == 1:
if ftype == TType.LIST:
self.new_parts = []
- (_etype774, _size771) = iprot.readListBegin()
- for _i775 in xrange(_size771):
- _elem776 = PartitionSpec()
- _elem776.read(iprot)
- self.new_parts.append(_elem776)
+ (_etype802, _size799) = iprot.readListBegin()
+ for _i803 in xrange(_size799):
+ _elem804 = PartitionSpec()
+ _elem804.read(iprot)
+ self.new_parts.append(_elem804)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -18412,8 +18480,8 @@ class add_partitions_pspec_args:
if self.new_parts is not None:
oprot.writeFieldBegin('new_parts', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
- for iter777 in self.new_parts:
- iter777.write(oprot)
+ for iter805 in self.new_parts:
+ iter805.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -18587,10 +18655,10 @@ class append_partition_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype781, _size778) = iprot.readListBegin()
- for _i782 in xrange(_size778):
- _elem783 = iprot.readString()
- self.part_vals.append(_elem783)
+ (_etype809, _size806) = iprot.readListBegin()
+ for _i810 in xrange(_size806):
+ _elem811 = iprot.readString()
+ self.part_vals.append(_elem811)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -18615,8 +18683,8 @@ class append_partition_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter784 in self.part_vals:
- oprot.writeString(iter784)
+ for iter812 in self.part_vals:
+ oprot.writeString(iter812)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -18969,10 +19037,10 @@ class append_partition_with_environment_context_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype788, _size785) = iprot.readListBegin()
- for _i789 in xrange(_size785):
- _elem790 = iprot.readString()
- self.part_vals.append(_elem790)
+ (_etype816, _size813) = iprot.readListBegin()
+ for _i817 in xrange(_size813):
+ _elem818 = iprot.readString()
+ self.part_vals.append(_elem818)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19003,8 +19071,8 @@ class append_partition_with_environment_context_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter791 in self.part_vals:
- oprot.writeString(iter791)
+ for iter819 in self.part_vals:
+ oprot.writeString(iter819)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.environment_context is not None:
@@ -19599,10 +19667,10 @@ class drop_partition_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype795, _size792) = iprot.readListBegin()
- for _i796 in xrange(_size792):
- _elem797 = iprot.readString()
- self.part_vals.append(_elem797)
+ (_etype823, _size820) = iprot.readListBegin()
+ for _i824 in xrange(_size820):
+ _elem825 = iprot.readString()
+ self.part_vals.append(_elem825)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19632,8 +19700,8 @@ class drop_partition_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter798 in self.part_vals:
- oprot.writeString(iter798)
+ for iter826 in self.part_vals:
+ oprot.writeString(iter826)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.deleteData is not None:
@@ -19806,10 +19874,10 @@ class drop_partition_with_environment_context_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype802, _size799) = iprot.readListBegin()
- for _i803 in xrange(_size799):
- _elem804 = iprot.readString()
- self.part_vals.append(_elem804)
+ (_etype830, _size827) = iprot.readListBegin()
+ for _i831 in xrange(_size827):
+ _elem832 = iprot.readString()
+ self.part_vals.append(_elem832)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -19845,8 +19913,8 @@ class drop_partition_with_environment_context_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter805 in self.part_vals:
- oprot.writeString(iter805)
+ for iter833 in self.part_vals:
+ oprot.writeString(iter833)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.deleteData is not None:
@@ -20583,10 +20651,10 @@ class get_partition_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype809, _size806) = iprot.readListBegin()
- for _i810 in xrange(_size806):
- _elem811 = iprot.readString()
- self.part_vals.append(_elem811)
+ (_etype837, _size834) = iprot.readListBegin()
+ for _i838 in xrange(_size834):
+ _elem839 = iprot.readString()
+ self.part_vals.append(_elem839)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -20611,8 +20679,8 @@ class get_partition_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter812 in self.part_vals:
- oprot.writeString(iter812)
+ for iter840 in self.part_vals:
+ oprot.writeString(iter840)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -20771,11 +20839,11 @@ class exchange_partition_args:
if fid == 1:
if ftype == TType.MAP:
self.partitionSpecs = {}
- (_ktype814, _vtype815, _size813 ) = iprot.readMapBegin()
- for _i817 in xrange(_size813):
- _key818 = iprot.readString()
- _val819 = iprot.readString()
- self.partitionSpecs[_key818] = _val819
+ (_ktype842, _vtype843, _size841 ) = iprot.readMapBegin()
+ for _i845 in xrange(_size841):
+ _key846 = iprot.readString()
+ _val847 = iprot.readString()
+ self.partitionSpecs[_key846] = _val847
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -20812,9 +20880,9 @@ class exchange_partition_args:
if self.partitionSpecs is not None:
oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
- for kiter820,viter821 in self.partitionSpecs.items():
- oprot.writeString(kiter820)
- oprot.writeString(viter821)
+ for kiter848,viter849 in self.partitionSpecs.items():
+ oprot.writeString(kiter848)
+ oprot.writeString(viter849)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.source_db is not None:
@@ -21019,11 +21087,11 @@ class exchange_partitions_args:
if fid == 1:
if ftype == TType.MAP:
self.partitionSpecs = {}
- (_ktype823, _vtype824, _size822 ) = iprot.readMapBegin()
- for _i826 in xrange(_size822):
- _key827 = iprot.readString()
- _val828 = iprot.readString()
- self.partitionSpecs[_key827] = _val828
+ (_ktype851, _vtype852, _size850 ) = iprot.readMapBegin()
+ for _i854 in xrange(_size850):
+ _key855 = iprot.readString()
+ _val856 = iprot.readString()
+ self.partitionSpecs[_key855] = _val856
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -21060,9 +21128,9 @@ class exchange_partitions_args:
if self.partitionSpecs is not None:
oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs))
- for kiter829,viter830 in self.partitionSpecs.items():
- oprot.writeString(kiter829)
- oprot.writeString(viter830)
+ for kiter857,viter858 in self.partitionSpecs.items():
+ oprot.writeString(kiter857)
+ oprot.writeString(viter858)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.source_db is not None:
@@ -21145,11 +21213,11 @@ class exchange_partitions_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype834, _size831) = iprot.readListBegin()
- for _i835 in xrange(_size831):
- _elem836 = Partition()
- _elem836.read(iprot)
- self.success.append(_elem836)
+ (_etype862, _size859) = iprot.readListBegin()
+ for _i863 in xrange(_size859):
+ _elem864 = Partition()
+ _elem864.read(iprot)
+ self.success.append(_elem864)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21190,8 +21258,8 @@ class exchange_partitions_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter837 in self.success:
- iter837.write(oprot)
+ for iter865 in self.success:
+ iter865.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -21285,10 +21353,10 @@ class get_partition_with_auth_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype841, _size838) = iprot.readListBegin()
- for _i842 in xrange(_size838):
- _elem843 = iprot.readString()
- self.part_vals.append(_elem843)
+ (_etype869, _size866) = iprot.readListBegin()
+ for _i870 in xrange(_size866):
+ _elem871 = iprot.readString()
+ self.part_vals.append(_elem871)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21300,10 +21368,10 @@ class get_partition_with_auth_args:
elif fid == 5:
if ftype == TType.LIST:
self.group_names = []
- (_etype847, _size844) = iprot.readListBegin()
- for _i848 in xrange(_size844):
- _elem849 = iprot.readString()
- self.group_names.append(_elem849)
+ (_etype875, _size872) = iprot.readListBegin()
+ for _i876 in xrange(_size872):
+ _elem877 = iprot.readString()
+ self.group_names.append(_elem877)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21328,8 +21396,8 @@ class get_partition_with_auth_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter850 in self.part_vals:
- oprot.writeString(iter850)
+ for iter878 in self.part_vals:
+ oprot.writeString(iter878)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.user_name is not None:
@@ -21339,8 +21407,8 @@ class get_partition_with_auth_args:
if self.group_names is not None:
oprot.writeFieldBegin('group_names', TType.LIST, 5)
oprot.writeListBegin(TType.STRING, len(self.group_names))
- for iter851 in self.group_names:
- oprot.writeString(iter851)
+ for iter879 in self.group_names:
+ oprot.writeString(iter879)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -21769,11 +21837,11 @@ class get_partitions_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype855, _size852) = iprot.readListBegin()
- for _i856 in xrange(_size852):
- _elem857 = Partition()
- _elem857.read(iprot)
- self.success.append(_elem857)
+ (_etype883, _size880) = iprot.readListBegin()
+ for _i884 in xrange(_size880):
+ _elem885 = Partition()
+ _elem885.read(iprot)
+ self.success.append(_elem885)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21802,8 +21870,8 @@ class get_partitions_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter858 in self.success:
- iter858.write(oprot)
+ for iter886 in self.success:
+ iter886.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -21897,10 +21965,10 @@ class get_partitions_with_auth_args:
elif fid == 5:
if ftype == TType.LIST:
self.group_names = []
- (_etype862, _size859) = iprot.readListBegin()
- for _i863 in xrange(_size859):
- _elem864 = iprot.readString()
- self.group_names.append(_elem864)
+ (_etype890, _size887) = iprot.readListBegin()
+ for _i891 in xrange(_size887):
+ _elem892 = iprot.readString()
+ self.group_names.append(_elem892)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -21933,8 +22001,8 @@ class get_partitions_with_auth_args:
if self.group_names is not None:
oprot.writeFieldBegin('group_names', TType.LIST, 5)
oprot.writeListBegin(TType.STRING, len(self.group_names))
- for iter865 in self.group_names:
- oprot.writeString(iter865)
+ for iter893 in self.group_names:
+ oprot.writeString(iter893)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -21995,11 +22063,11 @@ class get_partitions_with_auth_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype869, _size866) = iprot.readListBegin()
- for _i870 in xrange(_size866):
- _elem871 = Partition()
- _elem871.read(iprot)
- self.success.append(_elem871)
+ (_etype897, _size894) = iprot.readListBegin()
+ for _i898 in xrange(_size894):
+ _elem899 = Partition()
+ _elem899.read(iprot)
+ self.success.append(_elem899)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22028,8 +22096,8 @@ class get_partitions_with_auth_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter872 in self.success:
- iter872.write(oprot)
+ for iter900 in self.success:
+ iter900.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -22187,11 +22255,11 @@ class get_partitions_pspec_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype876, _size873) = iprot.readListBegin()
- for _i877 in xrange(_size873):
- _elem878 = PartitionSpec()
- _elem878.read(iprot)
- self.success.append(_elem878)
+ (_etype904, _size901) = iprot.readListBegin()
+ for _i905 in xrange(_size901):
+ _elem906 = PartitionSpec()
+ _elem906.read(iprot)
+ self.success.append(_elem906)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22220,8 +22288,8 @@ class get_partitions_pspec_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter879 in self.success:
- iter879.write(oprot)
+ for iter907 in self.success:
+ iter907.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -22379,10 +22447,10 @@ class get_partition_names_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype883, _size880) = iprot.readListBegin()
- for _i884 in xrange(_size880):
- _elem885 = iprot.readString()
- self.success.append(_elem885)
+ (_etype911, _size908) = iprot.readListBegin()
+ for _i912 in xrange(_size908):
+ _elem913 = iprot.readString()
+ self.success.append(_elem913)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22411,8 +22479,8 @@ class get_partition_names_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter886 in self.success:
- oprot.writeString(iter886)
+ for iter914 in self.success:
+ oprot.writeString(iter914)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -22448,6 +22516,165 @@ class get_partition_names_result:
def __ne__(self, other):
return not (self == other)
+class get_partition_values_args:
+ """
+ Attributes:
+ - request
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.STRUCT, 'request', (PartitionValuesRequest, PartitionValuesRequest.thrift_spec), None, ), # 1
+ )
+
+ def __init__(self, request=None,):
+ self.request = request
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRUCT:
+ self.request = PartitionValuesRequest()
+ self.request.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('get_partition_values_args')
+ if self.request is not None:
+ oprot.writeFieldBegin('request', TType.STRUCT, 1)
+ self.request.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.request)
+ return value
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.iteritems()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
+class get_partition_values_result:
+ """
+ Attributes:
+ - success
+ - o1
+ - o2
+ """
+
+ thrift_spec = (
+ (0, TType.STRUCT, 'success', (PartitionValuesResponse, PartitionValuesResponse.thrift_spec), None, ), # 0
+ (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1
+ (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2
+ )
+
+ def __init__(self, success=None, o1=None, o2=None,):
+ self.success = success
+ self.o1 = o1
+ self.o2 = o2
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 0:
+ if ftype == TType.STRUCT:
+ self.success = PartitionValuesResponse()
+ self.success.read(iprot)
+ else:
+ iprot.skip(ftype)
+ elif fid == 1:
+ if ftype == TType.STRUCT:
+ self.o1 = MetaException()
+ self.o1.read(iprot)
+ else:
+ iprot.skip(ftype)
+ elif fid == 2:
+ if ftype == TType.STRUCT:
+ self.o2 = NoSuchObjectException()
+ self.o2.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('get_partition_values_result')
+ if self.success is not None:
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
+ self.success.write(oprot)
+ oprot.writeFieldEnd()
+ if self.o1 is not None:
+ oprot.writeFieldBegin('o1', TType.STRUCT, 1)
+ self.o1.write(oprot)
+ oprot.writeFieldEnd()
+ if self.o2 is not None:
+ oprot.writeFieldBegin('o2', TType.STRUCT, 2)
+ self.o2.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.success)
+ value = (value * 31) ^ hash(self.o1)
+ value = (value * 31) ^ hash(self.o2)
+ return value
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.iteritems()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
class get_partitions_ps_args:
"""
Attributes:
@@ -22493,10 +22720,10 @@ class get_partitions_ps_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype890, _size887) = iprot.readListBegin()
- for _i891 in xrange(_size887):
- _elem892 = iprot.readString()
- self.part_vals.append(_elem892)
+ (_etype918, _size915) = iprot.readListBegin()
+ for _i919 in xrange(_size915):
+ _elem920 = iprot.readString()
+ self.part_vals.append(_elem920)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22526,8 +22753,8 @@ class get_partitions_ps_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter893 in self.part_vals:
- oprot.writeString(iter893)
+ for iter921 in self.part_vals:
+ oprot.writeString(iter921)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.max_parts is not None:
@@ -22591,11 +22818,11 @@ class get_partitions_ps_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype897, _size894) = iprot.readListBegin()
- for _i898 in xrange(_size894):
- _elem899 = Partition()
- _elem899.read(iprot)
- self.success.append(_elem899)
+ (_etype925, _size922) = iprot.readListBegin()
+ for _i926 in xrange(_size922):
+ _elem927 = Partition()
+ _elem927.read(iprot)
+ self.success.append(_elem927)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22624,8 +22851,8 @@ class get_partitions_ps_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter900 in self.success:
- iter900.write(oprot)
+ for iter928 in self.success:
+ iter928.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -22712,10 +22939,10 @@ class get_partitions_ps_with_auth_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype904, _size901) = iprot.readListBegin()
- for _i905 in xrange(_size901):
- _elem906 = iprot.readString()
- self.part_vals.append(_elem906)
+ (_etype932, _size929) = iprot.readListBegin()
+ for _i933 in xrange(_size929):
+ _elem934 = iprot.readString()
+ self.part_vals.append(_elem934)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22732,10 +22959,10 @@ class get_partitions_ps_with_auth_args:
elif fid == 6:
if ftype == TType.LIST:
self.group_names = []
- (_etype910, _size907) = iprot.readListBegin()
- for _i911 in xrange(_size907):
- _elem912 = iprot.readString()
- self.group_names.append(_elem912)
+ (_etype938, _size935) = iprot.readListBegin()
+ for _i939 in xrange(_size935):
+ _elem940 = iprot.readString()
+ self.group_names.append(_elem940)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22760,8 +22987,8 @@ class get_partitions_ps_with_auth_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter913 in self.part_vals:
- oprot.writeString(iter913)
+ for iter941 in self.part_vals:
+ oprot.writeString(iter941)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.max_parts is not None:
@@ -22775,8 +23002,8 @@ class get_partitions_ps_with_auth_args:
if self.group_names is not None:
oprot.writeFieldBegin('group_names', TType.LIST, 6)
oprot.writeListBegin(TType.STRING, len(self.group_names))
- for iter914 in self.group_names:
- oprot.writeString(iter914)
+ for iter942 in self.group_names:
+ oprot.writeString(iter942)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -22838,11 +23065,11 @@ class get_partitions_ps_with_auth_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype918, _size915) = iprot.readListBegin()
- for _i919 in xrange(_size915):
- _elem920 = Partition()
- _elem920.read(iprot)
- self.success.append(_elem920)
+ (_etype946, _size943) = iprot.readListBegin()
+ for _i947 in xrange(_size943):
+ _elem948 = Partition()
+ _elem948.read(iprot)
+ self.success.append(_elem948)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22871,8 +23098,8 @@ class get_partitions_ps_with_auth_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter921 in self.success:
- iter921.write(oprot)
+ for iter949 in self.success:
+ iter949.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -22953,10 +23180,10 @@ class get_partition_names_ps_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype925, _size922) = iprot.readListBegin()
- for _i926 in xrange(_size922):
- _elem927 = iprot.readString()
- self.part_vals.append(_elem927)
+ (_etype953, _size950) = iprot.readListBegin()
+ for _i954 in xrange(_size950):
+ _elem955 = iprot.readString()
+ self.part_vals.append(_elem955)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -22986,8 +23213,8 @@ class get_partition_names_ps_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter928 in self.part_vals:
- oprot.writeString(iter928)
+ for iter956 in self.part_vals:
+ oprot.writeString(iter956)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.max_parts is not None:
@@ -23051,10 +23278,10 @@ class get_partition_names_ps_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype932, _size929) = iprot.readListBegin()
- for _i933 in xrange(_size929):
- _elem934 = iprot.readString()
- self.success.append(_elem934)
+ (_etype960, _size957) = iprot.readListBegin()
+ for _i961 in xrange(_size957):
+ _elem962 = iprot.readString()
+ self.success.append(_elem962)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23083,8 +23310,8 @@ class get_partition_names_ps_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter935 in self.success:
- oprot.writeString(iter935)
+ for iter963 in self.success:
+ oprot.writeString(iter963)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -23255,11 +23482,11 @@ class get_partitions_by_filter_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype939, _size936) = iprot.readListBegin()
- for _i940 in xrange(_size936):
- _elem941 = Partition()
- _elem941.read(iprot)
- self.success.append(_elem941)
+ (_etype967, _size964) = iprot.readListBegin()
+ for _i968 in xrange(_size964):
+ _elem969 = Partition()
+ _elem969.read(iprot)
+ self.success.append(_elem969)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23288,8 +23515,8 @@ class get_partitions_by_filter_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter942 in self.success:
- iter942.write(oprot)
+ for iter970 in self.success:
+ iter970.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -23460,11 +23687,11 @@ class get_part_specs_by_filter_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype946, _size943) = iprot.readListBegin()
- for _i947 in xrange(_size943):
- _elem948 = PartitionSpec()
- _elem948.read(iprot)
- self.success.append(_elem948)
+ (_etype974, _size971) = iprot.readListBegin()
+ for _i975 in xrange(_size971):
+ _elem976 = PartitionSpec()
+ _elem976.read(iprot)
+ self.success.append(_elem976)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23493,8 +23720,8 @@ class get_part_specs_by_filter_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter949 in self.success:
- iter949.write(oprot)
+ for iter977 in self.success:
+ iter977.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -23914,10 +24141,10 @@ class get_partitions_by_names_args:
elif fid == 3:
if ftype == TType.LIST:
self.names = []
- (_etype953, _size950) = iprot.readListBegin()
- for _i954 in xrange(_size950):
- _elem955 = iprot.readString()
- self.names.append(_elem955)
+ (_etype981, _size978) = iprot.readListBegin()
+ for _i982 in xrange(_size978):
+ _elem983 = iprot.readString()
+ self.names.append(_elem983)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -23942,8 +24169,8 @@ class get_partitions_by_names_args:
if self.names is not None:
oprot.writeFieldBegin('names', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.names))
- for iter956 in self.names:
- oprot.writeString(iter956)
+ for iter984 in self.names:
+ oprot.writeString(iter984)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -24002,11 +24229,11 @@ class get_partitions_by_names_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype960, _size957) = iprot.readListBegin()
- for _i961 in xrange(_size957):
- _elem962 = Partition()
- _elem962.read(iprot)
- self.success.append(_elem962)
+ (_etype988, _size985) = iprot.readListBegin()
+ for _i989 in xrange(_size985):
+ _elem990 = Partition()
+ _elem990.read(iprot)
+ self.success.append(_elem990)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24035,8 +24262,8 @@ class get_partitions_by_names_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter963 in self.success:
- iter963.write(oprot)
+ for iter991 in self.success:
+ iter991.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -24286,11 +24513,11 @@ class alter_partitions_args:
elif fid == 3:
if ftype == TType.LIST:
self.new_parts = []
- (_etype967, _size964) = iprot.readListBegin()
- for _i968 in xrange(_size964):
- _elem969 = Partition()
- _elem969.read(iprot)
- self.new_parts.append(_elem969)
+ (_etype995, _size992) = iprot.readListBegin()
+ for _i996 in xrange(_size992):
+ _elem997 = Partition()
+ _elem997.read(iprot)
+ self.new_parts.append(_elem997)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24315,8 +24542,8 @@ class alter_partitions_args:
if self.new_parts is not None:
oprot.writeFieldBegin('new_parts', TType.LIST, 3)
oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
- for iter970 in self.new_parts:
- iter970.write(oprot)
+ for iter998 in self.new_parts:
+ iter998.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -24469,11 +24696,11 @@ class alter_partitions_with_environment_context_args:
elif fid == 3:
if ftype == TType.LIST:
self.new_parts = []
- (_etype974, _size971) = iprot.readListBegin()
- for _i975 in xrange(_size971):
- _elem976 = Partition()
- _elem976.read(iprot)
- self.new_parts.append(_elem976)
+ (_etype1002, _size999) = iprot.readListBegin()
+ for _i1003 in xrange(_size999):
+ _elem1004 = Partition()
+ _elem1004.read(iprot)
+ self.new_parts.append(_elem1004)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24504,8 +24731,8 @@ class alter_partitions_with_environment_context_args:
if self.new_parts is not None:
oprot.writeFieldBegin('new_parts', TType.LIST, 3)
oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
- for iter977 in self.new_parts:
- iter977.write(oprot)
+ for iter1005 in self.new_parts:
+ iter1005.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.environment_context is not None:
@@ -24849,10 +25076,10 @@ class rename_partition_args:
elif fid == 3:
if ftype == TType.LIST:
self.part_vals = []
- (_etype981, _size978) = iprot.readListBegin()
- for _i982 in xrange(_size978):
- _elem983 = iprot.readString()
- self.part_vals.append(_elem983)
+ (_etype1009, _size1006) = iprot.readListBegin()
+ for _i1010 in xrange(_size1006):
+ _elem1011 = iprot.readString()
+ self.part_vals.append(_elem1011)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -24883,8 +25110,8 @@ class rename_partition_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter984 in self.part_vals:
- oprot.writeString(iter984)
+ for iter1012 in self.part_vals:
+ oprot.writeString(iter1012)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.new_part is not None:
@@ -25026,10 +25253,10 @@ class partition_name_has_valid_characters_args:
if fid == 1:
if ftype == TType.LIST:
self.part_vals = []
- (_etype988, _size985) = iprot.readListBegin()
- for _i989 in xrange(_size985):
- _elem990 = iprot.readString()
- self.part_vals.append(_elem990)
+ (_etype1016, _size1013) = iprot.readListBegin()
+ for _i1017 in xrange(_size1013):
+ _elem1018 = iprot.readString()
+ self.part_vals.append(_elem1018)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -25051,8 +25278,8 @@ class partition_name_has_valid_characters_args:
if self.part_vals is not None:
oprot.writeFieldBegin('part_vals', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.part_vals))
- for iter991 in self.part_vals:
- oprot.writeString(iter991)
+ for iter1019 in self.part_vals:
+ oprot.writeString(iter1019)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.throw_exception is not None:
@@ -25410,10 +25637,10 @@ class partition_name_to_vals_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype995, _size992) = iprot.readListBegin()
- for _i996 in xrange(_size992):
- _elem997 = iprot.readString()
- self.success.append(_elem997)
+ (_etype1023, _size1020) = iprot.readListBegin()
+ for _i1024 in xrange(_size1020):
+ _elem1025 = iprot.readString()
+ self.success.append(_elem1025)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -25436,8 +25663,8 @@ class partition_name_to_vals_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter998 in self.success:
- oprot.writeString(iter998)
+ for iter1026 in self.success:
+ oprot.writeString(iter1026)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -25561,11 +25788,11 @@ class partition_name_to_spec_result:
if fid == 0:
if ftype == TType.MAP:
self.success = {}
- (_ktype1000, _vtype1001, _size999 ) = iprot.readMapBegin()
- for _i1003 in xrange(_size999):
- _key1004 = iprot.readString()
- _val1005 = iprot.readString()
- self.success[_key1004] = _val1005
+ (_ktype1028, _vtype1029, _size1027 ) = iprot.readMapBegin()
+ for _i1031 in xrange(_size1027):
+ _key1032 = iprot.readString()
+ _val1033 = iprot.readString()
+ self.success[_key1032] = _val1033
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -25588,9 +25815,9 @@ class partition_name_to_spec_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
- for kiter1006,viter1007 in self.success.items():
- oprot.writeString(kiter1006)
- oprot.writeString(viter1007)
+ for kiter1034,viter1035 in self.success.items():
+ oprot.writeString(kiter1034)
+ oprot.writeString(viter1035)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -25666,11 +25893,11 @@ class markPartitionForEvent_args:
elif fid == 3:
if ftype == TType.MAP:
self.part_vals = {}
- (_ktype1009, _vtype1010, _size1008 ) = iprot.readMapBegin()
- for _i1012 in xrange(_size1008):
- _key1013 = iprot.readString()
- _val1014 = iprot.readString()
- self.part_vals[_key1013] = _val1014
+ (_ktype1037, _vtype1038, _size1036 ) = iprot.readMapBegin()
+ for _i1040 in xrange(_size1036):
+ _key1041 = iprot.readString()
+ _val1042 = iprot.readString()
+ self.part_vals[_key1041] = _val1042
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -25700,9 +25927,9 @@ class markPartitionForEvent_args:
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 kiter1015,viter1016 in self.part_vals.items():
- oprot.writeString(kiter1015)
- oprot.writeString(viter1016)
+ for kiter1043,viter1044 in self.part_vals.items():
+ oprot.writeString(kiter1043)
+ oprot.writeString(viter1044)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.eventType is not None:
@@ -25916,11 +26143,11 @@ class isPartitionMarkedForEvent_args:
elif fid == 3:
if ftype == TType.MAP:
self.part_vals = {}
- (_ktype1018, _vtype1019, _size1017 ) = iprot.readMapBegin()
- for _i1021 in xrange(_size1017):
- _key1022 = iprot.readString()
- _val1023 = iprot.readString()
- self.part_vals[_key1022] = _val1023
+ (_ktype1046, _vtype1047, _size1045 ) = iprot.readMapBegin()
+ for _i1049 in xrange(_size1045):
+ _key1050 = iprot.readString()
+ _val1051 = iprot.readString()
+ self.part_vals[_key1050] = _val1051
iprot.readMapEnd()
else:
iprot.skip(ftype)
@@ -25950,9 +26177,9 @@ class isPartitionMarkedForEvent_args:
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 kiter1024,viter1025 in self.part_vals.items():
- oprot.writeString(kiter1024)
- oprot.writeString(viter1025)
+ for kiter1052,viter1053 in self.part_vals.items():
+ oprot.writeString(kiter1052)
+ oprot.writeString(viter1053)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.eventType is not None:
@@ -27007,11 +27234,11 @@ class get_indexes_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1029, _size1026) = iprot.readListBegin()
- for _i1030 in xrange(_size1026):
- _elem1031 = Index()
- _elem1031.read(iprot)
- self.success.append(_elem1031)
+ (_etype1057, _size1054) = iprot.readListBegin()
+ for _i1058 in xrange(_size1054):
+ _elem1059 = Index()
+ _elem1059.read(iprot)
+ self.success.append(_elem1059)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -27040,8 +27267,8 @@ class get_indexes_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1032 in self.success:
- iter1032.write(oprot)
+ for iter1060 in self.success:
+ iter1060.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -27196,10 +27423,10 @@ class get_index_names_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1036, _size1033) = iprot.readListBegin()
- for _i1037 in xrange(_size1033):
- _elem1038 = iprot.readString()
- self.success.append(_elem1038)
+ (_etype1064, _size1061) = iprot.readListBegin()
+ for _i1065 in xrange(_size1061):
+ _elem1066 = iprot.readString()
+ self.success.append(_elem1066)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -27222,8 +27449,8 @@ class get_index_names_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1039 in self.success:
- oprot.writeString(iter1039)
+ for iter1067 in self.success:
+ oprot.writeString(iter1067)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o2 is not None:
@@ -30407,10 +30634,10 @@ class get_functions_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1043, _size1040) = iprot.readListBegin()
- for _i1044 in xrange(_size1040):
- _elem1045 = iprot.readString()
- self.success.append(_elem1045)
+ (_etype1071, _size1068) = iprot.readListBegin()
+ for _i1072 in xrange(_size1068):
+ _elem1073 = iprot.readString()
+ self.success.append(_elem1073)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -30433,8 +30660,8 @@ class get_functions_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1046 in self.success:
- oprot.writeString(iter1046)
+ for iter1074 in self.success:
+ oprot.writeString(iter1074)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -31122,10 +31349,10 @@ class get_role_names_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1050, _size1047) = iprot.readListBegin()
- for _i1051 in xrange(_size1047):
- _elem1052 = iprot.readString()
- self.success.append(_elem1052)
+ (_etype1078, _size1075) = iprot.readListBegin()
+ for _i1079 in xrange(_size1075):
+ _elem1080 = iprot.readString()
+ self.success.append(_elem1080)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -31148,8 +31375,8 @@ class get_role_names_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1053 in self.success:
- oprot.writeString(iter1053)
+ for iter1081 in self.success:
+ oprot.writeString(iter1081)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -31663,11 +31890,11 @@ class list_roles_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1057, _size1054) = iprot.readListBegin()
- for _i1058 in xrange(_size1054):
- _elem1059 = Role()
- _elem1059.read(iprot)
- self.success.append(_elem1059)
+ (_etype1085, _size1082) = iprot.readListBegin()
+ for _i1086 in xrange(_size1082):
+ _elem1087 = Role()
+ _elem1087.read(iprot)
+ self.success.append(_elem1087)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -31690,8 +31917,8 @@ class list_roles_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1060 in self.success:
- iter1060.write(oprot)
+ for iter1088 in self.success:
+ iter1088.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -32200,10 +32427,10 @@ class get_privilege_set_args:
elif fid == 3:
if ftype == TType.LIST:
self.group_names = []
- (_etype1064, _size1061) = iprot.readListBegin()
- for _i1065 in xrange(_size1061):
- _elem1066 = iprot.readString()
- self.group_names.append(_elem1066)
+ (_etype1092, _size1089) = iprot.readListBegin()
+ for _i1093 in xrange(_size1089):
+ _elem1094 = iprot.readString()
+ self.group_names.append(_elem1094)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32228,8 +32455,8 @@ class get_privilege_set_args:
if self.group_names is not None:
oprot.writeFieldBegin('group_names', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.group_names))
- for iter1067 in self.group_names:
- oprot.writeString(iter1067)
+ for iter1095 in self.group_names:
+ oprot.writeString(iter1095)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -32456,11 +32683,11 @@ class list_privileges_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1071, _size1068) = iprot.readListBegin()
- for _i1072 in xrange(_size1068):
- _elem1073 = HiveObjectPrivilege()
- _elem1073.read(iprot)
- self.success.append(_elem1073)
+ (_etype1099, _size1096) = iprot.readListBegin()
+ for _i1100 in xrange(_size1096):
+ _elem1101 = HiveObjectPrivilege()
+ _elem1101.read(iprot)
+ self.success.append(_elem1101)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -32483,8 +32710,8 @@ class list_privileges_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
- for iter1074 in self.success:
- iter1074.write(oprot)
+ for iter1102 in self.success:
+ iter1102.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -32982,10 +33209,10 @@ class set_ugi_args:
elif fid == 2:
if ftype == TType.LIST:
self.group_names = []
- (_etype1078, _size1075) = iprot.readListBegin()
- for _i1079 in xrange(_size1075):
- _elem1080 = iprot.readString()
- self.group_names.append(_elem1080)
+ (_etype1106, _size1103) = iprot.readListBegin()
+ for _i1107 in xrange(_size1103):
+ _elem1108 = iprot.readString()
+ self.group_names.append(_elem1108)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -33006,8 +33233,8 @@ class set_ugi_args:
if self.group_names is not None:
oprot.writeFieldBegin('group_names', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.group_names))
- for iter1081 in self.group_names:
- oprot.writeString(iter1081)
+ for iter1109 in self.group_names:
+ oprot.writeString(iter1109)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -33062,10 +33289,10 @@ class set_ugi_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1085, _size1082) = iprot.readListBegin()
- for _i1086 in xrange(_size1082):
- _elem1087 = iprot.readString()
- self.success.append(_elem1087)
+ (_etype1113, _size1110) = iprot.readListBegin()
+ for _i1114 in xrange(_size1110):
+ _elem1115 = iprot.readString()
+ self.success.append(_elem1115)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -33088,8 +33315,8 @@ class set_ugi_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1088 in self.success:
- oprot.writeString(iter1088)
+ for iter1116 in self.success:
+ oprot.writeString(iter1116)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.o1 is not None:
@@ -34021,10 +34248,10 @@ class get_all_token_identifiers_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1092, _size1089) = iprot.readListBegin()
- for _i1093 in xrange(_size1089):
- _elem1094 = iprot.readString()
- self.success.append(_elem1094)
+ (_etype1120, _size1117) = iprot.readListBegin()
+ for _i1121 in xrange(_size1117):
+ _elem1122 = iprot.readString()
+ self.success.append(_elem1122)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -34041,8 +34268,8 @@ class get_all_token_identifiers_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1095 in self.success:
- oprot.writeString(iter1095)
+ for iter1123 in self.success:
+ oprot.writeString(iter1123)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
@@ -34569,10 +34796,10 @@ class get_master_keys_result:
if fid == 0:
if ftype == TType.LIST:
self.success = []
- (_etype1099, _size1096) = iprot.readListBegin()
- for _i1100 in xrange(_size1096):
- _elem1101 = iprot.readString()
- self.success.append(_elem1101)
+ (_etype1127, _size1124) = iprot.readListBegin()
+ for _i1128 in xrange(_size1124):
+ _elem1129 = iprot.readString()
+ self.success.append(_elem1129)
iprot.readListEnd()
else:
iprot.skip(ftype)
@@ -34589,8 +34816,8 @@ class get_master_keys_result:
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
- for iter1102 in self.success:
- oprot.writeString(iter1102)
+ for iter1130 in self.success:
+ oprot.writeString(iter1130)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
[07/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java
index bcfc75b..a2a5fe6 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java
@@ -354,14 +354,14 @@ public class NotificationEventResponse implements org.apache.thrift.TBase<Notifi
case 1: // EVENTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list582 = iprot.readListBegin();
- struct.events = new ArrayList<NotificationEvent>(_list582.size);
- NotificationEvent _elem583;
- for (int _i584 = 0; _i584 < _list582.size; ++_i584)
+ org.apache.thrift.protocol.TList _list614 = iprot.readListBegin();
+ struct.events = new ArrayList<NotificationEvent>(_list614.size);
+ NotificationEvent _elem615;
+ for (int _i616 = 0; _i616 < _list614.size; ++_i616)
{
- _elem583 = new NotificationEvent();
- _elem583.read(iprot);
- struct.events.add(_elem583);
+ _elem615 = new NotificationEvent();
+ _elem615.read(iprot);
+ struct.events.add(_elem615);
}
iprot.readListEnd();
}
@@ -387,9 +387,9 @@ public class NotificationEventResponse implements org.apache.thrift.TBase<Notifi
oprot.writeFieldBegin(EVENTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size()));
- for (NotificationEvent _iter585 : struct.events)
+ for (NotificationEvent _iter617 : struct.events)
{
- _iter585.write(oprot);
+ _iter617.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class NotificationEventResponse implements org.apache.thrift.TBase<Notifi
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.events.size());
- for (NotificationEvent _iter586 : struct.events)
+ for (NotificationEvent _iter618 : struct.events)
{
- _iter586.write(oprot);
+ _iter618.write(oprot);
}
}
}
@@ -425,14 +425,14 @@ public class NotificationEventResponse implements org.apache.thrift.TBase<Notifi
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 _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.events = new ArrayList<NotificationEvent>(_list587.size);
- NotificationEvent _elem588;
- for (int _i589 = 0; _i589 < _list587.size; ++_i589)
+ org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.events = new ArrayList<NotificationEvent>(_list619.size);
+ NotificationEvent _elem620;
+ for (int _i621 = 0; _i621 < _list619.size; ++_i621)
{
- _elem588 = new NotificationEvent();
- _elem588.read(iprot);
- struct.events.add(_elem588);
+ _elem620 = new NotificationEvent();
+ _elem620.read(iprot);
+ struct.events.add(_elem620);
}
}
struct.setEventsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java
index c23482a..c706f84 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java
@@ -351,13 +351,13 @@ public class OpenTxnsResponse implements org.apache.thrift.TBase<OpenTxnsRespons
case 1: // TXN_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list508 = iprot.readListBegin();
- struct.txn_ids = new ArrayList<Long>(_list508.size);
- long _elem509;
- for (int _i510 = 0; _i510 < _list508.size; ++_i510)
+ org.apache.thrift.protocol.TList _list540 = iprot.readListBegin();
+ struct.txn_ids = new ArrayList<Long>(_list540.size);
+ long _elem541;
+ for (int _i542 = 0; _i542 < _list540.size; ++_i542)
{
- _elem509 = iprot.readI64();
- struct.txn_ids.add(_elem509);
+ _elem541 = iprot.readI64();
+ struct.txn_ids.add(_elem541);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class OpenTxnsResponse implements org.apache.thrift.TBase<OpenTxnsRespons
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 _iter511 : struct.txn_ids)
+ for (long _iter543 : struct.txn_ids)
{
- oprot.writeI64(_iter511);
+ oprot.writeI64(_iter543);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class OpenTxnsResponse implements org.apache.thrift.TBase<OpenTxnsRespons
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.txn_ids.size());
- for (long _iter512 : struct.txn_ids)
+ for (long _iter544 : struct.txn_ids)
{
- oprot.writeI64(_iter512);
+ oprot.writeI64(_iter544);
}
}
}
@@ -421,13 +421,13 @@ public class OpenTxnsResponse implements org.apache.thrift.TBase<OpenTxnsRespons
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 _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.txn_ids = new ArrayList<Long>(_list513.size);
- long _elem514;
- for (int _i515 = 0; _i515 < _list513.size; ++_i515)
+ org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.txn_ids = new ArrayList<Long>(_list545.size);
+ long _elem546;
+ for (int _i547 = 0; _i547 < _list545.size; ++_i547)
{
- _elem514 = iprot.readI64();
- struct.txn_ids.add(_elem514);
+ _elem546 = iprot.readI64();
+ struct.txn_ids.add(_elem546);
}
}
struct.setTxn_idsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java
new file mode 100644
index 0000000..9e0af3e
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java
@@ -0,0 +1,1222 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+public class PartitionValuesRequest implements org.apache.thrift.TBase<PartitionValuesRequest, PartitionValuesRequest._Fields>, java.io.Serializable, Cloneable, Comparable<PartitionValuesRequest> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionValuesRequest");
+
+ private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField PARTITION_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionKeys", org.apache.thrift.protocol.TType.LIST, (short)3);
+ private static final org.apache.thrift.protocol.TField APPLY_DISTINCT_FIELD_DESC = new org.apache.thrift.protocol.TField("applyDistinct", org.apache.thrift.protocol.TType.BOOL, (short)4);
+ private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)5);
+ private static final org.apache.thrift.protocol.TField PARTITION_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionOrder", org.apache.thrift.protocol.TType.LIST, (short)6);
+ private static final org.apache.thrift.protocol.TField ASCENDING_FIELD_DESC = new org.apache.thrift.protocol.TField("ascending", org.apache.thrift.protocol.TType.BOOL, (short)7);
+ private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I64, (short)8);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new PartitionValuesRequestStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new PartitionValuesRequestTupleSchemeFactory());
+ }
+
+ private String dbName; // required
+ private String tblName; // required
+ private List<FieldSchema> partitionKeys; // required
+ private boolean applyDistinct; // optional
+ private String filter; // optional
+ private List<FieldSchema> partitionOrder; // optional
+ private boolean ascending; // optional
+ private long maxParts; // 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_NAME((short)2, "tblName"),
+ PARTITION_KEYS((short)3, "partitionKeys"),
+ APPLY_DISTINCT((short)4, "applyDistinct"),
+ FILTER((short)5, "filter"),
+ PARTITION_ORDER((short)6, "partitionOrder"),
+ ASCENDING((short)7, "ascending"),
+ MAX_PARTS((short)8, "maxParts");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // DB_NAME
+ return DB_NAME;
+ case 2: // TBL_NAME
+ return TBL_NAME;
+ case 3: // PARTITION_KEYS
+ return PARTITION_KEYS;
+ case 4: // APPLY_DISTINCT
+ return APPLY_DISTINCT;
+ case 5: // FILTER
+ return FILTER;
+ case 6: // PARTITION_ORDER
+ return PARTITION_ORDER;
+ case 7: // ASCENDING
+ return ASCENDING;
+ case 8: // MAX_PARTS
+ return MAX_PARTS;
+ 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 __APPLYDISTINCT_ISSET_ID = 0;
+ private static final int __ASCENDING_ISSET_ID = 1;
+ private static final int __MAXPARTS_ISSET_ID = 2;
+ private byte __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.APPLY_DISTINCT,_Fields.FILTER,_Fields.PARTITION_ORDER,_Fields.ASCENDING,_Fields.MAX_PARTS};
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PARTITION_KEYS, new org.apache.thrift.meta_data.FieldMetaData("partitionKeys", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
+ tmpMap.put(_Fields.APPLY_DISTINCT, new org.apache.thrift.meta_data.FieldMetaData("applyDistinct", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PARTITION_ORDER, new org.apache.thrift.meta_data.FieldMetaData("partitionOrder", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ 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, FieldSchema.class))));
+ tmpMap.put(_Fields.ASCENDING, new org.apache.thrift.meta_data.FieldMetaData("ascending", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("maxParts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesRequest.class, metaDataMap);
+ }
+
+ public PartitionValuesRequest() {
+ this.applyDistinct = true;
+
+ this.ascending = true;
+
+ this.maxParts = -1L;
+
+ }
+
+ public PartitionValuesRequest(
+ String dbName,
+ String tblName,
+ List<FieldSchema> partitionKeys)
+ {
+ this();
+ this.dbName = dbName;
+ this.tblName = tblName;
+ this.partitionKeys = partitionKeys;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public PartitionValuesRequest(PartitionValuesRequest other) {
+ __isset_bitfield = other.__isset_bitfield;
+ if (other.isSetDbName()) {
+ this.dbName = other.dbName;
+ }
+ if (other.isSetTblName()) {
+ this.tblName = other.tblName;
+ }
+ if (other.isSetPartitionKeys()) {
+ List<FieldSchema> __this__partitionKeys = new ArrayList<FieldSchema>(other.partitionKeys.size());
+ for (FieldSchema other_element : other.partitionKeys) {
+ __this__partitionKeys.add(new FieldSchema(other_element));
+ }
+ this.partitionKeys = __this__partitionKeys;
+ }
+ this.applyDistinct = other.applyDistinct;
+ if (other.isSetFilter()) {
+ this.filter = other.filter;
+ }
+ if (other.isSetPartitionOrder()) {
+ List<FieldSchema> __this__partitionOrder = new ArrayList<FieldSchema>(other.partitionOrder.size());
+ for (FieldSchema other_element : other.partitionOrder) {
+ __this__partitionOrder.add(new FieldSchema(other_element));
+ }
+ this.partitionOrder = __this__partitionOrder;
+ }
+ this.ascending = other.ascending;
+ this.maxParts = other.maxParts;
+ }
+
+ public PartitionValuesRequest deepCopy() {
+ return new PartitionValuesRequest(this);
+ }
+
+ @Override
+ public void clear() {
+ this.dbName = null;
+ this.tblName = null;
+ this.partitionKeys = null;
+ this.applyDistinct = true;
+
+ this.filter = null;
+ this.partitionOrder = null;
+ this.ascending = true;
+
+ this.maxParts = -1L;
+
+ }
+
+ 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 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 getPartitionKeysSize() {
+ return (this.partitionKeys == null) ? 0 : this.partitionKeys.size();
+ }
+
+ public java.util.Iterator<FieldSchema> getPartitionKeysIterator() {
+ return (this.partitionKeys == null) ? null : this.partitionKeys.iterator();
+ }
+
+ public void addToPartitionKeys(FieldSchema elem) {
+ if (this.partitionKeys == null) {
+ this.partitionKeys = new ArrayList<FieldSchema>();
+ }
+ this.partitionKeys.add(elem);
+ }
+
+ public List<FieldSchema> getPartitionKeys() {
+ return this.partitionKeys;
+ }
+
+ public void setPartitionKeys(List<FieldSchema> partitionKeys) {
+ this.partitionKeys = partitionKeys;
+ }
+
+ public void unsetPartitionKeys() {
+ this.partitionKeys = null;
+ }
+
+ /** Returns true if field partitionKeys is set (has been assigned a value) and false otherwise */
+ public boolean isSetPartitionKeys() {
+ return this.partitionKeys != null;
+ }
+
+ public void setPartitionKeysIsSet(boolean value) {
+ if (!value) {
+ this.partitionKeys = null;
+ }
+ }
+
+ public boolean isApplyDistinct() {
+ return this.applyDistinct;
+ }
+
+ public void setApplyDistinct(boolean applyDistinct) {
+ this.applyDistinct = applyDistinct;
+ setApplyDistinctIsSet(true);
+ }
+
+ public void unsetApplyDistinct() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID);
+ }
+
+ /** Returns true if field applyDistinct is set (has been assigned a value) and false otherwise */
+ public boolean isSetApplyDistinct() {
+ return EncodingUtils.testBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID);
+ }
+
+ public void setApplyDistinctIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID, value);
+ }
+
+ 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 int getPartitionOrderSize() {
+ return (this.partitionOrder == null) ? 0 : this.partitionOrder.size();
+ }
+
+ public java.util.Iterator<FieldSchema> getPartitionOrderIterator() {
+ return (this.partitionOrder == null) ? null : this.partitionOrder.iterator();
+ }
+
+ public void addToPartitionOrder(FieldSchema elem) {
+ if (this.partitionOrder == null) {
+ this.partitionOrder = new ArrayList<FieldSchema>();
+ }
+ this.partitionOrder.add(elem);
+ }
+
+ public List<FieldSchema> getPartitionOrder() {
+ return this.partitionOrder;
+ }
+
+ public void setPartitionOrder(List<FieldSchema> partitionOrder) {
+ this.partitionOrder = partitionOrder;
+ }
+
+ public void unsetPartitionOrder() {
+ this.partitionOrder = null;
+ }
+
+ /** Returns true if field partitionOrder is set (has been assigned a value) and false otherwise */
+ public boolean isSetPartitionOrder() {
+ return this.partitionOrder != null;
+ }
+
+ public void setPartitionOrderIsSet(boolean value) {
+ if (!value) {
+ this.partitionOrder = null;
+ }
+ }
+
+ public boolean isAscending() {
+ return this.ascending;
+ }
+
+ public void setAscending(boolean ascending) {
+ this.ascending = ascending;
+ setAscendingIsSet(true);
+ }
+
+ public void unsetAscending() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASCENDING_ISSET_ID);
+ }
+
+ /** Returns true if field ascending is set (has been assigned a value) and false otherwise */
+ public boolean isSetAscending() {
+ return EncodingUtils.testBit(__isset_bitfield, __ASCENDING_ISSET_ID);
+ }
+
+ public void setAscendingIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASCENDING_ISSET_ID, value);
+ }
+
+ public long getMaxParts() {
+ return this.maxParts;
+ }
+
+ public void setMaxParts(long maxParts) {
+ this.maxParts = maxParts;
+ setMaxPartsIsSet(true);
+ }
+
+ public void unsetMaxParts() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPARTS_ISSET_ID);
+ }
+
+ /** Returns true if field maxParts is set (has been assigned a value) and false otherwise */
+ public boolean isSetMaxParts() {
+ return EncodingUtils.testBit(__isset_bitfield, __MAXPARTS_ISSET_ID);
+ }
+
+ public void setMaxPartsIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPARTS_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case DB_NAME:
+ if (value == null) {
+ unsetDbName();
+ } else {
+ setDbName((String)value);
+ }
+ break;
+
+ case TBL_NAME:
+ if (value == null) {
+ unsetTblName();
+ } else {
+ setTblName((String)value);
+ }
+ break;
+
+ case PARTITION_KEYS:
+ if (value == null) {
+ unsetPartitionKeys();
+ } else {
+ setPartitionKeys((List<FieldSchema>)value);
+ }
+ break;
+
+ case APPLY_DISTINCT:
+ if (value == null) {
+ unsetApplyDistinct();
+ } else {
+ setApplyDistinct((Boolean)value);
+ }
+ break;
+
+ case FILTER:
+ if (value == null) {
+ unsetFilter();
+ } else {
+ setFilter((String)value);
+ }
+ break;
+
+ case PARTITION_ORDER:
+ if (value == null) {
+ unsetPartitionOrder();
+ } else {
+ setPartitionOrder((List<FieldSchema>)value);
+ }
+ break;
+
+ case ASCENDING:
+ if (value == null) {
+ unsetAscending();
+ } else {
+ setAscending((Boolean)value);
+ }
+ break;
+
+ case MAX_PARTS:
+ if (value == null) {
+ unsetMaxParts();
+ } else {
+ setMaxParts((Long)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case DB_NAME:
+ return getDbName();
+
+ case TBL_NAME:
+ return getTblName();
+
+ case PARTITION_KEYS:
+ return getPartitionKeys();
+
+ case APPLY_DISTINCT:
+ return isApplyDistinct();
+
+ case FILTER:
+ return getFilter();
+
+ case PARTITION_ORDER:
+ return getPartitionOrder();
+
+ case ASCENDING:
+ return isAscending();
+
+ case MAX_PARTS:
+ return getMaxParts();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case DB_NAME:
+ return isSetDbName();
+ case TBL_NAME:
+ return isSetTblName();
+ case PARTITION_KEYS:
+ return isSetPartitionKeys();
+ case APPLY_DISTINCT:
+ return isSetApplyDistinct();
+ case FILTER:
+ return isSetFilter();
+ case PARTITION_ORDER:
+ return isSetPartitionOrder();
+ case ASCENDING:
+ return isSetAscending();
+ case MAX_PARTS:
+ return isSetMaxParts();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof PartitionValuesRequest)
+ return this.equals((PartitionValuesRequest)that);
+ return false;
+ }
+
+ public boolean equals(PartitionValuesRequest 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_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_partitionKeys = true && this.isSetPartitionKeys();
+ boolean that_present_partitionKeys = true && that.isSetPartitionKeys();
+ if (this_present_partitionKeys || that_present_partitionKeys) {
+ if (!(this_present_partitionKeys && that_present_partitionKeys))
+ return false;
+ if (!this.partitionKeys.equals(that.partitionKeys))
+ return false;
+ }
+
+ boolean this_present_applyDistinct = true && this.isSetApplyDistinct();
+ boolean that_present_applyDistinct = true && that.isSetApplyDistinct();
+ if (this_present_applyDistinct || that_present_applyDistinct) {
+ if (!(this_present_applyDistinct && that_present_applyDistinct))
+ return false;
+ if (this.applyDistinct != that.applyDistinct)
+ 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_partitionOrder = true && this.isSetPartitionOrder();
+ boolean that_present_partitionOrder = true && that.isSetPartitionOrder();
+ if (this_present_partitionOrder || that_present_partitionOrder) {
+ if (!(this_present_partitionOrder && that_present_partitionOrder))
+ return false;
+ if (!this.partitionOrder.equals(that.partitionOrder))
+ return false;
+ }
+
+ boolean this_present_ascending = true && this.isSetAscending();
+ boolean that_present_ascending = true && that.isSetAscending();
+ if (this_present_ascending || that_present_ascending) {
+ if (!(this_present_ascending && that_present_ascending))
+ return false;
+ if (this.ascending != that.ascending)
+ return false;
+ }
+
+ boolean this_present_maxParts = true && this.isSetMaxParts();
+ boolean that_present_maxParts = true && that.isSetMaxParts();
+ if (this_present_maxParts || that_present_maxParts) {
+ if (!(this_present_maxParts && that_present_maxParts))
+ return false;
+ if (this.maxParts != that.maxParts)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_dbName = true && (isSetDbName());
+ list.add(present_dbName);
+ if (present_dbName)
+ list.add(dbName);
+
+ boolean present_tblName = true && (isSetTblName());
+ list.add(present_tblName);
+ if (present_tblName)
+ list.add(tblName);
+
+ boolean present_partitionKeys = true && (isSetPartitionKeys());
+ list.add(present_partitionKeys);
+ if (present_partitionKeys)
+ list.add(partitionKeys);
+
+ boolean present_applyDistinct = true && (isSetApplyDistinct());
+ list.add(present_applyDistinct);
+ if (present_applyDistinct)
+ list.add(applyDistinct);
+
+ boolean present_filter = true && (isSetFilter());
+ list.add(present_filter);
+ if (present_filter)
+ list.add(filter);
+
+ boolean present_partitionOrder = true && (isSetPartitionOrder());
+ list.add(present_partitionOrder);
+ if (present_partitionOrder)
+ list.add(partitionOrder);
+
+ boolean present_ascending = true && (isSetAscending());
+ list.add(present_ascending);
+ if (present_ascending)
+ list.add(ascending);
+
+ boolean present_maxParts = true && (isSetMaxParts());
+ list.add(present_maxParts);
+ if (present_maxParts)
+ list.add(maxParts);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(PartitionValuesRequest 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(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(isSetPartitionKeys()).compareTo(other.isSetPartitionKeys());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPartitionKeys()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, other.partitionKeys);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetApplyDistinct()).compareTo(other.isSetApplyDistinct());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetApplyDistinct()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applyDistinct, other.applyDistinct);
+ 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(isSetPartitionOrder()).compareTo(other.isSetPartitionOrder());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPartitionOrder()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionOrder, other.partitionOrder);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetAscending()).compareTo(other.isSetAscending());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAscending()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ascending, other.ascending);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetMaxParts()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts);
+ 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("PartitionValuesRequest(");
+ 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("tblName:");
+ if (this.tblName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.tblName);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("partitionKeys:");
+ if (this.partitionKeys == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.partitionKeys);
+ }
+ first = false;
+ if (isSetApplyDistinct()) {
+ if (!first) sb.append(", ");
+ sb.append("applyDistinct:");
+ sb.append(this.applyDistinct);
+ first = false;
+ }
+ if (isSetFilter()) {
+ if (!first) sb.append(", ");
+ sb.append("filter:");
+ if (this.filter == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.filter);
+ }
+ first = false;
+ }
+ if (isSetPartitionOrder()) {
+ if (!first) sb.append(", ");
+ sb.append("partitionOrder:");
+ if (this.partitionOrder == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.partitionOrder);
+ }
+ first = false;
+ }
+ if (isSetAscending()) {
+ if (!first) sb.append(", ");
+ sb.append("ascending:");
+ sb.append(this.ascending);
+ first = false;
+ }
+ if (isSetMaxParts()) {
+ if (!first) sb.append(", ");
+ sb.append("maxParts:");
+ sb.append(this.maxParts);
+ first = false;
+ }
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetDbName()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString());
+ }
+
+ if (!isSetTblName()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString());
+ }
+
+ if (!isSetPartitionKeys()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionKeys' 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 PartitionValuesRequestStandardSchemeFactory implements SchemeFactory {
+ public PartitionValuesRequestStandardScheme getScheme() {
+ return new PartitionValuesRequestStandardScheme();
+ }
+ }
+
+ private static class PartitionValuesRequestStandardScheme extends StandardScheme<PartitionValuesRequest> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequest struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // DB_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.dbName = iprot.readString();
+ struct.setDbNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // TBL_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.tblName = iprot.readString();
+ struct.setTblNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // PARTITION_KEYS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
+ struct.partitionKeys = new ArrayList<FieldSchema>(_list484.size);
+ FieldSchema _elem485;
+ for (int _i486 = 0; _i486 < _list484.size; ++_i486)
+ {
+ _elem485 = new FieldSchema();
+ _elem485.read(iprot);
+ struct.partitionKeys.add(_elem485);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPartitionKeysIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // APPLY_DISTINCT
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.applyDistinct = iprot.readBool();
+ struct.setApplyDistinctIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 5: // 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 6: // PARTITION_ORDER
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list487 = iprot.readListBegin();
+ struct.partitionOrder = new ArrayList<FieldSchema>(_list487.size);
+ FieldSchema _elem488;
+ for (int _i489 = 0; _i489 < _list487.size; ++_i489)
+ {
+ _elem488 = new FieldSchema();
+ _elem488.read(iprot);
+ struct.partitionOrder.add(_elem488);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPartitionOrderIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 7: // ASCENDING
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.ascending = iprot.readBool();
+ struct.setAscendingIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 8: // MAX_PARTS
+ if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+ struct.maxParts = iprot.readI64();
+ struct.setMaxPartsIsSet(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, PartitionValuesRequest struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.dbName != null) {
+ oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
+ oprot.writeString(struct.dbName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.tblName != null) {
+ oprot.writeFieldBegin(TBL_NAME_FIELD_DESC);
+ oprot.writeString(struct.tblName);
+ oprot.writeFieldEnd();
+ }
+ if (struct.partitionKeys != null) {
+ oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size()));
+ for (FieldSchema _iter490 : struct.partitionKeys)
+ {
+ _iter490.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ if (struct.isSetApplyDistinct()) {
+ oprot.writeFieldBegin(APPLY_DISTINCT_FIELD_DESC);
+ oprot.writeBool(struct.applyDistinct);
+ oprot.writeFieldEnd();
+ }
+ if (struct.filter != null) {
+ if (struct.isSetFilter()) {
+ oprot.writeFieldBegin(FILTER_FIELD_DESC);
+ oprot.writeString(struct.filter);
+ oprot.writeFieldEnd();
+ }
+ }
+ if (struct.partitionOrder != null) {
+ if (struct.isSetPartitionOrder()) {
+ oprot.writeFieldBegin(PARTITION_ORDER_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionOrder.size()));
+ for (FieldSchema _iter491 : struct.partitionOrder)
+ {
+ _iter491.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ }
+ if (struct.isSetAscending()) {
+ oprot.writeFieldBegin(ASCENDING_FIELD_DESC);
+ oprot.writeBool(struct.ascending);
+ oprot.writeFieldEnd();
+ }
+ if (struct.isSetMaxParts()) {
+ oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC);
+ oprot.writeI64(struct.maxParts);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class PartitionValuesRequestTupleSchemeFactory implements SchemeFactory {
+ public PartitionValuesRequestTupleScheme getScheme() {
+ return new PartitionValuesRequestTupleScheme();
+ }
+ }
+
+ private static class PartitionValuesRequestTupleScheme extends TupleScheme<PartitionValuesRequest> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ oprot.writeString(struct.dbName);
+ oprot.writeString(struct.tblName);
+ {
+ oprot.writeI32(struct.partitionKeys.size());
+ for (FieldSchema _iter492 : struct.partitionKeys)
+ {
+ _iter492.write(oprot);
+ }
+ }
+ BitSet optionals = new BitSet();
+ if (struct.isSetApplyDistinct()) {
+ optionals.set(0);
+ }
+ if (struct.isSetFilter()) {
+ optionals.set(1);
+ }
+ if (struct.isSetPartitionOrder()) {
+ optionals.set(2);
+ }
+ if (struct.isSetAscending()) {
+ optionals.set(3);
+ }
+ if (struct.isSetMaxParts()) {
+ optionals.set(4);
+ }
+ oprot.writeBitSet(optionals, 5);
+ if (struct.isSetApplyDistinct()) {
+ oprot.writeBool(struct.applyDistinct);
+ }
+ if (struct.isSetFilter()) {
+ oprot.writeString(struct.filter);
+ }
+ if (struct.isSetPartitionOrder()) {
+ {
+ oprot.writeI32(struct.partitionOrder.size());
+ for (FieldSchema _iter493 : struct.partitionOrder)
+ {
+ _iter493.write(oprot);
+ }
+ }
+ }
+ if (struct.isSetAscending()) {
+ oprot.writeBool(struct.ascending);
+ }
+ if (struct.isSetMaxParts()) {
+ oprot.writeI64(struct.maxParts);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ struct.dbName = iprot.readString();
+ struct.setDbNameIsSet(true);
+ struct.tblName = iprot.readString();
+ struct.setTblNameIsSet(true);
+ {
+ org.apache.thrift.protocol.TList _list494 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitionKeys = new ArrayList<FieldSchema>(_list494.size);
+ FieldSchema _elem495;
+ for (int _i496 = 0; _i496 < _list494.size; ++_i496)
+ {
+ _elem495 = new FieldSchema();
+ _elem495.read(iprot);
+ struct.partitionKeys.add(_elem495);
+ }
+ }
+ struct.setPartitionKeysIsSet(true);
+ BitSet incoming = iprot.readBitSet(5);
+ if (incoming.get(0)) {
+ struct.applyDistinct = iprot.readBool();
+ struct.setApplyDistinctIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.filter = iprot.readString();
+ struct.setFilterIsSet(true);
+ }
+ if (incoming.get(2)) {
+ {
+ org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitionOrder = new ArrayList<FieldSchema>(_list497.size);
+ FieldSchema _elem498;
+ for (int _i499 = 0; _i499 < _list497.size; ++_i499)
+ {
+ _elem498 = new FieldSchema();
+ _elem498.read(iprot);
+ struct.partitionOrder.add(_elem498);
+ }
+ }
+ struct.setPartitionOrderIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.ascending = iprot.readBool();
+ struct.setAscendingIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.maxParts = iprot.readI64();
+ struct.setMaxPartsIsSet(true);
+ }
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java
new file mode 100644
index 0000000..69be7cd
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java
@@ -0,0 +1,443 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+public class PartitionValuesResponse implements org.apache.thrift.TBase<PartitionValuesResponse, PartitionValuesResponse._Fields>, java.io.Serializable, Cloneable, Comparable<PartitionValuesResponse> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionValuesResponse");
+
+ private static final org.apache.thrift.protocol.TField PARTITION_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionValues", org.apache.thrift.protocol.TType.LIST, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new PartitionValuesResponseStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new PartitionValuesResponseTupleSchemeFactory());
+ }
+
+ private List<PartitionValuesRow> partitionValues; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ PARTITION_VALUES((short)1, "partitionValues");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ 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: // PARTITION_VALUES
+ return PARTITION_VALUES;
+ 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.PARTITION_VALUES, new org.apache.thrift.meta_data.FieldMetaData("partitionValues", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesRow.class))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesResponse.class, metaDataMap);
+ }
+
+ public PartitionValuesResponse() {
+ }
+
+ public PartitionValuesResponse(
+ List<PartitionValuesRow> partitionValues)
+ {
+ this();
+ this.partitionValues = partitionValues;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public PartitionValuesResponse(PartitionValuesResponse other) {
+ if (other.isSetPartitionValues()) {
+ List<PartitionValuesRow> __this__partitionValues = new ArrayList<PartitionValuesRow>(other.partitionValues.size());
+ for (PartitionValuesRow other_element : other.partitionValues) {
+ __this__partitionValues.add(new PartitionValuesRow(other_element));
+ }
+ this.partitionValues = __this__partitionValues;
+ }
+ }
+
+ public PartitionValuesResponse deepCopy() {
+ return new PartitionValuesResponse(this);
+ }
+
+ @Override
+ public void clear() {
+ this.partitionValues = null;
+ }
+
+ public int getPartitionValuesSize() {
+ return (this.partitionValues == null) ? 0 : this.partitionValues.size();
+ }
+
+ public java.util.Iterator<PartitionValuesRow> getPartitionValuesIterator() {
+ return (this.partitionValues == null) ? null : this.partitionValues.iterator();
+ }
+
+ public void addToPartitionValues(PartitionValuesRow elem) {
+ if (this.partitionValues == null) {
+ this.partitionValues = new ArrayList<PartitionValuesRow>();
+ }
+ this.partitionValues.add(elem);
+ }
+
+ public List<PartitionValuesRow> getPartitionValues() {
+ return this.partitionValues;
+ }
+
+ public void setPartitionValues(List<PartitionValuesRow> partitionValues) {
+ this.partitionValues = partitionValues;
+ }
+
+ public void unsetPartitionValues() {
+ this.partitionValues = null;
+ }
+
+ /** Returns true if field partitionValues is set (has been assigned a value) and false otherwise */
+ public boolean isSetPartitionValues() {
+ return this.partitionValues != null;
+ }
+
+ public void setPartitionValuesIsSet(boolean value) {
+ if (!value) {
+ this.partitionValues = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case PARTITION_VALUES:
+ if (value == null) {
+ unsetPartitionValues();
+ } else {
+ setPartitionValues((List<PartitionValuesRow>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case PARTITION_VALUES:
+ return getPartitionValues();
+
+ }
+ 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 PARTITION_VALUES:
+ return isSetPartitionValues();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof PartitionValuesResponse)
+ return this.equals((PartitionValuesResponse)that);
+ return false;
+ }
+
+ public boolean equals(PartitionValuesResponse that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_partitionValues = true && this.isSetPartitionValues();
+ boolean that_present_partitionValues = true && that.isSetPartitionValues();
+ if (this_present_partitionValues || that_present_partitionValues) {
+ if (!(this_present_partitionValues && that_present_partitionValues))
+ return false;
+ if (!this.partitionValues.equals(that.partitionValues))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_partitionValues = true && (isSetPartitionValues());
+ list.add(present_partitionValues);
+ if (present_partitionValues)
+ list.add(partitionValues);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(PartitionValuesResponse other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetPartitionValues()).compareTo(other.isSetPartitionValues());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetPartitionValues()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionValues, other.partitionValues);
+ 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("PartitionValuesResponse(");
+ boolean first = true;
+
+ sb.append("partitionValues:");
+ if (this.partitionValues == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.partitionValues);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetPartitionValues()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionValues' is unset! Struct:" + toString());
+ }
+
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class PartitionValuesResponseStandardSchemeFactory implements SchemeFactory {
+ public PartitionValuesResponseStandardScheme getScheme() {
+ return new PartitionValuesResponseStandardScheme();
+ }
+ }
+
+ private static class PartitionValuesResponseStandardScheme extends StandardScheme<PartitionValuesResponse> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesResponse 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: // PARTITION_VALUES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list508 = iprot.readListBegin();
+ struct.partitionValues = new ArrayList<PartitionValuesRow>(_list508.size);
+ PartitionValuesRow _elem509;
+ for (int _i510 = 0; _i510 < _list508.size; ++_i510)
+ {
+ _elem509 = new PartitionValuesRow();
+ _elem509.read(iprot);
+ struct.partitionValues.add(_elem509);
+ }
+ iprot.readListEnd();
+ }
+ struct.setPartitionValuesIsSet(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, PartitionValuesResponse struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.partitionValues != null) {
+ oprot.writeFieldBegin(PARTITION_VALUES_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionValues.size()));
+ for (PartitionValuesRow _iter511 : struct.partitionValues)
+ {
+ _iter511.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class PartitionValuesResponseTupleSchemeFactory implements SchemeFactory {
+ public PartitionValuesResponseTupleScheme getScheme() {
+ return new PartitionValuesResponseTupleScheme();
+ }
+ }
+
+ private static class PartitionValuesResponseTupleScheme extends TupleScheme<PartitionValuesResponse> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ {
+ oprot.writeI32(struct.partitionValues.size());
+ for (PartitionValuesRow _iter512 : struct.partitionValues)
+ {
+ _iter512.write(oprot);
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ {
+ org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.partitionValues = new ArrayList<PartitionValuesRow>(_list513.size);
+ PartitionValuesRow _elem514;
+ for (int _i515 = 0; _i515 < _list513.size; ++_i515)
+ {
+ _elem514 = new PartitionValuesRow();
+ _elem514.read(iprot);
+ struct.partitionValues.add(_elem514);
+ }
+ }
+ struct.setPartitionValuesIsSet(true);
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java
new file mode 100644
index 0000000..2ed8014
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java
@@ -0,0 +1,438 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+public class PartitionValuesRow implements org.apache.thrift.TBase<PartitionValuesRow, PartitionValuesRow._Fields>, java.io.Serializable, Cloneable, Comparable<PartitionValuesRow> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionValuesRow");
+
+ private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.LIST, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new PartitionValuesRowStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new PartitionValuesRowTupleSchemeFactory());
+ }
+
+ private List<String> row; // 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 {
+ ROW((short)1, "row");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ 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: // ROW
+ return ROW;
+ 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.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ 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(PartitionValuesRow.class, metaDataMap);
+ }
+
+ public PartitionValuesRow() {
+ }
+
+ public PartitionValuesRow(
+ List<String> row)
+ {
+ this();
+ this.row = row;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public PartitionValuesRow(PartitionValuesRow other) {
+ if (other.isSetRow()) {
+ List<String> __this__row = new ArrayList<String>(other.row);
+ this.row = __this__row;
+ }
+ }
+
+ public PartitionValuesRow deepCopy() {
+ return new PartitionValuesRow(this);
+ }
+
+ @Override
+ public void clear() {
+ this.row = null;
+ }
+
+ public int getRowSize() {
+ return (this.row == null) ? 0 : this.row.size();
+ }
+
+ public java.util.Iterator<String> getRowIterator() {
+ return (this.row == null) ? null : this.row.iterator();
+ }
+
+ public void addToRow(String elem) {
+ if (this.row == null) {
+ this.row = new ArrayList<String>();
+ }
+ this.row.add(elem);
+ }
+
+ public List<String> getRow() {
+ return this.row;
+ }
+
+ public void setRow(List<String> row) {
+ this.row = row;
+ }
+
+ public void unsetRow() {
+ this.row = null;
+ }
+
+ /** Returns true if field row is set (has been assigned a value) and false otherwise */
+ public boolean isSetRow() {
+ return this.row != null;
+ }
+
+ public void setRowIsSet(boolean value) {
+ if (!value) {
+ this.row = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case ROW:
+ if (value == null) {
+ unsetRow();
+ } else {
+ setRow((List<String>)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ROW:
+ return getRow();
+
+ }
+ 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 ROW:
+ return isSetRow();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof PartitionValuesRow)
+ return this.equals((PartitionValuesRow)that);
+ return false;
+ }
+
+ public boolean equals(PartitionValuesRow that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_row = true && this.isSetRow();
+ boolean that_present_row = true && that.isSetRow();
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!this.row.equals(that.row))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_row = true && (isSetRow());
+ list.add(present_row);
+ if (present_row)
+ list.add(row);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(PartitionValuesRow other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetRow()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row);
+ 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("PartitionValuesRow(");
+ boolean first = true;
+
+ sb.append("row:");
+ if (this.row == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.row);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (!isSetRow()) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' is unset! Struct:" + toString());
+ }
+
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class PartitionValuesRowStandardSchemeFactory implements SchemeFactory {
+ public PartitionValuesRowStandardScheme getScheme() {
+ return new PartitionValuesRowStandardScheme();
+ }
+ }
+
+ private static class PartitionValuesRowStandardScheme extends StandardScheme<PartitionValuesRow> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRow 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: // ROW
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list500 = iprot.readListBegin();
+ struct.row = new ArrayList<String>(_list500.size);
+ String _elem501;
+ for (int _i502 = 0; _i502 < _list500.size; ++_i502)
+ {
+ _elem501 = iprot.readString();
+ struct.row.add(_elem501);
+ }
+ iprot.readListEnd();
+ }
+ struct.setRowIsSet(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, PartitionValuesRow struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.row != null) {
+ oprot.writeFieldBegin(ROW_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.row.size()));
+ for (String _iter503 : struct.row)
+ {
+ oprot.writeString(_iter503);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class PartitionValuesRowTupleSchemeFactory implements SchemeFactory {
+ public PartitionValuesRowTupleScheme getScheme() {
+ return new PartitionValuesRowTupleScheme();
+ }
+ }
+
+ private static class PartitionValuesRowTupleScheme extends TupleScheme<PartitionValuesRow> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ {
+ oprot.writeI32(struct.row.size());
+ for (String _iter504 : struct.row)
+ {
+ oprot.writeString(_iter504);
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ {
+ org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.row = new ArrayList<String>(_list505.size);
+ String _elem506;
+ for (int _i507 = 0; _i507 < _list505.size; ++_i507)
+ {
+ _elem506 = iprot.readString();
+ struct.row.add(_elem506);
+ }
+ }
+ struct.setRowIsSet(true);
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java
index 0c06ff3..d4b7d8c 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java
@@ -547,13 +547,13 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list650 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list650.size);
- long _elem651;
- for (int _i652 = 0; _i652 < _list650.size; ++_i652)
+ org.apache.thrift.protocol.TList _list682 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list682.size);
+ long _elem683;
+ for (int _i684 = 0; _i684 < _list682.size; ++_i684)
{
- _elem651 = iprot.readI64();
- struct.fileIds.add(_elem651);
+ _elem683 = iprot.readI64();
+ struct.fileIds.add(_elem683);
}
iprot.readListEnd();
}
@@ -565,13 +565,13 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
case 2: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list653 = iprot.readListBegin();
- struct.metadata = new ArrayList<ByteBuffer>(_list653.size);
- ByteBuffer _elem654;
- for (int _i655 = 0; _i655 < _list653.size; ++_i655)
+ org.apache.thrift.protocol.TList _list685 = iprot.readListBegin();
+ struct.metadata = new ArrayList<ByteBuffer>(_list685.size);
+ ByteBuffer _elem686;
+ for (int _i687 = 0; _i687 < _list685.size; ++_i687)
{
- _elem654 = iprot.readBinary();
- struct.metadata.add(_elem654);
+ _elem686 = iprot.readBinary();
+ struct.metadata.add(_elem686);
}
iprot.readListEnd();
}
@@ -605,9 +605,9 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
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 _iter656 : struct.fileIds)
+ for (long _iter688 : struct.fileIds)
{
- oprot.writeI64(_iter656);
+ oprot.writeI64(_iter688);
}
oprot.writeListEnd();
}
@@ -617,9 +617,9 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
oprot.writeFieldBegin(METADATA_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size()));
- for (ByteBuffer _iter657 : struct.metadata)
+ for (ByteBuffer _iter689 : struct.metadata)
{
- oprot.writeBinary(_iter657);
+ oprot.writeBinary(_iter689);
}
oprot.writeListEnd();
}
@@ -651,16 +651,16 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter658 : struct.fileIds)
+ for (long _iter690 : struct.fileIds)
{
- oprot.writeI64(_iter658);
+ oprot.writeI64(_iter690);
}
}
{
oprot.writeI32(struct.metadata.size());
- for (ByteBuffer _iter659 : struct.metadata)
+ for (ByteBuffer _iter691 : struct.metadata)
{
- oprot.writeBinary(_iter659);
+ oprot.writeBinary(_iter691);
}
}
BitSet optionals = new BitSet();
@@ -677,24 +677,24 @@ public class PutFileMetadataRequest implements org.apache.thrift.TBase<PutFileMe
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 _list660 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list660.size);
- long _elem661;
- for (int _i662 = 0; _i662 < _list660.size; ++_i662)
+ org.apache.thrift.protocol.TList _list692 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list692.size);
+ long _elem693;
+ for (int _i694 = 0; _i694 < _list692.size; ++_i694)
{
- _elem661 = iprot.readI64();
- struct.fileIds.add(_elem661);
+ _elem693 = iprot.readI64();
+ struct.fileIds.add(_elem693);
}
}
struct.setFileIdsIsSet(true);
{
- org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.metadata = new ArrayList<ByteBuffer>(_list663.size);
- ByteBuffer _elem664;
- for (int _i665 = 0; _i665 < _list663.size; ++_i665)
+ org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.metadata = new ArrayList<ByteBuffer>(_list695.size);
+ ByteBuffer _elem696;
+ for (int _i697 = 0; _i697 < _list695.size; ++_i697)
{
- _elem664 = iprot.readBinary();
- struct.metadata.add(_elem664);
+ _elem696 = iprot.readBinary();
+ struct.metadata.add(_elem696);
}
}
struct.setMetadataIsSet(true);
[05/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
index 4e49b7c..5ea5fc4 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
@@ -166,6 +166,8 @@ public class ThriftHiveMetastore {
public List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
+ public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
+
public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
public List<Partition> get_partitions_ps_with_auth(String db_name, String tbl_name, List<String> part_vals, short max_parts, String user_name, List<String> group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
@@ -492,6 +494,8 @@ public class ThriftHiveMetastore {
public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void get_partition_values(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void get_partitions_ps_with_auth(String db_name, String tbl_name, List<String> part_vals, short max_parts, String user_name, List<String> group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -2593,6 +2597,35 @@ public class ThriftHiveMetastore {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result");
}
+ public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
+ {
+ send_get_partition_values(request);
+ return recv_get_partition_values();
+ }
+
+ public void send_get_partition_values(PartitionValuesRequest request) throws org.apache.thrift.TException
+ {
+ get_partition_values_args args = new get_partition_values_args();
+ args.setRequest(request);
+ sendBase("get_partition_values", args);
+ }
+
+ public PartitionValuesResponse recv_get_partition_values() throws MetaException, NoSuchObjectException, org.apache.thrift.TException
+ {
+ get_partition_values_result result = new get_partition_values_result();
+ receiveBase(result, "get_partition_values");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ if (result.o2 != null) {
+ throw result.o2;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_values failed: unknown result");
+ }
+
public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
{
send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts);
@@ -7597,6 +7630,38 @@ public class ThriftHiveMetastore {
}
}
+ public void get_partition_values(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ get_partition_values_call method_call = new get_partition_values_call(request, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class get_partition_values_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private PartitionValuesRequest request;
+ public get_partition_values_call(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.request = request;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_values", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ get_partition_values_args args = new get_partition_values_args();
+ args.setRequest(request);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public PartitionValuesResponse getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_get_partition_values();
+ }
+ }
+
public void get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport);
@@ -11071,6 +11136,7 @@ public class ThriftHiveMetastore {
processMap.put("get_partitions_with_auth", new get_partitions_with_auth());
processMap.put("get_partitions_pspec", new get_partitions_pspec());
processMap.put("get_partition_names", new get_partition_names());
+ processMap.put("get_partition_values", new get_partition_values());
processMap.put("get_partitions_ps", new get_partitions_ps());
processMap.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth());
processMap.put("get_partition_names_ps", new get_partition_names_ps());
@@ -12823,6 +12889,32 @@ public class ThriftHiveMetastore {
}
}
+ public static class get_partition_values<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_partition_values_args> {
+ public get_partition_values() {
+ super("get_partition_values");
+ }
+
+ public get_partition_values_args getEmptyArgsInstance() {
+ return new get_partition_values_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public get_partition_values_result getResult(I iface, get_partition_values_args args) throws org.apache.thrift.TException {
+ get_partition_values_result result = new get_partition_values_result();
+ try {
+ result.success = iface.get_partition_values(args.request);
+ } catch (MetaException o1) {
+ result.o1 = o1;
+ } catch (NoSuchObjectException o2) {
+ result.o2 = o2;
+ }
+ return result;
+ }
+ }
+
public static class get_partitions_ps<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_partitions_ps_args> {
public get_partitions_ps() {
super("get_partitions_ps");
@@ -15342,6 +15434,7 @@ public class ThriftHiveMetastore {
processMap.put("get_partitions_with_auth", new get_partitions_with_auth());
processMap.put("get_partitions_pspec", new get_partitions_pspec());
processMap.put("get_partition_names", new get_partition_names());
+ processMap.put("get_partition_values", new get_partition_values());
processMap.put("get_partitions_ps", new get_partitions_ps());
processMap.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth());
processMap.put("get_partition_names_ps", new get_partition_names_ps());
@@ -19357,6 +19450,68 @@ public class ThriftHiveMetastore {
}
}
+ public static class get_partition_values<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_partition_values_args, PartitionValuesResponse> {
+ public get_partition_values() {
+ super("get_partition_values");
+ }
+
+ public get_partition_values_args getEmptyArgsInstance() {
+ return new get_partition_values_args();
+ }
+
+ public AsyncMethodCallback<PartitionValuesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<PartitionValuesResponse>() {
+ public void onComplete(PartitionValuesResponse o) {
+ get_partition_values_result result = new get_partition_values_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_partition_values_result result = new get_partition_values_result();
+ if (e instanceof MetaException) {
+ result.o1 = (MetaException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof NoSuchObjectException) {
+ result.o2 = (NoSuchObjectException) e;
+ result.setO2IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, get_partition_values_args args, org.apache.thrift.async.AsyncMethodCallback<PartitionValuesResponse> resultHandler) throws TException {
+ iface.get_partition_values(args.request,resultHandler);
+ }
+ }
+
public static class get_partitions_ps<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_partitions_ps_args, List<Partition>> {
public get_partitions_ps() {
super("get_partitions_ps");
@@ -30611,13 +30766,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list706 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list706.size);
- String _elem707;
- for (int _i708 = 0; _i708 < _list706.size; ++_i708)
+ org.apache.thrift.protocol.TList _list738 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list738.size);
+ String _elem739;
+ for (int _i740 = 0; _i740 < _list738.size; ++_i740)
{
- _elem707 = iprot.readString();
- struct.success.add(_elem707);
+ _elem739 = iprot.readString();
+ struct.success.add(_elem739);
}
iprot.readListEnd();
}
@@ -30652,9 +30807,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter709 : struct.success)
+ for (String _iter741 : struct.success)
{
- oprot.writeString(_iter709);
+ oprot.writeString(_iter741);
}
oprot.writeListEnd();
}
@@ -30693,9 +30848,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter710 : struct.success)
+ for (String _iter742 : struct.success)
{
- oprot.writeString(_iter710);
+ oprot.writeString(_iter742);
}
}
}
@@ -30710,13 +30865,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list711.size);
- String _elem712;
- for (int _i713 = 0; _i713 < _list711.size; ++_i713)
+ org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list743.size);
+ String _elem744;
+ for (int _i745 = 0; _i745 < _list743.size; ++_i745)
{
- _elem712 = iprot.readString();
- struct.success.add(_elem712);
+ _elem744 = iprot.readString();
+ struct.success.add(_elem744);
}
}
struct.setSuccessIsSet(true);
@@ -31370,13 +31525,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list714 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list714.size);
- String _elem715;
- for (int _i716 = 0; _i716 < _list714.size; ++_i716)
+ org.apache.thrift.protocol.TList _list746 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list746.size);
+ String _elem747;
+ for (int _i748 = 0; _i748 < _list746.size; ++_i748)
{
- _elem715 = iprot.readString();
- struct.success.add(_elem715);
+ _elem747 = iprot.readString();
+ struct.success.add(_elem747);
}
iprot.readListEnd();
}
@@ -31411,9 +31566,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter717 : struct.success)
+ for (String _iter749 : struct.success)
{
- oprot.writeString(_iter717);
+ oprot.writeString(_iter749);
}
oprot.writeListEnd();
}
@@ -31452,9 +31607,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter718 : struct.success)
+ for (String _iter750 : struct.success)
{
- oprot.writeString(_iter718);
+ oprot.writeString(_iter750);
}
}
}
@@ -31469,13 +31624,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list719.size);
- String _elem720;
- for (int _i721 = 0; _i721 < _list719.size; ++_i721)
+ org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list751.size);
+ String _elem752;
+ for (int _i753 = 0; _i753 < _list751.size; ++_i753)
{
- _elem720 = iprot.readString();
- struct.success.add(_elem720);
+ _elem752 = iprot.readString();
+ struct.success.add(_elem752);
}
}
struct.setSuccessIsSet(true);
@@ -36082,16 +36237,16 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map722 = iprot.readMapBegin();
- struct.success = new HashMap<String,Type>(2*_map722.size);
- String _key723;
- Type _val724;
- for (int _i725 = 0; _i725 < _map722.size; ++_i725)
+ org.apache.thrift.protocol.TMap _map754 = iprot.readMapBegin();
+ struct.success = new HashMap<String,Type>(2*_map754.size);
+ String _key755;
+ Type _val756;
+ for (int _i757 = 0; _i757 < _map754.size; ++_i757)
{
- _key723 = iprot.readString();
- _val724 = new Type();
- _val724.read(iprot);
- struct.success.put(_key723, _val724);
+ _key755 = iprot.readString();
+ _val756 = new Type();
+ _val756.read(iprot);
+ struct.success.put(_key755, _val756);
}
iprot.readMapEnd();
}
@@ -36126,10 +36281,10 @@ public class ThriftHiveMetastore {
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<String, Type> _iter726 : struct.success.entrySet())
+ for (Map.Entry<String, Type> _iter758 : struct.success.entrySet())
{
- oprot.writeString(_iter726.getKey());
- _iter726.getValue().write(oprot);
+ oprot.writeString(_iter758.getKey());
+ _iter758.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -36168,10 +36323,10 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, Type> _iter727 : struct.success.entrySet())
+ for (Map.Entry<String, Type> _iter759 : struct.success.entrySet())
{
- oprot.writeString(_iter727.getKey());
- _iter727.getValue().write(oprot);
+ oprot.writeString(_iter759.getKey());
+ _iter759.getValue().write(oprot);
}
}
}
@@ -36186,16 +36341,16 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map728 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new HashMap<String,Type>(2*_map728.size);
- String _key729;
- Type _val730;
- for (int _i731 = 0; _i731 < _map728.size; ++_i731)
+ org.apache.thrift.protocol.TMap _map760 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new HashMap<String,Type>(2*_map760.size);
+ String _key761;
+ Type _val762;
+ for (int _i763 = 0; _i763 < _map760.size; ++_i763)
{
- _key729 = iprot.readString();
- _val730 = new Type();
- _val730.read(iprot);
- struct.success.put(_key729, _val730);
+ _key761 = iprot.readString();
+ _val762 = new Type();
+ _val762.read(iprot);
+ struct.success.put(_key761, _val762);
}
}
struct.setSuccessIsSet(true);
@@ -37230,14 +37385,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list732 = iprot.readListBegin();
- struct.success = new ArrayList<FieldSchema>(_list732.size);
- FieldSchema _elem733;
- for (int _i734 = 0; _i734 < _list732.size; ++_i734)
+ org.apache.thrift.protocol.TList _list764 = iprot.readListBegin();
+ struct.success = new ArrayList<FieldSchema>(_list764.size);
+ FieldSchema _elem765;
+ for (int _i766 = 0; _i766 < _list764.size; ++_i766)
{
- _elem733 = new FieldSchema();
- _elem733.read(iprot);
- struct.success.add(_elem733);
+ _elem765 = new FieldSchema();
+ _elem765.read(iprot);
+ struct.success.add(_elem765);
}
iprot.readListEnd();
}
@@ -37290,9 +37445,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (FieldSchema _iter735 : struct.success)
+ for (FieldSchema _iter767 : struct.success)
{
- _iter735.write(oprot);
+ _iter767.write(oprot);
}
oprot.writeListEnd();
}
@@ -37347,9 +37502,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (FieldSchema _iter736 : struct.success)
+ for (FieldSchema _iter768 : struct.success)
{
- _iter736.write(oprot);
+ _iter768.write(oprot);
}
}
}
@@ -37370,14 +37525,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<FieldSchema>(_list737.size);
- FieldSchema _elem738;
- for (int _i739 = 0; _i739 < _list737.size; ++_i739)
+ org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<FieldSchema>(_list769.size);
+ FieldSchema _elem770;
+ for (int _i771 = 0; _i771 < _list769.size; ++_i771)
{
- _elem738 = new FieldSchema();
- _elem738.read(iprot);
- struct.success.add(_elem738);
+ _elem770 = new FieldSchema();
+ _elem770.read(iprot);
+ struct.success.add(_elem770);
}
}
struct.setSuccessIsSet(true);
@@ -38531,14 +38686,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list740 = iprot.readListBegin();
- struct.success = new ArrayList<FieldSchema>(_list740.size);
- FieldSchema _elem741;
- for (int _i742 = 0; _i742 < _list740.size; ++_i742)
+ org.apache.thrift.protocol.TList _list772 = iprot.readListBegin();
+ struct.success = new ArrayList<FieldSchema>(_list772.size);
+ FieldSchema _elem773;
+ for (int _i774 = 0; _i774 < _list772.size; ++_i774)
{
- _elem741 = new FieldSchema();
- _elem741.read(iprot);
- struct.success.add(_elem741);
+ _elem773 = new FieldSchema();
+ _elem773.read(iprot);
+ struct.success.add(_elem773);
}
iprot.readListEnd();
}
@@ -38591,9 +38746,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (FieldSchema _iter743 : struct.success)
+ for (FieldSchema _iter775 : struct.success)
{
- _iter743.write(oprot);
+ _iter775.write(oprot);
}
oprot.writeListEnd();
}
@@ -38648,9 +38803,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (FieldSchema _iter744 : struct.success)
+ for (FieldSchema _iter776 : struct.success)
{
- _iter744.write(oprot);
+ _iter776.write(oprot);
}
}
}
@@ -38671,14 +38826,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<FieldSchema>(_list745.size);
- FieldSchema _elem746;
- for (int _i747 = 0; _i747 < _list745.size; ++_i747)
+ org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<FieldSchema>(_list777.size);
+ FieldSchema _elem778;
+ for (int _i779 = 0; _i779 < _list777.size; ++_i779)
{
- _elem746 = new FieldSchema();
- _elem746.read(iprot);
- struct.success.add(_elem746);
+ _elem778 = new FieldSchema();
+ _elem778.read(iprot);
+ struct.success.add(_elem778);
}
}
struct.setSuccessIsSet(true);
@@ -39723,14 +39878,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list748 = iprot.readListBegin();
- struct.success = new ArrayList<FieldSchema>(_list748.size);
- FieldSchema _elem749;
- for (int _i750 = 0; _i750 < _list748.size; ++_i750)
+ org.apache.thrift.protocol.TList _list780 = iprot.readListBegin();
+ struct.success = new ArrayList<FieldSchema>(_list780.size);
+ FieldSchema _elem781;
+ for (int _i782 = 0; _i782 < _list780.size; ++_i782)
{
- _elem749 = new FieldSchema();
- _elem749.read(iprot);
- struct.success.add(_elem749);
+ _elem781 = new FieldSchema();
+ _elem781.read(iprot);
+ struct.success.add(_elem781);
}
iprot.readListEnd();
}
@@ -39783,9 +39938,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (FieldSchema _iter751 : struct.success)
+ for (FieldSchema _iter783 : struct.success)
{
- _iter751.write(oprot);
+ _iter783.write(oprot);
}
oprot.writeListEnd();
}
@@ -39840,9 +39995,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (FieldSchema _iter752 : struct.success)
+ for (FieldSchema _iter784 : struct.success)
{
- _iter752.write(oprot);
+ _iter784.write(oprot);
}
}
}
@@ -39863,14 +40018,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<FieldSchema>(_list753.size);
- FieldSchema _elem754;
- for (int _i755 = 0; _i755 < _list753.size; ++_i755)
+ org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<FieldSchema>(_list785.size);
+ FieldSchema _elem786;
+ for (int _i787 = 0; _i787 < _list785.size; ++_i787)
{
- _elem754 = new FieldSchema();
- _elem754.read(iprot);
- struct.success.add(_elem754);
+ _elem786 = new FieldSchema();
+ _elem786.read(iprot);
+ struct.success.add(_elem786);
}
}
struct.setSuccessIsSet(true);
@@ -41024,14 +41179,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list756 = iprot.readListBegin();
- struct.success = new ArrayList<FieldSchema>(_list756.size);
- FieldSchema _elem757;
- for (int _i758 = 0; _i758 < _list756.size; ++_i758)
+ org.apache.thrift.protocol.TList _list788 = iprot.readListBegin();
+ struct.success = new ArrayList<FieldSchema>(_list788.size);
+ FieldSchema _elem789;
+ for (int _i790 = 0; _i790 < _list788.size; ++_i790)
{
- _elem757 = new FieldSchema();
- _elem757.read(iprot);
- struct.success.add(_elem757);
+ _elem789 = new FieldSchema();
+ _elem789.read(iprot);
+ struct.success.add(_elem789);
}
iprot.readListEnd();
}
@@ -41084,9 +41239,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (FieldSchema _iter759 : struct.success)
+ for (FieldSchema _iter791 : struct.success)
{
- _iter759.write(oprot);
+ _iter791.write(oprot);
}
oprot.writeListEnd();
}
@@ -41141,9 +41296,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (FieldSchema _iter760 : struct.success)
+ for (FieldSchema _iter792 : struct.success)
{
- _iter760.write(oprot);
+ _iter792.write(oprot);
}
}
}
@@ -41164,14 +41319,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<FieldSchema>(_list761.size);
- FieldSchema _elem762;
- for (int _i763 = 0; _i763 < _list761.size; ++_i763)
+ org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<FieldSchema>(_list793.size);
+ FieldSchema _elem794;
+ for (int _i795 = 0; _i795 < _list793.size; ++_i795)
{
- _elem762 = new FieldSchema();
- _elem762.read(iprot);
- struct.success.add(_elem762);
+ _elem794 = new FieldSchema();
+ _elem794.read(iprot);
+ struct.success.add(_elem794);
}
}
struct.setSuccessIsSet(true);
@@ -44098,14 +44253,14 @@ public class ThriftHiveMetastore {
case 2: // PRIMARY_KEYS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list764 = iprot.readListBegin();
- struct.primaryKeys = new ArrayList<SQLPrimaryKey>(_list764.size);
- SQLPrimaryKey _elem765;
- for (int _i766 = 0; _i766 < _list764.size; ++_i766)
+ org.apache.thrift.protocol.TList _list796 = iprot.readListBegin();
+ struct.primaryKeys = new ArrayList<SQLPrimaryKey>(_list796.size);
+ SQLPrimaryKey _elem797;
+ for (int _i798 = 0; _i798 < _list796.size; ++_i798)
{
- _elem765 = new SQLPrimaryKey();
- _elem765.read(iprot);
- struct.primaryKeys.add(_elem765);
+ _elem797 = new SQLPrimaryKey();
+ _elem797.read(iprot);
+ struct.primaryKeys.add(_elem797);
}
iprot.readListEnd();
}
@@ -44117,14 +44272,14 @@ public class ThriftHiveMetastore {
case 3: // FOREIGN_KEYS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list767 = iprot.readListBegin();
- struct.foreignKeys = new ArrayList<SQLForeignKey>(_list767.size);
- SQLForeignKey _elem768;
- for (int _i769 = 0; _i769 < _list767.size; ++_i769)
+ org.apache.thrift.protocol.TList _list799 = iprot.readListBegin();
+ struct.foreignKeys = new ArrayList<SQLForeignKey>(_list799.size);
+ SQLForeignKey _elem800;
+ for (int _i801 = 0; _i801 < _list799.size; ++_i801)
{
- _elem768 = new SQLForeignKey();
- _elem768.read(iprot);
- struct.foreignKeys.add(_elem768);
+ _elem800 = new SQLForeignKey();
+ _elem800.read(iprot);
+ struct.foreignKeys.add(_elem800);
}
iprot.readListEnd();
}
@@ -44136,14 +44291,14 @@ public class ThriftHiveMetastore {
case 4: // UNIQUE_CONSTRAINTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list770 = iprot.readListBegin();
- struct.uniqueConstraints = new ArrayList<SQLUniqueConstraint>(_list770.size);
- SQLUniqueConstraint _elem771;
- for (int _i772 = 0; _i772 < _list770.size; ++_i772)
+ org.apache.thrift.protocol.TList _list802 = iprot.readListBegin();
+ struct.uniqueConstraints = new ArrayList<SQLUniqueConstraint>(_list802.size);
+ SQLUniqueConstraint _elem803;
+ for (int _i804 = 0; _i804 < _list802.size; ++_i804)
{
- _elem771 = new SQLUniqueConstraint();
- _elem771.read(iprot);
- struct.uniqueConstraints.add(_elem771);
+ _elem803 = new SQLUniqueConstraint();
+ _elem803.read(iprot);
+ struct.uniqueConstraints.add(_elem803);
}
iprot.readListEnd();
}
@@ -44155,14 +44310,14 @@ public class ThriftHiveMetastore {
case 5: // NOT_NULL_CONSTRAINTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list773 = iprot.readListBegin();
- struct.notNullConstraints = new ArrayList<SQLNotNullConstraint>(_list773.size);
- SQLNotNullConstraint _elem774;
- for (int _i775 = 0; _i775 < _list773.size; ++_i775)
+ org.apache.thrift.protocol.TList _list805 = iprot.readListBegin();
+ struct.notNullConstraints = new ArrayList<SQLNotNullConstraint>(_list805.size);
+ SQLNotNullConstraint _elem806;
+ for (int _i807 = 0; _i807 < _list805.size; ++_i807)
{
- _elem774 = new SQLNotNullConstraint();
- _elem774.read(iprot);
- struct.notNullConstraints.add(_elem774);
+ _elem806 = new SQLNotNullConstraint();
+ _elem806.read(iprot);
+ struct.notNullConstraints.add(_elem806);
}
iprot.readListEnd();
}
@@ -44193,9 +44348,9 @@ public class ThriftHiveMetastore {
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 _iter776 : struct.primaryKeys)
+ for (SQLPrimaryKey _iter808 : struct.primaryKeys)
{
- _iter776.write(oprot);
+ _iter808.write(oprot);
}
oprot.writeListEnd();
}
@@ -44205,9 +44360,9 @@ public class ThriftHiveMetastore {
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 _iter777 : struct.foreignKeys)
+ for (SQLForeignKey _iter809 : struct.foreignKeys)
{
- _iter777.write(oprot);
+ _iter809.write(oprot);
}
oprot.writeListEnd();
}
@@ -44217,9 +44372,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size()));
- for (SQLUniqueConstraint _iter778 : struct.uniqueConstraints)
+ for (SQLUniqueConstraint _iter810 : struct.uniqueConstraints)
{
- _iter778.write(oprot);
+ _iter810.write(oprot);
}
oprot.writeListEnd();
}
@@ -44229,9 +44384,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size()));
- for (SQLNotNullConstraint _iter779 : struct.notNullConstraints)
+ for (SQLNotNullConstraint _iter811 : struct.notNullConstraints)
{
- _iter779.write(oprot);
+ _iter811.write(oprot);
}
oprot.writeListEnd();
}
@@ -44277,36 +44432,36 @@ public class ThriftHiveMetastore {
if (struct.isSetPrimaryKeys()) {
{
oprot.writeI32(struct.primaryKeys.size());
- for (SQLPrimaryKey _iter780 : struct.primaryKeys)
+ for (SQLPrimaryKey _iter812 : struct.primaryKeys)
{
- _iter780.write(oprot);
+ _iter812.write(oprot);
}
}
}
if (struct.isSetForeignKeys()) {
{
oprot.writeI32(struct.foreignKeys.size());
- for (SQLForeignKey _iter781 : struct.foreignKeys)
+ for (SQLForeignKey _iter813 : struct.foreignKeys)
{
- _iter781.write(oprot);
+ _iter813.write(oprot);
}
}
}
if (struct.isSetUniqueConstraints()) {
{
oprot.writeI32(struct.uniqueConstraints.size());
- for (SQLUniqueConstraint _iter782 : struct.uniqueConstraints)
+ for (SQLUniqueConstraint _iter814 : struct.uniqueConstraints)
{
- _iter782.write(oprot);
+ _iter814.write(oprot);
}
}
}
if (struct.isSetNotNullConstraints()) {
{
oprot.writeI32(struct.notNullConstraints.size());
- for (SQLNotNullConstraint _iter783 : struct.notNullConstraints)
+ for (SQLNotNullConstraint _iter815 : struct.notNullConstraints)
{
- _iter783.write(oprot);
+ _iter815.write(oprot);
}
}
}
@@ -44323,56 +44478,56 @@ public class ThriftHiveMetastore {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list784 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.primaryKeys = new ArrayList<SQLPrimaryKey>(_list784.size);
- SQLPrimaryKey _elem785;
- for (int _i786 = 0; _i786 < _list784.size; ++_i786)
+ org.apache.thrift.protocol.TList _list816 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.primaryKeys = new ArrayList<SQLPrimaryKey>(_list816.size);
+ SQLPrimaryKey _elem817;
+ for (int _i818 = 0; _i818 < _list816.size; ++_i818)
{
- _elem785 = new SQLPrimaryKey();
- _elem785.read(iprot);
- struct.primaryKeys.add(_elem785);
+ _elem817 = new SQLPrimaryKey();
+ _elem817.read(iprot);
+ struct.primaryKeys.add(_elem817);
}
}
struct.setPrimaryKeysIsSet(true);
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.foreignKeys = new ArrayList<SQLForeignKey>(_list787.size);
- SQLForeignKey _elem788;
- for (int _i789 = 0; _i789 < _list787.size; ++_i789)
+ org.apache.thrift.protocol.TList _list819 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.foreignKeys = new ArrayList<SQLForeignKey>(_list819.size);
+ SQLForeignKey _elem820;
+ for (int _i821 = 0; _i821 < _list819.size; ++_i821)
{
- _elem788 = new SQLForeignKey();
- _elem788.read(iprot);
- struct.foreignKeys.add(_elem788);
+ _elem820 = new SQLForeignKey();
+ _elem820.read(iprot);
+ struct.foreignKeys.add(_elem820);
}
}
struct.setForeignKeysIsSet(true);
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TList _list790 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.uniqueConstraints = new ArrayList<SQLUniqueConstraint>(_list790.size);
- SQLUniqueConstraint _elem791;
- for (int _i792 = 0; _i792 < _list790.size; ++_i792)
+ org.apache.thrift.protocol.TList _list822 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.uniqueConstraints = new ArrayList<SQLUniqueConstraint>(_list822.size);
+ SQLUniqueConstraint _elem823;
+ for (int _i824 = 0; _i824 < _list822.size; ++_i824)
{
- _elem791 = new SQLUniqueConstraint();
- _elem791.read(iprot);
- struct.uniqueConstraints.add(_elem791);
+ _elem823 = new SQLUniqueConstraint();
+ _elem823.read(iprot);
+ struct.uniqueConstraints.add(_elem823);
}
}
struct.setUniqueConstraintsIsSet(true);
}
if (incoming.get(4)) {
{
- org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.notNullConstraints = new ArrayList<SQLNotNullConstraint>(_list793.size);
- SQLNotNullConstraint _elem794;
- for (int _i795 = 0; _i795 < _list793.size; ++_i795)
+ org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.notNullConstraints = new ArrayList<SQLNotNullConstraint>(_list825.size);
+ SQLNotNullConstraint _elem826;
+ for (int _i827 = 0; _i827 < _list825.size; ++_i827)
{
- _elem794 = new SQLNotNullConstraint();
- _elem794.read(iprot);
- struct.notNullConstraints.add(_elem794);
+ _elem826 = new SQLNotNullConstraint();
+ _elem826.read(iprot);
+ struct.notNullConstraints.add(_elem826);
}
}
struct.setNotNullConstraintsIsSet(true);
@@ -51864,13 +52019,13 @@ public class ThriftHiveMetastore {
case 3: // PART_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list796 = iprot.readListBegin();
- struct.partNames = new ArrayList<String>(_list796.size);
- String _elem797;
- for (int _i798 = 0; _i798 < _list796.size; ++_i798)
+ org.apache.thrift.protocol.TList _list828 = iprot.readListBegin();
+ struct.partNames = new ArrayList<String>(_list828.size);
+ String _elem829;
+ for (int _i830 = 0; _i830 < _list828.size; ++_i830)
{
- _elem797 = iprot.readString();
- struct.partNames.add(_elem797);
+ _elem829 = iprot.readString();
+ struct.partNames.add(_elem829);
}
iprot.readListEnd();
}
@@ -51906,9 +52061,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(PART_NAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size()));
- for (String _iter799 : struct.partNames)
+ for (String _iter831 : struct.partNames)
{
- oprot.writeString(_iter799);
+ oprot.writeString(_iter831);
}
oprot.writeListEnd();
}
@@ -51951,9 +52106,9 @@ public class ThriftHiveMetastore {
if (struct.isSetPartNames()) {
{
oprot.writeI32(struct.partNames.size());
- for (String _iter800 : struct.partNames)
+ for (String _iter832 : struct.partNames)
{
- oprot.writeString(_iter800);
+ oprot.writeString(_iter832);
}
}
}
@@ -51973,13 +52128,13 @@ public class ThriftHiveMetastore {
}
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.partNames = new ArrayList<String>(_list801.size);
- String _elem802;
- for (int _i803 = 0; _i803 < _list801.size; ++_i803)
+ org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partNames = new ArrayList<String>(_list833.size);
+ String _elem834;
+ for (int _i835 = 0; _i835 < _list833.size; ++_i835)
{
- _elem802 = iprot.readString();
- struct.partNames.add(_elem802);
+ _elem834 = iprot.readString();
+ struct.partNames.add(_elem834);
}
}
struct.setPartNamesIsSet(true);
@@ -53204,13 +53359,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list804 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list804.size);
- String _elem805;
- for (int _i806 = 0; _i806 < _list804.size; ++_i806)
+ org.apache.thrift.protocol.TList _list836 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list836.size);
+ String _elem837;
+ for (int _i838 = 0; _i838 < _list836.size; ++_i838)
{
- _elem805 = iprot.readString();
- struct.success.add(_elem805);
+ _elem837 = iprot.readString();
+ struct.success.add(_elem837);
}
iprot.readListEnd();
}
@@ -53245,9 +53400,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter807 : struct.success)
+ for (String _iter839 : struct.success)
{
- oprot.writeString(_iter807);
+ oprot.writeString(_iter839);
}
oprot.writeListEnd();
}
@@ -53286,9 +53441,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter808 : struct.success)
+ for (String _iter840 : struct.success)
{
- oprot.writeString(_iter808);
+ oprot.writeString(_iter840);
}
}
}
@@ -53303,13 +53458,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list809.size);
- String _elem810;
- for (int _i811 = 0; _i811 < _list809.size; ++_i811)
+ org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list841.size);
+ String _elem842;
+ for (int _i843 = 0; _i843 < _list841.size; ++_i843)
{
- _elem810 = iprot.readString();
- struct.success.add(_elem810);
+ _elem842 = iprot.readString();
+ struct.success.add(_elem842);
}
}
struct.setSuccessIsSet(true);
@@ -54283,13 +54438,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list812 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list812.size);
- String _elem813;
- for (int _i814 = 0; _i814 < _list812.size; ++_i814)
+ org.apache.thrift.protocol.TList _list844 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list844.size);
+ String _elem845;
+ for (int _i846 = 0; _i846 < _list844.size; ++_i846)
{
- _elem813 = iprot.readString();
- struct.success.add(_elem813);
+ _elem845 = iprot.readString();
+ struct.success.add(_elem845);
}
iprot.readListEnd();
}
@@ -54324,9 +54479,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter815 : struct.success)
+ for (String _iter847 : struct.success)
{
- oprot.writeString(_iter815);
+ oprot.writeString(_iter847);
}
oprot.writeListEnd();
}
@@ -54365,9 +54520,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter816 : struct.success)
+ for (String _iter848 : struct.success)
{
- oprot.writeString(_iter816);
+ oprot.writeString(_iter848);
}
}
}
@@ -54382,13 +54537,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list817.size);
- String _elem818;
- for (int _i819 = 0; _i819 < _list817.size; ++_i819)
+ org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list849.size);
+ String _elem850;
+ for (int _i851 = 0; _i851 < _list849.size; ++_i851)
{
- _elem818 = iprot.readString();
- struct.success.add(_elem818);
+ _elem850 = iprot.readString();
+ struct.success.add(_elem850);
}
}
struct.setSuccessIsSet(true);
@@ -54893,13 +55048,13 @@ public class ThriftHiveMetastore {
case 3: // TBL_TYPES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list820 = iprot.readListBegin();
- struct.tbl_types = new ArrayList<String>(_list820.size);
- String _elem821;
- for (int _i822 = 0; _i822 < _list820.size; ++_i822)
+ org.apache.thrift.protocol.TList _list852 = iprot.readListBegin();
+ struct.tbl_types = new ArrayList<String>(_list852.size);
+ String _elem853;
+ for (int _i854 = 0; _i854 < _list852.size; ++_i854)
{
- _elem821 = iprot.readString();
- struct.tbl_types.add(_elem821);
+ _elem853 = iprot.readString();
+ struct.tbl_types.add(_elem853);
}
iprot.readListEnd();
}
@@ -54935,9 +55090,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size()));
- for (String _iter823 : struct.tbl_types)
+ for (String _iter855 : struct.tbl_types)
{
- oprot.writeString(_iter823);
+ oprot.writeString(_iter855);
}
oprot.writeListEnd();
}
@@ -54980,9 +55135,9 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_types()) {
{
oprot.writeI32(struct.tbl_types.size());
- for (String _iter824 : struct.tbl_types)
+ for (String _iter856 : struct.tbl_types)
{
- oprot.writeString(_iter824);
+ oprot.writeString(_iter856);
}
}
}
@@ -55002,13 +55157,13 @@ public class ThriftHiveMetastore {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tbl_types = new ArrayList<String>(_list825.size);
- String _elem826;
- for (int _i827 = 0; _i827 < _list825.size; ++_i827)
+ org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tbl_types = new ArrayList<String>(_list857.size);
+ String _elem858;
+ for (int _i859 = 0; _i859 < _list857.size; ++_i859)
{
- _elem826 = iprot.readString();
- struct.tbl_types.add(_elem826);
+ _elem858 = iprot.readString();
+ struct.tbl_types.add(_elem858);
}
}
struct.setTbl_typesIsSet(true);
@@ -55414,14 +55569,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list828 = iprot.readListBegin();
- struct.success = new ArrayList<TableMeta>(_list828.size);
- TableMeta _elem829;
- for (int _i830 = 0; _i830 < _list828.size; ++_i830)
+ org.apache.thrift.protocol.TList _list860 = iprot.readListBegin();
+ struct.success = new ArrayList<TableMeta>(_list860.size);
+ TableMeta _elem861;
+ for (int _i862 = 0; _i862 < _list860.size; ++_i862)
{
- _elem829 = new TableMeta();
- _elem829.read(iprot);
- struct.success.add(_elem829);
+ _elem861 = new TableMeta();
+ _elem861.read(iprot);
+ struct.success.add(_elem861);
}
iprot.readListEnd();
}
@@ -55456,9 +55611,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (TableMeta _iter831 : struct.success)
+ for (TableMeta _iter863 : struct.success)
{
- _iter831.write(oprot);
+ _iter863.write(oprot);
}
oprot.writeListEnd();
}
@@ -55497,9 +55652,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (TableMeta _iter832 : struct.success)
+ for (TableMeta _iter864 : struct.success)
{
- _iter832.write(oprot);
+ _iter864.write(oprot);
}
}
}
@@ -55514,14 +55669,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<TableMeta>(_list833.size);
- TableMeta _elem834;
- for (int _i835 = 0; _i835 < _list833.size; ++_i835)
+ org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<TableMeta>(_list865.size);
+ TableMeta _elem866;
+ for (int _i867 = 0; _i867 < _list865.size; ++_i867)
{
- _elem834 = new TableMeta();
- _elem834.read(iprot);
- struct.success.add(_elem834);
+ _elem866 = new TableMeta();
+ _elem866.read(iprot);
+ struct.success.add(_elem866);
}
}
struct.setSuccessIsSet(true);
@@ -56287,13 +56442,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list836 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list836.size);
- String _elem837;
- for (int _i838 = 0; _i838 < _list836.size; ++_i838)
+ org.apache.thrift.protocol.TList _list868 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list868.size);
+ String _elem869;
+ for (int _i870 = 0; _i870 < _list868.size; ++_i870)
{
- _elem837 = iprot.readString();
- struct.success.add(_elem837);
+ _elem869 = iprot.readString();
+ struct.success.add(_elem869);
}
iprot.readListEnd();
}
@@ -56328,9 +56483,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter839 : struct.success)
+ for (String _iter871 : struct.success)
{
- oprot.writeString(_iter839);
+ oprot.writeString(_iter871);
}
oprot.writeListEnd();
}
@@ -56369,9 +56524,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter840 : struct.success)
+ for (String _iter872 : struct.success)
{
- oprot.writeString(_iter840);
+ oprot.writeString(_iter872);
}
}
}
@@ -56386,13 +56541,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list841.size);
- String _elem842;
- for (int _i843 = 0; _i843 < _list841.size; ++_i843)
+ org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list873.size);
+ String _elem874;
+ for (int _i875 = 0; _i875 < _list873.size; ++_i875)
{
- _elem842 = iprot.readString();
- struct.success.add(_elem842);
+ _elem874 = iprot.readString();
+ struct.success.add(_elem874);
}
}
struct.setSuccessIsSet(true);
@@ -57845,13 +58000,13 @@ public class ThriftHiveMetastore {
case 2: // TBL_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list844 = iprot.readListBegin();
- struct.tbl_names = new ArrayList<String>(_list844.size);
- String _elem845;
- for (int _i846 = 0; _i846 < _list844.size; ++_i846)
+ org.apache.thrift.protocol.TList _list876 = iprot.readListBegin();
+ struct.tbl_names = new ArrayList<String>(_list876.size);
+ String _elem877;
+ for (int _i878 = 0; _i878 < _list876.size; ++_i878)
{
- _elem845 = iprot.readString();
- struct.tbl_names.add(_elem845);
+ _elem877 = iprot.readString();
+ struct.tbl_names.add(_elem877);
}
iprot.readListEnd();
}
@@ -57882,9 +58037,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size()));
- for (String _iter847 : struct.tbl_names)
+ for (String _iter879 : struct.tbl_names)
{
- oprot.writeString(_iter847);
+ oprot.writeString(_iter879);
}
oprot.writeListEnd();
}
@@ -57921,9 +58076,9 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_names()) {
{
oprot.writeI32(struct.tbl_names.size());
- for (String _iter848 : struct.tbl_names)
+ for (String _iter880 : struct.tbl_names)
{
- oprot.writeString(_iter848);
+ oprot.writeString(_iter880);
}
}
}
@@ -57939,13 +58094,13 @@ public class ThriftHiveMetastore {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tbl_names = new ArrayList<String>(_list849.size);
- String _elem850;
- for (int _i851 = 0; _i851 < _list849.size; ++_i851)
+ org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tbl_names = new ArrayList<String>(_list881.size);
+ String _elem882;
+ for (int _i883 = 0; _i883 < _list881.size; ++_i883)
{
- _elem850 = iprot.readString();
- struct.tbl_names.add(_elem850);
+ _elem882 = iprot.readString();
+ struct.tbl_names.add(_elem882);
}
}
struct.setTbl_namesIsSet(true);
@@ -58270,14 +58425,14 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list852 = iprot.readListBegin();
- struct.success = new ArrayList<Table>(_list852.size);
- Table _elem853;
- for (int _i854 = 0; _i854 < _list852.size; ++_i854)
+ org.apache.thrift.protocol.TList _list884 = iprot.readListBegin();
+ struct.success = new ArrayList<Table>(_list884.size);
+ Table _elem885;
+ for (int _i886 = 0; _i886 < _list884.size; ++_i886)
{
- _elem853 = new Table();
- _elem853.read(iprot);
- struct.success.add(_elem853);
+ _elem885 = new Table();
+ _elem885.read(iprot);
+ struct.success.add(_elem885);
}
iprot.readListEnd();
}
@@ -58303,9 +58458,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Table _iter855 : struct.success)
+ for (Table _iter887 : struct.success)
{
- _iter855.write(oprot);
+ _iter887.write(oprot);
}
oprot.writeListEnd();
}
@@ -58336,9 +58491,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Table _iter856 : struct.success)
+ for (Table _iter888 : struct.success)
{
- _iter856.write(oprot);
+ _iter888.write(oprot);
}
}
}
@@ -58350,14 +58505,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Table>(_list857.size);
- Table _elem858;
- for (int _i859 = 0; _i859 < _list857.size; ++_i859)
+ org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Table>(_list889.size);
+ Table _elem890;
+ for (int _i891 = 0; _i891 < _list889.size; ++_i891)
{
- _elem858 = new Table();
- _elem858.read(iprot);
- struct.success.add(_elem858);
+ _elem890 = new Table();
+ _elem890.read(iprot);
+ struct.success.add(_elem890);
}
}
struct.setSuccessIsSet(true);
@@ -61470,13 +61625,13 @@ public class ThriftHiveMetastore {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list860 = iprot.readListBegin();
- struct.success = new ArrayList<String>(_list860.size);
- String _elem861;
- for (int _i862 = 0; _i862 < _list860.size; ++_i862)
+ org.apache.thrift.protocol.TList _list892 = iprot.readListBegin();
+ struct.success = new ArrayList<String>(_list892.size);
+ String _elem893;
+ for (int _i894 = 0; _i894 < _list892.size; ++_i894)
{
- _elem861 = iprot.readString();
- struct.success.add(_elem861);
+ _elem893 = iprot.readString();
+ struct.success.add(_elem893);
}
iprot.readListEnd();
}
@@ -61529,9 +61684,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter863 : struct.success)
+ for (String _iter895 : struct.success)
{
- oprot.writeString(_iter863);
+ oprot.writeString(_iter895);
}
oprot.writeListEnd();
}
@@ -61586,9 +61741,9 @@ public class ThriftHiveMetastore {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter864 : struct.success)
+ for (String _iter896 : struct.success)
{
- oprot.writeString(_iter864);
+ oprot.writeString(_iter896);
}
}
}
@@ -61609,13 +61764,13 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList<String>(_list865.size);
- String _elem866;
- for (int _i867 = 0; _i867 < _list865.size; ++_i867)
+ org.apache.thrift.protocol.TList _list897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList<String>(_list897.size);
+ String _elem898;
+ for (int _i899 = 0; _i899 < _list897.size; ++_i899)
{
- _elem866 = iprot.readString();
- struct.success.add(_elem866);
+ _elem898 = iprot.readString();
+ struct.success.add(_elem898);
}
}
struct.setSuccessIsSet(true);
@@ -67474,14 +67629,14 @@ public class ThriftHiveMetastore {
case 1: // NEW_PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list868 = iprot.readListBegin();
- struct.new_parts = new ArrayList<Partition>(_list868.size);
- Partition _elem869;
- for (int _i870 = 0; _i870 < _list868.size; ++_i870)
+ org.apache.thrift.protocol.TList _list900 = iprot.readListBegin();
+ struct.new_parts = new ArrayList<Partition>(_list900.size);
+ Partition _elem901;
+ for (int _i902 = 0; _i902 < _list900.size; ++_i902)
{
- _elem869 = new Partition();
- _elem869.read(iprot);
- struct.new_parts.add(_elem869);
+ _elem901 = new Partition();
+ _elem901.read(iprot);
+ struct.new_parts.add(_elem901);
}
iprot.readListEnd();
}
@@ -67507,9 +67662,9 @@ public class ThriftHiveMetastore {
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 _iter871 : struct.new_parts)
+ for (Partition _iter903 : struct.new_parts)
{
- _iter871.write(oprot);
+ _iter903.write(oprot);
}
oprot.writeListEnd();
}
@@ -67540,9 +67695,9 @@ public class ThriftHiveMetastore {
if (struct.isSetNew_parts()) {
{
oprot.writeI32(struct.new_parts.size());
- for (Partition _iter872 : struct.new_parts)
+ for (Partition _iter904 : struct.new_parts)
{
- _iter872.write(oprot);
+ _iter904.write(oprot);
}
}
}
@@ -67554,14 +67709,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.new_parts = new ArrayList<Partition>(_list873.size);
- Partition _elem874;
- for (int _i875 = 0; _i875 < _list873.size; ++_i875)
+ org.apache.thrift.protocol.TList _list905 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.new_parts = new ArrayList<Partition>(_list905.size);
+ Partition _elem906;
+ for (int _i907 = 0; _i907 < _list905.size; ++_i907)
{
- _elem874 = new Partition();
- _elem874.read(iprot);
- struct.new_parts.add(_elem874);
+ _elem906 = new Partition();
+ _elem906.read(iprot);
+ struct.new_parts.add(_elem906);
}
}
struct.setNew_partsIsSet(true);
@@ -68562,14 +68717,14 @@ public class ThriftHiveMetastore {
case 1: // NEW_PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list876 = iprot.readListBegin();
- struct.new_parts = new ArrayList<PartitionSpec>(_list876.size);
- PartitionSpec _elem877;
- for (int _i878 = 0; _i878 < _list876.size; ++_i878)
+ org.apache.thrift.protocol.TList _list908 = iprot.readListBegin();
+ struct.new_parts = new ArrayList<PartitionSpec>(_list908.size);
+ PartitionSpec _elem909;
+ for (int _i910 = 0; _i910 < _list908.size; ++_i910)
{
- _elem877 = new PartitionSpec();
- _elem877.read(iprot);
- struct.new_parts.add(_elem877);
+ _elem909 = new PartitionSpec();
+ _elem909.read(iprot);
+ struct.new_parts.add(_elem909);
}
iprot.readListEnd();
}
@@ -68595,9 +68750,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size()));
- for (PartitionSpec _iter879 : struct.new_parts)
+ for (PartitionSpec _iter911 : struct.new_parts)
{
- _iter879.write(oprot);
+ _iter911.write(oprot);
}
oprot.writeListEnd();
}
@@ -68628,9 +68783,9 @@ public class ThriftHiveMetastore {
if (struct.isSetNew_parts()) {
{
oprot.writeI32(struct.new_parts.size());
- for (PartitionSpec _iter880 : struct.new_parts)
+ for (PartitionSpec _iter912 : struct.new_parts)
{
- _iter880.write(oprot);
+ _iter912.write(oprot);
}
}
}
@@ -68642,14 +68797,14 @@ public class ThriftHiveMetastore {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.new_parts = new ArrayList<PartitionSpec>(_list881.size);
- PartitionSpec _elem882;
- for (int _i883 = 0; _i883 < _list881.size; ++_i883)
+ org.apache.thrift.protocol.TList _list913 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.new_parts = new ArrayList<PartitionSpec>(_list913.size);
+ PartitionSpec _elem914;
+ for (int _i915 = 0; _i915 < _list913.size; ++_i915)
{
- _elem882 = new PartitionSpec();
- _elem882.read(iprot);
- struct.new_parts.add(_elem882);
+ _elem914 = new PartitionSpec();
+ _elem914.read(iprot);
+ struct.new_parts.add(_elem914);
}
}
struct.setNew_partsIsSet(true);
@@ -69825,13 +69980,13 @@ public class ThriftHiveMetastore {
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list884 = iprot.readListBegin();
- struct.part_vals = new ArrayList<String>(_list884.size);
- String _elem885;
- for (int _i886 = 0; _i886 < _list884.size; ++_i886)
+ org.apache.thrift.protocol.TList _list916 = iprot.readListBegin();
+ struct.part_vals = new ArrayList<String>(_list916.size);
+ String _elem917;
+ for (int _i918 = 0; _i918 < _list916.size; ++_i918)
{
- _elem885 = iprot.readString();
- struct.part_vals.add(_elem885);
+ _elem917 = iprot.readString();
+ struct.part_vals.add(_elem917);
}
iprot.readListEnd();
}
@@ -69867,9 +70022,9 @@ public class ThriftHiveMetastore {
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 _iter887 : struct.part_vals)
+ for (String _iter919 : struct.part_vals)
{
- oprot.writeString(_iter887);
+ oprot.writeString(_iter919);
}
oprot.writeListEnd();
}
@@ -69912,9 +70067,9 @@ public class ThriftHiveMetastore {
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter888 : struct.part_vals)
+ for (String _iter920 : struct.part_vals)
{
- oprot.writeString(_iter888);
+ oprot.writeString(_iter920);
}
}
}
@@ -69934,13 +70089,13 @@ public class ThriftHiveMetastore {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList<String>(_list889.size);
- String _elem890;
- for (int _i891 = 0; _i891 < _list889.size; ++_i891)
+ org.apache.thrift.protocol.TList _list921 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList<String>(_list921.size);
+ String _elem922;
+ for (int _i923 = 0; _i923 < _list921.size; ++_i923)
{
- _elem890 = iprot.readString();
- struct.part_vals.add(_elem890);
+ _elem922 = iprot.readString();
+ struct.part_vals.add(_elem922);
}
}
struct.setPart_valsIsSet(true);
@@ -72249,13 +72404,13 @@ public class ThriftHiveMetastore {
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list892 = iprot.readListBegin();
- struct.part_vals = new ArrayList<String>(_list892.size);
- String _elem893;
- for (int _i894 = 0; _i894 < _list892.size; ++_i894)
+ org.apache.thrift.protocol.TList _list924 = iprot.readListBegin();
+ struct.part_vals = new ArrayList<String>(_list924.size);
+ String _elem925;
+ for (int _i926 = 0; _i926 < _list924.size; ++_i926)
{
- _elem893 = iprot.readString();
- struct.part_vals.add(_elem893);
+ _elem925 = iprot.readString();
+ struct.part_vals.add(_elem925);
}
iprot.readListEnd();
}
@@ -72300,9 +72455,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(PART_VALS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size()));
- for (String _iter895 : struct.part_vals)
+ for (String _iter927 : struct.part_vals)
{
- oprot.writeString(_iter895);
+ oprot.writeString(_iter927);
}
oprot.writeListEnd();
}
@@ -72353,9 +72508,9 @@ public class ThriftHiveMetastore {
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter896 : struct.part_vals)
+ for (String _iter928 : struct.part_vals)
{
- oprot.writeString(_iter896);
+ oprot.writeString(_iter928);
}
}
}
@@ -72378,13 +72533,13 @@ public class ThriftHiveMetastore {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList<String>(_list897.size);
- String _elem898;
- for (int _i899 = 0; _i899 < _list897.size; ++_i899)
+ org.apache.thrift.protocol.TList _list929 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList<String>(_list929.size);
+ String _elem930;
+ for (int _i931 = 0; _i931 < _list929.size; ++_i931)
{
- _elem898 = iprot.readString();
- struct.part_vals.add(_elem898);
+ _elem930 = iprot.readString();
+ struct.part_vals.add(_elem930);
}
}
struct.setPart_valsIsSet(true);
@@ -76254,13 +76409,13 @@ public class ThriftHiveMetastore {
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list900 = iprot.readListBegin();
- struct.part_vals = new ArrayList<String>(_list900.size);
- String _elem901;
- for (int _i902 = 0; _i902 < _list900.size; ++_i902)
+ org.apache.thrift.protocol.TList _list932 = iprot.readListBegin();
+ struct.part_vals = new ArrayList<String>(_list932.size);
+ String _elem933;
+ for (int _i934 = 0; _i934 < _list932.size; ++_i934)
{
- _elem901 = iprot.readString();
- struct.part_vals.add(_elem901);
+ _elem933 = iprot.readString();
+ struct.part_vals.add(_elem933);
}
iprot.readListEnd();
}
@@ -76304,9 +76459,9 @@ public class ThriftHiveMetastore {
oprot.writeFieldBegin(PART_V
<TRUNCATED>
[04/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
index dbe0f4e..358b852 100644
--- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
+++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
@@ -542,6 +542,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf {
*/
public function get_partition_names($db_name, $tbl_name, $max_parts);
/**
+ * @param \metastore\PartitionValuesRequest $request
+ * @return \metastore\PartitionValuesResponse
+ * @throws \metastore\MetaException
+ * @throws \metastore\NoSuchObjectException
+ */
+ public function get_partition_values(\metastore\PartitionValuesRequest $request);
+ /**
* @param string $db_name
* @param string $tbl_name
* @param string[] $part_vals
@@ -4864,6 +4871,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas
throw new \Exception("get_partition_names failed: unknown result");
}
+ public function get_partition_values(\metastore\PartitionValuesRequest $request)
+ {
+ $this->send_get_partition_values($request);
+ return $this->recv_get_partition_values();
+ }
+
+ public function send_get_partition_values(\metastore\PartitionValuesRequest $request)
+ {
+ $args = new \metastore\ThriftHiveMetastore_get_partition_values_args();
+ $args->request = $request;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'get_partition_values', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('get_partition_values', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_get_partition_values()
+ {
+ $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_partition_values_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_partition_values_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
+ if ($result->o2 !== null) {
+ throw $result->o2;
+ }
+ throw new \Exception("get_partition_values failed: unknown result");
+ }
+
public function get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts)
{
$this->send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts);
@@ -11522,14 +11586,14 @@ class ThriftHiveMetastore_get_databases_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size624 = 0;
- $_etype627 = 0;
- $xfer += $input->readListBegin($_etype627, $_size624);
- for ($_i628 = 0; $_i628 < $_size624; ++$_i628)
+ $_size652 = 0;
+ $_etype655 = 0;
+ $xfer += $input->readListBegin($_etype655, $_size652);
+ for ($_i656 = 0; $_i656 < $_size652; ++$_i656)
{
- $elem629 = null;
- $xfer += $input->readString($elem629);
- $this->success []= $elem629;
+ $elem657 = null;
+ $xfer += $input->readString($elem657);
+ $this->success []= $elem657;
}
$xfer += $input->readListEnd();
} else {
@@ -11565,9 +11629,9 @@ class ThriftHiveMetastore_get_databases_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter630)
+ foreach ($this->success as $iter658)
{
- $xfer += $output->writeString($iter630);
+ $xfer += $output->writeString($iter658);
}
}
$output->writeListEnd();
@@ -11698,14 +11762,14 @@ class ThriftHiveMetastore_get_all_databases_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size631 = 0;
- $_etype634 = 0;
- $xfer += $input->readListBegin($_etype634, $_size631);
- for ($_i635 = 0; $_i635 < $_size631; ++$_i635)
+ $_size659 = 0;
+ $_etype662 = 0;
+ $xfer += $input->readListBegin($_etype662, $_size659);
+ for ($_i663 = 0; $_i663 < $_size659; ++$_i663)
{
- $elem636 = null;
- $xfer += $input->readString($elem636);
- $this->success []= $elem636;
+ $elem664 = null;
+ $xfer += $input->readString($elem664);
+ $this->success []= $elem664;
}
$xfer += $input->readListEnd();
} else {
@@ -11741,9 +11805,9 @@ class ThriftHiveMetastore_get_all_databases_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter637)
+ foreach ($this->success as $iter665)
{
- $xfer += $output->writeString($iter637);
+ $xfer += $output->writeString($iter665);
}
}
$output->writeListEnd();
@@ -12744,18 +12808,18 @@ class ThriftHiveMetastore_get_type_all_result {
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size638 = 0;
- $_ktype639 = 0;
- $_vtype640 = 0;
- $xfer += $input->readMapBegin($_ktype639, $_vtype640, $_size638);
- for ($_i642 = 0; $_i642 < $_size638; ++$_i642)
+ $_size666 = 0;
+ $_ktype667 = 0;
+ $_vtype668 = 0;
+ $xfer += $input->readMapBegin($_ktype667, $_vtype668, $_size666);
+ for ($_i670 = 0; $_i670 < $_size666; ++$_i670)
{
- $key643 = '';
- $val644 = new \metastore\Type();
- $xfer += $input->readString($key643);
- $val644 = new \metastore\Type();
- $xfer += $val644->read($input);
- $this->success[$key643] = $val644;
+ $key671 = '';
+ $val672 = new \metastore\Type();
+ $xfer += $input->readString($key671);
+ $val672 = new \metastore\Type();
+ $xfer += $val672->read($input);
+ $this->success[$key671] = $val672;
}
$xfer += $input->readMapEnd();
} else {
@@ -12791,10 +12855,10 @@ class ThriftHiveMetastore_get_type_all_result {
{
$output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
{
- foreach ($this->success as $kiter645 => $viter646)
+ foreach ($this->success as $kiter673 => $viter674)
{
- $xfer += $output->writeString($kiter645);
- $xfer += $viter646->write($output);
+ $xfer += $output->writeString($kiter673);
+ $xfer += $viter674->write($output);
}
}
$output->writeMapEnd();
@@ -12998,15 +13062,15 @@ class ThriftHiveMetastore_get_fields_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size647 = 0;
- $_etype650 = 0;
- $xfer += $input->readListBegin($_etype650, $_size647);
- for ($_i651 = 0; $_i651 < $_size647; ++$_i651)
+ $_size675 = 0;
+ $_etype678 = 0;
+ $xfer += $input->readListBegin($_etype678, $_size675);
+ for ($_i679 = 0; $_i679 < $_size675; ++$_i679)
{
- $elem652 = null;
- $elem652 = new \metastore\FieldSchema();
- $xfer += $elem652->read($input);
- $this->success []= $elem652;
+ $elem680 = null;
+ $elem680 = new \metastore\FieldSchema();
+ $xfer += $elem680->read($input);
+ $this->success []= $elem680;
}
$xfer += $input->readListEnd();
} else {
@@ -13058,9 +13122,9 @@ class ThriftHiveMetastore_get_fields_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter653)
+ foreach ($this->success as $iter681)
{
- $xfer += $iter653->write($output);
+ $xfer += $iter681->write($output);
}
}
$output->writeListEnd();
@@ -13302,15 +13366,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size654 = 0;
- $_etype657 = 0;
- $xfer += $input->readListBegin($_etype657, $_size654);
- for ($_i658 = 0; $_i658 < $_size654; ++$_i658)
+ $_size682 = 0;
+ $_etype685 = 0;
+ $xfer += $input->readListBegin($_etype685, $_size682);
+ for ($_i686 = 0; $_i686 < $_size682; ++$_i686)
{
- $elem659 = null;
- $elem659 = new \metastore\FieldSchema();
- $xfer += $elem659->read($input);
- $this->success []= $elem659;
+ $elem687 = null;
+ $elem687 = new \metastore\FieldSchema();
+ $xfer += $elem687->read($input);
+ $this->success []= $elem687;
}
$xfer += $input->readListEnd();
} else {
@@ -13362,9 +13426,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter660)
+ foreach ($this->success as $iter688)
{
- $xfer += $iter660->write($output);
+ $xfer += $iter688->write($output);
}
}
$output->writeListEnd();
@@ -13578,15 +13642,15 @@ class ThriftHiveMetastore_get_schema_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size661 = 0;
- $_etype664 = 0;
- $xfer += $input->readListBegin($_etype664, $_size661);
- for ($_i665 = 0; $_i665 < $_size661; ++$_i665)
+ $_size689 = 0;
+ $_etype692 = 0;
+ $xfer += $input->readListBegin($_etype692, $_size689);
+ for ($_i693 = 0; $_i693 < $_size689; ++$_i693)
{
- $elem666 = null;
- $elem666 = new \metastore\FieldSchema();
- $xfer += $elem666->read($input);
- $this->success []= $elem666;
+ $elem694 = null;
+ $elem694 = new \metastore\FieldSchema();
+ $xfer += $elem694->read($input);
+ $this->success []= $elem694;
}
$xfer += $input->readListEnd();
} else {
@@ -13638,9 +13702,9 @@ class ThriftHiveMetastore_get_schema_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter667)
+ foreach ($this->success as $iter695)
{
- $xfer += $iter667->write($output);
+ $xfer += $iter695->write($output);
}
}
$output->writeListEnd();
@@ -13882,15 +13946,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size668 = 0;
- $_etype671 = 0;
- $xfer += $input->readListBegin($_etype671, $_size668);
- for ($_i672 = 0; $_i672 < $_size668; ++$_i672)
+ $_size696 = 0;
+ $_etype699 = 0;
+ $xfer += $input->readListBegin($_etype699, $_size696);
+ for ($_i700 = 0; $_i700 < $_size696; ++$_i700)
{
- $elem673 = null;
- $elem673 = new \metastore\FieldSchema();
- $xfer += $elem673->read($input);
- $this->success []= $elem673;
+ $elem701 = null;
+ $elem701 = new \metastore\FieldSchema();
+ $xfer += $elem701->read($input);
+ $this->success []= $elem701;
}
$xfer += $input->readListEnd();
} else {
@@ -13942,9 +14006,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter674)
+ foreach ($this->success as $iter702)
{
- $xfer += $iter674->write($output);
+ $xfer += $iter702->write($output);
}
}
$output->writeListEnd();
@@ -14584,15 +14648,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
case 2:
if ($ftype == TType::LST) {
$this->primaryKeys = array();
- $_size675 = 0;
- $_etype678 = 0;
- $xfer += $input->readListBegin($_etype678, $_size675);
- for ($_i679 = 0; $_i679 < $_size675; ++$_i679)
+ $_size703 = 0;
+ $_etype706 = 0;
+ $xfer += $input->readListBegin($_etype706, $_size703);
+ for ($_i707 = 0; $_i707 < $_size703; ++$_i707)
{
- $elem680 = null;
- $elem680 = new \metastore\SQLPrimaryKey();
- $xfer += $elem680->read($input);
- $this->primaryKeys []= $elem680;
+ $elem708 = null;
+ $elem708 = new \metastore\SQLPrimaryKey();
+ $xfer += $elem708->read($input);
+ $this->primaryKeys []= $elem708;
}
$xfer += $input->readListEnd();
} else {
@@ -14602,15 +14666,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
case 3:
if ($ftype == TType::LST) {
$this->foreignKeys = array();
- $_size681 = 0;
- $_etype684 = 0;
- $xfer += $input->readListBegin($_etype684, $_size681);
- for ($_i685 = 0; $_i685 < $_size681; ++$_i685)
+ $_size709 = 0;
+ $_etype712 = 0;
+ $xfer += $input->readListBegin($_etype712, $_size709);
+ for ($_i713 = 0; $_i713 < $_size709; ++$_i713)
{
- $elem686 = null;
- $elem686 = new \metastore\SQLForeignKey();
- $xfer += $elem686->read($input);
- $this->foreignKeys []= $elem686;
+ $elem714 = null;
+ $elem714 = new \metastore\SQLForeignKey();
+ $xfer += $elem714->read($input);
+ $this->foreignKeys []= $elem714;
}
$xfer += $input->readListEnd();
} else {
@@ -14620,15 +14684,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
case 4:
if ($ftype == TType::LST) {
$this->uniqueConstraints = array();
- $_size687 = 0;
- $_etype690 = 0;
- $xfer += $input->readListBegin($_etype690, $_size687);
- for ($_i691 = 0; $_i691 < $_size687; ++$_i691)
+ $_size715 = 0;
+ $_etype718 = 0;
+ $xfer += $input->readListBegin($_etype718, $_size715);
+ for ($_i719 = 0; $_i719 < $_size715; ++$_i719)
{
- $elem692 = null;
- $elem692 = new \metastore\SQLUniqueConstraint();
- $xfer += $elem692->read($input);
- $this->uniqueConstraints []= $elem692;
+ $elem720 = null;
+ $elem720 = new \metastore\SQLUniqueConstraint();
+ $xfer += $elem720->read($input);
+ $this->uniqueConstraints []= $elem720;
}
$xfer += $input->readListEnd();
} else {
@@ -14638,15 +14702,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
case 5:
if ($ftype == TType::LST) {
$this->notNullConstraints = array();
- $_size693 = 0;
- $_etype696 = 0;
- $xfer += $input->readListBegin($_etype696, $_size693);
- for ($_i697 = 0; $_i697 < $_size693; ++$_i697)
+ $_size721 = 0;
+ $_etype724 = 0;
+ $xfer += $input->readListBegin($_etype724, $_size721);
+ for ($_i725 = 0; $_i725 < $_size721; ++$_i725)
{
- $elem698 = null;
- $elem698 = new \metastore\SQLNotNullConstraint();
- $xfer += $elem698->read($input);
- $this->notNullConstraints []= $elem698;
+ $elem726 = null;
+ $elem726 = new \metastore\SQLNotNullConstraint();
+ $xfer += $elem726->read($input);
+ $this->notNullConstraints []= $elem726;
}
$xfer += $input->readListEnd();
} else {
@@ -14682,9 +14746,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
{
$output->writeListBegin(TType::STRUCT, count($this->primaryKeys));
{
- foreach ($this->primaryKeys as $iter699)
+ foreach ($this->primaryKeys as $iter727)
{
- $xfer += $iter699->write($output);
+ $xfer += $iter727->write($output);
}
}
$output->writeListEnd();
@@ -14699,9 +14763,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
{
$output->writeListBegin(TType::STRUCT, count($this->foreignKeys));
{
- foreach ($this->foreignKeys as $iter700)
+ foreach ($this->foreignKeys as $iter728)
{
- $xfer += $iter700->write($output);
+ $xfer += $iter728->write($output);
}
}
$output->writeListEnd();
@@ -14716,9 +14780,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
{
$output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints));
{
- foreach ($this->uniqueConstraints as $iter701)
+ foreach ($this->uniqueConstraints as $iter729)
{
- $xfer += $iter701->write($output);
+ $xfer += $iter729->write($output);
}
}
$output->writeListEnd();
@@ -14733,9 +14797,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args {
{
$output->writeListBegin(TType::STRUCT, count($this->notNullConstraints));
{
- foreach ($this->notNullConstraints as $iter702)
+ foreach ($this->notNullConstraints as $iter730)
{
- $xfer += $iter702->write($output);
+ $xfer += $iter730->write($output);
}
}
$output->writeListEnd();
@@ -16371,14 +16435,14 @@ class ThriftHiveMetastore_truncate_table_args {
case 3:
if ($ftype == TType::LST) {
$this->partNames = array();
- $_size703 = 0;
- $_etype706 = 0;
- $xfer += $input->readListBegin($_etype706, $_size703);
- for ($_i707 = 0; $_i707 < $_size703; ++$_i707)
+ $_size731 = 0;
+ $_etype734 = 0;
+ $xfer += $input->readListBegin($_etype734, $_size731);
+ for ($_i735 = 0; $_i735 < $_size731; ++$_i735)
{
- $elem708 = null;
- $xfer += $input->readString($elem708);
- $this->partNames []= $elem708;
+ $elem736 = null;
+ $xfer += $input->readString($elem736);
+ $this->partNames []= $elem736;
}
$xfer += $input->readListEnd();
} else {
@@ -16416,9 +16480,9 @@ class ThriftHiveMetastore_truncate_table_args {
{
$output->writeListBegin(TType::STRING, count($this->partNames));
{
- foreach ($this->partNames as $iter709)
+ foreach ($this->partNames as $iter737)
{
- $xfer += $output->writeString($iter709);
+ $xfer += $output->writeString($iter737);
}
}
$output->writeListEnd();
@@ -16669,14 +16733,14 @@ class ThriftHiveMetastore_get_tables_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size710 = 0;
- $_etype713 = 0;
- $xfer += $input->readListBegin($_etype713, $_size710);
- for ($_i714 = 0; $_i714 < $_size710; ++$_i714)
+ $_size738 = 0;
+ $_etype741 = 0;
+ $xfer += $input->readListBegin($_etype741, $_size738);
+ for ($_i742 = 0; $_i742 < $_size738; ++$_i742)
{
- $elem715 = null;
- $xfer += $input->readString($elem715);
- $this->success []= $elem715;
+ $elem743 = null;
+ $xfer += $input->readString($elem743);
+ $this->success []= $elem743;
}
$xfer += $input->readListEnd();
} else {
@@ -16712,9 +16776,9 @@ class ThriftHiveMetastore_get_tables_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter716)
+ foreach ($this->success as $iter744)
{
- $xfer += $output->writeString($iter716);
+ $xfer += $output->writeString($iter744);
}
}
$output->writeListEnd();
@@ -16916,14 +16980,14 @@ class ThriftHiveMetastore_get_tables_by_type_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size717 = 0;
- $_etype720 = 0;
- $xfer += $input->readListBegin($_etype720, $_size717);
- for ($_i721 = 0; $_i721 < $_size717; ++$_i721)
+ $_size745 = 0;
+ $_etype748 = 0;
+ $xfer += $input->readListBegin($_etype748, $_size745);
+ for ($_i749 = 0; $_i749 < $_size745; ++$_i749)
{
- $elem722 = null;
- $xfer += $input->readString($elem722);
- $this->success []= $elem722;
+ $elem750 = null;
+ $xfer += $input->readString($elem750);
+ $this->success []= $elem750;
}
$xfer += $input->readListEnd();
} else {
@@ -16959,9 +17023,9 @@ class ThriftHiveMetastore_get_tables_by_type_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter723)
+ foreach ($this->success as $iter751)
{
- $xfer += $output->writeString($iter723);
+ $xfer += $output->writeString($iter751);
}
}
$output->writeListEnd();
@@ -17066,14 +17130,14 @@ class ThriftHiveMetastore_get_table_meta_args {
case 3:
if ($ftype == TType::LST) {
$this->tbl_types = array();
- $_size724 = 0;
- $_etype727 = 0;
- $xfer += $input->readListBegin($_etype727, $_size724);
- for ($_i728 = 0; $_i728 < $_size724; ++$_i728)
+ $_size752 = 0;
+ $_etype755 = 0;
+ $xfer += $input->readListBegin($_etype755, $_size752);
+ for ($_i756 = 0; $_i756 < $_size752; ++$_i756)
{
- $elem729 = null;
- $xfer += $input->readString($elem729);
- $this->tbl_types []= $elem729;
+ $elem757 = null;
+ $xfer += $input->readString($elem757);
+ $this->tbl_types []= $elem757;
}
$xfer += $input->readListEnd();
} else {
@@ -17111,9 +17175,9 @@ class ThriftHiveMetastore_get_table_meta_args {
{
$output->writeListBegin(TType::STRING, count($this->tbl_types));
{
- foreach ($this->tbl_types as $iter730)
+ foreach ($this->tbl_types as $iter758)
{
- $xfer += $output->writeString($iter730);
+ $xfer += $output->writeString($iter758);
}
}
$output->writeListEnd();
@@ -17190,15 +17254,15 @@ class ThriftHiveMetastore_get_table_meta_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size731 = 0;
- $_etype734 = 0;
- $xfer += $input->readListBegin($_etype734, $_size731);
- for ($_i735 = 0; $_i735 < $_size731; ++$_i735)
+ $_size759 = 0;
+ $_etype762 = 0;
+ $xfer += $input->readListBegin($_etype762, $_size759);
+ for ($_i763 = 0; $_i763 < $_size759; ++$_i763)
{
- $elem736 = null;
- $elem736 = new \metastore\TableMeta();
- $xfer += $elem736->read($input);
- $this->success []= $elem736;
+ $elem764 = null;
+ $elem764 = new \metastore\TableMeta();
+ $xfer += $elem764->read($input);
+ $this->success []= $elem764;
}
$xfer += $input->readListEnd();
} else {
@@ -17234,9 +17298,9 @@ class ThriftHiveMetastore_get_table_meta_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter737)
+ foreach ($this->success as $iter765)
{
- $xfer += $iter737->write($output);
+ $xfer += $iter765->write($output);
}
}
$output->writeListEnd();
@@ -17392,14 +17456,14 @@ class ThriftHiveMetastore_get_all_tables_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size738 = 0;
- $_etype741 = 0;
- $xfer += $input->readListBegin($_etype741, $_size738);
- for ($_i742 = 0; $_i742 < $_size738; ++$_i742)
+ $_size766 = 0;
+ $_etype769 = 0;
+ $xfer += $input->readListBegin($_etype769, $_size766);
+ for ($_i770 = 0; $_i770 < $_size766; ++$_i770)
{
- $elem743 = null;
- $xfer += $input->readString($elem743);
- $this->success []= $elem743;
+ $elem771 = null;
+ $xfer += $input->readString($elem771);
+ $this->success []= $elem771;
}
$xfer += $input->readListEnd();
} else {
@@ -17435,9 +17499,9 @@ class ThriftHiveMetastore_get_all_tables_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter744)
+ foreach ($this->success as $iter772)
{
- $xfer += $output->writeString($iter744);
+ $xfer += $output->writeString($iter772);
}
}
$output->writeListEnd();
@@ -17752,14 +17816,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args {
case 2:
if ($ftype == TType::LST) {
$this->tbl_names = array();
- $_size745 = 0;
- $_etype748 = 0;
- $xfer += $input->readListBegin($_etype748, $_size745);
- for ($_i749 = 0; $_i749 < $_size745; ++$_i749)
+ $_size773 = 0;
+ $_etype776 = 0;
+ $xfer += $input->readListBegin($_etype776, $_size773);
+ for ($_i777 = 0; $_i777 < $_size773; ++$_i777)
{
- $elem750 = null;
- $xfer += $input->readString($elem750);
- $this->tbl_names []= $elem750;
+ $elem778 = null;
+ $xfer += $input->readString($elem778);
+ $this->tbl_names []= $elem778;
}
$xfer += $input->readListEnd();
} else {
@@ -17792,9 +17856,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args {
{
$output->writeListBegin(TType::STRING, count($this->tbl_names));
{
- foreach ($this->tbl_names as $iter751)
+ foreach ($this->tbl_names as $iter779)
{
- $xfer += $output->writeString($iter751);
+ $xfer += $output->writeString($iter779);
}
}
$output->writeListEnd();
@@ -17859,15 +17923,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size752 = 0;
- $_etype755 = 0;
- $xfer += $input->readListBegin($_etype755, $_size752);
- for ($_i756 = 0; $_i756 < $_size752; ++$_i756)
+ $_size780 = 0;
+ $_etype783 = 0;
+ $xfer += $input->readListBegin($_etype783, $_size780);
+ for ($_i784 = 0; $_i784 < $_size780; ++$_i784)
{
- $elem757 = null;
- $elem757 = new \metastore\Table();
- $xfer += $elem757->read($input);
- $this->success []= $elem757;
+ $elem785 = null;
+ $elem785 = new \metastore\Table();
+ $xfer += $elem785->read($input);
+ $this->success []= $elem785;
}
$xfer += $input->readListEnd();
} else {
@@ -17895,9 +17959,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter758)
+ foreach ($this->success as $iter786)
{
- $xfer += $iter758->write($output);
+ $xfer += $iter786->write($output);
}
}
$output->writeListEnd();
@@ -18563,14 +18627,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size759 = 0;
- $_etype762 = 0;
- $xfer += $input->readListBegin($_etype762, $_size759);
- for ($_i763 = 0; $_i763 < $_size759; ++$_i763)
+ $_size787 = 0;
+ $_etype790 = 0;
+ $xfer += $input->readListBegin($_etype790, $_size787);
+ for ($_i791 = 0; $_i791 < $_size787; ++$_i791)
{
- $elem764 = null;
- $xfer += $input->readString($elem764);
- $this->success []= $elem764;
+ $elem792 = null;
+ $xfer += $input->readString($elem792);
+ $this->success []= $elem792;
}
$xfer += $input->readListEnd();
} else {
@@ -18622,9 +18686,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter765)
+ foreach ($this->success as $iter793)
{
- $xfer += $output->writeString($iter765);
+ $xfer += $output->writeString($iter793);
}
}
$output->writeListEnd();
@@ -19937,15 +20001,15 @@ class ThriftHiveMetastore_add_partitions_args {
case 1:
if ($ftype == TType::LST) {
$this->new_parts = array();
- $_size766 = 0;
- $_etype769 = 0;
- $xfer += $input->readListBegin($_etype769, $_size766);
- for ($_i770 = 0; $_i770 < $_size766; ++$_i770)
+ $_size794 = 0;
+ $_etype797 = 0;
+ $xfer += $input->readListBegin($_etype797, $_size794);
+ for ($_i798 = 0; $_i798 < $_size794; ++$_i798)
{
- $elem771 = null;
- $elem771 = new \metastore\Partition();
- $xfer += $elem771->read($input);
- $this->new_parts []= $elem771;
+ $elem799 = null;
+ $elem799 = new \metastore\Partition();
+ $xfer += $elem799->read($input);
+ $this->new_parts []= $elem799;
}
$xfer += $input->readListEnd();
} else {
@@ -19973,9 +20037,9 @@ class ThriftHiveMetastore_add_partitions_args {
{
$output->writeListBegin(TType::STRUCT, count($this->new_parts));
{
- foreach ($this->new_parts as $iter772)
+ foreach ($this->new_parts as $iter800)
{
- $xfer += $iter772->write($output);
+ $xfer += $iter800->write($output);
}
}
$output->writeListEnd();
@@ -20190,15 +20254,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args {
case 1:
if ($ftype == TType::LST) {
$this->new_parts = array();
- $_size773 = 0;
- $_etype776 = 0;
- $xfer += $input->readListBegin($_etype776, $_size773);
- for ($_i777 = 0; $_i777 < $_size773; ++$_i777)
+ $_size801 = 0;
+ $_etype804 = 0;
+ $xfer += $input->readListBegin($_etype804, $_size801);
+ for ($_i805 = 0; $_i805 < $_size801; ++$_i805)
{
- $elem778 = null;
- $elem778 = new \metastore\PartitionSpec();
- $xfer += $elem778->read($input);
- $this->new_parts []= $elem778;
+ $elem806 = null;
+ $elem806 = new \metastore\PartitionSpec();
+ $xfer += $elem806->read($input);
+ $this->new_parts []= $elem806;
}
$xfer += $input->readListEnd();
} else {
@@ -20226,9 +20290,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args {
{
$output->writeListBegin(TType::STRUCT, count($this->new_parts));
{
- foreach ($this->new_parts as $iter779)
+ foreach ($this->new_parts as $iter807)
{
- $xfer += $iter779->write($output);
+ $xfer += $iter807->write($output);
}
}
$output->writeListEnd();
@@ -20478,14 +20542,14 @@ class ThriftHiveMetastore_append_partition_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size780 = 0;
- $_etype783 = 0;
- $xfer += $input->readListBegin($_etype783, $_size780);
- for ($_i784 = 0; $_i784 < $_size780; ++$_i784)
+ $_size808 = 0;
+ $_etype811 = 0;
+ $xfer += $input->readListBegin($_etype811, $_size808);
+ for ($_i812 = 0; $_i812 < $_size808; ++$_i812)
{
- $elem785 = null;
- $xfer += $input->readString($elem785);
- $this->part_vals []= $elem785;
+ $elem813 = null;
+ $xfer += $input->readString($elem813);
+ $this->part_vals []= $elem813;
}
$xfer += $input->readListEnd();
} else {
@@ -20523,9 +20587,9 @@ class ThriftHiveMetastore_append_partition_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter786)
+ foreach ($this->part_vals as $iter814)
{
- $xfer += $output->writeString($iter786);
+ $xfer += $output->writeString($iter814);
}
}
$output->writeListEnd();
@@ -21027,14 +21091,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size787 = 0;
- $_etype790 = 0;
- $xfer += $input->readListBegin($_etype790, $_size787);
- for ($_i791 = 0; $_i791 < $_size787; ++$_i791)
+ $_size815 = 0;
+ $_etype818 = 0;
+ $xfer += $input->readListBegin($_etype818, $_size815);
+ for ($_i819 = 0; $_i819 < $_size815; ++$_i819)
{
- $elem792 = null;
- $xfer += $input->readString($elem792);
- $this->part_vals []= $elem792;
+ $elem820 = null;
+ $xfer += $input->readString($elem820);
+ $this->part_vals []= $elem820;
}
$xfer += $input->readListEnd();
} else {
@@ -21080,9 +21144,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter793)
+ foreach ($this->part_vals as $iter821)
{
- $xfer += $output->writeString($iter793);
+ $xfer += $output->writeString($iter821);
}
}
$output->writeListEnd();
@@ -21936,14 +22000,14 @@ class ThriftHiveMetastore_drop_partition_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size794 = 0;
- $_etype797 = 0;
- $xfer += $input->readListBegin($_etype797, $_size794);
- for ($_i798 = 0; $_i798 < $_size794; ++$_i798)
+ $_size822 = 0;
+ $_etype825 = 0;
+ $xfer += $input->readListBegin($_etype825, $_size822);
+ for ($_i826 = 0; $_i826 < $_size822; ++$_i826)
{
- $elem799 = null;
- $xfer += $input->readString($elem799);
- $this->part_vals []= $elem799;
+ $elem827 = null;
+ $xfer += $input->readString($elem827);
+ $this->part_vals []= $elem827;
}
$xfer += $input->readListEnd();
} else {
@@ -21988,9 +22052,9 @@ class ThriftHiveMetastore_drop_partition_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter800)
+ foreach ($this->part_vals as $iter828)
{
- $xfer += $output->writeString($iter800);
+ $xfer += $output->writeString($iter828);
}
}
$output->writeListEnd();
@@ -22243,14 +22307,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size801 = 0;
- $_etype804 = 0;
- $xfer += $input->readListBegin($_etype804, $_size801);
- for ($_i805 = 0; $_i805 < $_size801; ++$_i805)
+ $_size829 = 0;
+ $_etype832 = 0;
+ $xfer += $input->readListBegin($_etype832, $_size829);
+ for ($_i833 = 0; $_i833 < $_size829; ++$_i833)
{
- $elem806 = null;
- $xfer += $input->readString($elem806);
- $this->part_vals []= $elem806;
+ $elem834 = null;
+ $xfer += $input->readString($elem834);
+ $this->part_vals []= $elem834;
}
$xfer += $input->readListEnd();
} else {
@@ -22303,9 +22367,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter807)
+ foreach ($this->part_vals as $iter835)
{
- $xfer += $output->writeString($iter807);
+ $xfer += $output->writeString($iter835);
}
}
$output->writeListEnd();
@@ -23319,14 +23383,14 @@ class ThriftHiveMetastore_get_partition_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size808 = 0;
- $_etype811 = 0;
- $xfer += $input->readListBegin($_etype811, $_size808);
- for ($_i812 = 0; $_i812 < $_size808; ++$_i812)
+ $_size836 = 0;
+ $_etype839 = 0;
+ $xfer += $input->readListBegin($_etype839, $_size836);
+ for ($_i840 = 0; $_i840 < $_size836; ++$_i840)
{
- $elem813 = null;
- $xfer += $input->readString($elem813);
- $this->part_vals []= $elem813;
+ $elem841 = null;
+ $xfer += $input->readString($elem841);
+ $this->part_vals []= $elem841;
}
$xfer += $input->readListEnd();
} else {
@@ -23364,9 +23428,9 @@ class ThriftHiveMetastore_get_partition_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter814)
+ foreach ($this->part_vals as $iter842)
{
- $xfer += $output->writeString($iter814);
+ $xfer += $output->writeString($iter842);
}
}
$output->writeListEnd();
@@ -23608,17 +23672,17 @@ class ThriftHiveMetastore_exchange_partition_args {
case 1:
if ($ftype == TType::MAP) {
$this->partitionSpecs = array();
- $_size815 = 0;
- $_ktype816 = 0;
- $_vtype817 = 0;
- $xfer += $input->readMapBegin($_ktype816, $_vtype817, $_size815);
- for ($_i819 = 0; $_i819 < $_size815; ++$_i819)
+ $_size843 = 0;
+ $_ktype844 = 0;
+ $_vtype845 = 0;
+ $xfer += $input->readMapBegin($_ktype844, $_vtype845, $_size843);
+ for ($_i847 = 0; $_i847 < $_size843; ++$_i847)
{
- $key820 = '';
- $val821 = '';
- $xfer += $input->readString($key820);
- $xfer += $input->readString($val821);
- $this->partitionSpecs[$key820] = $val821;
+ $key848 = '';
+ $val849 = '';
+ $xfer += $input->readString($key848);
+ $xfer += $input->readString($val849);
+ $this->partitionSpecs[$key848] = $val849;
}
$xfer += $input->readMapEnd();
} else {
@@ -23674,10 +23738,10 @@ class ThriftHiveMetastore_exchange_partition_args {
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs));
{
- foreach ($this->partitionSpecs as $kiter822 => $viter823)
+ foreach ($this->partitionSpecs as $kiter850 => $viter851)
{
- $xfer += $output->writeString($kiter822);
- $xfer += $output->writeString($viter823);
+ $xfer += $output->writeString($kiter850);
+ $xfer += $output->writeString($viter851);
}
}
$output->writeMapEnd();
@@ -23989,17 +24053,17 @@ class ThriftHiveMetastore_exchange_partitions_args {
case 1:
if ($ftype == TType::MAP) {
$this->partitionSpecs = array();
- $_size824 = 0;
- $_ktype825 = 0;
- $_vtype826 = 0;
- $xfer += $input->readMapBegin($_ktype825, $_vtype826, $_size824);
- for ($_i828 = 0; $_i828 < $_size824; ++$_i828)
+ $_size852 = 0;
+ $_ktype853 = 0;
+ $_vtype854 = 0;
+ $xfer += $input->readMapBegin($_ktype853, $_vtype854, $_size852);
+ for ($_i856 = 0; $_i856 < $_size852; ++$_i856)
{
- $key829 = '';
- $val830 = '';
- $xfer += $input->readString($key829);
- $xfer += $input->readString($val830);
- $this->partitionSpecs[$key829] = $val830;
+ $key857 = '';
+ $val858 = '';
+ $xfer += $input->readString($key857);
+ $xfer += $input->readString($val858);
+ $this->partitionSpecs[$key857] = $val858;
}
$xfer += $input->readMapEnd();
} else {
@@ -24055,10 +24119,10 @@ class ThriftHiveMetastore_exchange_partitions_args {
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs));
{
- foreach ($this->partitionSpecs as $kiter831 => $viter832)
+ foreach ($this->partitionSpecs as $kiter859 => $viter860)
{
- $xfer += $output->writeString($kiter831);
- $xfer += $output->writeString($viter832);
+ $xfer += $output->writeString($kiter859);
+ $xfer += $output->writeString($viter860);
}
}
$output->writeMapEnd();
@@ -24191,15 +24255,15 @@ class ThriftHiveMetastore_exchange_partitions_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size833 = 0;
- $_etype836 = 0;
- $xfer += $input->readListBegin($_etype836, $_size833);
- for ($_i837 = 0; $_i837 < $_size833; ++$_i837)
+ $_size861 = 0;
+ $_etype864 = 0;
+ $xfer += $input->readListBegin($_etype864, $_size861);
+ for ($_i865 = 0; $_i865 < $_size861; ++$_i865)
{
- $elem838 = null;
- $elem838 = new \metastore\Partition();
- $xfer += $elem838->read($input);
- $this->success []= $elem838;
+ $elem866 = null;
+ $elem866 = new \metastore\Partition();
+ $xfer += $elem866->read($input);
+ $this->success []= $elem866;
}
$xfer += $input->readListEnd();
} else {
@@ -24259,9 +24323,9 @@ class ThriftHiveMetastore_exchange_partitions_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter839)
+ foreach ($this->success as $iter867)
{
- $xfer += $iter839->write($output);
+ $xfer += $iter867->write($output);
}
}
$output->writeListEnd();
@@ -24407,14 +24471,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size840 = 0;
- $_etype843 = 0;
- $xfer += $input->readListBegin($_etype843, $_size840);
- for ($_i844 = 0; $_i844 < $_size840; ++$_i844)
+ $_size868 = 0;
+ $_etype871 = 0;
+ $xfer += $input->readListBegin($_etype871, $_size868);
+ for ($_i872 = 0; $_i872 < $_size868; ++$_i872)
{
- $elem845 = null;
- $xfer += $input->readString($elem845);
- $this->part_vals []= $elem845;
+ $elem873 = null;
+ $xfer += $input->readString($elem873);
+ $this->part_vals []= $elem873;
}
$xfer += $input->readListEnd();
} else {
@@ -24431,14 +24495,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args {
case 5:
if ($ftype == TType::LST) {
$this->group_names = array();
- $_size846 = 0;
- $_etype849 = 0;
- $xfer += $input->readListBegin($_etype849, $_size846);
- for ($_i850 = 0; $_i850 < $_size846; ++$_i850)
+ $_size874 = 0;
+ $_etype877 = 0;
+ $xfer += $input->readListBegin($_etype877, $_size874);
+ for ($_i878 = 0; $_i878 < $_size874; ++$_i878)
{
- $elem851 = null;
- $xfer += $input->readString($elem851);
- $this->group_names []= $elem851;
+ $elem879 = null;
+ $xfer += $input->readString($elem879);
+ $this->group_names []= $elem879;
}
$xfer += $input->readListEnd();
} else {
@@ -24476,9 +24540,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter852)
+ foreach ($this->part_vals as $iter880)
{
- $xfer += $output->writeString($iter852);
+ $xfer += $output->writeString($iter880);
}
}
$output->writeListEnd();
@@ -24498,9 +24562,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args {
{
$output->writeListBegin(TType::STRING, count($this->group_names));
{
- foreach ($this->group_names as $iter853)
+ foreach ($this->group_names as $iter881)
{
- $xfer += $output->writeString($iter853);
+ $xfer += $output->writeString($iter881);
}
}
$output->writeListEnd();
@@ -25091,15 +25155,15 @@ class ThriftHiveMetastore_get_partitions_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size854 = 0;
- $_etype857 = 0;
- $xfer += $input->readListBegin($_etype857, $_size854);
- for ($_i858 = 0; $_i858 < $_size854; ++$_i858)
+ $_size882 = 0;
+ $_etype885 = 0;
+ $xfer += $input->readListBegin($_etype885, $_size882);
+ for ($_i886 = 0; $_i886 < $_size882; ++$_i886)
{
- $elem859 = null;
- $elem859 = new \metastore\Partition();
- $xfer += $elem859->read($input);
- $this->success []= $elem859;
+ $elem887 = null;
+ $elem887 = new \metastore\Partition();
+ $xfer += $elem887->read($input);
+ $this->success []= $elem887;
}
$xfer += $input->readListEnd();
} else {
@@ -25143,9 +25207,9 @@ class ThriftHiveMetastore_get_partitions_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter860)
+ foreach ($this->success as $iter888)
{
- $xfer += $iter860->write($output);
+ $xfer += $iter888->write($output);
}
}
$output->writeListEnd();
@@ -25291,14 +25355,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args {
case 5:
if ($ftype == TType::LST) {
$this->group_names = array();
- $_size861 = 0;
- $_etype864 = 0;
- $xfer += $input->readListBegin($_etype864, $_size861);
- for ($_i865 = 0; $_i865 < $_size861; ++$_i865)
+ $_size889 = 0;
+ $_etype892 = 0;
+ $xfer += $input->readListBegin($_etype892, $_size889);
+ for ($_i893 = 0; $_i893 < $_size889; ++$_i893)
{
- $elem866 = null;
- $xfer += $input->readString($elem866);
- $this->group_names []= $elem866;
+ $elem894 = null;
+ $xfer += $input->readString($elem894);
+ $this->group_names []= $elem894;
}
$xfer += $input->readListEnd();
} else {
@@ -25346,9 +25410,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args {
{
$output->writeListBegin(TType::STRING, count($this->group_names));
{
- foreach ($this->group_names as $iter867)
+ foreach ($this->group_names as $iter895)
{
- $xfer += $output->writeString($iter867);
+ $xfer += $output->writeString($iter895);
}
}
$output->writeListEnd();
@@ -25437,15 +25501,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size868 = 0;
- $_etype871 = 0;
- $xfer += $input->readListBegin($_etype871, $_size868);
- for ($_i872 = 0; $_i872 < $_size868; ++$_i872)
+ $_size896 = 0;
+ $_etype899 = 0;
+ $xfer += $input->readListBegin($_etype899, $_size896);
+ for ($_i900 = 0; $_i900 < $_size896; ++$_i900)
{
- $elem873 = null;
- $elem873 = new \metastore\Partition();
- $xfer += $elem873->read($input);
- $this->success []= $elem873;
+ $elem901 = null;
+ $elem901 = new \metastore\Partition();
+ $xfer += $elem901->read($input);
+ $this->success []= $elem901;
}
$xfer += $input->readListEnd();
} else {
@@ -25489,9 +25553,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter874)
+ foreach ($this->success as $iter902)
{
- $xfer += $iter874->write($output);
+ $xfer += $iter902->write($output);
}
}
$output->writeListEnd();
@@ -25711,15 +25775,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size875 = 0;
- $_etype878 = 0;
- $xfer += $input->readListBegin($_etype878, $_size875);
- for ($_i879 = 0; $_i879 < $_size875; ++$_i879)
+ $_size903 = 0;
+ $_etype906 = 0;
+ $xfer += $input->readListBegin($_etype906, $_size903);
+ for ($_i907 = 0; $_i907 < $_size903; ++$_i907)
{
- $elem880 = null;
- $elem880 = new \metastore\PartitionSpec();
- $xfer += $elem880->read($input);
- $this->success []= $elem880;
+ $elem908 = null;
+ $elem908 = new \metastore\PartitionSpec();
+ $xfer += $elem908->read($input);
+ $this->success []= $elem908;
}
$xfer += $input->readListEnd();
} else {
@@ -25763,9 +25827,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter881)
+ foreach ($this->success as $iter909)
{
- $xfer += $iter881->write($output);
+ $xfer += $iter909->write($output);
}
}
$output->writeListEnd();
@@ -25984,14 +26048,14 @@ class ThriftHiveMetastore_get_partition_names_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size882 = 0;
- $_etype885 = 0;
- $xfer += $input->readListBegin($_etype885, $_size882);
- for ($_i886 = 0; $_i886 < $_size882; ++$_i886)
+ $_size910 = 0;
+ $_etype913 = 0;
+ $xfer += $input->readListBegin($_etype913, $_size910);
+ for ($_i914 = 0; $_i914 < $_size910; ++$_i914)
{
- $elem887 = null;
- $xfer += $input->readString($elem887);
- $this->success []= $elem887;
+ $elem915 = null;
+ $xfer += $input->readString($elem915);
+ $this->success []= $elem915;
}
$xfer += $input->readListEnd();
} else {
@@ -26035,9 +26099,9 @@ class ThriftHiveMetastore_get_partition_names_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter888)
+ foreach ($this->success as $iter916)
{
- $xfer += $output->writeString($iter888);
+ $xfer += $output->writeString($iter916);
}
}
$output->writeListEnd();
@@ -26061,6 +26125,216 @@ class ThriftHiveMetastore_get_partition_names_result {
}
+class ThriftHiveMetastore_get_partition_values_args {
+ static $_TSPEC;
+
+ /**
+ * @var \metastore\PartitionValuesRequest
+ */
+ public $request = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'request',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\PartitionValuesRequest',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['request'])) {
+ $this->request = $vals['request'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_get_partition_values_args';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->request = new \metastore\PartitionValuesRequest();
+ $xfer += $this->request->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_args');
+ if ($this->request !== null) {
+ if (!is_object($this->request)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1);
+ $xfer += $this->request->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_get_partition_values_result {
+ static $_TSPEC;
+
+ /**
+ * @var \metastore\PartitionValuesResponse
+ */
+ public $success = null;
+ /**
+ * @var \metastore\MetaException
+ */
+ public $o1 = null;
+ /**
+ * @var \metastore\NoSuchObjectException
+ */
+ public $o2 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\PartitionValuesResponse',
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\NoSuchObjectException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_get_partition_values_result';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \metastore\PartitionValuesResponse();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->o1 = new \metastore\MetaException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\NoSuchObjectException();
+ $xfer += $this->o2->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o2 !== null) {
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+ $xfer += $this->o2->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
class ThriftHiveMetastore_get_partitions_ps_args {
static $_TSPEC;
@@ -26158,14 +26432,14 @@ class ThriftHiveMetastore_get_partitions_ps_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size889 = 0;
- $_etype892 = 0;
- $xfer += $input->readListBegin($_etype892, $_size889);
- for ($_i893 = 0; $_i893 < $_size889; ++$_i893)
+ $_size917 = 0;
+ $_etype920 = 0;
+ $xfer += $input->readListBegin($_etype920, $_size917);
+ for ($_i921 = 0; $_i921 < $_size917; ++$_i921)
{
- $elem894 = null;
- $xfer += $input->readString($elem894);
- $this->part_vals []= $elem894;
+ $elem922 = null;
+ $xfer += $input->readString($elem922);
+ $this->part_vals []= $elem922;
}
$xfer += $input->readListEnd();
} else {
@@ -26210,9 +26484,9 @@ class ThriftHiveMetastore_get_partitions_ps_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter895)
+ foreach ($this->part_vals as $iter923)
{
- $xfer += $output->writeString($iter895);
+ $xfer += $output->writeString($iter923);
}
}
$output->writeListEnd();
@@ -26306,15 +26580,15 @@ class ThriftHiveMetastore_get_partitions_ps_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size896 = 0;
- $_etype899 = 0;
- $xfer += $input->readListBegin($_etype899, $_size896);
- for ($_i900 = 0; $_i900 < $_size896; ++$_i900)
+ $_size924 = 0;
+ $_etype927 = 0;
+ $xfer += $input->readListBegin($_etype927, $_size924);
+ for ($_i928 = 0; $_i928 < $_size924; ++$_i928)
{
- $elem901 = null;
- $elem901 = new \metastore\Partition();
- $xfer += $elem901->read($input);
- $this->success []= $elem901;
+ $elem929 = null;
+ $elem929 = new \metastore\Partition();
+ $xfer += $elem929->read($input);
+ $this->success []= $elem929;
}
$xfer += $input->readListEnd();
} else {
@@ -26358,9 +26632,9 @@ class ThriftHiveMetastore_get_partitions_ps_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter902)
+ foreach ($this->success as $iter930)
{
- $xfer += $iter902->write($output);
+ $xfer += $iter930->write($output);
}
}
$output->writeListEnd();
@@ -26507,14 +26781,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size903 = 0;
- $_etype906 = 0;
- $xfer += $input->readListBegin($_etype906, $_size903);
- for ($_i907 = 0; $_i907 < $_size903; ++$_i907)
+ $_size931 = 0;
+ $_etype934 = 0;
+ $xfer += $input->readListBegin($_etype934, $_size931);
+ for ($_i935 = 0; $_i935 < $_size931; ++$_i935)
{
- $elem908 = null;
- $xfer += $input->readString($elem908);
- $this->part_vals []= $elem908;
+ $elem936 = null;
+ $xfer += $input->readString($elem936);
+ $this->part_vals []= $elem936;
}
$xfer += $input->readListEnd();
} else {
@@ -26538,14 +26812,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args {
case 6:
if ($ftype == TType::LST) {
$this->group_names = array();
- $_size909 = 0;
- $_etype912 = 0;
- $xfer += $input->readListBegin($_etype912, $_size909);
- for ($_i913 = 0; $_i913 < $_size909; ++$_i913)
+ $_size937 = 0;
+ $_etype940 = 0;
+ $xfer += $input->readListBegin($_etype940, $_size937);
+ for ($_i941 = 0; $_i941 < $_size937; ++$_i941)
{
- $elem914 = null;
- $xfer += $input->readString($elem914);
- $this->group_names []= $elem914;
+ $elem942 = null;
+ $xfer += $input->readString($elem942);
+ $this->group_names []= $elem942;
}
$xfer += $input->readListEnd();
} else {
@@ -26583,9 +26857,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter915)
+ foreach ($this->part_vals as $iter943)
{
- $xfer += $output->writeString($iter915);
+ $xfer += $output->writeString($iter943);
}
}
$output->writeListEnd();
@@ -26610,9 +26884,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args {
{
$output->writeListBegin(TType::STRING, count($this->group_names));
{
- foreach ($this->group_names as $iter916)
+ foreach ($this->group_names as $iter944)
{
- $xfer += $output->writeString($iter916);
+ $xfer += $output->writeString($iter944);
}
}
$output->writeListEnd();
@@ -26701,15 +26975,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_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)
+ $_size945 = 0;
+ $_etype948 = 0;
+ $xfer += $input->readListBegin($_etype948, $_size945);
+ for ($_i949 = 0; $_i949 < $_size945; ++$_i949)
{
- $elem922 = null;
- $elem922 = new \metastore\Partition();
- $xfer += $elem922->read($input);
- $this->success []= $elem922;
+ $elem950 = null;
+ $elem950 = new \metastore\Partition();
+ $xfer += $elem950->read($input);
+ $this->success []= $elem950;
}
$xfer += $input->readListEnd();
} else {
@@ -26753,9 +27027,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter923)
+ foreach ($this->success as $iter951)
{
- $xfer += $iter923->write($output);
+ $xfer += $iter951->write($output);
}
}
$output->writeListEnd();
@@ -26876,14 +27150,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size924 = 0;
- $_etype927 = 0;
- $xfer += $input->readListBegin($_etype927, $_size924);
- for ($_i928 = 0; $_i928 < $_size924; ++$_i928)
+ $_size952 = 0;
+ $_etype955 = 0;
+ $xfer += $input->readListBegin($_etype955, $_size952);
+ for ($_i956 = 0; $_i956 < $_size952; ++$_i956)
{
- $elem929 = null;
- $xfer += $input->readString($elem929);
- $this->part_vals []= $elem929;
+ $elem957 = null;
+ $xfer += $input->readString($elem957);
+ $this->part_vals []= $elem957;
}
$xfer += $input->readListEnd();
} else {
@@ -26928,9 +27202,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter930)
+ foreach ($this->part_vals as $iter958)
{
- $xfer += $output->writeString($iter930);
+ $xfer += $output->writeString($iter958);
}
}
$output->writeListEnd();
@@ -27023,14 +27297,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size931 = 0;
- $_etype934 = 0;
- $xfer += $input->readListBegin($_etype934, $_size931);
- for ($_i935 = 0; $_i935 < $_size931; ++$_i935)
+ $_size959 = 0;
+ $_etype962 = 0;
+ $xfer += $input->readListBegin($_etype962, $_size959);
+ for ($_i963 = 0; $_i963 < $_size959; ++$_i963)
{
- $elem936 = null;
- $xfer += $input->readString($elem936);
- $this->success []= $elem936;
+ $elem964 = null;
+ $xfer += $input->readString($elem964);
+ $this->success []= $elem964;
}
$xfer += $input->readListEnd();
} else {
@@ -27074,9 +27348,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter937)
+ foreach ($this->success as $iter965)
{
- $xfer += $output->writeString($iter937);
+ $xfer += $output->writeString($iter965);
}
}
$output->writeListEnd();
@@ -27319,15 +27593,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size938 = 0;
- $_etype941 = 0;
- $xfer += $input->readListBegin($_etype941, $_size938);
- for ($_i942 = 0; $_i942 < $_size938; ++$_i942)
+ $_size966 = 0;
+ $_etype969 = 0;
+ $xfer += $input->readListBegin($_etype969, $_size966);
+ for ($_i970 = 0; $_i970 < $_size966; ++$_i970)
{
- $elem943 = null;
- $elem943 = new \metastore\Partition();
- $xfer += $elem943->read($input);
- $this->success []= $elem943;
+ $elem971 = null;
+ $elem971 = new \metastore\Partition();
+ $xfer += $elem971->read($input);
+ $this->success []= $elem971;
}
$xfer += $input->readListEnd();
} else {
@@ -27371,9 +27645,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter944)
+ foreach ($this->success as $iter972)
{
- $xfer += $iter944->write($output);
+ $xfer += $iter972->write($output);
}
}
$output->writeListEnd();
@@ -27616,15 +27890,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size945 = 0;
- $_etype948 = 0;
- $xfer += $input->readListBegin($_etype948, $_size945);
- for ($_i949 = 0; $_i949 < $_size945; ++$_i949)
+ $_size973 = 0;
+ $_etype976 = 0;
+ $xfer += $input->readListBegin($_etype976, $_size973);
+ for ($_i977 = 0; $_i977 < $_size973; ++$_i977)
{
- $elem950 = null;
- $elem950 = new \metastore\PartitionSpec();
- $xfer += $elem950->read($input);
- $this->success []= $elem950;
+ $elem978 = null;
+ $elem978 = new \metastore\PartitionSpec();
+ $xfer += $elem978->read($input);
+ $this->success []= $elem978;
}
$xfer += $input->readListEnd();
} else {
@@ -27668,9 +27942,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter951)
+ foreach ($this->success as $iter979)
{
- $xfer += $iter951->write($output);
+ $xfer += $iter979->write($output);
}
}
$output->writeListEnd();
@@ -28236,14 +28510,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args {
case 3:
if ($ftype == TType::LST) {
$this->names = array();
- $_size952 = 0;
- $_etype955 = 0;
- $xfer += $input->readListBegin($_etype955, $_size952);
- for ($_i956 = 0; $_i956 < $_size952; ++$_i956)
+ $_size980 = 0;
+ $_etype983 = 0;
+ $xfer += $input->readListBegin($_etype983, $_size980);
+ for ($_i984 = 0; $_i984 < $_size980; ++$_i984)
{
- $elem957 = null;
- $xfer += $input->readString($elem957);
- $this->names []= $elem957;
+ $elem985 = null;
+ $xfer += $input->readString($elem985);
+ $this->names []= $elem985;
}
$xfer += $input->readListEnd();
} else {
@@ -28281,9 +28555,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args {
{
$output->writeListBegin(TType::STRING, count($this->names));
{
- foreach ($this->names as $iter958)
+ foreach ($this->names as $iter986)
{
- $xfer += $output->writeString($iter958);
+ $xfer += $output->writeString($iter986);
}
}
$output->writeListEnd();
@@ -28372,15 +28646,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size959 = 0;
- $_etype962 = 0;
- $xfer += $input->readListBegin($_etype962, $_size959);
- for ($_i963 = 0; $_i963 < $_size959; ++$_i963)
+ $_size987 = 0;
+ $_etype990 = 0;
+ $xfer += $input->readListBegin($_etype990, $_size987);
+ for ($_i991 = 0; $_i991 < $_size987; ++$_i991)
{
- $elem964 = null;
- $elem964 = new \metastore\Partition();
- $xfer += $elem964->read($input);
- $this->success []= $elem964;
+ $elem992 = null;
+ $elem992 = new \metastore\Partition();
+ $xfer += $elem992->read($input);
+ $this->success []= $elem992;
}
$xfer += $input->readListEnd();
} else {
@@ -28424,9 +28698,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result {
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter965)
+ foreach ($this->success as $iter993)
{
- $xfer += $iter965->write($output);
+ $xfer += $iter993->write($output);
}
}
$output->writeListEnd();
@@ -28765,15 +29039,15 @@ class ThriftHiveMetastore_alter_partitions_args {
case 3:
if ($ftype == TType::LST) {
$this->new_parts = array();
- $_size966 = 0;
- $_etype969 = 0;
- $xfer += $input->readListBegin($_etype969, $_size966);
- for ($_i970 = 0; $_i970 < $_size966; ++$_i970)
+ $_size994 = 0;
+ $_etype997 = 0;
+ $xfer += $input->readListBegin($_etype997, $_size994);
+ for ($_i998 = 0; $_i998 < $_size994; ++$_i998)
{
- $elem971 = null;
- $elem971 = new \metastore\Partition();
- $xfer += $elem971->read($input);
- $this->new_parts []= $elem971;
+ $elem999 = null;
+ $elem999 = new \metastore\Partition();
+ $xfer += $elem999->read($input);
+ $this->new_parts []= $elem999;
}
$xfer += $input->readListEnd();
} else {
@@ -28811,9 +29085,9 @@ class ThriftHiveMetastore_alter_partitions_args {
{
$output->writeListBegin(TType::STRUCT, count($this->new_parts));
{
- foreach ($this->new_parts as $iter972)
+ foreach ($this->new_parts as $iter1000)
{
- $xfer += $iter972->write($output);
+ $xfer += $iter1000->write($output);
}
}
$output->writeListEnd();
@@ -29028,15 +29302,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args {
case 3:
if ($ftype == TType::LST) {
$this->new_parts = array();
- $_size973 = 0;
- $_etype976 = 0;
- $xfer += $input->readListBegin($_etype976, $_size973);
- for ($_i977 = 0; $_i977 < $_size973; ++$_i977)
+ $_size1001 = 0;
+ $_etype1004 = 0;
+ $xfer += $input->readListBegin($_etype1004, $_size1001);
+ for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005)
{
- $elem978 = null;
- $elem978 = new \metastore\Partition();
- $xfer += $elem978->read($input);
- $this->new_parts []= $elem978;
+ $elem1006 = null;
+ $elem1006 = new \metastore\Partition();
+ $xfer += $elem1006->read($input);
+ $this->new_parts []= $elem1006;
}
$xfer += $input->readListEnd();
} else {
@@ -29082,9 +29356,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args {
{
$output->writeListBegin(TType::STRUCT, count($this->new_parts));
{
- foreach ($this->new_parts as $iter979)
+ foreach ($this->new_parts as $iter1007)
{
- $xfer += $iter979->write($output);
+ $xfer += $iter1007->write($output);
}
}
$output->writeListEnd();
@@ -29562,14 +29836,14 @@ class ThriftHiveMetastore_rename_partition_args {
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size980 = 0;
- $_etype983 = 0;
- $xfer += $input->readListBegin($_etype983, $_size980);
- for ($_i984 = 0; $_i984 < $_size980; ++$_i984)
+ $_size1008 = 0;
+ $_etype1011 = 0;
+ $xfer += $input->readListBegin($_etype1011, $_size1008);
+ for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012)
{
- $elem985 = null;
- $xfer += $input->readString($elem985);
- $this->part_vals []= $elem985;
+ $elem1013 = null;
+ $xfer += $input->readString($elem1013);
+ $this->part_vals []= $elem1013;
}
$xfer += $input->readListEnd();
} else {
@@ -29615,9 +29889,9 @@ class ThriftHiveMetastore_rename_partition_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter986)
+ foreach ($this->part_vals as $iter1014)
{
- $xfer += $output->writeString($iter986);
+ $xfer += $output->writeString($iter1014);
}
}
$output->writeListEnd();
@@ -29802,14 +30076,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args {
case 1:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size987 = 0;
- $_etype990 = 0;
- $xfer += $input->readListBegin($_etype990, $_size987);
- for ($_i991 = 0; $_i991 < $_size987; ++$_i991)
+ $_size1015 = 0;
+ $_etype1018 = 0;
+ $xfer += $input->readListBegin($_etype1018, $_size1015);
+ for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019)
{
- $elem992 = null;
- $xfer += $input->readString($elem992);
- $this->part_vals []= $elem992;
+ $elem1020 = null;
+ $xfer += $input->readString($elem1020);
+ $this->part_vals []= $elem1020;
}
$xfer += $input->readListEnd();
} else {
@@ -29844,9 +30118,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args {
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter993)
+ foreach ($this->part_vals as $iter1021)
{
- $xfer += $output->writeString($iter993);
+ $xfer += $output->writeString($iter1021);
}
}
$output->writeListEnd();
@@ -30300,14 +30574,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result {
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size994 = 0;
- $_etype997 = 0;
- $xfer += $input->readListBegin($_etype997, $_size994);
- for ($_i998 = 0; $_i998 < $_size994; ++$_i998)
+ $_size1022 = 0;
+ $_etype1025 = 0;
+ $xfer += $input->readListBegin($_etype1025, $_size1022);
+ for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026)
{
- $elem999 = null;
- $xfer += $input->readString($elem999);
- $this->success []= $elem999;
+ $elem1027 = null;
+ $xfer += $input->readString($elem1027);
+ $this->success []= $elem1027;
}
$xfer += $input->readListEnd();
} else {
@@ -30343,9 +30617,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result {
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter1000)
+ foreach ($this->success as $iter1028)
{
- $xfer += $output->writeString($iter1000);
+ $xfer += $output->writeString($iter1028);
}
}
$output->writeListEnd();
@@ -30505,17 +30779,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result {
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size1001 = 0;
- $_ktype1002 = 0;
- $_vtype1003 = 0;
- $xfer += $input->readMapBegin($_ktype1002, $_vtype1003, $_size1001);
- for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005)
+ $_size1029 = 0;
+ $_ktype1030 = 0;
+ $_vtype1031 = 0;
+ $xfer += $input->readMapBegin($_ktype1030, $_vtype1031, $_size1029);
+ for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033)
{
- $key1006 = '';
- $val1007 = '';
- $xfer += $input->readString($key1006);
- $xfer += $input->readString($val1007);
- $this->success[$key1006] = $val1007;
+ $key1034 = '';
+ $val1035 = '';
+ $xfer += $input->readString($key1034);
+ $xfer += $input->readString($val1035);
+ $this->success[$key1034] = $val1035;
}
$xfer += $input->readMapEnd();
} else {
@@ -30551,10 +30825,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result {
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter1008 => $viter1009)
+ foreach ($this->success as $kiter1036 => $viter1037)
{
- $xfer += $output->writeString($kiter1008);
- $xfer += $output->writeString($viter1009);
+ $xfer += $output->writeString($kiter1036);
+ $xfer += $output->writeString($viter1037);
}
}
$output->writeMapEnd();
@@ -30674,17 +30948,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args {
case 3:
if ($ftype == TType::MAP) {
$this->part_vals = array();
- $_size1010 = 0;
- $_ktype1011 = 0;
- $_vtype1012 = 0;
- $xfer += $input->readMapBegin($_ktype1011, $_vtype1012, $_size1010);
- for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014)
+ $_size1038 = 0;
+ $_ktype1039 = 0;
+ $_vtype1040 = 0;
+ $xfer += $input->readMapBegin($_ktype1039, $_vtype1040, $_size1038);
+ for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042)
{
- $key1015 = '';
- $val1016 = '';
- $xfer += $input->readString($key1015);
- $xfer += $input->readString($val1016);
- $this->part_vals[$key1015] = $val1016;
+ $key1043 = '';
+ $val1044 = '';
+ $xfer += $input->readString($key1043);
+ $xfer += $input->readString($val1044);
+ $this->part_vals[$key1043] = $val1044;
}
$xfer += $input->readMapEnd();
} else {
@@ -30729,10 +31003,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args {
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $kiter1017 => $viter1018)
+ foreach ($this->part_vals as $kiter1045 => $viter1046)
{
- $xfer += $output->writeString($kiter1017);
- $xfer += $output->writeString($viter1018);
+ $xfer += $output->writeString($kiter1045);
+ $xfer += $output->writeString($viter1046);
}
}
$output->writeMapEnd();
@@ -31054,17 +31328,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args {
case 3:
if ($ftype == TType::MAP) {
$this->part_vals = array();
- $_size1019 = 0;
- $_ktype1020 = 0;
- $_vtype1021 = 0;
- $xfer += $input->readMapBegin($_ktype1020, $_vtype1021, $_size1019);
- for ($_i1023 = 0; $_i1023 < $_size1019; ++$_i1023)
+ $_size1047 = 0;
+ $_ktype1048 = 0;
+ $_vtype1049 = 0;
+ $xfer += $input->readMapBegin($_ktype1048, $_vtype1049, $_size1047);
+ for ($_i1051 = 0; $_i1051 < $_size1047; ++$_i1051)
{
- $key1024 = '';
- $val1025 = '';
- $xfer += $input->readString($key1024);
- $xfer += $input->readString($val1025);
- $this->part_vals[$key1024] = $val1025;
+ $key1052 = '';
+
<TRUNCATED>
[08/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
index d5963f3..fd9014d 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
@@ -318,6 +318,12 @@ class RequestPartsSpec;
class DropPartitionsRequest;
+class PartitionValuesRequest;
+
+class PartitionValuesRow;
+
+class PartitionValuesResponse;
+
class ResourceUri;
class Function;
@@ -5084,6 +5090,181 @@ inline std::ostream& operator<<(std::ostream& out, const DropPartitionsRequest&
return out;
}
+typedef struct _PartitionValuesRequest__isset {
+ _PartitionValuesRequest__isset() : applyDistinct(true), filter(false), partitionOrder(false), ascending(true), maxParts(true) {}
+ bool applyDistinct :1;
+ bool filter :1;
+ bool partitionOrder :1;
+ bool ascending :1;
+ bool maxParts :1;
+} _PartitionValuesRequest__isset;
+
+class PartitionValuesRequest {
+ public:
+
+ PartitionValuesRequest(const PartitionValuesRequest&);
+ PartitionValuesRequest& operator=(const PartitionValuesRequest&);
+ PartitionValuesRequest() : dbName(), tblName(), applyDistinct(true), filter(), ascending(true), maxParts(-1LL) {
+ }
+
+ virtual ~PartitionValuesRequest() throw();
+ std::string dbName;
+ std::string tblName;
+ std::vector<FieldSchema> partitionKeys;
+ bool applyDistinct;
+ std::string filter;
+ std::vector<FieldSchema> partitionOrder;
+ bool ascending;
+ int64_t maxParts;
+
+ _PartitionValuesRequest__isset __isset;
+
+ void __set_dbName(const std::string& val);
+
+ void __set_tblName(const std::string& val);
+
+ void __set_partitionKeys(const std::vector<FieldSchema> & val);
+
+ void __set_applyDistinct(const bool val);
+
+ void __set_filter(const std::string& val);
+
+ void __set_partitionOrder(const std::vector<FieldSchema> & val);
+
+ void __set_ascending(const bool val);
+
+ void __set_maxParts(const int64_t val);
+
+ bool operator == (const PartitionValuesRequest & rhs) const
+ {
+ if (!(dbName == rhs.dbName))
+ return false;
+ if (!(tblName == rhs.tblName))
+ return false;
+ if (!(partitionKeys == rhs.partitionKeys))
+ return false;
+ if (__isset.applyDistinct != rhs.__isset.applyDistinct)
+ return false;
+ else if (__isset.applyDistinct && !(applyDistinct == rhs.applyDistinct))
+ return false;
+ if (__isset.filter != rhs.__isset.filter)
+ return false;
+ else if (__isset.filter && !(filter == rhs.filter))
+ return false;
+ if (__isset.partitionOrder != rhs.__isset.partitionOrder)
+ return false;
+ else if (__isset.partitionOrder && !(partitionOrder == rhs.partitionOrder))
+ return false;
+ if (__isset.ascending != rhs.__isset.ascending)
+ return false;
+ else if (__isset.ascending && !(ascending == rhs.ascending))
+ return false;
+ if (__isset.maxParts != rhs.__isset.maxParts)
+ return false;
+ else if (__isset.maxParts && !(maxParts == rhs.maxParts))
+ return false;
+ return true;
+ }
+ bool operator != (const PartitionValuesRequest &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const PartitionValuesRequest & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ virtual void printTo(std::ostream& out) const;
+};
+
+void swap(PartitionValuesRequest &a, PartitionValuesRequest &b);
+
+inline std::ostream& operator<<(std::ostream& out, const PartitionValuesRequest& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
+
+class PartitionValuesRow {
+ public:
+
+ PartitionValuesRow(const PartitionValuesRow&);
+ PartitionValuesRow& operator=(const PartitionValuesRow&);
+ PartitionValuesRow() {
+ }
+
+ virtual ~PartitionValuesRow() throw();
+ std::vector<std::string> row;
+
+ void __set_row(const std::vector<std::string> & val);
+
+ bool operator == (const PartitionValuesRow & rhs) const
+ {
+ if (!(row == rhs.row))
+ return false;
+ return true;
+ }
+ bool operator != (const PartitionValuesRow &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const PartitionValuesRow & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ virtual void printTo(std::ostream& out) const;
+};
+
+void swap(PartitionValuesRow &a, PartitionValuesRow &b);
+
+inline std::ostream& operator<<(std::ostream& out, const PartitionValuesRow& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
+
+class PartitionValuesResponse {
+ public:
+
+ PartitionValuesResponse(const PartitionValuesResponse&);
+ PartitionValuesResponse& operator=(const PartitionValuesResponse&);
+ PartitionValuesResponse() {
+ }
+
+ virtual ~PartitionValuesResponse() throw();
+ std::vector<PartitionValuesRow> partitionValues;
+
+ void __set_partitionValues(const std::vector<PartitionValuesRow> & val);
+
+ bool operator == (const PartitionValuesResponse & rhs) const
+ {
+ if (!(partitionValues == rhs.partitionValues))
+ return false;
+ return true;
+ }
+ bool operator != (const PartitionValuesResponse &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const PartitionValuesResponse & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ virtual void printTo(std::ostream& out) const;
+};
+
+void swap(PartitionValuesResponse &a, PartitionValuesResponse &b);
+
+inline std::ostream& operator<<(std::ostream& out, const PartitionValuesResponse& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
typedef struct _ResourceUri__isset {
_ResourceUri__isset() : resourceType(false), uri(false) {}
bool resourceType :1;
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
index eee1e64..a7bce0b 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java
@@ -351,13 +351,13 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
case 1: // TXN_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list516 = iprot.readListBegin();
- struct.txn_ids = new ArrayList<Long>(_list516.size);
- long _elem517;
- for (int _i518 = 0; _i518 < _list516.size; ++_i518)
+ org.apache.thrift.protocol.TList _list548 = iprot.readListBegin();
+ struct.txn_ids = new ArrayList<Long>(_list548.size);
+ long _elem549;
+ for (int _i550 = 0; _i550 < _list548.size; ++_i550)
{
- _elem517 = iprot.readI64();
- struct.txn_ids.add(_elem517);
+ _elem549 = iprot.readI64();
+ struct.txn_ids.add(_elem549);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
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 _iter519 : struct.txn_ids)
+ for (long _iter551 : struct.txn_ids)
{
- oprot.writeI64(_iter519);
+ oprot.writeI64(_iter551);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.txn_ids.size());
- for (long _iter520 : struct.txn_ids)
+ for (long _iter552 : struct.txn_ids)
{
- oprot.writeI64(_iter520);
+ oprot.writeI64(_iter552);
}
}
}
@@ -421,13 +421,13 @@ public class AbortTxnsRequest implements org.apache.thrift.TBase<AbortTxnsReques
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 _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.txn_ids = new ArrayList<Long>(_list521.size);
- long _elem522;
- for (int _i523 = 0; _i523 < _list521.size; ++_i523)
+ org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.txn_ids = new ArrayList<Long>(_list553.size);
+ long _elem554;
+ for (int _i555 = 0; _i555 < _list553.size; ++_i555)
{
- _elem522 = iprot.readI64();
- struct.txn_ids.add(_elem522);
+ _elem554 = iprot.readI64();
+ struct.txn_ids.add(_elem554);
}
}
struct.setTxn_idsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
index 054cf1b..fc74e41 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java
@@ -727,13 +727,13 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
case 4: // PARTITIONNAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list574 = iprot.readListBegin();
- struct.partitionnames = new ArrayList<String>(_list574.size);
- String _elem575;
- for (int _i576 = 0; _i576 < _list574.size; ++_i576)
+ org.apache.thrift.protocol.TList _list606 = iprot.readListBegin();
+ struct.partitionnames = new ArrayList<String>(_list606.size);
+ String _elem607;
+ for (int _i608 = 0; _i608 < _list606.size; ++_i608)
{
- _elem575 = iprot.readString();
- struct.partitionnames.add(_elem575);
+ _elem607 = iprot.readString();
+ struct.partitionnames.add(_elem607);
}
iprot.readListEnd();
}
@@ -780,9 +780,9 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size()));
- for (String _iter577 : struct.partitionnames)
+ for (String _iter609 : struct.partitionnames)
{
- oprot.writeString(_iter577);
+ oprot.writeString(_iter609);
}
oprot.writeListEnd();
}
@@ -817,9 +817,9 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
oprot.writeString(struct.tablename);
{
oprot.writeI32(struct.partitionnames.size());
- for (String _iter578 : struct.partitionnames)
+ for (String _iter610 : struct.partitionnames)
{
- oprot.writeString(_iter578);
+ oprot.writeString(_iter610);
}
}
BitSet optionals = new BitSet();
@@ -842,13 +842,13 @@ public class AddDynamicPartitions implements org.apache.thrift.TBase<AddDynamicP
struct.tablename = iprot.readString();
struct.setTablenameIsSet(true);
{
- org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionnames = new ArrayList<String>(_list579.size);
- String _elem580;
- for (int _i581 = 0; _i581 < _list579.size; ++_i581)
+ org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionnames = new ArrayList<String>(_list611.size);
+ String _elem612;
+ for (int _i613 = 0; _i613 < _list611.size; ++_i613)
{
- _elem580 = iprot.readString();
- struct.partitionnames.add(_elem580);
+ _elem612 = iprot.readString();
+ struct.partitionnames.add(_elem612);
}
}
struct.setPartitionnamesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
index 0b6574d..5ab1da9 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java
@@ -351,13 +351,13 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list666 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list666.size);
- long _elem667;
- for (int _i668 = 0; _i668 < _list666.size; ++_i668)
+ org.apache.thrift.protocol.TList _list698 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list698.size);
+ long _elem699;
+ for (int _i700 = 0; _i700 < _list698.size; ++_i700)
{
- _elem667 = iprot.readI64();
- struct.fileIds.add(_elem667);
+ _elem699 = iprot.readI64();
+ struct.fileIds.add(_elem699);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
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 _iter669 : struct.fileIds)
+ for (long _iter701 : struct.fileIds)
{
- oprot.writeI64(_iter669);
+ oprot.writeI64(_iter701);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter670 : struct.fileIds)
+ for (long _iter702 : struct.fileIds)
{
- oprot.writeI64(_iter670);
+ oprot.writeI64(_iter702);
}
}
}
@@ -421,13 +421,13 @@ public class ClearFileMetadataRequest implements org.apache.thrift.TBase<ClearFi
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 _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list671.size);
- long _elem672;
- for (int _i673 = 0; _i673 < _list671.size; ++_i673)
+ org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list703.size);
+ long _elem704;
+ for (int _i705 = 0; _i705 < _list703.size; ++_i705)
{
- _elem672 = iprot.readI64();
- struct.fileIds.add(_elem672);
+ _elem704 = iprot.readI64();
+ struct.fileIds.add(_elem704);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java
index 19e671b..acb6a92 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java
@@ -354,13 +354,13 @@ public class ClientCapabilities implements org.apache.thrift.TBase<ClientCapabil
case 1: // VALUES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list682 = iprot.readListBegin();
- struct.values = new ArrayList<ClientCapability>(_list682.size);
- ClientCapability _elem683;
- for (int _i684 = 0; _i684 < _list682.size; ++_i684)
+ org.apache.thrift.protocol.TList _list714 = iprot.readListBegin();
+ struct.values = new ArrayList<ClientCapability>(_list714.size);
+ ClientCapability _elem715;
+ for (int _i716 = 0; _i716 < _list714.size; ++_i716)
{
- _elem683 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32());
- struct.values.add(_elem683);
+ _elem715 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32());
+ struct.values.add(_elem715);
}
iprot.readListEnd();
}
@@ -386,9 +386,9 @@ public class ClientCapabilities implements org.apache.thrift.TBase<ClientCapabil
oprot.writeFieldBegin(VALUES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size()));
- for (ClientCapability _iter685 : struct.values)
+ for (ClientCapability _iter717 : struct.values)
{
- oprot.writeI32(_iter685.getValue());
+ oprot.writeI32(_iter717.getValue());
}
oprot.writeListEnd();
}
@@ -413,9 +413,9 @@ public class ClientCapabilities implements org.apache.thrift.TBase<ClientCapabil
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.values.size());
- for (ClientCapability _iter686 : struct.values)
+ for (ClientCapability _iter718 : struct.values)
{
- oprot.writeI32(_iter686.getValue());
+ oprot.writeI32(_iter718.getValue());
}
}
}
@@ -424,13 +424,13 @@ public class ClientCapabilities implements org.apache.thrift.TBase<ClientCapabil
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 _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
- struct.values = new ArrayList<ClientCapability>(_list687.size);
- ClientCapability _elem688;
- for (int _i689 = 0; _i689 < _list687.size; ++_i689)
+ org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
+ struct.values = new ArrayList<ClientCapability>(_list719.size);
+ ClientCapability _elem720;
+ for (int _i721 = 0; _i721 < _list719.size; ++_i721)
{
- _elem688 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32());
- struct.values.add(_elem688);
+ _elem720 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32());
+ struct.values.add(_elem720);
}
}
struct.setValuesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java
index 3acb203..e17a8b9 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java
@@ -814,15 +814,15 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ
case 6: // PROPERTIES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map556 = iprot.readMapBegin();
- struct.properties = new HashMap<String,String>(2*_map556.size);
- String _key557;
- String _val558;
- for (int _i559 = 0; _i559 < _map556.size; ++_i559)
+ org.apache.thrift.protocol.TMap _map588 = iprot.readMapBegin();
+ struct.properties = new HashMap<String,String>(2*_map588.size);
+ String _key589;
+ String _val590;
+ for (int _i591 = 0; _i591 < _map588.size; ++_i591)
{
- _key557 = iprot.readString();
- _val558 = iprot.readString();
- struct.properties.put(_key557, _val558);
+ _key589 = iprot.readString();
+ _val590 = iprot.readString();
+ struct.properties.put(_key589, _val590);
}
iprot.readMapEnd();
}
@@ -878,10 +878,10 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ
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<String, String> _iter560 : struct.properties.entrySet())
+ for (Map.Entry<String, String> _iter592 : struct.properties.entrySet())
{
- oprot.writeString(_iter560.getKey());
- oprot.writeString(_iter560.getValue());
+ oprot.writeString(_iter592.getKey());
+ oprot.writeString(_iter592.getValue());
}
oprot.writeMapEnd();
}
@@ -928,10 +928,10 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ
if (struct.isSetProperties()) {
{
oprot.writeI32(struct.properties.size());
- for (Map.Entry<String, String> _iter561 : struct.properties.entrySet())
+ for (Map.Entry<String, String> _iter593 : struct.properties.entrySet())
{
- oprot.writeString(_iter561.getKey());
- oprot.writeString(_iter561.getValue());
+ oprot.writeString(_iter593.getKey());
+ oprot.writeString(_iter593.getValue());
}
}
}
@@ -957,15 +957,15 @@ public class CompactionRequest implements org.apache.thrift.TBase<CompactionRequ
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.properties = new HashMap<String,String>(2*_map562.size);
- String _key563;
- String _val564;
- for (int _i565 = 0; _i565 < _map562.size; ++_i565)
+ org.apache.thrift.protocol.TMap _map594 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.properties = new HashMap<String,String>(2*_map594.size);
+ String _key595;
+ String _val596;
+ for (int _i597 = 0; _i597 < _map594.size; ++_i597)
{
- _key563 = iprot.readString();
- _val564 = iprot.readString();
- struct.properties.put(_key563, _val564);
+ _key595 = iprot.readString();
+ _val596 = iprot.readString();
+ struct.properties.put(_key595, _val596);
}
}
struct.setPropertiesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
index cc336c5..19b8e01 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java
@@ -713,13 +713,13 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
case 5: // PARTITION_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list606 = iprot.readListBegin();
- struct.partitionVals = new ArrayList<String>(_list606.size);
- String _elem607;
- for (int _i608 = 0; _i608 < _list606.size; ++_i608)
+ org.apache.thrift.protocol.TList _list638 = iprot.readListBegin();
+ struct.partitionVals = new ArrayList<String>(_list638.size);
+ String _elem639;
+ for (int _i640 = 0; _i640 < _list638.size; ++_i640)
{
- _elem607 = iprot.readString();
- struct.partitionVals.add(_elem607);
+ _elem639 = iprot.readString();
+ struct.partitionVals.add(_elem639);
}
iprot.readListEnd();
}
@@ -768,9 +768,9 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
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 _iter609 : struct.partitionVals)
+ for (String _iter641 : struct.partitionVals)
{
- oprot.writeString(_iter609);
+ oprot.writeString(_iter641);
}
oprot.writeListEnd();
}
@@ -816,9 +816,9 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
if (struct.isSetPartitionVals()) {
{
oprot.writeI32(struct.partitionVals.size());
- for (String _iter610 : struct.partitionVals)
+ for (String _iter642 : struct.partitionVals)
{
- oprot.writeString(_iter610);
+ oprot.writeString(_iter642);
}
}
}
@@ -843,13 +843,13 @@ public class FireEventRequest implements org.apache.thrift.TBase<FireEventReques
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionVals = new ArrayList<String>(_list611.size);
- String _elem612;
- for (int _i613 = 0; _i613 < _list611.size; ++_i613)
+ org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionVals = new ArrayList<String>(_list643.size);
+ String _elem644;
+ for (int _i645 = 0; _i645 < _list643.size; ++_i645)
{
- _elem612 = iprot.readString();
- struct.partitionVals.add(_elem612);
+ _elem644 = iprot.readString();
+ struct.partitionVals.add(_elem644);
}
}
struct.setPartitionValsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
index ad12ab1..96300e8 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java
@@ -997,14 +997,14 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
case 8: // RESOURCE_URIS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
- struct.resourceUris = new ArrayList<ResourceUri>(_list484.size);
- ResourceUri _elem485;
- for (int _i486 = 0; _i486 < _list484.size; ++_i486)
+ org.apache.thrift.protocol.TList _list516 = iprot.readListBegin();
+ struct.resourceUris = new ArrayList<ResourceUri>(_list516.size);
+ ResourceUri _elem517;
+ for (int _i518 = 0; _i518 < _list516.size; ++_i518)
{
- _elem485 = new ResourceUri();
- _elem485.read(iprot);
- struct.resourceUris.add(_elem485);
+ _elem517 = new ResourceUri();
+ _elem517.read(iprot);
+ struct.resourceUris.add(_elem517);
}
iprot.readListEnd();
}
@@ -1063,9 +1063,9 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
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 _iter487 : struct.resourceUris)
+ for (ResourceUri _iter519 : struct.resourceUris)
{
- _iter487.write(oprot);
+ _iter519.write(oprot);
}
oprot.writeListEnd();
}
@@ -1138,9 +1138,9 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
if (struct.isSetResourceUris()) {
{
oprot.writeI32(struct.resourceUris.size());
- for (ResourceUri _iter488 : struct.resourceUris)
+ for (ResourceUri _iter520 : struct.resourceUris)
{
- _iter488.write(oprot);
+ _iter520.write(oprot);
}
}
}
@@ -1180,14 +1180,14 @@ public class Function implements org.apache.thrift.TBase<Function, Function._Fie
}
if (incoming.get(7)) {
{
- org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.resourceUris = new ArrayList<ResourceUri>(_list489.size);
- ResourceUri _elem490;
- for (int _i491 = 0; _i491 < _list489.size; ++_i491)
+ org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.resourceUris = new ArrayList<ResourceUri>(_list521.size);
+ ResourceUri _elem522;
+ for (int _i523 = 0; _i523 < _list521.size; ++_i523)
{
- _elem490 = new ResourceUri();
- _elem490.read(iprot);
- struct.resourceUris.add(_elem490);
+ _elem522 = new ResourceUri();
+ _elem522.read(iprot);
+ struct.resourceUris.add(_elem522);
}
}
struct.setResourceUrisIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
index bb11fe3..bcbc7e0 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java
@@ -346,14 +346,14 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
case 1: // FUNCTIONS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list674 = iprot.readListBegin();
- struct.functions = new ArrayList<Function>(_list674.size);
- Function _elem675;
- for (int _i676 = 0; _i676 < _list674.size; ++_i676)
+ org.apache.thrift.protocol.TList _list706 = iprot.readListBegin();
+ struct.functions = new ArrayList<Function>(_list706.size);
+ Function _elem707;
+ for (int _i708 = 0; _i708 < _list706.size; ++_i708)
{
- _elem675 = new Function();
- _elem675.read(iprot);
- struct.functions.add(_elem675);
+ _elem707 = new Function();
+ _elem707.read(iprot);
+ struct.functions.add(_elem707);
}
iprot.readListEnd();
}
@@ -380,9 +380,9 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size()));
- for (Function _iter677 : struct.functions)
+ for (Function _iter709 : struct.functions)
{
- _iter677.write(oprot);
+ _iter709.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
if (struct.isSetFunctions()) {
{
oprot.writeI32(struct.functions.size());
- for (Function _iter678 : struct.functions)
+ for (Function _iter710 : struct.functions)
{
- _iter678.write(oprot);
+ _iter710.write(oprot);
}
}
}
@@ -428,14 +428,14 @@ public class GetAllFunctionsResponse implements org.apache.thrift.TBase<GetAllFu
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.functions = new ArrayList<Function>(_list679.size);
- Function _elem680;
- for (int _i681 = 0; _i681 < _list679.size; ++_i681)
+ org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.functions = new ArrayList<Function>(_list711.size);
+ Function _elem712;
+ for (int _i713 = 0; _i713 < _list711.size; ++_i713)
{
- _elem680 = new Function();
- _elem680.read(iprot);
- struct.functions.add(_elem680);
+ _elem712 = new Function();
+ _elem712.read(iprot);
+ struct.functions.add(_elem712);
}
}
struct.setFunctionsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
index ef758cd..b416d62 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java
@@ -619,13 +619,13 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list624 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list624.size);
- long _elem625;
- for (int _i626 = 0; _i626 < _list624.size; ++_i626)
+ org.apache.thrift.protocol.TList _list656 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list656.size);
+ long _elem657;
+ for (int _i658 = 0; _i658 < _list656.size; ++_i658)
{
- _elem625 = iprot.readI64();
- struct.fileIds.add(_elem625);
+ _elem657 = iprot.readI64();
+ struct.fileIds.add(_elem657);
}
iprot.readListEnd();
}
@@ -675,9 +675,9 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
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 _iter627 : struct.fileIds)
+ for (long _iter659 : struct.fileIds)
{
- oprot.writeI64(_iter627);
+ oprot.writeI64(_iter659);
}
oprot.writeListEnd();
}
@@ -719,9 +719,9 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter628 : struct.fileIds)
+ for (long _iter660 : struct.fileIds)
{
- oprot.writeI64(_iter628);
+ oprot.writeI64(_iter660);
}
}
oprot.writeBinary(struct.expr);
@@ -745,13 +745,13 @@ public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase<Get
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 _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list629.size);
- long _elem630;
- for (int _i631 = 0; _i631 < _list629.size; ++_i631)
+ org.apache.thrift.protocol.TList _list661 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list661.size);
+ long _elem662;
+ for (int _i663 = 0; _i663 < _list661.size; ++_i663)
{
- _elem630 = iprot.readI64();
- struct.fileIds.add(_elem630);
+ _elem662 = iprot.readI64();
+ struct.fileIds.add(_elem662);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
index ee94380..fc85a17 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java
@@ -444,16 +444,16 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
case 1: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map614 = iprot.readMapBegin();
- struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map614.size);
- long _key615;
- MetadataPpdResult _val616;
- for (int _i617 = 0; _i617 < _map614.size; ++_i617)
+ org.apache.thrift.protocol.TMap _map646 = iprot.readMapBegin();
+ struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map646.size);
+ long _key647;
+ MetadataPpdResult _val648;
+ for (int _i649 = 0; _i649 < _map646.size; ++_i649)
{
- _key615 = iprot.readI64();
- _val616 = new MetadataPpdResult();
- _val616.read(iprot);
- struct.metadata.put(_key615, _val616);
+ _key647 = iprot.readI64();
+ _val648 = new MetadataPpdResult();
+ _val648.read(iprot);
+ struct.metadata.put(_key647, _val648);
}
iprot.readMapEnd();
}
@@ -487,10 +487,10 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
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<Long, MetadataPpdResult> _iter618 : struct.metadata.entrySet())
+ for (Map.Entry<Long, MetadataPpdResult> _iter650 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter618.getKey());
- _iter618.getValue().write(oprot);
+ oprot.writeI64(_iter650.getKey());
+ _iter650.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -518,10 +518,10 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.metadata.size());
- for (Map.Entry<Long, MetadataPpdResult> _iter619 : struct.metadata.entrySet())
+ for (Map.Entry<Long, MetadataPpdResult> _iter651 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter619.getKey());
- _iter619.getValue().write(oprot);
+ oprot.writeI64(_iter651.getKey());
+ _iter651.getValue().write(oprot);
}
}
oprot.writeBool(struct.isSupported);
@@ -531,16 +531,16 @@ public class GetFileMetadataByExprResult implements org.apache.thrift.TBase<GetF
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 _map620 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map620.size);
- long _key621;
- MetadataPpdResult _val622;
- for (int _i623 = 0; _i623 < _map620.size; ++_i623)
+ org.apache.thrift.protocol.TMap _map652 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map652.size);
+ long _key653;
+ MetadataPpdResult _val654;
+ for (int _i655 = 0; _i655 < _map652.size; ++_i655)
{
- _key621 = iprot.readI64();
- _val622 = new MetadataPpdResult();
- _val622.read(iprot);
- struct.metadata.put(_key621, _val622);
+ _key653 = iprot.readI64();
+ _val654 = new MetadataPpdResult();
+ _val654.read(iprot);
+ struct.metadata.put(_key653, _val654);
}
}
struct.setMetadataIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
index f8c8258..54c2733 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java
@@ -351,13 +351,13 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
case 1: // FILE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list642 = iprot.readListBegin();
- struct.fileIds = new ArrayList<Long>(_list642.size);
- long _elem643;
- for (int _i644 = 0; _i644 < _list642.size; ++_i644)
+ org.apache.thrift.protocol.TList _list674 = iprot.readListBegin();
+ struct.fileIds = new ArrayList<Long>(_list674.size);
+ long _elem675;
+ for (int _i676 = 0; _i676 < _list674.size; ++_i676)
{
- _elem643 = iprot.readI64();
- struct.fileIds.add(_elem643);
+ _elem675 = iprot.readI64();
+ struct.fileIds.add(_elem675);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
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 _iter645 : struct.fileIds)
+ for (long _iter677 : struct.fileIds)
{
- oprot.writeI64(_iter645);
+ oprot.writeI64(_iter677);
}
oprot.writeListEnd();
}
@@ -410,9 +410,9 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.fileIds.size());
- for (long _iter646 : struct.fileIds)
+ for (long _iter678 : struct.fileIds)
{
- oprot.writeI64(_iter646);
+ oprot.writeI64(_iter678);
}
}
}
@@ -421,13 +421,13 @@ public class GetFileMetadataRequest implements org.apache.thrift.TBase<GetFileMe
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 _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.fileIds = new ArrayList<Long>(_list647.size);
- long _elem648;
- for (int _i649 = 0; _i649 < _list647.size; ++_i649)
+ org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.fileIds = new ArrayList<Long>(_list679.size);
+ long _elem680;
+ for (int _i681 = 0; _i681 < _list679.size; ++_i681)
{
- _elem648 = iprot.readI64();
- struct.fileIds.add(_elem648);
+ _elem680 = iprot.readI64();
+ struct.fileIds.add(_elem680);
}
}
struct.setFileIdsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
index 73888e9..f78ceff 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java
@@ -433,15 +433,15 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
case 1: // METADATA
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map632 = iprot.readMapBegin();
- struct.metadata = new HashMap<Long,ByteBuffer>(2*_map632.size);
- long _key633;
- ByteBuffer _val634;
- for (int _i635 = 0; _i635 < _map632.size; ++_i635)
+ org.apache.thrift.protocol.TMap _map664 = iprot.readMapBegin();
+ struct.metadata = new HashMap<Long,ByteBuffer>(2*_map664.size);
+ long _key665;
+ ByteBuffer _val666;
+ for (int _i667 = 0; _i667 < _map664.size; ++_i667)
{
- _key633 = iprot.readI64();
- _val634 = iprot.readBinary();
- struct.metadata.put(_key633, _val634);
+ _key665 = iprot.readI64();
+ _val666 = iprot.readBinary();
+ struct.metadata.put(_key665, _val666);
}
iprot.readMapEnd();
}
@@ -475,10 +475,10 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
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<Long, ByteBuffer> _iter636 : struct.metadata.entrySet())
+ for (Map.Entry<Long, ByteBuffer> _iter668 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter636.getKey());
- oprot.writeBinary(_iter636.getValue());
+ oprot.writeI64(_iter668.getKey());
+ oprot.writeBinary(_iter668.getValue());
}
oprot.writeMapEnd();
}
@@ -506,10 +506,10 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.metadata.size());
- for (Map.Entry<Long, ByteBuffer> _iter637 : struct.metadata.entrySet())
+ for (Map.Entry<Long, ByteBuffer> _iter669 : struct.metadata.entrySet())
{
- oprot.writeI64(_iter637.getKey());
- oprot.writeBinary(_iter637.getValue());
+ oprot.writeI64(_iter669.getKey());
+ oprot.writeBinary(_iter669.getValue());
}
}
oprot.writeBool(struct.isSupported);
@@ -519,15 +519,15 @@ public class GetFileMetadataResult implements org.apache.thrift.TBase<GetFileMet
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 _map638 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.metadata = new HashMap<Long,ByteBuffer>(2*_map638.size);
- long _key639;
- ByteBuffer _val640;
- for (int _i641 = 0; _i641 < _map638.size; ++_i641)
+ org.apache.thrift.protocol.TMap _map670 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.metadata = new HashMap<Long,ByteBuffer>(2*_map670.size);
+ long _key671;
+ ByteBuffer _val672;
+ for (int _i673 = 0; _i673 < _map670.size; ++_i673)
{
- _key639 = iprot.readI64();
- _val640 = iprot.readBinary();
- struct.metadata.put(_key639, _val640);
+ _key671 = iprot.readI64();
+ _val672 = iprot.readBinary();
+ struct.metadata.put(_key671, _val672);
}
}
struct.setMetadataIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java
index 18a8e62..7d80426 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java
@@ -447,14 +447,14 @@ public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase<GetOpenT
case 2: // OPEN_TXNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list492 = iprot.readListBegin();
- struct.open_txns = new ArrayList<TxnInfo>(_list492.size);
- TxnInfo _elem493;
- for (int _i494 = 0; _i494 < _list492.size; ++_i494)
+ org.apache.thrift.protocol.TList _list524 = iprot.readListBegin();
+ struct.open_txns = new ArrayList<TxnInfo>(_list524.size);
+ TxnInfo _elem525;
+ for (int _i526 = 0; _i526 < _list524.size; ++_i526)
{
- _elem493 = new TxnInfo();
- _elem493.read(iprot);
- struct.open_txns.add(_elem493);
+ _elem525 = new TxnInfo();
+ _elem525.read(iprot);
+ struct.open_txns.add(_elem525);
}
iprot.readListEnd();
}
@@ -483,9 +483,9 @@ public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase<GetOpenT
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 _iter495 : struct.open_txns)
+ for (TxnInfo _iter527 : struct.open_txns)
{
- _iter495.write(oprot);
+ _iter527.write(oprot);
}
oprot.writeListEnd();
}
@@ -511,9 +511,9 @@ public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase<GetOpenT
oprot.writeI64(struct.txn_high_water_mark);
{
oprot.writeI32(struct.open_txns.size());
- for (TxnInfo _iter496 : struct.open_txns)
+ for (TxnInfo _iter528 : struct.open_txns)
{
- _iter496.write(oprot);
+ _iter528.write(oprot);
}
}
}
@@ -524,14 +524,14 @@ public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase<GetOpenT
struct.txn_high_water_mark = iprot.readI64();
struct.setTxn_high_water_markIsSet(true);
{
- org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.open_txns = new ArrayList<TxnInfo>(_list497.size);
- TxnInfo _elem498;
- for (int _i499 = 0; _i499 < _list497.size; ++_i499)
+ org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.open_txns = new ArrayList<TxnInfo>(_list529.size);
+ TxnInfo _elem530;
+ for (int _i531 = 0; _i531 < _list529.size; ++_i531)
{
- _elem498 = new TxnInfo();
- _elem498.read(iprot);
- struct.open_txns.add(_elem498);
+ _elem530 = new TxnInfo();
+ _elem530.read(iprot);
+ struct.open_txns.add(_elem530);
}
}
struct.setOpen_txnsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java
index 386c105..a0944a6 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java
@@ -615,13 +615,13 @@ public class GetOpenTxnsResponse implements org.apache.thrift.TBase<GetOpenTxnsR
case 2: // OPEN_TXNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list500 = iprot.readListBegin();
- struct.open_txns = new ArrayList<Long>(_list500.size);
- long _elem501;
- for (int _i502 = 0; _i502 < _list500.size; ++_i502)
+ org.apache.thrift.protocol.TList _list532 = iprot.readListBegin();
+ struct.open_txns = new ArrayList<Long>(_list532.size);
+ long _elem533;
+ for (int _i534 = 0; _i534 < _list532.size; ++_i534)
{
- _elem501 = iprot.readI64();
- struct.open_txns.add(_elem501);
+ _elem533 = iprot.readI64();
+ struct.open_txns.add(_elem533);
}
iprot.readListEnd();
}
@@ -666,9 +666,9 @@ public class GetOpenTxnsResponse implements org.apache.thrift.TBase<GetOpenTxnsR
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 _iter503 : struct.open_txns)
+ for (long _iter535 : struct.open_txns)
{
- oprot.writeI64(_iter503);
+ oprot.writeI64(_iter535);
}
oprot.writeListEnd();
}
@@ -704,9 +704,9 @@ public class GetOpenTxnsResponse implements org.apache.thrift.TBase<GetOpenTxnsR
oprot.writeI64(struct.txn_high_water_mark);
{
oprot.writeI32(struct.open_txns.size());
- for (long _iter504 : struct.open_txns)
+ for (long _iter536 : struct.open_txns)
{
- oprot.writeI64(_iter504);
+ oprot.writeI64(_iter536);
}
}
oprot.writeBinary(struct.abortedBits);
@@ -726,13 +726,13 @@ public class GetOpenTxnsResponse implements org.apache.thrift.TBase<GetOpenTxnsR
struct.txn_high_water_mark = iprot.readI64();
struct.setTxn_high_water_markIsSet(true);
{
- org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.open_txns = new ArrayList<Long>(_list505.size);
- long _elem506;
- for (int _i507 = 0; _i507 < _list505.size; ++_i507)
+ org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.open_txns = new ArrayList<Long>(_list537.size);
+ long _elem538;
+ for (int _i539 = 0; _i539 < _list537.size; ++_i539)
{
- _elem506 = iprot.readI64();
- struct.open_txns.add(_elem506);
+ _elem538 = iprot.readI64();
+ struct.open_txns.add(_elem538);
}
}
struct.setOpen_txnsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java
index 5195427..8cd3e37 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java
@@ -525,13 +525,13 @@ public class GetTablesRequest implements org.apache.thrift.TBase<GetTablesReques
case 2: // TBL_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list690 = iprot.readListBegin();
- struct.tblNames = new ArrayList<String>(_list690.size);
- String _elem691;
- for (int _i692 = 0; _i692 < _list690.size; ++_i692)
+ org.apache.thrift.protocol.TList _list722 = iprot.readListBegin();
+ struct.tblNames = new ArrayList<String>(_list722.size);
+ String _elem723;
+ for (int _i724 = 0; _i724 < _list722.size; ++_i724)
{
- _elem691 = iprot.readString();
- struct.tblNames.add(_elem691);
+ _elem723 = iprot.readString();
+ struct.tblNames.add(_elem723);
}
iprot.readListEnd();
}
@@ -572,9 +572,9 @@ public class GetTablesRequest implements org.apache.thrift.TBase<GetTablesReques
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 _iter693 : struct.tblNames)
+ for (String _iter725 : struct.tblNames)
{
- oprot.writeString(_iter693);
+ oprot.writeString(_iter725);
}
oprot.writeListEnd();
}
@@ -617,9 +617,9 @@ public class GetTablesRequest implements org.apache.thrift.TBase<GetTablesReques
if (struct.isSetTblNames()) {
{
oprot.writeI32(struct.tblNames.size());
- for (String _iter694 : struct.tblNames)
+ for (String _iter726 : struct.tblNames)
{
- oprot.writeString(_iter694);
+ oprot.writeString(_iter726);
}
}
}
@@ -636,13 +636,13 @@ public class GetTablesRequest implements org.apache.thrift.TBase<GetTablesReques
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tblNames = new ArrayList<String>(_list695.size);
- String _elem696;
- for (int _i697 = 0; _i697 < _list695.size; ++_i697)
+ org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tblNames = new ArrayList<String>(_list727.size);
+ String _elem728;
+ for (int _i729 = 0; _i729 < _list727.size; ++_i729)
{
- _elem696 = iprot.readString();
- struct.tblNames.add(_elem696);
+ _elem728 = iprot.readString();
+ struct.tblNames.add(_elem728);
}
}
struct.setTblNamesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java
index 1ade2f5..f0aefcc 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java
@@ -354,14 +354,14 @@ public class GetTablesResult implements org.apache.thrift.TBase<GetTablesResult,
case 1: // TABLES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list698 = iprot.readListBegin();
- struct.tables = new ArrayList<Table>(_list698.size);
- Table _elem699;
- for (int _i700 = 0; _i700 < _list698.size; ++_i700)
+ org.apache.thrift.protocol.TList _list730 = iprot.readListBegin();
+ struct.tables = new ArrayList<Table>(_list730.size);
+ Table _elem731;
+ for (int _i732 = 0; _i732 < _list730.size; ++_i732)
{
- _elem699 = new Table();
- _elem699.read(iprot);
- struct.tables.add(_elem699);
+ _elem731 = new Table();
+ _elem731.read(iprot);
+ struct.tables.add(_elem731);
}
iprot.readListEnd();
}
@@ -387,9 +387,9 @@ public class GetTablesResult implements org.apache.thrift.TBase<GetTablesResult,
oprot.writeFieldBegin(TABLES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
- for (Table _iter701 : struct.tables)
+ for (Table _iter733 : struct.tables)
{
- _iter701.write(oprot);
+ _iter733.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class GetTablesResult implements org.apache.thrift.TBase<GetTablesResult,
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.tables.size());
- for (Table _iter702 : struct.tables)
+ for (Table _iter734 : struct.tables)
{
- _iter702.write(oprot);
+ _iter734.write(oprot);
}
}
}
@@ -425,14 +425,14 @@ public class GetTablesResult implements org.apache.thrift.TBase<GetTablesResult,
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 _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.tables = new ArrayList<Table>(_list703.size);
- Table _elem704;
- for (int _i705 = 0; _i705 < _list703.size; ++_i705)
+ org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.tables = new ArrayList<Table>(_list735.size);
+ Table _elem736;
+ for (int _i737 = 0; _i737 < _list735.size; ++_i737)
{
- _elem704 = new Table();
- _elem704.read(iprot);
- struct.tables.add(_elem704);
+ _elem736 = new Table();
+ _elem736.read(iprot);
+ struct.tables.add(_elem736);
}
}
struct.setTablesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java
index a33210d..e823d59 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java
@@ -453,13 +453,13 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
case 1: // ABORTED
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set540 = iprot.readSetBegin();
- struct.aborted = new HashSet<Long>(2*_set540.size);
- long _elem541;
- for (int _i542 = 0; _i542 < _set540.size; ++_i542)
+ org.apache.thrift.protocol.TSet _set572 = iprot.readSetBegin();
+ struct.aborted = new HashSet<Long>(2*_set572.size);
+ long _elem573;
+ for (int _i574 = 0; _i574 < _set572.size; ++_i574)
{
- _elem541 = iprot.readI64();
- struct.aborted.add(_elem541);
+ _elem573 = iprot.readI64();
+ struct.aborted.add(_elem573);
}
iprot.readSetEnd();
}
@@ -471,13 +471,13 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
case 2: // NOSUCH
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set543 = iprot.readSetBegin();
- struct.nosuch = new HashSet<Long>(2*_set543.size);
- long _elem544;
- for (int _i545 = 0; _i545 < _set543.size; ++_i545)
+ org.apache.thrift.protocol.TSet _set575 = iprot.readSetBegin();
+ struct.nosuch = new HashSet<Long>(2*_set575.size);
+ long _elem576;
+ for (int _i577 = 0; _i577 < _set575.size; ++_i577)
{
- _elem544 = iprot.readI64();
- struct.nosuch.add(_elem544);
+ _elem576 = iprot.readI64();
+ struct.nosuch.add(_elem576);
}
iprot.readSetEnd();
}
@@ -503,9 +503,9 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
oprot.writeFieldBegin(ABORTED_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size()));
- for (long _iter546 : struct.aborted)
+ for (long _iter578 : struct.aborted)
{
- oprot.writeI64(_iter546);
+ oprot.writeI64(_iter578);
}
oprot.writeSetEnd();
}
@@ -515,9 +515,9 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
oprot.writeFieldBegin(NOSUCH_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size()));
- for (long _iter547 : struct.nosuch)
+ for (long _iter579 : struct.nosuch)
{
- oprot.writeI64(_iter547);
+ oprot.writeI64(_iter579);
}
oprot.writeSetEnd();
}
@@ -542,16 +542,16 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.aborted.size());
- for (long _iter548 : struct.aborted)
+ for (long _iter580 : struct.aborted)
{
- oprot.writeI64(_iter548);
+ oprot.writeI64(_iter580);
}
}
{
oprot.writeI32(struct.nosuch.size());
- for (long _iter549 : struct.nosuch)
+ for (long _iter581 : struct.nosuch)
{
- oprot.writeI64(_iter549);
+ oprot.writeI64(_iter581);
}
}
}
@@ -560,24 +560,24 @@ public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase<Heartb
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 _set550 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.aborted = new HashSet<Long>(2*_set550.size);
- long _elem551;
- for (int _i552 = 0; _i552 < _set550.size; ++_i552)
+ org.apache.thrift.protocol.TSet _set582 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.aborted = new HashSet<Long>(2*_set582.size);
+ long _elem583;
+ for (int _i584 = 0; _i584 < _set582.size; ++_i584)
{
- _elem551 = iprot.readI64();
- struct.aborted.add(_elem551);
+ _elem583 = iprot.readI64();
+ struct.aborted.add(_elem583);
}
}
struct.setAbortedIsSet(true);
{
- org.apache.thrift.protocol.TSet _set553 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.nosuch = new HashSet<Long>(2*_set553.size);
- long _elem554;
- for (int _i555 = 0; _i555 < _set553.size; ++_i555)
+ org.apache.thrift.protocol.TSet _set585 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.nosuch = new HashSet<Long>(2*_set585.size);
+ long _elem586;
+ for (int _i587 = 0; _i587 < _set585.size; ++_i587)
{
- _elem554 = iprot.readI64();
- struct.nosuch.add(_elem554);
+ _elem586 = iprot.readI64();
+ struct.nosuch.add(_elem586);
}
}
struct.setNosuchIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java
index 84f1df1..fe4cf63 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java
@@ -538,13 +538,13 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
case 2: // FILES_ADDED
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list590 = iprot.readListBegin();
- struct.filesAdded = new ArrayList<String>(_list590.size);
- String _elem591;
- for (int _i592 = 0; _i592 < _list590.size; ++_i592)
+ org.apache.thrift.protocol.TList _list622 = iprot.readListBegin();
+ struct.filesAdded = new ArrayList<String>(_list622.size);
+ String _elem623;
+ for (int _i624 = 0; _i624 < _list622.size; ++_i624)
{
- _elem591 = iprot.readString();
- struct.filesAdded.add(_elem591);
+ _elem623 = iprot.readString();
+ struct.filesAdded.add(_elem623);
}
iprot.readListEnd();
}
@@ -556,13 +556,13 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
case 3: // FILES_ADDED_CHECKSUM
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list593 = iprot.readListBegin();
- struct.filesAddedChecksum = new ArrayList<String>(_list593.size);
- String _elem594;
- for (int _i595 = 0; _i595 < _list593.size; ++_i595)
+ org.apache.thrift.protocol.TList _list625 = iprot.readListBegin();
+ struct.filesAddedChecksum = new ArrayList<String>(_list625.size);
+ String _elem626;
+ for (int _i627 = 0; _i627 < _list625.size; ++_i627)
{
- _elem594 = iprot.readString();
- struct.filesAddedChecksum.add(_elem594);
+ _elem626 = iprot.readString();
+ struct.filesAddedChecksum.add(_elem626);
}
iprot.readListEnd();
}
@@ -593,9 +593,9 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
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 _iter596 : struct.filesAdded)
+ for (String _iter628 : struct.filesAdded)
{
- oprot.writeString(_iter596);
+ oprot.writeString(_iter628);
}
oprot.writeListEnd();
}
@@ -606,9 +606,9 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
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 _iter597 : struct.filesAddedChecksum)
+ for (String _iter629 : struct.filesAddedChecksum)
{
- oprot.writeString(_iter597);
+ oprot.writeString(_iter629);
}
oprot.writeListEnd();
}
@@ -634,9 +634,9 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.filesAdded.size());
- for (String _iter598 : struct.filesAdded)
+ for (String _iter630 : struct.filesAdded)
{
- oprot.writeString(_iter598);
+ oprot.writeString(_iter630);
}
}
BitSet optionals = new BitSet();
@@ -653,9 +653,9 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
if (struct.isSetFilesAddedChecksum()) {
{
oprot.writeI32(struct.filesAddedChecksum.size());
- for (String _iter599 : struct.filesAddedChecksum)
+ for (String _iter631 : struct.filesAddedChecksum)
{
- oprot.writeString(_iter599);
+ oprot.writeString(_iter631);
}
}
}
@@ -665,13 +665,13 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
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 _list600 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.filesAdded = new ArrayList<String>(_list600.size);
- String _elem601;
- for (int _i602 = 0; _i602 < _list600.size; ++_i602)
+ org.apache.thrift.protocol.TList _list632 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.filesAdded = new ArrayList<String>(_list632.size);
+ String _elem633;
+ for (int _i634 = 0; _i634 < _list632.size; ++_i634)
{
- _elem601 = iprot.readString();
- struct.filesAdded.add(_elem601);
+ _elem633 = iprot.readString();
+ struct.filesAdded.add(_elem633);
}
}
struct.setFilesAddedIsSet(true);
@@ -682,13 +682,13 @@ public class InsertEventRequestData implements org.apache.thrift.TBase<InsertEve
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.filesAddedChecksum = new ArrayList<String>(_list603.size);
- String _elem604;
- for (int _i605 = 0; _i605 < _list603.size; ++_i605)
+ org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.filesAddedChecksum = new ArrayList<String>(_list635.size);
+ String _elem636;
+ for (int _i637 = 0; _i637 < _list635.size; ++_i637)
{
- _elem604 = iprot.readString();
- struct.filesAddedChecksum.add(_elem604);
+ _elem636 = iprot.readString();
+ struct.filesAddedChecksum.add(_elem636);
}
}
struct.setFilesAddedChecksumIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java
index 833adbb..75d9d56 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java
@@ -689,14 +689,14 @@ public class LockRequest implements org.apache.thrift.TBase<LockRequest, LockReq
case 1: // COMPONENT
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list524 = iprot.readListBegin();
- struct.component = new ArrayList<LockComponent>(_list524.size);
- LockComponent _elem525;
- for (int _i526 = 0; _i526 < _list524.size; ++_i526)
+ org.apache.thrift.protocol.TList _list556 = iprot.readListBegin();
+ struct.component = new ArrayList<LockComponent>(_list556.size);
+ LockComponent _elem557;
+ for (int _i558 = 0; _i558 < _list556.size; ++_i558)
{
- _elem525 = new LockComponent();
- _elem525.read(iprot);
- struct.component.add(_elem525);
+ _elem557 = new LockComponent();
+ _elem557.read(iprot);
+ struct.component.add(_elem557);
}
iprot.readListEnd();
}
@@ -754,9 +754,9 @@ public class LockRequest implements org.apache.thrift.TBase<LockRequest, LockReq
oprot.writeFieldBegin(COMPONENT_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size()));
- for (LockComponent _iter527 : struct.component)
+ for (LockComponent _iter559 : struct.component)
{
- _iter527.write(oprot);
+ _iter559.write(oprot);
}
oprot.writeListEnd();
}
@@ -803,9 +803,9 @@ public class LockRequest implements org.apache.thrift.TBase<LockRequest, LockReq
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.component.size());
- for (LockComponent _iter528 : struct.component)
+ for (LockComponent _iter560 : struct.component)
{
- _iter528.write(oprot);
+ _iter560.write(oprot);
}
}
oprot.writeString(struct.user);
@@ -830,14 +830,14 @@ public class LockRequest implements org.apache.thrift.TBase<LockRequest, LockReq
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 _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.component = new ArrayList<LockComponent>(_list529.size);
- LockComponent _elem530;
- for (int _i531 = 0; _i531 < _list529.size; ++_i531)
+ org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.component = new ArrayList<LockComponent>(_list561.size);
+ LockComponent _elem562;
+ for (int _i563 = 0; _i563 < _list561.size; ++_i563)
{
- _elem530 = new LockComponent();
- _elem530.read(iprot);
- struct.component.add(_elem530);
+ _elem562 = new LockComponent();
+ _elem562.read(iprot);
+ struct.component.add(_elem562);
}
}
struct.setComponentIsSet(true);
[09/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
index 5c09fdd..b3c9798 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
@@ -12290,6 +12290,503 @@ void DropPartitionsRequest::printTo(std::ostream& out) const {
}
+PartitionValuesRequest::~PartitionValuesRequest() throw() {
+}
+
+
+void PartitionValuesRequest::__set_dbName(const std::string& val) {
+ this->dbName = val;
+}
+
+void PartitionValuesRequest::__set_tblName(const std::string& val) {
+ this->tblName = val;
+}
+
+void PartitionValuesRequest::__set_partitionKeys(const std::vector<FieldSchema> & val) {
+ this->partitionKeys = val;
+}
+
+void PartitionValuesRequest::__set_applyDistinct(const bool val) {
+ this->applyDistinct = val;
+__isset.applyDistinct = true;
+}
+
+void PartitionValuesRequest::__set_filter(const std::string& val) {
+ this->filter = val;
+__isset.filter = true;
+}
+
+void PartitionValuesRequest::__set_partitionOrder(const std::vector<FieldSchema> & val) {
+ this->partitionOrder = val;
+__isset.partitionOrder = true;
+}
+
+void PartitionValuesRequest::__set_ascending(const bool val) {
+ this->ascending = val;
+__isset.ascending = true;
+}
+
+void PartitionValuesRequest::__set_maxParts(const int64_t val) {
+ this->maxParts = val;
+__isset.maxParts = true;
+}
+
+uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+ bool isset_dbName = false;
+ bool isset_tblName = false;
+ bool isset_partitionKeys = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->dbName);
+ isset_dbName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tblName);
+ isset_tblName = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->partitionKeys.clear();
+ uint32_t _size533;
+ ::apache::thrift::protocol::TType _etype536;
+ xfer += iprot->readListBegin(_etype536, _size533);
+ this->partitionKeys.resize(_size533);
+ uint32_t _i537;
+ for (_i537 = 0; _i537 < _size533; ++_i537)
+ {
+ xfer += this->partitionKeys[_i537].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_partitionKeys = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->applyDistinct);
+ this->__isset.applyDistinct = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->filter);
+ this->__isset.filter = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->partitionOrder.clear();
+ uint32_t _size538;
+ ::apache::thrift::protocol::TType _etype541;
+ xfer += iprot->readListBegin(_etype541, _size538);
+ this->partitionOrder.resize(_size538);
+ uint32_t _i542;
+ for (_i542 = 0; _i542 < _size538; ++_i542)
+ {
+ xfer += this->partitionOrder[_i542].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ this->__isset.partitionOrder = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 7:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->ascending);
+ this->__isset.ascending = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 8:
+ if (ftype == ::apache::thrift::protocol::T_I64) {
+ xfer += iprot->readI64(this->maxParts);
+ this->__isset.maxParts = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_dbName)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_tblName)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ if (!isset_partitionKeys)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("PartitionValuesRequest");
+
+ xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->dbName);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tblName);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionKeys.size()));
+ std::vector<FieldSchema> ::const_iterator _iter543;
+ for (_iter543 = this->partitionKeys.begin(); _iter543 != this->partitionKeys.end(); ++_iter543)
+ {
+ xfer += (*_iter543).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ if (this->__isset.applyDistinct) {
+ xfer += oprot->writeFieldBegin("applyDistinct", ::apache::thrift::protocol::T_BOOL, 4);
+ xfer += oprot->writeBool(this->applyDistinct);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.filter) {
+ xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString(this->filter);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.partitionOrder) {
+ xfer += oprot->writeFieldBegin("partitionOrder", ::apache::thrift::protocol::T_LIST, 6);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionOrder.size()));
+ std::vector<FieldSchema> ::const_iterator _iter544;
+ for (_iter544 = this->partitionOrder.begin(); _iter544 != this->partitionOrder.end(); ++_iter544)
+ {
+ xfer += (*_iter544).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.ascending) {
+ xfer += oprot->writeFieldBegin("ascending", ::apache::thrift::protocol::T_BOOL, 7);
+ xfer += oprot->writeBool(this->ascending);
+ xfer += oprot->writeFieldEnd();
+ }
+ if (this->__isset.maxParts) {
+ xfer += oprot->writeFieldBegin("maxParts", ::apache::thrift::protocol::T_I64, 8);
+ xfer += oprot->writeI64(this->maxParts);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+void swap(PartitionValuesRequest &a, PartitionValuesRequest &b) {
+ using ::std::swap;
+ swap(a.dbName, b.dbName);
+ swap(a.tblName, b.tblName);
+ swap(a.partitionKeys, b.partitionKeys);
+ swap(a.applyDistinct, b.applyDistinct);
+ swap(a.filter, b.filter);
+ swap(a.partitionOrder, b.partitionOrder);
+ swap(a.ascending, b.ascending);
+ swap(a.maxParts, b.maxParts);
+ swap(a.__isset, b.__isset);
+}
+
+PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other545) {
+ dbName = other545.dbName;
+ tblName = other545.tblName;
+ partitionKeys = other545.partitionKeys;
+ applyDistinct = other545.applyDistinct;
+ filter = other545.filter;
+ partitionOrder = other545.partitionOrder;
+ ascending = other545.ascending;
+ maxParts = other545.maxParts;
+ __isset = other545.__isset;
+}
+PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other546) {
+ dbName = other546.dbName;
+ tblName = other546.tblName;
+ partitionKeys = other546.partitionKeys;
+ applyDistinct = other546.applyDistinct;
+ filter = other546.filter;
+ partitionOrder = other546.partitionOrder;
+ ascending = other546.ascending;
+ maxParts = other546.maxParts;
+ __isset = other546.__isset;
+ return *this;
+}
+void PartitionValuesRequest::printTo(std::ostream& out) const {
+ using ::apache::thrift::to_string;
+ out << "PartitionValuesRequest(";
+ out << "dbName=" << to_string(dbName);
+ out << ", " << "tblName=" << to_string(tblName);
+ out << ", " << "partitionKeys=" << to_string(partitionKeys);
+ out << ", " << "applyDistinct="; (__isset.applyDistinct ? (out << to_string(applyDistinct)) : (out << "<null>"));
+ out << ", " << "filter="; (__isset.filter ? (out << to_string(filter)) : (out << "<null>"));
+ out << ", " << "partitionOrder="; (__isset.partitionOrder ? (out << to_string(partitionOrder)) : (out << "<null>"));
+ out << ", " << "ascending="; (__isset.ascending ? (out << to_string(ascending)) : (out << "<null>"));
+ out << ", " << "maxParts="; (__isset.maxParts ? (out << to_string(maxParts)) : (out << "<null>"));
+ out << ")";
+}
+
+
+PartitionValuesRow::~PartitionValuesRow() throw() {
+}
+
+
+void PartitionValuesRow::__set_row(const std::vector<std::string> & val) {
+ this->row = val;
+}
+
+uint32_t PartitionValuesRow::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+ bool isset_row = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->row.clear();
+ uint32_t _size547;
+ ::apache::thrift::protocol::TType _etype550;
+ xfer += iprot->readListBegin(_etype550, _size547);
+ this->row.resize(_size547);
+ uint32_t _i551;
+ for (_i551 = 0; _i551 < _size547; ++_i551)
+ {
+ xfer += iprot->readString(this->row[_i551]);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_row = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_row)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t PartitionValuesRow::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("PartitionValuesRow");
+
+ xfer += oprot->writeFieldBegin("row", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->row.size()));
+ std::vector<std::string> ::const_iterator _iter552;
+ for (_iter552 = this->row.begin(); _iter552 != this->row.end(); ++_iter552)
+ {
+ xfer += oprot->writeString((*_iter552));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+void swap(PartitionValuesRow &a, PartitionValuesRow &b) {
+ using ::std::swap;
+ swap(a.row, b.row);
+}
+
+PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other553) {
+ row = other553.row;
+}
+PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other554) {
+ row = other554.row;
+ return *this;
+}
+void PartitionValuesRow::printTo(std::ostream& out) const {
+ using ::apache::thrift::to_string;
+ out << "PartitionValuesRow(";
+ out << "row=" << to_string(row);
+ out << ")";
+}
+
+
+PartitionValuesResponse::~PartitionValuesResponse() throw() {
+}
+
+
+void PartitionValuesResponse::__set_partitionValues(const std::vector<PartitionValuesRow> & val) {
+ this->partitionValues = val;
+}
+
+uint32_t PartitionValuesResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+ bool isset_partitionValues = false;
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->partitionValues.clear();
+ uint32_t _size555;
+ ::apache::thrift::protocol::TType _etype558;
+ xfer += iprot->readListBegin(_etype558, _size555);
+ this->partitionValues.resize(_size555);
+ uint32_t _i559;
+ for (_i559 = 0; _i559 < _size555; ++_i559)
+ {
+ xfer += this->partitionValues[_i559].read(iprot);
+ }
+ xfer += iprot->readListEnd();
+ }
+ isset_partitionValues = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ if (!isset_partitionValues)
+ throw TProtocolException(TProtocolException::INVALID_DATA);
+ return xfer;
+}
+
+uint32_t PartitionValuesResponse::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("PartitionValuesResponse");
+
+ xfer += oprot->writeFieldBegin("partitionValues", ::apache::thrift::protocol::T_LIST, 1);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionValues.size()));
+ std::vector<PartitionValuesRow> ::const_iterator _iter560;
+ for (_iter560 = this->partitionValues.begin(); _iter560 != this->partitionValues.end(); ++_iter560)
+ {
+ xfer += (*_iter560).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) {
+ using ::std::swap;
+ swap(a.partitionValues, b.partitionValues);
+}
+
+PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other561) {
+ partitionValues = other561.partitionValues;
+}
+PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other562) {
+ partitionValues = other562.partitionValues;
+ return *this;
+}
+void PartitionValuesResponse::printTo(std::ostream& out) const {
+ using ::apache::thrift::to_string;
+ out << "PartitionValuesResponse(";
+ out << "partitionValues=" << to_string(partitionValues);
+ out << ")";
+}
+
+
ResourceUri::~ResourceUri() throw() {
}
@@ -12325,9 +12822,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) {
{
case 1:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast533;
- xfer += iprot->readI32(ecast533);
- this->resourceType = (ResourceType::type)ecast533;
+ int32_t ecast563;
+ xfer += iprot->readI32(ecast563);
+ this->resourceType = (ResourceType::type)ecast563;
this->__isset.resourceType = true;
} else {
xfer += iprot->skip(ftype);
@@ -12378,15 +12875,15 @@ void swap(ResourceUri &a, ResourceUri &b) {
swap(a.__isset, b.__isset);
}
-ResourceUri::ResourceUri(const ResourceUri& other534) {
- resourceType = other534.resourceType;
- uri = other534.uri;
- __isset = other534.__isset;
+ResourceUri::ResourceUri(const ResourceUri& other564) {
+ resourceType = other564.resourceType;
+ uri = other564.uri;
+ __isset = other564.__isset;
}
-ResourceUri& ResourceUri::operator=(const ResourceUri& other535) {
- resourceType = other535.resourceType;
- uri = other535.uri;
- __isset = other535.__isset;
+ResourceUri& ResourceUri::operator=(const ResourceUri& other565) {
+ resourceType = other565.resourceType;
+ uri = other565.uri;
+ __isset = other565.__isset;
return *this;
}
void ResourceUri::printTo(std::ostream& out) const {
@@ -12489,9 +12986,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 5:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast536;
- xfer += iprot->readI32(ecast536);
- this->ownerType = (PrincipalType::type)ecast536;
+ int32_t ecast566;
+ xfer += iprot->readI32(ecast566);
+ this->ownerType = (PrincipalType::type)ecast566;
this->__isset.ownerType = true;
} else {
xfer += iprot->skip(ftype);
@@ -12507,9 +13004,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 7:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast537;
- xfer += iprot->readI32(ecast537);
- this->functionType = (FunctionType::type)ecast537;
+ int32_t ecast567;
+ xfer += iprot->readI32(ecast567);
+ this->functionType = (FunctionType::type)ecast567;
this->__isset.functionType = true;
} else {
xfer += iprot->skip(ftype);
@@ -12519,14 +13016,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->resourceUris.clear();
- uint32_t _size538;
- ::apache::thrift::protocol::TType _etype541;
- xfer += iprot->readListBegin(_etype541, _size538);
- this->resourceUris.resize(_size538);
- uint32_t _i542;
- for (_i542 = 0; _i542 < _size538; ++_i542)
+ uint32_t _size568;
+ ::apache::thrift::protocol::TType _etype571;
+ xfer += iprot->readListBegin(_etype571, _size568);
+ this->resourceUris.resize(_size568);
+ uint32_t _i572;
+ for (_i572 = 0; _i572 < _size568; ++_i572)
{
- xfer += this->resourceUris[_i542].read(iprot);
+ xfer += this->resourceUris[_i572].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -12583,10 +13080,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->resourceUris.size()));
- std::vector<ResourceUri> ::const_iterator _iter543;
- for (_iter543 = this->resourceUris.begin(); _iter543 != this->resourceUris.end(); ++_iter543)
+ std::vector<ResourceUri> ::const_iterator _iter573;
+ for (_iter573 = this->resourceUris.begin(); _iter573 != this->resourceUris.end(); ++_iter573)
{
- xfer += (*_iter543).write(oprot);
+ xfer += (*_iter573).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -12610,27 +13107,27 @@ void swap(Function &a, Function &b) {
swap(a.__isset, b.__isset);
}
-Function::Function(const Function& other544) {
- functionName = other544.functionName;
- dbName = other544.dbName;
- className = other544.className;
- ownerName = other544.ownerName;
- ownerType = other544.ownerType;
- createTime = other544.createTime;
- functionType = other544.functionType;
- resourceUris = other544.resourceUris;
- __isset = other544.__isset;
-}
-Function& Function::operator=(const Function& other545) {
- functionName = other545.functionName;
- dbName = other545.dbName;
- className = other545.className;
- ownerName = other545.ownerName;
- ownerType = other545.ownerType;
- createTime = other545.createTime;
- functionType = other545.functionType;
- resourceUris = other545.resourceUris;
- __isset = other545.__isset;
+Function::Function(const Function& other574) {
+ functionName = other574.functionName;
+ dbName = other574.dbName;
+ className = other574.className;
+ ownerName = other574.ownerName;
+ ownerType = other574.ownerType;
+ createTime = other574.createTime;
+ functionType = other574.functionType;
+ resourceUris = other574.resourceUris;
+ __isset = other574.__isset;
+}
+Function& Function::operator=(const Function& other575) {
+ functionName = other575.functionName;
+ dbName = other575.dbName;
+ className = other575.className;
+ ownerName = other575.ownerName;
+ ownerType = other575.ownerType;
+ createTime = other575.createTime;
+ functionType = other575.functionType;
+ resourceUris = other575.resourceUris;
+ __isset = other575.__isset;
return *this;
}
void Function::printTo(std::ostream& out) const {
@@ -12728,9 +13225,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast546;
- xfer += iprot->readI32(ecast546);
- this->state = (TxnState::type)ecast546;
+ int32_t ecast576;
+ xfer += iprot->readI32(ecast576);
+ this->state = (TxnState::type)ecast576;
isset_state = true;
} else {
xfer += iprot->skip(ftype);
@@ -12877,29 +13374,29 @@ void swap(TxnInfo &a, TxnInfo &b) {
swap(a.__isset, b.__isset);
}
-TxnInfo::TxnInfo(const TxnInfo& other547) {
- id = other547.id;
- state = other547.state;
- user = other547.user;
- hostname = other547.hostname;
- agentInfo = other547.agentInfo;
- heartbeatCount = other547.heartbeatCount;
- metaInfo = other547.metaInfo;
- startedTime = other547.startedTime;
- lastHeartbeatTime = other547.lastHeartbeatTime;
- __isset = other547.__isset;
-}
-TxnInfo& TxnInfo::operator=(const TxnInfo& other548) {
- id = other548.id;
- state = other548.state;
- user = other548.user;
- hostname = other548.hostname;
- agentInfo = other548.agentInfo;
- heartbeatCount = other548.heartbeatCount;
- metaInfo = other548.metaInfo;
- startedTime = other548.startedTime;
- lastHeartbeatTime = other548.lastHeartbeatTime;
- __isset = other548.__isset;
+TxnInfo::TxnInfo(const TxnInfo& other577) {
+ id = other577.id;
+ state = other577.state;
+ user = other577.user;
+ hostname = other577.hostname;
+ agentInfo = other577.agentInfo;
+ heartbeatCount = other577.heartbeatCount;
+ metaInfo = other577.metaInfo;
+ startedTime = other577.startedTime;
+ lastHeartbeatTime = other577.lastHeartbeatTime;
+ __isset = other577.__isset;
+}
+TxnInfo& TxnInfo::operator=(const TxnInfo& other578) {
+ id = other578.id;
+ state = other578.state;
+ user = other578.user;
+ hostname = other578.hostname;
+ agentInfo = other578.agentInfo;
+ heartbeatCount = other578.heartbeatCount;
+ metaInfo = other578.metaInfo;
+ startedTime = other578.startedTime;
+ lastHeartbeatTime = other578.lastHeartbeatTime;
+ __isset = other578.__isset;
return *this;
}
void TxnInfo::printTo(std::ostream& out) const {
@@ -12965,14 +13462,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->open_txns.clear();
- uint32_t _size549;
- ::apache::thrift::protocol::TType _etype552;
- xfer += iprot->readListBegin(_etype552, _size549);
- this->open_txns.resize(_size549);
- uint32_t _i553;
- for (_i553 = 0; _i553 < _size549; ++_i553)
+ uint32_t _size579;
+ ::apache::thrift::protocol::TType _etype582;
+ xfer += iprot->readListBegin(_etype582, _size579);
+ this->open_txns.resize(_size579);
+ uint32_t _i583;
+ for (_i583 = 0; _i583 < _size579; ++_i583)
{
- xfer += this->open_txns[_i553].read(iprot);
+ xfer += this->open_txns[_i583].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -13009,10 +13506,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o
xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->open_txns.size()));
- std::vector<TxnInfo> ::const_iterator _iter554;
- for (_iter554 = this->open_txns.begin(); _iter554 != this->open_txns.end(); ++_iter554)
+ std::vector<TxnInfo> ::const_iterator _iter584;
+ for (_iter584 = this->open_txns.begin(); _iter584 != this->open_txns.end(); ++_iter584)
{
- xfer += (*_iter554).write(oprot);
+ xfer += (*_iter584).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -13029,13 +13526,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) {
swap(a.open_txns, b.open_txns);
}
-GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other555) {
- txn_high_water_mark = other555.txn_high_water_mark;
- open_txns = other555.open_txns;
+GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other585) {
+ txn_high_water_mark = other585.txn_high_water_mark;
+ open_txns = other585.open_txns;
}
-GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other556) {
- txn_high_water_mark = other556.txn_high_water_mark;
- open_txns = other556.open_txns;
+GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other586) {
+ txn_high_water_mark = other586.txn_high_water_mark;
+ open_txns = other586.open_txns;
return *this;
}
void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const {
@@ -13104,14 +13601,14 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot)
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->open_txns.clear();
- uint32_t _size557;
- ::apache::thrift::protocol::TType _etype560;
- xfer += iprot->readListBegin(_etype560, _size557);
- this->open_txns.resize(_size557);
- uint32_t _i561;
- for (_i561 = 0; _i561 < _size557; ++_i561)
+ uint32_t _size587;
+ ::apache::thrift::protocol::TType _etype590;
+ xfer += iprot->readListBegin(_etype590, _size587);
+ this->open_txns.resize(_size587);
+ uint32_t _i591;
+ for (_i591 = 0; _i591 < _size587; ++_i591)
{
- xfer += iprot->readI64(this->open_txns[_i561]);
+ xfer += iprot->readI64(this->open_txns[_i591]);
}
xfer += iprot->readListEnd();
}
@@ -13166,10 +13663,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot
xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast<uint32_t>(this->open_txns.size()));
- std::vector<int64_t> ::const_iterator _iter562;
- for (_iter562 = this->open_txns.begin(); _iter562 != this->open_txns.end(); ++_iter562)
+ std::vector<int64_t> ::const_iterator _iter592;
+ for (_iter592 = this->open_txns.begin(); _iter592 != this->open_txns.end(); ++_iter592)
{
- xfer += oprot->writeI64((*_iter562));
+ xfer += oprot->writeI64((*_iter592));
}
xfer += oprot->writeListEnd();
}
@@ -13198,19 +13695,19 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) {
swap(a.__isset, b.__isset);
}
-GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other563) {
- txn_high_water_mark = other563.txn_high_water_mark;
- open_txns = other563.open_txns;
- min_open_txn = other563.min_open_txn;
- abortedBits = other563.abortedBits;
- __isset = other563.__isset;
+GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other593) {
+ txn_high_water_mark = other593.txn_high_water_mark;
+ open_txns = other593.open_txns;
+ min_open_txn = other593.min_open_txn;
+ abortedBits = other593.abortedBits;
+ __isset = other593.__isset;
}
-GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other564) {
- txn_high_water_mark = other564.txn_high_water_mark;
- open_txns = other564.open_txns;
- min_open_txn = other564.min_open_txn;
- abortedBits = other564.abortedBits;
- __isset = other564.__isset;
+GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other594) {
+ txn_high_water_mark = other594.txn_high_water_mark;
+ open_txns = other594.open_txns;
+ min_open_txn = other594.min_open_txn;
+ abortedBits = other594.abortedBits;
+ __isset = other594.__isset;
return *this;
}
void GetOpenTxnsResponse::printTo(std::ostream& out) const {
@@ -13355,19 +13852,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) {
swap(a.__isset, b.__isset);
}
-OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other565) {
- num_txns = other565.num_txns;
- user = other565.user;
- hostname = other565.hostname;
- agentInfo = other565.agentInfo;
- __isset = other565.__isset;
+OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other595) {
+ num_txns = other595.num_txns;
+ user = other595.user;
+ hostname = other595.hostname;
+ agentInfo = other595.agentInfo;
+ __isset = other595.__isset;
}
-OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other566) {
- num_txns = other566.num_txns;
- user = other566.user;
- hostname = other566.hostname;
- agentInfo = other566.agentInfo;
- __isset = other566.__isset;
+OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other596) {
+ num_txns = other596.num_txns;
+ user = other596.user;
+ hostname = other596.hostname;
+ agentInfo = other596.agentInfo;
+ __isset = other596.__isset;
return *this;
}
void OpenTxnRequest::printTo(std::ostream& out) const {
@@ -13415,14 +13912,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->txn_ids.clear();
- uint32_t _size567;
- ::apache::thrift::protocol::TType _etype570;
- xfer += iprot->readListBegin(_etype570, _size567);
- this->txn_ids.resize(_size567);
- uint32_t _i571;
- for (_i571 = 0; _i571 < _size567; ++_i571)
+ uint32_t _size597;
+ ::apache::thrift::protocol::TType _etype600;
+ xfer += iprot->readListBegin(_etype600, _size597);
+ this->txn_ids.resize(_size597);
+ uint32_t _i601;
+ for (_i601 = 0; _i601 < _size597; ++_i601)
{
- xfer += iprot->readI64(this->txn_ids[_i571]);
+ xfer += iprot->readI64(this->txn_ids[_i601]);
}
xfer += iprot->readListEnd();
}
@@ -13453,10 +13950,10 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c
xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast<uint32_t>(this->txn_ids.size()));
- std::vector<int64_t> ::const_iterator _iter572;
- for (_iter572 = this->txn_ids.begin(); _iter572 != this->txn_ids.end(); ++_iter572)
+ std::vector<int64_t> ::const_iterator _iter602;
+ for (_iter602 = this->txn_ids.begin(); _iter602 != this->txn_ids.end(); ++_iter602)
{
- xfer += oprot->writeI64((*_iter572));
+ xfer += oprot->writeI64((*_iter602));
}
xfer += oprot->writeListEnd();
}
@@ -13472,11 +13969,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) {
swap(a.txn_ids, b.txn_ids);
}
-OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other573) {
- txn_ids = other573.txn_ids;
+OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other603) {
+ txn_ids = other603.txn_ids;
}
-OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other574) {
- txn_ids = other574.txn_ids;
+OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other604) {
+ txn_ids = other604.txn_ids;
return *this;
}
void OpenTxnsResponse::printTo(std::ostream& out) const {
@@ -13558,11 +14055,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) {
swap(a.txnid, b.txnid);
}
-AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other575) {
- txnid = other575.txnid;
+AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other605) {
+ txnid = other605.txnid;
}
-AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other576) {
- txnid = other576.txnid;
+AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other606) {
+ txnid = other606.txnid;
return *this;
}
void AbortTxnRequest::printTo(std::ostream& out) const {
@@ -13607,14 +14104,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->txn_ids.clear();
- uint32_t _size577;
- ::apache::thrift::protocol::TType _etype580;
- xfer += iprot->readListBegin(_etype580, _size577);
- this->txn_ids.resize(_size577);
- uint32_t _i581;
- for (_i581 = 0; _i581 < _size577; ++_i581)
+ uint32_t _size607;
+ ::apache::thrift::protocol::TType _etype610;
+ xfer += iprot->readListBegin(_etype610, _size607);
+ this->txn_ids.resize(_size607);
+ uint32_t _i611;
+ for (_i611 = 0; _i611 < _size607; ++_i611)
{
- xfer += iprot->readI64(this->txn_ids[_i581]);
+ xfer += iprot->readI64(this->txn_ids[_i611]);
}
xfer += iprot->readListEnd();
}
@@ -13645,10 +14142,10 @@ uint32_t AbortTxnsRequest::write(::apache::thrift::protocol::TProtocol* oprot) c
xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast<uint32_t>(this->txn_ids.size()));
- std::vector<int64_t> ::const_iterator _iter582;
- for (_iter582 = this->txn_ids.begin(); _iter582 != this->txn_ids.end(); ++_iter582)
+ std::vector<int64_t> ::const_iterator _iter612;
+ for (_iter612 = this->txn_ids.begin(); _iter612 != this->txn_ids.end(); ++_iter612)
{
- xfer += oprot->writeI64((*_iter582));
+ xfer += oprot->writeI64((*_iter612));
}
xfer += oprot->writeListEnd();
}
@@ -13664,11 +14161,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) {
swap(a.txn_ids, b.txn_ids);
}
-AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other583) {
- txn_ids = other583.txn_ids;
+AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other613) {
+ txn_ids = other613.txn_ids;
}
-AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other584) {
- txn_ids = other584.txn_ids;
+AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other614) {
+ txn_ids = other614.txn_ids;
return *this;
}
void AbortTxnsRequest::printTo(std::ostream& out) const {
@@ -13750,11 +14247,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) {
swap(a.txnid, b.txnid);
}
-CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other585) {
- txnid = other585.txnid;
+CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other615) {
+ txnid = other615.txnid;
}
-CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other586) {
- txnid = other586.txnid;
+CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other616) {
+ txnid = other616.txnid;
return *this;
}
void CommitTxnRequest::printTo(std::ostream& out) const {
@@ -13832,9 +14329,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) {
{
case 1:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast587;
- xfer += iprot->readI32(ecast587);
- this->type = (LockType::type)ecast587;
+ int32_t ecast617;
+ xfer += iprot->readI32(ecast617);
+ this->type = (LockType::type)ecast617;
isset_type = true;
} else {
xfer += iprot->skip(ftype);
@@ -13842,9 +14339,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast588;
- xfer += iprot->readI32(ecast588);
- this->level = (LockLevel::type)ecast588;
+ int32_t ecast618;
+ xfer += iprot->readI32(ecast618);
+ this->level = (LockLevel::type)ecast618;
isset_level = true;
} else {
xfer += iprot->skip(ftype);
@@ -13876,9 +14373,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 6:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast589;
- xfer += iprot->readI32(ecast589);
- this->operationType = (DataOperationType::type)ecast589;
+ int32_t ecast619;
+ xfer += iprot->readI32(ecast619);
+ this->operationType = (DataOperationType::type)ecast619;
this->__isset.operationType = true;
} else {
xfer += iprot->skip(ftype);
@@ -13978,27 +14475,27 @@ void swap(LockComponent &a, LockComponent &b) {
swap(a.__isset, b.__isset);
}
-LockComponent::LockComponent(const LockComponent& other590) {
- type = other590.type;
- level = other590.level;
- dbname = other590.dbname;
- tablename = other590.tablename;
- partitionname = other590.partitionname;
- operationType = other590.operationType;
- isAcid = other590.isAcid;
- isDynamicPartitionWrite = other590.isDynamicPartitionWrite;
- __isset = other590.__isset;
-}
-LockComponent& LockComponent::operator=(const LockComponent& other591) {
- type = other591.type;
- level = other591.level;
- dbname = other591.dbname;
- tablename = other591.tablename;
- partitionname = other591.partitionname;
- operationType = other591.operationType;
- isAcid = other591.isAcid;
- isDynamicPartitionWrite = other591.isDynamicPartitionWrite;
- __isset = other591.__isset;
+LockComponent::LockComponent(const LockComponent& other620) {
+ type = other620.type;
+ level = other620.level;
+ dbname = other620.dbname;
+ tablename = other620.tablename;
+ partitionname = other620.partitionname;
+ operationType = other620.operationType;
+ isAcid = other620.isAcid;
+ isDynamicPartitionWrite = other620.isDynamicPartitionWrite;
+ __isset = other620.__isset;
+}
+LockComponent& LockComponent::operator=(const LockComponent& other621) {
+ type = other621.type;
+ level = other621.level;
+ dbname = other621.dbname;
+ tablename = other621.tablename;
+ partitionname = other621.partitionname;
+ operationType = other621.operationType;
+ isAcid = other621.isAcid;
+ isDynamicPartitionWrite = other621.isDynamicPartitionWrite;
+ __isset = other621.__isset;
return *this;
}
void LockComponent::printTo(std::ostream& out) const {
@@ -14070,14 +14567,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->component.clear();
- uint32_t _size592;
- ::apache::thrift::protocol::TType _etype595;
- xfer += iprot->readListBegin(_etype595, _size592);
- this->component.resize(_size592);
- uint32_t _i596;
- for (_i596 = 0; _i596 < _size592; ++_i596)
+ uint32_t _size622;
+ ::apache::thrift::protocol::TType _etype625;
+ xfer += iprot->readListBegin(_etype625, _size622);
+ this->component.resize(_size622);
+ uint32_t _i626;
+ for (_i626 = 0; _i626 < _size622; ++_i626)
{
- xfer += this->component[_i596].read(iprot);
+ xfer += this->component[_i626].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -14144,10 +14641,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const
xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->component.size()));
- std::vector<LockComponent> ::const_iterator _iter597;
- for (_iter597 = this->component.begin(); _iter597 != this->component.end(); ++_iter597)
+ std::vector<LockComponent> ::const_iterator _iter627;
+ for (_iter627 = this->component.begin(); _iter627 != this->component.end(); ++_iter627)
{
- xfer += (*_iter597).write(oprot);
+ xfer += (*_iter627).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -14186,21 +14683,21 @@ void swap(LockRequest &a, LockRequest &b) {
swap(a.__isset, b.__isset);
}
-LockRequest::LockRequest(const LockRequest& other598) {
- component = other598.component;
- txnid = other598.txnid;
- user = other598.user;
- hostname = other598.hostname;
- agentInfo = other598.agentInfo;
- __isset = other598.__isset;
-}
-LockRequest& LockRequest::operator=(const LockRequest& other599) {
- component = other599.component;
- txnid = other599.txnid;
- user = other599.user;
- hostname = other599.hostname;
- agentInfo = other599.agentInfo;
- __isset = other599.__isset;
+LockRequest::LockRequest(const LockRequest& other628) {
+ component = other628.component;
+ txnid = other628.txnid;
+ user = other628.user;
+ hostname = other628.hostname;
+ agentInfo = other628.agentInfo;
+ __isset = other628.__isset;
+}
+LockRequest& LockRequest::operator=(const LockRequest& other629) {
+ component = other629.component;
+ txnid = other629.txnid;
+ user = other629.user;
+ hostname = other629.hostname;
+ agentInfo = other629.agentInfo;
+ __isset = other629.__isset;
return *this;
}
void LockRequest::printTo(std::ostream& out) const {
@@ -14260,9 +14757,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast600;
- xfer += iprot->readI32(ecast600);
- this->state = (LockState::type)ecast600;
+ int32_t ecast630;
+ xfer += iprot->readI32(ecast630);
+ this->state = (LockState::type)ecast630;
isset_state = true;
} else {
xfer += iprot->skip(ftype);
@@ -14308,13 +14805,13 @@ void swap(LockResponse &a, LockResponse &b) {
swap(a.state, b.state);
}
-LockResponse::LockResponse(const LockResponse& other601) {
- lockid = other601.lockid;
- state = other601.state;
+LockResponse::LockResponse(const LockResponse& other631) {
+ lockid = other631.lockid;
+ state = other631.state;
}
-LockResponse& LockResponse::operator=(const LockResponse& other602) {
- lockid = other602.lockid;
- state = other602.state;
+LockResponse& LockResponse::operator=(const LockResponse& other632) {
+ lockid = other632.lockid;
+ state = other632.state;
return *this;
}
void LockResponse::printTo(std::ostream& out) const {
@@ -14436,17 +14933,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) {
swap(a.__isset, b.__isset);
}
-CheckLockRequest::CheckLockRequest(const CheckLockRequest& other603) {
- lockid = other603.lockid;
- txnid = other603.txnid;
- elapsed_ms = other603.elapsed_ms;
- __isset = other603.__isset;
+CheckLockRequest::CheckLockRequest(const CheckLockRequest& other633) {
+ lockid = other633.lockid;
+ txnid = other633.txnid;
+ elapsed_ms = other633.elapsed_ms;
+ __isset = other633.__isset;
}
-CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other604) {
- lockid = other604.lockid;
- txnid = other604.txnid;
- elapsed_ms = other604.elapsed_ms;
- __isset = other604.__isset;
+CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other634) {
+ lockid = other634.lockid;
+ txnid = other634.txnid;
+ elapsed_ms = other634.elapsed_ms;
+ __isset = other634.__isset;
return *this;
}
void CheckLockRequest::printTo(std::ostream& out) const {
@@ -14530,11 +15027,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) {
swap(a.lockid, b.lockid);
}
-UnlockRequest::UnlockRequest(const UnlockRequest& other605) {
- lockid = other605.lockid;
+UnlockRequest::UnlockRequest(const UnlockRequest& other635) {
+ lockid = other635.lockid;
}
-UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other606) {
- lockid = other606.lockid;
+UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other636) {
+ lockid = other636.lockid;
return *this;
}
void UnlockRequest::printTo(std::ostream& out) const {
@@ -14673,19 +15170,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) {
swap(a.__isset, b.__isset);
}
-ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other607) {
- dbname = other607.dbname;
- tablename = other607.tablename;
- partname = other607.partname;
- isExtended = other607.isExtended;
- __isset = other607.__isset;
+ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other637) {
+ dbname = other637.dbname;
+ tablename = other637.tablename;
+ partname = other637.partname;
+ isExtended = other637.isExtended;
+ __isset = other637.__isset;
}
-ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other608) {
- dbname = other608.dbname;
- tablename = other608.tablename;
- partname = other608.partname;
- isExtended = other608.isExtended;
- __isset = other608.__isset;
+ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other638) {
+ dbname = other638.dbname;
+ tablename = other638.tablename;
+ partname = other638.partname;
+ isExtended = other638.isExtended;
+ __isset = other638.__isset;
return *this;
}
void ShowLocksRequest::printTo(std::ostream& out) const {
@@ -14838,9 +15335,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i
break;
case 5:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast609;
- xfer += iprot->readI32(ecast609);
- this->state = (LockState::type)ecast609;
+ int32_t ecast639;
+ xfer += iprot->readI32(ecast639);
+ this->state = (LockState::type)ecast639;
isset_state = true;
} else {
xfer += iprot->skip(ftype);
@@ -14848,9 +15345,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i
break;
case 6:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast610;
- xfer += iprot->readI32(ecast610);
- this->type = (LockType::type)ecast610;
+ int32_t ecast640;
+ xfer += iprot->readI32(ecast640);
+ this->type = (LockType::type)ecast640;
isset_type = true;
} else {
xfer += iprot->skip(ftype);
@@ -15066,43 +15563,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) {
swap(a.__isset, b.__isset);
}
-ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other611) {
- lockid = other611.lockid;
- dbname = other611.dbname;
- tablename = other611.tablename;
- partname = other611.partname;
- state = other611.state;
- type = other611.type;
- txnid = other611.txnid;
- lastheartbeat = other611.lastheartbeat;
- acquiredat = other611.acquiredat;
- user = other611.user;
- hostname = other611.hostname;
- heartbeatCount = other611.heartbeatCount;
- agentInfo = other611.agentInfo;
- blockedByExtId = other611.blockedByExtId;
- blockedByIntId = other611.blockedByIntId;
- lockIdInternal = other611.lockIdInternal;
- __isset = other611.__isset;
-}
-ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other612) {
- lockid = other612.lockid;
- dbname = other612.dbname;
- tablename = other612.tablename;
- partname = other612.partname;
- state = other612.state;
- type = other612.type;
- txnid = other612.txnid;
- lastheartbeat = other612.lastheartbeat;
- acquiredat = other612.acquiredat;
- user = other612.user;
- hostname = other612.hostname;
- heartbeatCount = other612.heartbeatCount;
- agentInfo = other612.agentInfo;
- blockedByExtId = other612.blockedByExtId;
- blockedByIntId = other612.blockedByIntId;
- lockIdInternal = other612.lockIdInternal;
- __isset = other612.__isset;
+ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other641) {
+ lockid = other641.lockid;
+ dbname = other641.dbname;
+ tablename = other641.tablename;
+ partname = other641.partname;
+ state = other641.state;
+ type = other641.type;
+ txnid = other641.txnid;
+ lastheartbeat = other641.lastheartbeat;
+ acquiredat = other641.acquiredat;
+ user = other641.user;
+ hostname = other641.hostname;
+ heartbeatCount = other641.heartbeatCount;
+ agentInfo = other641.agentInfo;
+ blockedByExtId = other641.blockedByExtId;
+ blockedByIntId = other641.blockedByIntId;
+ lockIdInternal = other641.lockIdInternal;
+ __isset = other641.__isset;
+}
+ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other642) {
+ lockid = other642.lockid;
+ dbname = other642.dbname;
+ tablename = other642.tablename;
+ partname = other642.partname;
+ state = other642.state;
+ type = other642.type;
+ txnid = other642.txnid;
+ lastheartbeat = other642.lastheartbeat;
+ acquiredat = other642.acquiredat;
+ user = other642.user;
+ hostname = other642.hostname;
+ heartbeatCount = other642.heartbeatCount;
+ agentInfo = other642.agentInfo;
+ blockedByExtId = other642.blockedByExtId;
+ blockedByIntId = other642.blockedByIntId;
+ lockIdInternal = other642.lockIdInternal;
+ __isset = other642.__isset;
return *this;
}
void ShowLocksResponseElement::printTo(std::ostream& out) const {
@@ -15161,14 +15658,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->locks.clear();
- uint32_t _size613;
- ::apache::thrift::protocol::TType _etype616;
- xfer += iprot->readListBegin(_etype616, _size613);
- this->locks.resize(_size613);
- uint32_t _i617;
- for (_i617 = 0; _i617 < _size613; ++_i617)
+ uint32_t _size643;
+ ::apache::thrift::protocol::TType _etype646;
+ xfer += iprot->readListBegin(_etype646, _size643);
+ this->locks.resize(_size643);
+ uint32_t _i647;
+ for (_i647 = 0; _i647 < _size643; ++_i647)
{
- xfer += this->locks[_i617].read(iprot);
+ xfer += this->locks[_i647].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -15197,10 +15694,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->locks.size()));
- std::vector<ShowLocksResponseElement> ::const_iterator _iter618;
- for (_iter618 = this->locks.begin(); _iter618 != this->locks.end(); ++_iter618)
+ std::vector<ShowLocksResponseElement> ::const_iterator _iter648;
+ for (_iter648 = this->locks.begin(); _iter648 != this->locks.end(); ++_iter648)
{
- xfer += (*_iter618).write(oprot);
+ xfer += (*_iter648).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -15217,13 +15714,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) {
swap(a.__isset, b.__isset);
}
-ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other619) {
- locks = other619.locks;
- __isset = other619.__isset;
+ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other649) {
+ locks = other649.locks;
+ __isset = other649.__isset;
}
-ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other620) {
- locks = other620.locks;
- __isset = other620.__isset;
+ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other650) {
+ locks = other650.locks;
+ __isset = other650.__isset;
return *this;
}
void ShowLocksResponse::printTo(std::ostream& out) const {
@@ -15324,15 +15821,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) {
swap(a.__isset, b.__isset);
}
-HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other621) {
- lockid = other621.lockid;
- txnid = other621.txnid;
- __isset = other621.__isset;
+HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other651) {
+ lockid = other651.lockid;
+ txnid = other651.txnid;
+ __isset = other651.__isset;
}
-HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other622) {
- lockid = other622.lockid;
- txnid = other622.txnid;
- __isset = other622.__isset;
+HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other652) {
+ lockid = other652.lockid;
+ txnid = other652.txnid;
+ __isset = other652.__isset;
return *this;
}
void HeartbeatRequest::printTo(std::ostream& out) const {
@@ -15435,13 +15932,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) {
swap(a.max, b.max);
}
-HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other623) {
- min = other623.min;
- max = other623.max;
+HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other653) {
+ min = other653.min;
+ max = other653.max;
}
-HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other624) {
- min = other624.min;
- max = other624.max;
+HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other654) {
+ min = other654.min;
+ max = other654.max;
return *this;
}
void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const {
@@ -15492,15 +15989,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_SET) {
{
this->aborted.clear();
- uint32_t _size625;
- ::apache::thrift::protocol::TType _etype628;
- xfer += iprot->readSetBegin(_etype628, _size625);
- uint32_t _i629;
- for (_i629 = 0; _i629 < _size625; ++_i629)
+ uint32_t _size655;
+ ::apache::thrift::protocol::TType _etype658;
+ xfer += iprot->readSetBegin(_etype658, _size655);
+ uint32_t _i659;
+ for (_i659 = 0; _i659 < _size655; ++_i659)
{
- int64_t _elem630;
- xfer += iprot->readI64(_elem630);
- this->aborted.insert(_elem630);
+ int64_t _elem660;
+ xfer += iprot->readI64(_elem660);
+ this->aborted.insert(_elem660);
}
xfer += iprot->readSetEnd();
}
@@ -15513,15 +16010,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_SET) {
{
this->nosuch.clear();
- uint32_t _size631;
- ::apache::thrift::protocol::TType _etype634;
- xfer += iprot->readSetBegin(_etype634, _size631);
- uint32_t _i635;
- for (_i635 = 0; _i635 < _size631; ++_i635)
+ uint32_t _size661;
+ ::apache::thrift::protocol::TType _etype664;
+ xfer += iprot->readSetBegin(_etype664, _size661);
+ uint32_t _i665;
+ for (_i665 = 0; _i665 < _size661; ++_i665)
{
- int64_t _elem636;
- xfer += iprot->readI64(_elem636);
- this->nosuch.insert(_elem636);
+ int64_t _elem666;
+ xfer += iprot->readI64(_elem666);
+ this->nosuch.insert(_elem666);
}
xfer += iprot->readSetEnd();
}
@@ -15554,10 +16051,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol*
xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1);
{
xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast<uint32_t>(this->aborted.size()));
- std::set<int64_t> ::const_iterator _iter637;
- for (_iter637 = this->aborted.begin(); _iter637 != this->aborted.end(); ++_iter637)
+ std::set<int64_t> ::const_iterator _iter667;
+ for (_iter667 = this->aborted.begin(); _iter667 != this->aborted.end(); ++_iter667)
{
- xfer += oprot->writeI64((*_iter637));
+ xfer += oprot->writeI64((*_iter667));
}
xfer += oprot->writeSetEnd();
}
@@ -15566,10 +16063,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol*
xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2);
{
xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast<uint32_t>(this->nosuch.size()));
- std::set<int64_t> ::const_iterator _iter638;
- for (_iter638 = this->nosuch.begin(); _iter638 != this->nosuch.end(); ++_iter638)
+ std::set<int64_t> ::const_iterator _iter668;
+ for (_iter668 = this->nosuch.begin(); _iter668 != this->nosuch.end(); ++_iter668)
{
- xfer += oprot->writeI64((*_iter638));
+ xfer += oprot->writeI64((*_iter668));
}
xfer += oprot->writeSetEnd();
}
@@ -15586,13 +16083,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) {
swap(a.nosuch, b.nosuch);
}
-HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other639) {
- aborted = other639.aborted;
- nosuch = other639.nosuch;
+HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other669) {
+ aborted = other669.aborted;
+ nosuch = other669.nosuch;
}
-HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other640) {
- aborted = other640.aborted;
- nosuch = other640.nosuch;
+HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other670) {
+ aborted = other670.aborted;
+ nosuch = other670.nosuch;
return *this;
}
void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const {
@@ -15685,9 +16182,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast641;
- xfer += iprot->readI32(ecast641);
- this->type = (CompactionType::type)ecast641;
+ int32_t ecast671;
+ xfer += iprot->readI32(ecast671);
+ this->type = (CompactionType::type)ecast671;
isset_type = true;
} else {
xfer += iprot->skip(ftype);
@@ -15705,17 +16202,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->properties.clear();
- uint32_t _size642;
- ::apache::thrift::protocol::TType _ktype643;
- ::apache::thrift::protocol::TType _vtype644;
- xfer += iprot->readMapBegin(_ktype643, _vtype644, _size642);
- uint32_t _i646;
- for (_i646 = 0; _i646 < _size642; ++_i646)
+ uint32_t _size672;
+ ::apache::thrift::protocol::TType _ktype673;
+ ::apache::thrift::protocol::TType _vtype674;
+ xfer += iprot->readMapBegin(_ktype673, _vtype674, _size672);
+ uint32_t _i676;
+ for (_i676 = 0; _i676 < _size672; ++_i676)
{
- std::string _key647;
- xfer += iprot->readString(_key647);
- std::string& _val648 = this->properties[_key647];
- xfer += iprot->readString(_val648);
+ std::string _key677;
+ xfer += iprot->readString(_key677);
+ std::string& _val678 = this->properties[_key677];
+ xfer += iprot->readString(_val678);
}
xfer += iprot->readMapEnd();
}
@@ -15773,11 +16270,11 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 6);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->properties.size()));
- std::map<std::string, std::string> ::const_iterator _iter649;
- for (_iter649 = this->properties.begin(); _iter649 != this->properties.end(); ++_iter649)
+ std::map<std::string, std::string> ::const_iterator _iter679;
+ for (_iter679 = this->properties.begin(); _iter679 != this->properties.end(); ++_iter679)
{
- xfer += oprot->writeString(_iter649->first);
- xfer += oprot->writeString(_iter649->second);
+ xfer += oprot->writeString(_iter679->first);
+ xfer += oprot->writeString(_iter679->second);
}
xfer += oprot->writeMapEnd();
}
@@ -15799,23 +16296,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) {
swap(a.__isset, b.__isset);
}
-CompactionRequest::CompactionRequest(const CompactionRequest& other650) {
- dbname = other650.dbname;
- tablename = other650.tablename;
- partitionname = other650.partitionname;
- type = other650.type;
- runas = other650.runas;
- properties = other650.properties;
- __isset = other650.__isset;
-}
-CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other651) {
- dbname = other651.dbname;
- tablename = other651.tablename;
- partitionname = other651.partitionname;
- type = other651.type;
- runas = other651.runas;
- properties = other651.properties;
- __isset = other651.__isset;
+CompactionRequest::CompactionRequest(const CompactionRequest& other680) {
+ dbname = other680.dbname;
+ tablename = other680.tablename;
+ partitionname = other680.partitionname;
+ type = other680.type;
+ runas = other680.runas;
+ properties = other680.properties;
+ __isset = other680.__isset;
+}
+CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other681) {
+ dbname = other681.dbname;
+ tablename = other681.tablename;
+ partitionname = other681.partitionname;
+ type = other681.type;
+ runas = other681.runas;
+ properties = other681.properties;
+ __isset = other681.__isset;
return *this;
}
void CompactionRequest::printTo(std::ostream& out) const {
@@ -15942,15 +16439,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) {
swap(a.accepted, b.accepted);
}
-CompactionResponse::CompactionResponse(const CompactionResponse& other652) {
- id = other652.id;
- state = other652.state;
- accepted = other652.accepted;
+CompactionResponse::CompactionResponse(const CompactionResponse& other682) {
+ id = other682.id;
+ state = other682.state;
+ accepted = other682.accepted;
}
-CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other653) {
- id = other653.id;
- state = other653.state;
- accepted = other653.accepted;
+CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other683) {
+ id = other683.id;
+ state = other683.state;
+ accepted = other683.accepted;
return *this;
}
void CompactionResponse::printTo(std::ostream& out) const {
@@ -16011,11 +16508,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) {
(void) b;
}
-ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other654) {
- (void) other654;
+ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other684) {
+ (void) other684;
}
-ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other655) {
- (void) other655;
+ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other685) {
+ (void) other685;
return *this;
}
void ShowCompactRequest::printTo(std::ostream& out) const {
@@ -16141,9 +16638,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol*
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast656;
- xfer += iprot->readI32(ecast656);
- this->type = (CompactionType::type)ecast656;
+ int32_t ecast686;
+ xfer += iprot->readI32(ecast686);
+ this->type = (CompactionType::type)ecast686;
isset_type = true;
} else {
xfer += iprot->skip(ftype);
@@ -16330,37 +16827,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) {
swap(a.__isset, b.__isset);
}
-ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other657) {
- dbname = other657.dbname;
- tablename = other657.tablename;
- partitionname = other657.partitionname;
- type = other657.type;
- state = other657.state;
- workerid = other657.workerid;
- start = other657.start;
- runAs = other657.runAs;
- hightestTxnId = other657.hightestTxnId;
- metaInfo = other657.metaInfo;
- endTime = other657.endTime;
- hadoopJobId = other657.hadoopJobId;
- id = other657.id;
- __isset = other657.__isset;
-}
-ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other658) {
- dbname = other658.dbname;
- tablename = other658.tablename;
- partitionname = other658.partitionname;
- type = other658.type;
- state = other658.state;
- workerid = other658.workerid;
- start = other658.start;
- runAs = other658.runAs;
- hightestTxnId = other658.hightestTxnId;
- metaInfo = other658.metaInfo;
- endTime = other658.endTime;
- hadoopJobId = other658.hadoopJobId;
- id = other658.id;
- __isset = other658.__isset;
+ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other687) {
+ dbname = other687.dbname;
+ tablename = other687.tablename;
+ partitionname = other687.partitionname;
+ type = other687.type;
+ state = other687.state;
+ workerid = other687.workerid;
+ start = other687.start;
+ runAs = other687.runAs;
+ hightestTxnId = other687.hightestTxnId;
+ metaInfo = other687.metaInfo;
+ endTime = other687.endTime;
+ hadoopJobId = other687.hadoopJobId;
+ id = other687.id;
+ __isset = other687.__isset;
+}
+ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other688) {
+ dbname = other688.dbname;
+ tablename = other688.tablename;
+ partitionname = other688.partitionname;
+ type = other688.type;
+ state = other688.state;
+ workerid = other688.workerid;
+ start = other688.start;
+ runAs = other688.runAs;
+ hightestTxnId = other688.hightestTxnId;
+ metaInfo = other688.metaInfo;
+ endTime = other688.endTime;
+ hadoopJobId = other688.hadoopJobId;
+ id = other688.id;
+ __isset = other688.__isset;
return *this;
}
void ShowCompactResponseElement::printTo(std::ostream& out) const {
@@ -16417,14 +16914,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot)
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->compacts.clear();
- uint32_t _size659;
- ::apache::thrift::protocol::TType _etype662;
- xfer += iprot->readListBegin(_etype662, _size659);
- this->compacts.resize(_size659);
- uint32_t _i663;
- for (_i663 = 0; _i663 < _size659; ++_i663)
+ uint32_t _size689;
+ ::apache::thrift::protocol::TType _etype692;
+ xfer += iprot->readListBegin(_etype692, _size689);
+ this->compacts.resize(_size689);
+ uint32_t _i693;
+ for (_i693 = 0; _i693 < _size689; ++_i693)
{
- xfer += this->compacts[_i663].read(iprot);
+ xfer += this->compacts[_i693].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -16455,10 +16952,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot
xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->compacts.size()));
- std::vector<ShowCompactResponseElement> ::const_iterator _iter664;
- for (_iter664 = this->compacts.begin(); _iter664 != this->compacts.end(); ++_iter664)
+ std::vector<ShowCompactResponseElement> ::const_iterator _iter694;
+ for (_iter694 = this->compacts.begin(); _iter694 != this->compacts.end(); ++_iter694)
{
- xfer += (*_iter664).write(oprot);
+ xfer += (*_iter694).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -16474,11 +16971,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) {
swap(a.compacts, b.compacts);
}
-ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other665) {
- compacts = other665.compacts;
+ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other695) {
+ compacts = other695.compacts;
}
-ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other666) {
- compacts = other666.compacts;
+ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other696) {
+ compacts = other696.compacts;
return *this;
}
void ShowCompactResponse::printTo(std::ostream& out) const {
@@ -16567,14 +17064,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitionnames.clear();
- uint32_t _size667;
- ::apache::thrift::protocol::TType _etype670;
- xfer += iprot->readListBegin(_etype670, _size667);
- this->partitionnames.resize(_size667);
- uint32_t _i671;
- for (_i671 = 0; _i671 < _size667; ++_i671)
+ uint32_t _size697;
+ ::apache::thrift::protocol::TType _etype700;
+ xfer += iprot->readListBegin(_etype700, _size697);
+ this->partitionnames.resize(_size697);
+ uint32_t _i701;
+ for (_i701 = 0; _i701 < _size697; ++_i701)
{
- xfer += iprot->readString(this->partitionnames[_i671]);
+ xfer += iprot->readString(this->partitionnames[_i701]);
}
xfer += iprot->readListEnd();
}
@@ -16585,9 +17082,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot
break;
case 5:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast672;
- xfer += iprot->readI32(ecast672);
- this->operationType = (DataOperationType::type)ecast672;
+ int32_t ecast702;
+ xfer += iprot->readI32(ecast702);
+ this->operationType = (DataOperationType::type)ecast702;
this->__isset.operationType = true;
} else {
xfer += iprot->skip(ftype);
@@ -16633,10 +17130,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro
xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partitionnames.size()));
- std::vector<std::string> ::const_iterator _iter673;
- for (_iter673 = this->partitionnames.begin(); _iter673 != this->partitionnames.end(); ++_iter673)
+ std::vector<std::string> ::const_iterator _iter703;
+ for (_iter703 = this->partitionnames.begin(); _iter703 != this->partitionnames.end(); ++_iter703)
{
- xfer += oprot->writeString((*_iter673));
+ xfer += oprot->writeString((*_iter703));
}
xfer += oprot->writeListEnd();
}
@@ -16662,21 +17159,21 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) {
swap(a.__isset, b.__isset);
}
-AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other674) {
- txnid = other674.txnid;
- dbname = other674.dbname;
- tablename = other674.tablename;
- partitionnames = other674.partitionnames;
- operationType = other674.operationType;
- __isset = other674.__isset;
-}
-AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other675) {
- txnid = other675.txnid;
- dbname = other675.dbname;
- tablename = other675.tablename;
- partitionnames = other675.partitionnames;
- operationType = other675.operationType;
- __isset = other675.__isset;
+AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other704) {
+ txnid = other704.txnid;
+ dbname = other704.dbname;
+ tablename = other704.tablename;
+ partitionnames = other704.partitionnames;
+ operationType = other704.operationType;
+ __isset = other704.__isset;
+}
+AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other705) {
+ txnid = other705.txnid;
+ dbname = other705.dbname;
+ tablename = other705.tablename;
+ partitionnames = other705.partitionnames;
+ operationType = other705.operationType;
+ __isset = other705.__isset;
return *this;
}
void AddDynamicPartitions::printTo(std::ostream& out) const {
@@ -16782,15 +17279,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) {
swap(a.__isset, b.__isset);
}
-NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other676) {
- lastEvent = other676.lastEvent;
- maxEvents = other676.maxEvents;
- __isset = other676.__isset;
+NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other706) {
+ lastEvent = other706.lastEvent;
+ maxEvents = other706.maxEvents;
+ __isset = other706.__isset;
}
-NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other677) {
- lastEvent = other677.lastEvent;
- maxEvents = other677.maxEvents;
- __isset = other677.__isset;
+NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other707) {
+ lastEvent = other707.lastEvent;
+ maxEvents = other707.maxEvents;
+ __isset = other707.__isset;
return *this;
}
void NotificationEventRequest::printTo(std::ostream& out) const {
@@ -16991,25 +17488,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) {
swap(a.__isset, b.__isset);
}
-NotificationEvent::NotificationEvent(const NotificationEvent& other678) {
- eventId = other678.eventId;
- eventTime = other678.eventTime;
- eventType = other678.eventType;
- dbName = other678.dbName;
- tableName = other678.tableName;
- message = other678.message;
- messageFormat = other678.messageFormat;
- __isset = other678.__isset;
-}
-NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other679) {
- eventId = other679.eventId;
- eventTime = other679.eventTime;
- eventType = other679.eventType;
- dbName = other679.dbName;
- tableName = other679.tableName;
- message = other679.message;
- messageFormat = other679.messageFormat;
- __isset = other679.__isset;
+NotificationEvent::NotificationEvent(const NotificationEvent& other708) {
+ eventId = other708.eventId;
+ eventTime = other708.eventTime;
+ eventType = other708.eventType;
+ dbName = other708.dbName;
+ tableName = other708.tableName;
+ message = other708.message;
+ messageFormat = other708.messageFormat;
+ __isset = other708.__isset;
+}
+NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other709) {
+ eventId = other709.eventId;
+ eventTime = other709.eventTime;
+ eventType = other709.eventType;
+ dbName = other709.dbName;
+ tableName = other709.tableName;
+ message = other709.message;
+ messageFormat = other709.messageFormat;
+ __isset = other709.__isset;
return *this;
}
void NotificationEvent::printTo(std::ostream& out) const {
@@ -17060,14 +17557,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->events.clear();
- uint32_t _size680;
- ::apache::thrift::protocol::TType _etype683;
- xfer += iprot->readListBegin(_etype683, _size680);
- this->events.resize(_size680);
- uint32_t _i684;
- for (_i684 = 0; _i684 < _size680; ++_i684)
+ uint32_t _size710;
+ ::apache::thrift::protocol::TType _etype713;
+ xfer += iprot->readListBegin(_etype713, _size710);
+ this->events.resize(_size710);
+ uint32_t _i714;
+ for (_i714 = 0; _i714 < _size710; ++_i714)
{
- xfer += this->events[_i684].read(iprot);
+ xfer += this->events[_i714].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -17098,10 +17595,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol*
xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->events.size()));
- std::vector<NotificationEvent> ::const_iterator _iter685;
- for (_iter685 = this->events.begin(); _iter685 != this->events.end(); ++_iter685)
+ std::vector<NotificationEvent> ::const_iterator _iter715;
+ for (_iter715 = this->events.begin(); _iter715 != this->events.end(); ++_iter715)
{
- xfer += (*_iter685).write(oprot);
+ xfer += (*_iter715).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -17117,11 +17614,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) {
swap(a.events, b.events);
}
-NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other686) {
- events = other686.events;
+NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other716) {
+ events = other716.events;
}
-NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other687) {
- events = other687.events;
+NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other717) {
+ events = other717.events;
return *this;
}
void NotificationEventResponse::printTo(std::ostream& out) const {
@@ -17203,11 +17700,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) {
swap(a.eventId, b.eventId);
}
-CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other688) {
- eventId = other688.eventId;
+CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other718) {
+ eventId = other718.eventId;
}
-CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other689) {
- eventId = other689.eventId;
+CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other719) {
+ eventId = other719.eventId;
return *this;
}
void CurrentNotificationEventId::printTo(std::ostream& out) const {
@@ -17309,13 +17806,13 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b)
swap(a.dbName, b.dbName);
}
-NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other690) {
- fromEventId = other690.fromEventId;
- dbName = other690.dbName;
+NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other720) {
+ fromEventId = other720.fromEventId;
+ dbName = other720.dbName;
}
-NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other691) {
- fromEventId = other691.fromEventId;
- dbName = other691.dbName;
+NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other721) {
+ fromEventId = other721.fromEventId;
+ dbName = other721.dbName;
return *this;
}
void NotificationEventsCountRequest::printTo(std::ostream& out) const {
@@ -17398,11 +17895,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b
swap(a.eventsCount, b.eventsCount);
}
-NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other692) {
- eventsCount = other692.eventsCount;
+NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other722) {
+ eventsCount = other722.eventsCount;
}
-NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other693) {
- eventsCount = other693.eventsCount;
+NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other723) {
+ eventsCount = other723.eventsCount;
return *this;
}
void NotificationEventsCountResponse::printTo(std::ostream& out) const {
@@ -17465,14 +17962,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->filesAdded.clear();
- uint32_t _size694;
- ::apache::thrift::protocol::TType _etype697;
- xfer += iprot->readListBegin(_etype697, _size694);
- this->filesAdded.resize(_size694);
- uint32_t _i698;
- for (_i698 = 0; _i698 < _size694; ++_i698)
+ uint32_t _size724;
+ ::apache::thrift::protocol::TType _etype727;
+ xfer += iprot->readListBegin(_etype727, _size724);
+ this->filesAdded.resize(_size724);
+ uint32_t _i728;
+ for (_i728 = 0; _i728 < _size724; ++_i728)
{
- xfer += iprot->readString(this->filesAdded[_i698]);
+ xfer += iprot->readString(this->filesAdded[_i728]);
}
xfer += iprot->readListEnd();
}
@@ -17485,14 +17982,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->filesAddedChecksum.clear();
- uint32_t _size699;
- ::apache::thrift::protocol::TType _etype702;
- xfer += iprot->readListBegin(_etype702, _size699);
- this->filesAddedChecksum.resize(_size699);
- uint32_t _i703;
- for (_i703 = 0; _i703 < _size699; ++_i703)
+ uint32_t _size729;
+ ::apache::thrift::protocol::TType _etype732;
+ xfer += iprot->readListBegin(_etype732, _size729);
+ this->filesAddedChecksum.resize(_size729);
+ uint32_t _i733;
+ for (_i733 = 0; _i733 < _size729; ++_i733)
{
- xfer += iprot->readString(this->filesAddedChecksum[_i703]);
+ xfer += iprot->readString(this->filesAddedChecksum[_i733]);
}
xfer += iprot->readListEnd();
}
@@ -17528,10 +18025,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op
xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->filesAdded.size()));
- std::vector<std::string> ::const_iterator _iter704;
- for (_iter704 = this->filesAdded.begin(); _iter704 != this->filesAdded.end(); ++_iter704)
+ std::vector<std::string> ::const_iterator _iter734;
+ for (_iter734 = this->filesAdded.begin(); _iter734 != this->filesAdded.end(); ++_iter734)
{
- xfer += oprot->writeString((*_iter704));
+ xfer += oprot->writeString((*_iter734));
}
xfer += oprot->writeListEnd();
}
@@ -17541,10 +18038,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op
xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->filesAddedChecksum.size()));
- std::vector<std::string> ::const_iterator _iter705;
- for (_iter705 = this->filesAddedChecksum.begin(); _iter705 != this->filesAddedChecksum.end(); ++_iter705)
+ std::vector<std::string> ::const_iterator _iter735;
+ for (_iter735 = this->filesAddedChecksum.begin(); _iter735 != this->filesAddedChecksum.end(); ++_iter735)
{
- xfer += oprot->writeString((*_iter705));
+ xfer += oprot->writeString((*_iter735));
}
xfer += oprot->writeListEnd();
}
@@ -17563,17 +18060,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) {
swap(a.__isset, b.__isset);
}
-InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other706) {
- replace = other706.replace;
- filesAdded = other706.filesAdded;
- filesAddedChecksum = other706.filesAddedChecksum;
- __isset = other706.__isset;
+InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other736) {
+ replace = other736.replace;
+ filesAdded = other736.filesAdded;
+ filesAddedChecksum = other736.filesAddedChecksum;
+ __isset = other736.__isset;
}
-InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other707) {
- replace = other707.replace;
- filesAdded = other707.filesAdded;
- filesAddedChecksum = other707.filesAddedChecksum;
- __isset = other707.__isset;
+InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other737) {
+ replace = other737.replace;
+ filesAdded = other737.filesAdded;
+ filesAddedChecksum = other737.filesAddedChecksum;
+ __isset = other737.__isset;
return *this;
}
void InsertEventRequestData::printTo(std::ostream& out) const {
@@ -17655,13 +18152,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) {
swap(a.__isset, b.__isset);
}
-FireEventRequestData::FireEventRequestData(const FireEventRequestData& other708) {
- insertData = other708.insertData;
- __isset = other708.__isset;
+FireEventRequestData::FireEventRequestData(const FireEventRequestData& other738) {
+ insertData = other738.insertData;
+ __isset = other738.__isset;
}
-FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other709) {
- insertData = other709.insertData;
- __isset = other709.__isset;
+FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other739) {
+ insertData = other739.insertData;
+ __isset = other739.__isset;
return *this;
}
void FireEventRequestData::printTo(std::ostream& out) const {
@@ -17758,14 +18255,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitionVals.cl
<TRUNCATED>
[06/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
index 1dd13cc..915d649 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
@@ -354,14 +354,14 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
case 1: // COMPACTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list566 = iprot.readListBegin();
- struct.compacts = new ArrayList<ShowCompactResponseElement>(_list566.size);
- ShowCompactResponseElement _elem567;
- for (int _i568 = 0; _i568 < _list566.size; ++_i568)
+ org.apache.thrift.protocol.TList _list598 = iprot.readListBegin();
+ struct.compacts = new ArrayList<ShowCompactResponseElement>(_list598.size);
+ ShowCompactResponseElement _elem599;
+ for (int _i600 = 0; _i600 < _list598.size; ++_i600)
{
- _elem567 = new ShowCompactResponseElement();
- _elem567.read(iprot);
- struct.compacts.add(_elem567);
+ _elem599 = new ShowCompactResponseElement();
+ _elem599.read(iprot);
+ struct.compacts.add(_elem599);
}
iprot.readListEnd();
}
@@ -387,9 +387,9 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
oprot.writeFieldBegin(COMPACTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size()));
- for (ShowCompactResponseElement _iter569 : struct.compacts)
+ for (ShowCompactResponseElement _iter601 : struct.compacts)
{
- _iter569.write(oprot);
+ _iter601.write(oprot);
}
oprot.writeListEnd();
}
@@ -414,9 +414,9 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
TTupleProtocol oprot = (TTupleProtocol) prot;
{
oprot.writeI32(struct.compacts.size());
- for (ShowCompactResponseElement _iter570 : struct.compacts)
+ for (ShowCompactResponseElement _iter602 : struct.compacts)
{
- _iter570.write(oprot);
+ _iter602.write(oprot);
}
}
}
@@ -425,14 +425,14 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
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 _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.compacts = new ArrayList<ShowCompactResponseElement>(_list571.size);
- ShowCompactResponseElement _elem572;
- for (int _i573 = 0; _i573 < _list571.size; ++_i573)
+ org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.compacts = new ArrayList<ShowCompactResponseElement>(_list603.size);
+ ShowCompactResponseElement _elem604;
+ for (int _i605 = 0; _i605 < _list603.size; ++_i605)
{
- _elem572 = new ShowCompactResponseElement();
- _elem572.read(iprot);
- struct.compacts.add(_elem572);
+ _elem604 = new ShowCompactResponseElement();
+ _elem604.read(iprot);
+ struct.compacts.add(_elem604);
}
}
struct.setCompactsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
index 11ef050..0fe5812 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
@@ -350,14 +350,14 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
case 1: // LOCKS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list532 = iprot.readListBegin();
- struct.locks = new ArrayList<ShowLocksResponseElement>(_list532.size);
- ShowLocksResponseElement _elem533;
- for (int _i534 = 0; _i534 < _list532.size; ++_i534)
+ org.apache.thrift.protocol.TList _list564 = iprot.readListBegin();
+ struct.locks = new ArrayList<ShowLocksResponseElement>(_list564.size);
+ ShowLocksResponseElement _elem565;
+ for (int _i566 = 0; _i566 < _list564.size; ++_i566)
{
- _elem533 = new ShowLocksResponseElement();
- _elem533.read(iprot);
- struct.locks.add(_elem533);
+ _elem565 = new ShowLocksResponseElement();
+ _elem565.read(iprot);
+ struct.locks.add(_elem565);
}
iprot.readListEnd();
}
@@ -383,9 +383,9 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
oprot.writeFieldBegin(LOCKS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.locks.size()));
- for (ShowLocksResponseElement _iter535 : struct.locks)
+ for (ShowLocksResponseElement _iter567 : struct.locks)
{
- _iter535.write(oprot);
+ _iter567.write(oprot);
}
oprot.writeListEnd();
}
@@ -416,9 +416,9 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
if (struct.isSetLocks()) {
{
oprot.writeI32(struct.locks.size());
- for (ShowLocksResponseElement _iter536 : struct.locks)
+ for (ShowLocksResponseElement _iter568 : struct.locks)
{
- _iter536.write(oprot);
+ _iter568.write(oprot);
}
}
}
@@ -430,14 +430,14 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.locks = new ArrayList<ShowLocksResponseElement>(_list537.size);
- ShowLocksResponseElement _elem538;
- for (int _i539 = 0; _i539 < _list537.size; ++_i539)
+ org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.locks = new ArrayList<ShowLocksResponseElement>(_list569.size);
+ ShowLocksResponseElement _elem570;
+ for (int _i571 = 0; _i571 < _list569.size; ++_i571)
{
- _elem538 = new ShowLocksResponseElement();
- _elem538.read(iprot);
- struct.locks.add(_elem538);
+ _elem570 = new ShowLocksResponseElement();
+ _elem570.read(iprot);
+ struct.locks.add(_elem570);
}
}
struct.setLocksIsSet(true);
[10/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
index b7834f8..744ee59 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
@@ -84,6 +84,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService
virtual void get_partitions_with_auth(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector<std::string> & group_names) = 0;
virtual void get_partitions_pspec(std::vector<PartitionSpec> & _return, const std::string& db_name, const std::string& tbl_name, const int32_t max_parts) = 0;
virtual void get_partition_names(std::vector<std::string> & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0;
+ virtual void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) = 0;
virtual void get_partitions_ps(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts) = 0;
virtual void get_partitions_ps_with_auth(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector<std::string> & group_names) = 0;
virtual void get_partition_names_ps(std::vector<std::string> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts) = 0;
@@ -406,6 +407,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p
void get_partition_names(std::vector<std::string> & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) {
return;
}
+ void get_partition_values(PartitionValuesResponse& /* _return */, const PartitionValuesRequest& /* request */) {
+ return;
+ }
void get_partitions_ps(std::vector<Partition> & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector<std::string> & /* part_vals */, const int16_t /* max_parts */) {
return;
}
@@ -8767,6 +8771,126 @@ class ThriftHiveMetastore_get_partition_names_presult {
};
+typedef struct _ThriftHiveMetastore_get_partition_values_args__isset {
+ _ThriftHiveMetastore_get_partition_values_args__isset() : request(false) {}
+ bool request :1;
+} _ThriftHiveMetastore_get_partition_values_args__isset;
+
+class ThriftHiveMetastore_get_partition_values_args {
+ public:
+
+ ThriftHiveMetastore_get_partition_values_args(const ThriftHiveMetastore_get_partition_values_args&);
+ ThriftHiveMetastore_get_partition_values_args& operator=(const ThriftHiveMetastore_get_partition_values_args&);
+ ThriftHiveMetastore_get_partition_values_args() {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partition_values_args() throw();
+ PartitionValuesRequest request;
+
+ _ThriftHiveMetastore_get_partition_values_args__isset __isset;
+
+ void __set_request(const PartitionValuesRequest& val);
+
+ bool operator == (const ThriftHiveMetastore_get_partition_values_args & rhs) const
+ {
+ if (!(request == rhs.request))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partition_values_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partition_values_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_get_partition_values_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partition_values_pargs() throw();
+ const PartitionValuesRequest* request;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partition_values_result__isset {
+ _ThriftHiveMetastore_get_partition_values_result__isset() : success(false), o1(false), o2(false) {}
+ bool success :1;
+ bool o1 :1;
+ bool o2 :1;
+} _ThriftHiveMetastore_get_partition_values_result__isset;
+
+class ThriftHiveMetastore_get_partition_values_result {
+ public:
+
+ ThriftHiveMetastore_get_partition_values_result(const ThriftHiveMetastore_get_partition_values_result&);
+ ThriftHiveMetastore_get_partition_values_result& operator=(const ThriftHiveMetastore_get_partition_values_result&);
+ ThriftHiveMetastore_get_partition_values_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partition_values_result() throw();
+ PartitionValuesResponse success;
+ MetaException o1;
+ NoSuchObjectException o2;
+
+ _ThriftHiveMetastore_get_partition_values_result__isset __isset;
+
+ void __set_success(const PartitionValuesResponse& val);
+
+ void __set_o1(const MetaException& val);
+
+ void __set_o2(const NoSuchObjectException& val);
+
+ bool operator == (const ThriftHiveMetastore_get_partition_values_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ if (!(o1 == rhs.o1))
+ return false;
+ if (!(o2 == rhs.o2))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partition_values_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partition_values_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partition_values_presult__isset {
+ _ThriftHiveMetastore_get_partition_values_presult__isset() : success(false), o1(false), o2(false) {}
+ bool success :1;
+ bool o1 :1;
+ bool o2 :1;
+} _ThriftHiveMetastore_get_partition_values_presult__isset;
+
+class ThriftHiveMetastore_get_partition_values_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partition_values_presult() throw();
+ PartitionValuesResponse* success;
+ MetaException o1;
+ NoSuchObjectException o2;
+
+ _ThriftHiveMetastore_get_partition_values_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_get_partitions_ps_args__isset {
_ThriftHiveMetastore_get_partitions_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {}
bool db_name :1;
@@ -20750,6 +20874,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public
void get_partition_names(std::vector<std::string> & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
void send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
void recv_get_partition_names(std::vector<std::string> & _return);
+ void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request);
+ void send_get_partition_values(const PartitionValuesRequest& request);
+ void recv_get_partition_values(PartitionValuesResponse& _return);
void get_partitions_ps(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts);
void send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts);
void recv_get_partitions_ps(std::vector<Partition> & _return);
@@ -21119,6 +21246,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP
void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_partitions_pspec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_get_partition_values(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -21284,6 +21412,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP
processMap_["get_partitions_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_with_auth;
processMap_["get_partitions_pspec"] = &ThriftHiveMetastoreProcessor::process_get_partitions_pspec;
processMap_["get_partition_names"] = &ThriftHiveMetastoreProcessor::process_get_partition_names;
+ processMap_["get_partition_values"] = &ThriftHiveMetastoreProcessor::process_get_partition_values;
processMap_["get_partitions_ps"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps;
processMap_["get_partitions_ps_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth;
processMap_["get_partition_names_ps"] = &ThriftHiveMetastoreProcessor::process_get_partition_names_ps;
@@ -22010,6 +22139,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi
return;
}
+ void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->get_partition_values(_return, request);
+ }
+ ifaces_[i]->get_partition_values(_return, request);
+ return;
+ }
+
void get_partitions_ps(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts) {
size_t sz = ifaces_.size();
size_t i = 0;
@@ -23162,6 +23301,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf
void get_partition_names(std::vector<std::string> & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
int32_t send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts);
void recv_get_partition_names(std::vector<std::string> & _return, const int32_t seqid);
+ void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request);
+ int32_t send_get_partition_values(const PartitionValuesRequest& request);
+ void recv_get_partition_values(PartitionValuesResponse& _return, const int32_t seqid);
void get_partitions_ps(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts);
int32_t send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts);
void recv_get_partitions_ps(std::vector<Partition> & _return, const int32_t seqid);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
index c656d5f..78efd63 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
@@ -332,6 +332,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf {
printf("get_partition_names\n");
}
+ void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) {
+ // Your implementation goes here
+ printf("get_partition_values\n");
+ }
+
void get_partitions_ps(std::vector<Partition> & _return, const std::string& db_name, const std::string& tbl_name, const std::vector<std::string> & part_vals, const int16_t max_parts) {
// Your implementation goes here
printf("get_partitions_ps\n");
[11/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
index e285021..797ed84 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
@@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size865;
- ::apache::thrift::protocol::TType _etype868;
- xfer += iprot->readListBegin(_etype868, _size865);
- this->success.resize(_size865);
- uint32_t _i869;
- for (_i869 = 0; _i869 < _size865; ++_i869)
+ uint32_t _size895;
+ ::apache::thrift::protocol::TType _etype898;
+ xfer += iprot->readListBegin(_etype898, _size895);
+ this->success.resize(_size895);
+ uint32_t _i899;
+ for (_i899 = 0; _i899 < _size895; ++_i899)
{
- xfer += iprot->readString(this->success[_i869]);
+ xfer += iprot->readString(this->success[_i899]);
}
xfer += iprot->readListEnd();
}
@@ -1286,10 +1286,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter870;
- for (_iter870 = this->success.begin(); _iter870 != this->success.end(); ++_iter870)
+ std::vector<std::string> ::const_iterator _iter900;
+ for (_iter900 = this->success.begin(); _iter900 != this->success.end(); ++_iter900)
{
- xfer += oprot->writeString((*_iter870));
+ xfer += oprot->writeString((*_iter900));
}
xfer += oprot->writeListEnd();
}
@@ -1334,14 +1334,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size871;
- ::apache::thrift::protocol::TType _etype874;
- xfer += iprot->readListBegin(_etype874, _size871);
- (*(this->success)).resize(_size871);
- uint32_t _i875;
- for (_i875 = 0; _i875 < _size871; ++_i875)
+ uint32_t _size901;
+ ::apache::thrift::protocol::TType _etype904;
+ xfer += iprot->readListBegin(_etype904, _size901);
+ (*(this->success)).resize(_size901);
+ uint32_t _i905;
+ for (_i905 = 0; _i905 < _size901; ++_i905)
{
- xfer += iprot->readString((*(this->success))[_i875]);
+ xfer += iprot->readString((*(this->success))[_i905]);
}
xfer += iprot->readListEnd();
}
@@ -1458,14 +1458,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size876;
- ::apache::thrift::protocol::TType _etype879;
- xfer += iprot->readListBegin(_etype879, _size876);
- this->success.resize(_size876);
- uint32_t _i880;
- for (_i880 = 0; _i880 < _size876; ++_i880)
+ uint32_t _size906;
+ ::apache::thrift::protocol::TType _etype909;
+ xfer += iprot->readListBegin(_etype909, _size906);
+ this->success.resize(_size906);
+ uint32_t _i910;
+ for (_i910 = 0; _i910 < _size906; ++_i910)
{
- xfer += iprot->readString(this->success[_i880]);
+ xfer += iprot->readString(this->success[_i910]);
}
xfer += iprot->readListEnd();
}
@@ -1504,10 +1504,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter881;
- for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881)
+ std::vector<std::string> ::const_iterator _iter911;
+ for (_iter911 = this->success.begin(); _iter911 != this->success.end(); ++_iter911)
{
- xfer += oprot->writeString((*_iter881));
+ xfer += oprot->writeString((*_iter911));
}
xfer += oprot->writeListEnd();
}
@@ -1552,14 +1552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size882;
- ::apache::thrift::protocol::TType _etype885;
- xfer += iprot->readListBegin(_etype885, _size882);
- (*(this->success)).resize(_size882);
- uint32_t _i886;
- for (_i886 = 0; _i886 < _size882; ++_i886)
+ uint32_t _size912;
+ ::apache::thrift::protocol::TType _etype915;
+ xfer += iprot->readListBegin(_etype915, _size912);
+ (*(this->success)).resize(_size912);
+ uint32_t _i916;
+ for (_i916 = 0; _i916 < _size912; ++_i916)
{
- xfer += iprot->readString((*(this->success))[_i886]);
+ xfer += iprot->readString((*(this->success))[_i916]);
}
xfer += iprot->readListEnd();
}
@@ -2621,17 +2621,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size887;
- ::apache::thrift::protocol::TType _ktype888;
- ::apache::thrift::protocol::TType _vtype889;
- xfer += iprot->readMapBegin(_ktype888, _vtype889, _size887);
- uint32_t _i891;
- for (_i891 = 0; _i891 < _size887; ++_i891)
+ uint32_t _size917;
+ ::apache::thrift::protocol::TType _ktype918;
+ ::apache::thrift::protocol::TType _vtype919;
+ xfer += iprot->readMapBegin(_ktype918, _vtype919, _size917);
+ uint32_t _i921;
+ for (_i921 = 0; _i921 < _size917; ++_i921)
{
- std::string _key892;
- xfer += iprot->readString(_key892);
- Type& _val893 = this->success[_key892];
- xfer += _val893.read(iprot);
+ std::string _key922;
+ xfer += iprot->readString(_key922);
+ Type& _val923 = this->success[_key922];
+ xfer += _val923.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -2670,11 +2670,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::map<std::string, Type> ::const_iterator _iter894;
- for (_iter894 = this->success.begin(); _iter894 != this->success.end(); ++_iter894)
+ std::map<std::string, Type> ::const_iterator _iter924;
+ for (_iter924 = this->success.begin(); _iter924 != this->success.end(); ++_iter924)
{
- xfer += oprot->writeString(_iter894->first);
- xfer += _iter894->second.write(oprot);
+ xfer += oprot->writeString(_iter924->first);
+ xfer += _iter924->second.write(oprot);
}
xfer += oprot->writeMapEnd();
}
@@ -2719,17 +2719,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size895;
- ::apache::thrift::protocol::TType _ktype896;
- ::apache::thrift::protocol::TType _vtype897;
- xfer += iprot->readMapBegin(_ktype896, _vtype897, _size895);
- uint32_t _i899;
- for (_i899 = 0; _i899 < _size895; ++_i899)
+ uint32_t _size925;
+ ::apache::thrift::protocol::TType _ktype926;
+ ::apache::thrift::protocol::TType _vtype927;
+ xfer += iprot->readMapBegin(_ktype926, _vtype927, _size925);
+ uint32_t _i929;
+ for (_i929 = 0; _i929 < _size925; ++_i929)
{
- std::string _key900;
- xfer += iprot->readString(_key900);
- Type& _val901 = (*(this->success))[_key900];
- xfer += _val901.read(iprot);
+ std::string _key930;
+ xfer += iprot->readString(_key930);
+ Type& _val931 = (*(this->success))[_key930];
+ xfer += _val931.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -2883,14 +2883,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size902;
- ::apache::thrift::protocol::TType _etype905;
- xfer += iprot->readListBegin(_etype905, _size902);
- this->success.resize(_size902);
- uint32_t _i906;
- for (_i906 = 0; _i906 < _size902; ++_i906)
+ uint32_t _size932;
+ ::apache::thrift::protocol::TType _etype935;
+ xfer += iprot->readListBegin(_etype935, _size932);
+ this->success.resize(_size932);
+ uint32_t _i936;
+ for (_i936 = 0; _i936 < _size932; ++_i936)
{
- xfer += this->success[_i906].read(iprot);
+ xfer += this->success[_i936].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -2945,10 +2945,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter907;
- for (_iter907 = this->success.begin(); _iter907 != this->success.end(); ++_iter907)
+ std::vector<FieldSchema> ::const_iterator _iter937;
+ for (_iter937 = this->success.begin(); _iter937 != this->success.end(); ++_iter937)
{
- xfer += (*_iter907).write(oprot);
+ xfer += (*_iter937).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -3001,14 +3001,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size908;
- ::apache::thrift::protocol::TType _etype911;
- xfer += iprot->readListBegin(_etype911, _size908);
- (*(this->success)).resize(_size908);
- uint32_t _i912;
- for (_i912 = 0; _i912 < _size908; ++_i912)
+ uint32_t _size938;
+ ::apache::thrift::protocol::TType _etype941;
+ xfer += iprot->readListBegin(_etype941, _size938);
+ (*(this->success)).resize(_size938);
+ uint32_t _i942;
+ for (_i942 = 0; _i942 < _size938; ++_i942)
{
- xfer += (*(this->success))[_i912].read(iprot);
+ xfer += (*(this->success))[_i942].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3194,14 +3194,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size913;
- ::apache::thrift::protocol::TType _etype916;
- xfer += iprot->readListBegin(_etype916, _size913);
- this->success.resize(_size913);
- uint32_t _i917;
- for (_i917 = 0; _i917 < _size913; ++_i917)
+ uint32_t _size943;
+ ::apache::thrift::protocol::TType _etype946;
+ xfer += iprot->readListBegin(_etype946, _size943);
+ this->success.resize(_size943);
+ uint32_t _i947;
+ for (_i947 = 0; _i947 < _size943; ++_i947)
{
- xfer += this->success[_i917].read(iprot);
+ xfer += this->success[_i947].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3256,10 +3256,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter918;
- for (_iter918 = this->success.begin(); _iter918 != this->success.end(); ++_iter918)
+ std::vector<FieldSchema> ::const_iterator _iter948;
+ for (_iter948 = this->success.begin(); _iter948 != this->success.end(); ++_iter948)
{
- xfer += (*_iter918).write(oprot);
+ xfer += (*_iter948).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -3312,14 +3312,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size919;
- ::apache::thrift::protocol::TType _etype922;
- xfer += iprot->readListBegin(_etype922, _size919);
- (*(this->success)).resize(_size919);
- uint32_t _i923;
- for (_i923 = 0; _i923 < _size919; ++_i923)
+ uint32_t _size949;
+ ::apache::thrift::protocol::TType _etype952;
+ xfer += iprot->readListBegin(_etype952, _size949);
+ (*(this->success)).resize(_size949);
+ uint32_t _i953;
+ for (_i953 = 0; _i953 < _size949; ++_i953)
{
- xfer += (*(this->success))[_i923].read(iprot);
+ xfer += (*(this->success))[_i953].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3489,14 +3489,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size924;
- ::apache::thrift::protocol::TType _etype927;
- xfer += iprot->readListBegin(_etype927, _size924);
- this->success.resize(_size924);
- uint32_t _i928;
- for (_i928 = 0; _i928 < _size924; ++_i928)
+ uint32_t _size954;
+ ::apache::thrift::protocol::TType _etype957;
+ xfer += iprot->readListBegin(_etype957, _size954);
+ this->success.resize(_size954);
+ uint32_t _i958;
+ for (_i958 = 0; _i958 < _size954; ++_i958)
{
- xfer += this->success[_i928].read(iprot);
+ xfer += this->success[_i958].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3551,10 +3551,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter929;
- for (_iter929 = this->success.begin(); _iter929 != this->success.end(); ++_iter929)
+ std::vector<FieldSchema> ::const_iterator _iter959;
+ for (_iter959 = this->success.begin(); _iter959 != this->success.end(); ++_iter959)
{
- xfer += (*_iter929).write(oprot);
+ xfer += (*_iter959).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -3607,14 +3607,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size930;
- ::apache::thrift::protocol::TType _etype933;
- xfer += iprot->readListBegin(_etype933, _size930);
- (*(this->success)).resize(_size930);
- uint32_t _i934;
- for (_i934 = 0; _i934 < _size930; ++_i934)
+ uint32_t _size960;
+ ::apache::thrift::protocol::TType _etype963;
+ xfer += iprot->readListBegin(_etype963, _size960);
+ (*(this->success)).resize(_size960);
+ uint32_t _i964;
+ for (_i964 = 0; _i964 < _size960; ++_i964)
{
- xfer += (*(this->success))[_i934].read(iprot);
+ xfer += (*(this->success))[_i964].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3800,14 +3800,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size935;
- ::apache::thrift::protocol::TType _etype938;
- xfer += iprot->readListBegin(_etype938, _size935);
- this->success.resize(_size935);
- uint32_t _i939;
- for (_i939 = 0; _i939 < _size935; ++_i939)
+ uint32_t _size965;
+ ::apache::thrift::protocol::TType _etype968;
+ xfer += iprot->readListBegin(_etype968, _size965);
+ this->success.resize(_size965);
+ uint32_t _i969;
+ for (_i969 = 0; _i969 < _size965; ++_i969)
{
- xfer += this->success[_i939].read(iprot);
+ xfer += this->success[_i969].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3862,10 +3862,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter940;
- for (_iter940 = this->success.begin(); _iter940 != this->success.end(); ++_iter940)
+ std::vector<FieldSchema> ::const_iterator _iter970;
+ for (_iter970 = this->success.begin(); _iter970 != this->success.end(); ++_iter970)
{
- xfer += (*_iter940).write(oprot);
+ xfer += (*_iter970).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -3918,14 +3918,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size941;
- ::apache::thrift::protocol::TType _etype944;
- xfer += iprot->readListBegin(_etype944, _size941);
- (*(this->success)).resize(_size941);
- uint32_t _i945;
- for (_i945 = 0; _i945 < _size941; ++_i945)
+ uint32_t _size971;
+ ::apache::thrift::protocol::TType _etype974;
+ xfer += iprot->readListBegin(_etype974, _size971);
+ (*(this->success)).resize(_size971);
+ uint32_t _i975;
+ for (_i975 = 0; _i975 < _size971; ++_i975)
{
- xfer += (*(this->success))[_i945].read(iprot);
+ xfer += (*(this->success))[_i975].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4518,14 +4518,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->primaryKeys.clear();
- uint32_t _size946;
- ::apache::thrift::protocol::TType _etype949;
- xfer += iprot->readListBegin(_etype949, _size946);
- this->primaryKeys.resize(_size946);
- uint32_t _i950;
- for (_i950 = 0; _i950 < _size946; ++_i950)
+ uint32_t _size976;
+ ::apache::thrift::protocol::TType _etype979;
+ xfer += iprot->readListBegin(_etype979, _size976);
+ this->primaryKeys.resize(_size976);
+ uint32_t _i980;
+ for (_i980 = 0; _i980 < _size976; ++_i980)
{
- xfer += this->primaryKeys[_i950].read(iprot);
+ xfer += this->primaryKeys[_i980].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4538,14 +4538,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->foreignKeys.clear();
- uint32_t _size951;
- ::apache::thrift::protocol::TType _etype954;
- xfer += iprot->readListBegin(_etype954, _size951);
- this->foreignKeys.resize(_size951);
- uint32_t _i955;
- for (_i955 = 0; _i955 < _size951; ++_i955)
+ uint32_t _size981;
+ ::apache::thrift::protocol::TType _etype984;
+ xfer += iprot->readListBegin(_etype984, _size981);
+ this->foreignKeys.resize(_size981);
+ uint32_t _i985;
+ for (_i985 = 0; _i985 < _size981; ++_i985)
{
- xfer += this->foreignKeys[_i955].read(iprot);
+ xfer += this->foreignKeys[_i985].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4558,14 +4558,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->uniqueConstraints.clear();
- uint32_t _size956;
- ::apache::thrift::protocol::TType _etype959;
- xfer += iprot->readListBegin(_etype959, _size956);
- this->uniqueConstraints.resize(_size956);
- uint32_t _i960;
- for (_i960 = 0; _i960 < _size956; ++_i960)
+ uint32_t _size986;
+ ::apache::thrift::protocol::TType _etype989;
+ xfer += iprot->readListBegin(_etype989, _size986);
+ this->uniqueConstraints.resize(_size986);
+ uint32_t _i990;
+ for (_i990 = 0; _i990 < _size986; ++_i990)
{
- xfer += this->uniqueConstraints[_i960].read(iprot);
+ xfer += this->uniqueConstraints[_i990].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4578,14 +4578,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->notNullConstraints.clear();
- uint32_t _size961;
- ::apache::thrift::protocol::TType _etype964;
- xfer += iprot->readListBegin(_etype964, _size961);
- this->notNullConstraints.resize(_size961);
- uint32_t _i965;
- for (_i965 = 0; _i965 < _size961; ++_i965)
+ uint32_t _size991;
+ ::apache::thrift::protocol::TType _etype994;
+ xfer += iprot->readListBegin(_etype994, _size991);
+ this->notNullConstraints.resize(_size991);
+ uint32_t _i995;
+ for (_i995 = 0; _i995 < _size991; ++_i995)
{
- xfer += this->notNullConstraints[_i965].read(iprot);
+ xfer += this->notNullConstraints[_i995].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4618,10 +4618,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->primaryKeys.size()));
- std::vector<SQLPrimaryKey> ::const_iterator _iter966;
- for (_iter966 = this->primaryKeys.begin(); _iter966 != this->primaryKeys.end(); ++_iter966)
+ std::vector<SQLPrimaryKey> ::const_iterator _iter996;
+ for (_iter996 = this->primaryKeys.begin(); _iter996 != this->primaryKeys.end(); ++_iter996)
{
- xfer += (*_iter966).write(oprot);
+ xfer += (*_iter996).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4630,10 +4630,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->foreignKeys.size()));
- std::vector<SQLForeignKey> ::const_iterator _iter967;
- for (_iter967 = this->foreignKeys.begin(); _iter967 != this->foreignKeys.end(); ++_iter967)
+ std::vector<SQLForeignKey> ::const_iterator _iter997;
+ for (_iter997 = this->foreignKeys.begin(); _iter997 != this->foreignKeys.end(); ++_iter997)
{
- xfer += (*_iter967).write(oprot);
+ xfer += (*_iter997).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4642,10 +4642,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->uniqueConstraints.size()));
- std::vector<SQLUniqueConstraint> ::const_iterator _iter968;
- for (_iter968 = this->uniqueConstraints.begin(); _iter968 != this->uniqueConstraints.end(); ++_iter968)
+ std::vector<SQLUniqueConstraint> ::const_iterator _iter998;
+ for (_iter998 = this->uniqueConstraints.begin(); _iter998 != this->uniqueConstraints.end(); ++_iter998)
{
- xfer += (*_iter968).write(oprot);
+ xfer += (*_iter998).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4654,10 +4654,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->notNullConstraints.size()));
- std::vector<SQLNotNullConstraint> ::const_iterator _iter969;
- for (_iter969 = this->notNullConstraints.begin(); _iter969 != this->notNullConstraints.end(); ++_iter969)
+ std::vector<SQLNotNullConstraint> ::const_iterator _iter999;
+ for (_iter999 = this->notNullConstraints.begin(); _iter999 != this->notNullConstraints.end(); ++_iter999)
{
- xfer += (*_iter969).write(oprot);
+ xfer += (*_iter999).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4685,10 +4685,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->primaryKeys)).size()));
- std::vector<SQLPrimaryKey> ::const_iterator _iter970;
- for (_iter970 = (*(this->primaryKeys)).begin(); _iter970 != (*(this->primaryKeys)).end(); ++_iter970)
+ std::vector<SQLPrimaryKey> ::const_iterator _iter1000;
+ for (_iter1000 = (*(this->primaryKeys)).begin(); _iter1000 != (*(this->primaryKeys)).end(); ++_iter1000)
{
- xfer += (*_iter970).write(oprot);
+ xfer += (*_iter1000).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4697,10 +4697,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->foreignKeys)).size()));
- std::vector<SQLForeignKey> ::const_iterator _iter971;
- for (_iter971 = (*(this->foreignKeys)).begin(); _iter971 != (*(this->foreignKeys)).end(); ++_iter971)
+ std::vector<SQLForeignKey> ::const_iterator _iter1001;
+ for (_iter1001 = (*(this->foreignKeys)).begin(); _iter1001 != (*(this->foreignKeys)).end(); ++_iter1001)
{
- xfer += (*_iter971).write(oprot);
+ xfer += (*_iter1001).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4709,10 +4709,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->uniqueConstraints)).size()));
- std::vector<SQLUniqueConstraint> ::const_iterator _iter972;
- for (_iter972 = (*(this->uniqueConstraints)).begin(); _iter972 != (*(this->uniqueConstraints)).end(); ++_iter972)
+ std::vector<SQLUniqueConstraint> ::const_iterator _iter1002;
+ for (_iter1002 = (*(this->uniqueConstraints)).begin(); _iter1002 != (*(this->uniqueConstraints)).end(); ++_iter1002)
{
- xfer += (*_iter972).write(oprot);
+ xfer += (*_iter1002).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4721,10 +4721,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->notNullConstraints)).size()));
- std::vector<SQLNotNullConstraint> ::const_iterator _iter973;
- for (_iter973 = (*(this->notNullConstraints)).begin(); _iter973 != (*(this->notNullConstraints)).end(); ++_iter973)
+ std::vector<SQLNotNullConstraint> ::const_iterator _iter1003;
+ for (_iter1003 = (*(this->notNullConstraints)).begin(); _iter1003 != (*(this->notNullConstraints)).end(); ++_iter1003)
{
- xfer += (*_iter973).write(oprot);
+ xfer += (*_iter1003).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6478,14 +6478,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partNames.clear();
- uint32_t _size974;
- ::apache::thrift::protocol::TType _etype977;
- xfer += iprot->readListBegin(_etype977, _size974);
- this->partNames.resize(_size974);
- uint32_t _i978;
- for (_i978 = 0; _i978 < _size974; ++_i978)
+ uint32_t _size1004;
+ ::apache::thrift::protocol::TType _etype1007;
+ xfer += iprot->readListBegin(_etype1007, _size1004);
+ this->partNames.resize(_size1004);
+ uint32_t _i1008;
+ for (_i1008 = 0; _i1008 < _size1004; ++_i1008)
{
- xfer += iprot->readString(this->partNames[_i978]);
+ xfer += iprot->readString(this->partNames[_i1008]);
}
xfer += iprot->readListEnd();
}
@@ -6522,10 +6522,10 @@ uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partNames.size()));
- std::vector<std::string> ::const_iterator _iter979;
- for (_iter979 = this->partNames.begin(); _iter979 != this->partNames.end(); ++_iter979)
+ std::vector<std::string> ::const_iterator _iter1009;
+ for (_iter1009 = this->partNames.begin(); _iter1009 != this->partNames.end(); ++_iter1009)
{
- xfer += oprot->writeString((*_iter979));
+ xfer += oprot->writeString((*_iter1009));
}
xfer += oprot->writeListEnd();
}
@@ -6557,10 +6557,10 @@ uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->partNames)).size()));
- std::vector<std::string> ::const_iterator _iter980;
- for (_iter980 = (*(this->partNames)).begin(); _iter980 != (*(this->partNames)).end(); ++_iter980)
+ std::vector<std::string> ::const_iterator _iter1010;
+ for (_iter1010 = (*(this->partNames)).begin(); _iter1010 != (*(this->partNames)).end(); ++_iter1010)
{
- xfer += oprot->writeString((*_iter980));
+ xfer += oprot->writeString((*_iter1010));
}
xfer += oprot->writeListEnd();
}
@@ -6804,14 +6804,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size981;
- ::apache::thrift::protocol::TType _etype984;
- xfer += iprot->readListBegin(_etype984, _size981);
- this->success.resize(_size981);
- uint32_t _i985;
- for (_i985 = 0; _i985 < _size981; ++_i985)
+ uint32_t _size1011;
+ ::apache::thrift::protocol::TType _etype1014;
+ xfer += iprot->readListBegin(_etype1014, _size1011);
+ this->success.resize(_size1011);
+ uint32_t _i1015;
+ for (_i1015 = 0; _i1015 < _size1011; ++_i1015)
{
- xfer += iprot->readString(this->success[_i985]);
+ xfer += iprot->readString(this->success[_i1015]);
}
xfer += iprot->readListEnd();
}
@@ -6850,10 +6850,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter986;
- for (_iter986 = this->success.begin(); _iter986 != this->success.end(); ++_iter986)
+ std::vector<std::string> ::const_iterator _iter1016;
+ for (_iter1016 = this->success.begin(); _iter1016 != this->success.end(); ++_iter1016)
{
- xfer += oprot->writeString((*_iter986));
+ xfer += oprot->writeString((*_iter1016));
}
xfer += oprot->writeListEnd();
}
@@ -6898,14 +6898,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size987;
- ::apache::thrift::protocol::TType _etype990;
- xfer += iprot->readListBegin(_etype990, _size987);
- (*(this->success)).resize(_size987);
- uint32_t _i991;
- for (_i991 = 0; _i991 < _size987; ++_i991)
+ uint32_t _size1017;
+ ::apache::thrift::protocol::TType _etype1020;
+ xfer += iprot->readListBegin(_etype1020, _size1017);
+ (*(this->success)).resize(_size1017);
+ uint32_t _i1021;
+ for (_i1021 = 0; _i1021 < _size1017; ++_i1021)
{
- xfer += iprot->readString((*(this->success))[_i991]);
+ xfer += iprot->readString((*(this->success))[_i1021]);
}
xfer += iprot->readListEnd();
}
@@ -7075,14 +7075,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size992;
- ::apache::thrift::protocol::TType _etype995;
- xfer += iprot->readListBegin(_etype995, _size992);
- this->success.resize(_size992);
- uint32_t _i996;
- for (_i996 = 0; _i996 < _size992; ++_i996)
+ uint32_t _size1022;
+ ::apache::thrift::protocol::TType _etype1025;
+ xfer += iprot->readListBegin(_etype1025, _size1022);
+ this->success.resize(_size1022);
+ uint32_t _i1026;
+ for (_i1026 = 0; _i1026 < _size1022; ++_i1026)
{
- xfer += iprot->readString(this->success[_i996]);
+ xfer += iprot->readString(this->success[_i1026]);
}
xfer += iprot->readListEnd();
}
@@ -7121,10 +7121,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift::
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter997;
- for (_iter997 = this->success.begin(); _iter997 != this->success.end(); ++_iter997)
+ std::vector<std::string> ::const_iterator _iter1027;
+ for (_iter1027 = this->success.begin(); _iter1027 != this->success.end(); ++_iter1027)
{
- xfer += oprot->writeString((*_iter997));
+ xfer += oprot->writeString((*_iter1027));
}
xfer += oprot->writeListEnd();
}
@@ -7169,14 +7169,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size998;
- ::apache::thrift::protocol::TType _etype1001;
- xfer += iprot->readListBegin(_etype1001, _size998);
- (*(this->success)).resize(_size998);
- uint32_t _i1002;
- for (_i1002 = 0; _i1002 < _size998; ++_i1002)
+ uint32_t _size1028;
+ ::apache::thrift::protocol::TType _etype1031;
+ xfer += iprot->readListBegin(_etype1031, _size1028);
+ (*(this->success)).resize(_size1028);
+ uint32_t _i1032;
+ for (_i1032 = 0; _i1032 < _size1028; ++_i1032)
{
- xfer += iprot->readString((*(this->success))[_i1002]);
+ xfer += iprot->readString((*(this->success))[_i1032]);
}
xfer += iprot->readListEnd();
}
@@ -7251,14 +7251,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_types.clear();
- uint32_t _size1003;
- ::apache::thrift::protocol::TType _etype1006;
- xfer += iprot->readListBegin(_etype1006, _size1003);
- this->tbl_types.resize(_size1003);
- uint32_t _i1007;
- for (_i1007 = 0; _i1007 < _size1003; ++_i1007)
+ uint32_t _size1033;
+ ::apache::thrift::protocol::TType _etype1036;
+ xfer += iprot->readListBegin(_etype1036, _size1033);
+ this->tbl_types.resize(_size1033);
+ uint32_t _i1037;
+ for (_i1037 = 0; _i1037 < _size1033; ++_i1037)
{
- xfer += iprot->readString(this->tbl_types[_i1007]);
+ xfer += iprot->readString(this->tbl_types[_i1037]);
}
xfer += iprot->readListEnd();
}
@@ -7295,10 +7295,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_types.size()));
- std::vector<std::string> ::const_iterator _iter1008;
- for (_iter1008 = this->tbl_types.begin(); _iter1008 != this->tbl_types.end(); ++_iter1008)
+ std::vector<std::string> ::const_iterator _iter1038;
+ for (_iter1038 = this->tbl_types.begin(); _iter1038 != this->tbl_types.end(); ++_iter1038)
{
- xfer += oprot->writeString((*_iter1008));
+ xfer += oprot->writeString((*_iter1038));
}
xfer += oprot->writeListEnd();
}
@@ -7330,10 +7330,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_types)).size()));
- std::vector<std::string> ::const_iterator _iter1009;
- for (_iter1009 = (*(this->tbl_types)).begin(); _iter1009 != (*(this->tbl_types)).end(); ++_iter1009)
+ std::vector<std::string> ::const_iterator _iter1039;
+ for (_iter1039 = (*(this->tbl_types)).begin(); _iter1039 != (*(this->tbl_types)).end(); ++_iter1039)
{
- xfer += oprot->writeString((*_iter1009));
+ xfer += oprot->writeString((*_iter1039));
}
xfer += oprot->writeListEnd();
}
@@ -7374,14 +7374,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1010;
- ::apache::thrift::protocol::TType _etype1013;
- xfer += iprot->readListBegin(_etype1013, _size1010);
- this->success.resize(_size1010);
- uint32_t _i1014;
- for (_i1014 = 0; _i1014 < _size1010; ++_i1014)
+ uint32_t _size1040;
+ ::apache::thrift::protocol::TType _etype1043;
+ xfer += iprot->readListBegin(_etype1043, _size1040);
+ this->success.resize(_size1040);
+ uint32_t _i1044;
+ for (_i1044 = 0; _i1044 < _size1040; ++_i1044)
{
- xfer += this->success[_i1014].read(iprot);
+ xfer += this->success[_i1044].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -7420,10 +7420,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<TableMeta> ::const_iterator _iter1015;
- for (_iter1015 = this->success.begin(); _iter1015 != this->success.end(); ++_iter1015)
+ std::vector<TableMeta> ::const_iterator _iter1045;
+ for (_iter1045 = this->success.begin(); _iter1045 != this->success.end(); ++_iter1045)
{
- xfer += (*_iter1015).write(oprot);
+ xfer += (*_iter1045).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7468,14 +7468,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1016;
- ::apache::thrift::protocol::TType _etype1019;
- xfer += iprot->readListBegin(_etype1019, _size1016);
- (*(this->success)).resize(_size1016);
- uint32_t _i1020;
- for (_i1020 = 0; _i1020 < _size1016; ++_i1020)
+ uint32_t _size1046;
+ ::apache::thrift::protocol::TType _etype1049;
+ xfer += iprot->readListBegin(_etype1049, _size1046);
+ (*(this->success)).resize(_size1046);
+ uint32_t _i1050;
+ for (_i1050 = 0; _i1050 < _size1046; ++_i1050)
{
- xfer += (*(this->success))[_i1020].read(iprot);
+ xfer += (*(this->success))[_i1050].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -7613,14 +7613,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1021;
- ::apache::thrift::protocol::TType _etype1024;
- xfer += iprot->readListBegin(_etype1024, _size1021);
- this->success.resize(_size1021);
- uint32_t _i1025;
- for (_i1025 = 0; _i1025 < _size1021; ++_i1025)
+ uint32_t _size1051;
+ ::apache::thrift::protocol::TType _etype1054;
+ xfer += iprot->readListBegin(_etype1054, _size1051);
+ this->success.resize(_size1051);
+ uint32_t _i1055;
+ for (_i1055 = 0; _i1055 < _size1051; ++_i1055)
{
- xfer += iprot->readString(this->success[_i1025]);
+ xfer += iprot->readString(this->success[_i1055]);
}
xfer += iprot->readListEnd();
}
@@ -7659,10 +7659,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1026;
- for (_iter1026 = this->success.begin(); _iter1026 != this->success.end(); ++_iter1026)
+ std::vector<std::string> ::const_iterator _iter1056;
+ for (_iter1056 = this->success.begin(); _iter1056 != this->success.end(); ++_iter1056)
{
- xfer += oprot->writeString((*_iter1026));
+ xfer += oprot->writeString((*_iter1056));
}
xfer += oprot->writeListEnd();
}
@@ -7707,14 +7707,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1027;
- ::apache::thrift::protocol::TType _etype1030;
- xfer += iprot->readListBegin(_etype1030, _size1027);
- (*(this->success)).resize(_size1027);
- uint32_t _i1031;
- for (_i1031 = 0; _i1031 < _size1027; ++_i1031)
+ uint32_t _size1057;
+ ::apache::thrift::protocol::TType _etype1060;
+ xfer += iprot->readListBegin(_etype1060, _size1057);
+ (*(this->success)).resize(_size1057);
+ uint32_t _i1061;
+ for (_i1061 = 0; _i1061 < _size1057; ++_i1061)
{
- xfer += iprot->readString((*(this->success))[_i1031]);
+ xfer += iprot->readString((*(this->success))[_i1061]);
}
xfer += iprot->readListEnd();
}
@@ -8024,14 +8024,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_names.clear();
- uint32_t _size1032;
- ::apache::thrift::protocol::TType _etype1035;
- xfer += iprot->readListBegin(_etype1035, _size1032);
- this->tbl_names.resize(_size1032);
- uint32_t _i1036;
- for (_i1036 = 0; _i1036 < _size1032; ++_i1036)
+ uint32_t _size1062;
+ ::apache::thrift::protocol::TType _etype1065;
+ xfer += iprot->readListBegin(_etype1065, _size1062);
+ this->tbl_names.resize(_size1062);
+ uint32_t _i1066;
+ for (_i1066 = 0; _i1066 < _size1062; ++_i1066)
{
- xfer += iprot->readString(this->tbl_names[_i1036]);
+ xfer += iprot->readString(this->tbl_names[_i1066]);
}
xfer += iprot->readListEnd();
}
@@ -8064,10 +8064,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_names.size()));
- std::vector<std::string> ::const_iterator _iter1037;
- for (_iter1037 = this->tbl_names.begin(); _iter1037 != this->tbl_names.end(); ++_iter1037)
+ std::vector<std::string> ::const_iterator _iter1067;
+ for (_iter1067 = this->tbl_names.begin(); _iter1067 != this->tbl_names.end(); ++_iter1067)
{
- xfer += oprot->writeString((*_iter1037));
+ xfer += oprot->writeString((*_iter1067));
}
xfer += oprot->writeListEnd();
}
@@ -8095,10 +8095,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_names)).size()));
- std::vector<std::string> ::const_iterator _iter1038;
- for (_iter1038 = (*(this->tbl_names)).begin(); _iter1038 != (*(this->tbl_names)).end(); ++_iter1038)
+ std::vector<std::string> ::const_iterator _iter1068;
+ for (_iter1068 = (*(this->tbl_names)).begin(); _iter1068 != (*(this->tbl_names)).end(); ++_iter1068)
{
- xfer += oprot->writeString((*_iter1038));
+ xfer += oprot->writeString((*_iter1068));
}
xfer += oprot->writeListEnd();
}
@@ -8139,14 +8139,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1039;
- ::apache::thrift::protocol::TType _etype1042;
- xfer += iprot->readListBegin(_etype1042, _size1039);
- this->success.resize(_size1039);
- uint32_t _i1043;
- for (_i1043 = 0; _i1043 < _size1039; ++_i1043)
+ uint32_t _size1069;
+ ::apache::thrift::protocol::TType _etype1072;
+ xfer += iprot->readListBegin(_etype1072, _size1069);
+ this->success.resize(_size1069);
+ uint32_t _i1073;
+ for (_i1073 = 0; _i1073 < _size1069; ++_i1073)
{
- xfer += this->success[_i1043].read(iprot);
+ xfer += this->success[_i1073].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -8177,10 +8177,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<Table> ::const_iterator _iter1044;
- for (_iter1044 = this->success.begin(); _iter1044 != this->success.end(); ++_iter1044)
+ std::vector<Table> ::const_iterator _iter1074;
+ for (_iter1074 = this->success.begin(); _iter1074 != this->success.end(); ++_iter1074)
{
- xfer += (*_iter1044).write(oprot);
+ xfer += (*_iter1074).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -8221,14 +8221,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1045;
- ::apache::thrift::protocol::TType _etype1048;
- xfer += iprot->readListBegin(_etype1048, _size1045);
- (*(this->success)).resize(_size1045);
- uint32_t _i1049;
- for (_i1049 = 0; _i1049 < _size1045; ++_i1049)
+ uint32_t _size1075;
+ ::apache::thrift::protocol::TType _etype1078;
+ xfer += iprot->readListBegin(_etype1078, _size1075);
+ (*(this->success)).resize(_size1075);
+ uint32_t _i1079;
+ for (_i1079 = 0; _i1079 < _size1075; ++_i1079)
{
- xfer += (*(this->success))[_i1049].read(iprot);
+ xfer += (*(this->success))[_i1079].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -8864,14 +8864,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1050;
- ::apache::thrift::protocol::TType _etype1053;
- xfer += iprot->readListBegin(_etype1053, _size1050);
- this->success.resize(_size1050);
- uint32_t _i1054;
- for (_i1054 = 0; _i1054 < _size1050; ++_i1054)
+ uint32_t _size1080;
+ ::apache::thrift::protocol::TType _etype1083;
+ xfer += iprot->readListBegin(_etype1083, _size1080);
+ this->success.resize(_size1080);
+ uint32_t _i1084;
+ for (_i1084 = 0; _i1084 < _size1080; ++_i1084)
{
- xfer += iprot->readString(this->success[_i1054]);
+ xfer += iprot->readString(this->success[_i1084]);
}
xfer += iprot->readListEnd();
}
@@ -8926,10 +8926,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1055;
- for (_iter1055 = this->success.begin(); _iter1055 != this->success.end(); ++_iter1055)
+ std::vector<std::string> ::const_iterator _iter1085;
+ for (_iter1085 = this->success.begin(); _iter1085 != this->success.end(); ++_iter1085)
{
- xfer += oprot->writeString((*_iter1055));
+ xfer += oprot->writeString((*_iter1085));
}
xfer += oprot->writeListEnd();
}
@@ -8982,14 +8982,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1056;
- ::apache::thrift::protocol::TType _etype1059;
- xfer += iprot->readListBegin(_etype1059, _size1056);
- (*(this->success)).resize(_size1056);
- uint32_t _i1060;
- for (_i1060 = 0; _i1060 < _size1056; ++_i1060)
+ uint32_t _size1086;
+ ::apache::thrift::protocol::TType _etype1089;
+ xfer += iprot->readListBegin(_etype1089, _size1086);
+ (*(this->success)).resize(_size1086);
+ uint32_t _i1090;
+ for (_i1090 = 0; _i1090 < _size1086; ++_i1090)
{
- xfer += iprot->readString((*(this->success))[_i1060]);
+ xfer += iprot->readString((*(this->success))[_i1090]);
}
xfer += iprot->readListEnd();
}
@@ -10323,14 +10323,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size1061;
- ::apache::thrift::protocol::TType _etype1064;
- xfer += iprot->readListBegin(_etype1064, _size1061);
- this->new_parts.resize(_size1061);
- uint32_t _i1065;
- for (_i1065 = 0; _i1065 < _size1061; ++_i1065)
+ uint32_t _size1091;
+ ::apache::thrift::protocol::TType _etype1094;
+ xfer += iprot->readListBegin(_etype1094, _size1091);
+ this->new_parts.resize(_size1091);
+ uint32_t _i1095;
+ for (_i1095 = 0; _i1095 < _size1091; ++_i1095)
{
- xfer += this->new_parts[_i1065].read(iprot);
+ xfer += this->new_parts[_i1095].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -10359,10 +10359,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->new_parts.size()));
- std::vector<Partition> ::const_iterator _iter1066;
- for (_iter1066 = this->new_parts.begin(); _iter1066 != this->new_parts.end(); ++_iter1066)
+ std::vector<Partition> ::const_iterator _iter1096;
+ for (_iter1096 = this->new_parts.begin(); _iter1096 != this->new_parts.end(); ++_iter1096)
{
- xfer += (*_iter1066).write(oprot);
+ xfer += (*_iter1096).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10386,10 +10386,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->new_parts)).size()));
- std::vector<Partition> ::const_iterator _iter1067;
- for (_iter1067 = (*(this->new_parts)).begin(); _iter1067 != (*(this->new_parts)).end(); ++_iter1067)
+ std::vector<Partition> ::const_iterator _iter1097;
+ for (_iter1097 = (*(this->new_parts)).begin(); _iter1097 != (*(this->new_parts)).end(); ++_iter1097)
{
- xfer += (*_iter1067).write(oprot);
+ xfer += (*_iter1097).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10598,14 +10598,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size1068;
- ::apache::thrift::protocol::TType _etype1071;
- xfer += iprot->readListBegin(_etype1071, _size1068);
- this->new_parts.resize(_size1068);
- uint32_t _i1072;
- for (_i1072 = 0; _i1072 < _size1068; ++_i1072)
+ uint32_t _size1098;
+ ::apache::thrift::protocol::TType _etype1101;
+ xfer += iprot->readListBegin(_etype1101, _size1098);
+ this->new_parts.resize(_size1098);
+ uint32_t _i1102;
+ for (_i1102 = 0; _i1102 < _size1098; ++_i1102)
{
- xfer += this->new_parts[_i1072].read(iprot);
+ xfer += this->new_parts[_i1102].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -10634,10 +10634,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift::
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->new_parts.size()));
- std::vector<PartitionSpec> ::const_iterator _iter1073;
- for (_iter1073 = this->new_parts.begin(); _iter1073 != this->new_parts.end(); ++_iter1073)
+ std::vector<PartitionSpec> ::const_iterator _iter1103;
+ for (_iter1103 = this->new_parts.begin(); _iter1103 != this->new_parts.end(); ++_iter1103)
{
- xfer += (*_iter1073).write(oprot);
+ xfer += (*_iter1103).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10661,10 +10661,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift:
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->new_parts)).size()));
- std::vector<PartitionSpec> ::const_iterator _iter1074;
- for (_iter1074 = (*(this->new_parts)).begin(); _iter1074 != (*(this->new_parts)).end(); ++_iter1074)
+ std::vector<PartitionSpec> ::const_iterator _iter1104;
+ for (_iter1104 = (*(this->new_parts)).begin(); _iter1104 != (*(this->new_parts)).end(); ++_iter1104)
{
- xfer += (*_iter1074).write(oprot);
+ xfer += (*_iter1104).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -10889,14 +10889,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1075;
- ::apache::thrift::protocol::TType _etype1078;
- xfer += iprot->readListBegin(_etype1078, _size1075);
- this->part_vals.resize(_size1075);
- uint32_t _i1079;
- for (_i1079 = 0; _i1079 < _size1075; ++_i1079)
+ uint32_t _size1105;
+ ::apache::thrift::protocol::TType _etype1108;
+ xfer += iprot->readListBegin(_etype1108, _size1105);
+ this->part_vals.resize(_size1105);
+ uint32_t _i1109;
+ for (_i1109 = 0; _i1109 < _size1105; ++_i1109)
{
- xfer += iprot->readString(this->part_vals[_i1079]);
+ xfer += iprot->readString(this->part_vals[_i1109]);
}
xfer += iprot->readListEnd();
}
@@ -10933,10 +10933,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1080;
- for (_iter1080 = this->part_vals.begin(); _iter1080 != this->part_vals.end(); ++_iter1080)
+ std::vector<std::string> ::const_iterator _iter1110;
+ for (_iter1110 = this->part_vals.begin(); _iter1110 != this->part_vals.end(); ++_iter1110)
{
- xfer += oprot->writeString((*_iter1080));
+ xfer += oprot->writeString((*_iter1110));
}
xfer += oprot->writeListEnd();
}
@@ -10968,10 +10968,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1081;
- for (_iter1081 = (*(this->part_vals)).begin(); _iter1081 != (*(this->part_vals)).end(); ++_iter1081)
+ std::vector<std::string> ::const_iterator _iter1111;
+ for (_iter1111 = (*(this->part_vals)).begin(); _iter1111 != (*(this->part_vals)).end(); ++_iter1111)
{
- xfer += oprot->writeString((*_iter1081));
+ xfer += oprot->writeString((*_iter1111));
}
xfer += oprot->writeListEnd();
}
@@ -11443,14 +11443,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1082;
- ::apache::thrift::protocol::TType _etype1085;
- xfer += iprot->readListBegin(_etype1085, _size1082);
- this->part_vals.resize(_size1082);
- uint32_t _i1086;
- for (_i1086 = 0; _i1086 < _size1082; ++_i1086)
+ uint32_t _size1112;
+ ::apache::thrift::protocol::TType _etype1115;
+ xfer += iprot->readListBegin(_etype1115, _size1112);
+ this->part_vals.resize(_size1112);
+ uint32_t _i1116;
+ for (_i1116 = 0; _i1116 < _size1112; ++_i1116)
{
- xfer += iprot->readString(this->part_vals[_i1086]);
+ xfer += iprot->readString(this->part_vals[_i1116]);
}
xfer += iprot->readListEnd();
}
@@ -11495,10 +11495,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1087;
- for (_iter1087 = this->part_vals.begin(); _iter1087 != this->part_vals.end(); ++_iter1087)
+ std::vector<std::string> ::const_iterator _iter1117;
+ for (_iter1117 = this->part_vals.begin(); _iter1117 != this->part_vals.end(); ++_iter1117)
{
- xfer += oprot->writeString((*_iter1087));
+ xfer += oprot->writeString((*_iter1117));
}
xfer += oprot->writeListEnd();
}
@@ -11534,10 +11534,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1088;
- for (_iter1088 = (*(this->part_vals)).begin(); _iter1088 != (*(this->part_vals)).end(); ++_iter1088)
+ std::vector<std::string> ::const_iterator _iter1118;
+ for (_iter1118 = (*(this->part_vals)).begin(); _iter1118 != (*(this->part_vals)).end(); ++_iter1118)
{
- xfer += oprot->writeString((*_iter1088));
+ xfer += oprot->writeString((*_iter1118));
}
xfer += oprot->writeListEnd();
}
@@ -12340,14 +12340,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1089;
- ::apache::thrift::protocol::TType _etype1092;
- xfer += iprot->readListBegin(_etype1092, _size1089);
- this->part_vals.resize(_size1089);
- uint32_t _i1093;
- for (_i1093 = 0; _i1093 < _size1089; ++_i1093)
+ uint32_t _size1119;
+ ::apache::thrift::protocol::TType _etype1122;
+ xfer += iprot->readListBegin(_etype1122, _size1119);
+ this->part_vals.resize(_size1119);
+ uint32_t _i1123;
+ for (_i1123 = 0; _i1123 < _size1119; ++_i1123)
{
- xfer += iprot->readString(this->part_vals[_i1093]);
+ xfer += iprot->readString(this->part_vals[_i1123]);
}
xfer += iprot->readListEnd();
}
@@ -12392,10 +12392,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1094;
- for (_iter1094 = this->part_vals.begin(); _iter1094 != this->part_vals.end(); ++_iter1094)
+ std::vector<std::string> ::const_iterator _iter1124;
+ for (_iter1124 = this->part_vals.begin(); _iter1124 != this->part_vals.end(); ++_iter1124)
{
- xfer += oprot->writeString((*_iter1094));
+ xfer += oprot->writeString((*_iter1124));
}
xfer += oprot->writeListEnd();
}
@@ -12431,10 +12431,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1095;
- for (_iter1095 = (*(this->part_vals)).begin(); _iter1095 != (*(this->part_vals)).end(); ++_iter1095)
+ std::vector<std::string> ::const_iterator _iter1125;
+ for (_iter1125 = (*(this->part_vals)).begin(); _iter1125 != (*(this->part_vals)).end(); ++_iter1125)
{
- xfer += oprot->writeString((*_iter1095));
+ xfer += oprot->writeString((*_iter1125));
}
xfer += oprot->writeListEnd();
}
@@ -12643,14 +12643,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read(
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1096;
- ::apache::thrift::protocol::TType _etype1099;
- xfer += iprot->readListBegin(_etype1099, _size1096);
- this->part_vals.resize(_size1096);
- uint32_t _i1100;
- for (_i1100 = 0; _i1100 < _size1096; ++_i1100)
+ uint32_t _size1126;
+ ::apache::thrift::protocol::TType _etype1129;
+ xfer += iprot->readListBegin(_etype1129, _size1126);
+ this->part_vals.resize(_size1126);
+ uint32_t _i1130;
+ for (_i1130 = 0; _i1130 < _size1126; ++_i1130)
{
- xfer += iprot->readString(this->part_vals[_i1100]);
+ xfer += iprot->readString(this->part_vals[_i1130]);
}
xfer += iprot->readListEnd();
}
@@ -12703,10 +12703,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1101;
- for (_iter1101 = this->part_vals.begin(); _iter1101 != this->part_vals.end(); ++_iter1101)
+ std::vector<std::string> ::const_iterator _iter1131;
+ for (_iter1131 = this->part_vals.begin(); _iter1131 != this->part_vals.end(); ++_iter1131)
{
- xfer += oprot->writeString((*_iter1101));
+ xfer += oprot->writeString((*_iter1131));
}
xfer += oprot->writeListEnd();
}
@@ -12746,10 +12746,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1102;
- for (_iter1102 = (*(this->part_vals)).begin(); _iter1102 != (*(this->part_vals)).end(); ++_iter1102)
+ std::vector<std::string> ::const_iterator _iter1132;
+ for (_iter1132 = (*(this->part_vals)).begin(); _iter1132 != (*(this->part_vals)).end(); ++_iter1132)
{
- xfer += oprot->writeString((*_iter1102));
+ xfer += oprot->writeString((*_iter1132));
}
xfer += oprot->writeListEnd();
}
@@ -13755,14 +13755,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1103;
- ::apache::thrift::protocol::TType _etype1106;
- xfer += iprot->readListBegin(_etype1106, _size1103);
- this->part_vals.resize(_size1103);
- uint32_t _i1107;
- for (_i1107 = 0; _i1107 < _size1103; ++_i1107)
+ uint32_t _size1133;
+ ::apache::thrift::protocol::TType _etype1136;
+ xfer += iprot->readListBegin(_etype1136, _size1133);
+ this->part_vals.resize(_size1133);
+ uint32_t _i1137;
+ for (_i1137 = 0; _i1137 < _size1133; ++_i1137)
{
- xfer += iprot->readString(this->part_vals[_i1107]);
+ xfer += iprot->readString(this->part_vals[_i1137]);
}
xfer += iprot->readListEnd();
}
@@ -13799,10 +13799,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1108;
- for (_iter1108 = this->part_vals.begin(); _iter1108 != this->part_vals.end(); ++_iter1108)
+ std::vector<std::string> ::const_iterator _iter1138;
+ for (_iter1138 = this->part_vals.begin(); _iter1138 != this->part_vals.end(); ++_iter1138)
{
- xfer += oprot->writeString((*_iter1108));
+ xfer += oprot->writeString((*_iter1138));
}
xfer += oprot->writeListEnd();
}
@@ -13834,10 +13834,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1109;
- for (_iter1109 = (*(this->part_vals)).begin(); _iter1109 != (*(this->part_vals)).end(); ++_iter1109)
+ std::vector<std::string> ::const_iterator _iter1139;
+ for (_iter1139 = (*(this->part_vals)).begin(); _iter1139 != (*(this->part_vals)).end(); ++_iter1139)
{
- xfer += oprot->writeString((*_iter1109));
+ xfer += oprot->writeString((*_iter1139));
}
xfer += oprot->writeListEnd();
}
@@ -14026,17 +14026,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->partitionSpecs.clear();
- uint32_t _size1110;
- ::apache::thrift::protocol::TType _ktype1111;
- ::apache::thrift::protocol::TType _vtype1112;
- xfer += iprot->readMapBegin(_ktype1111, _vtype1112, _size1110);
- uint32_t _i1114;
- for (_i1114 = 0; _i1114 < _size1110; ++_i1114)
+ uint32_t _size1140;
+ ::apache::thrift::protocol::TType _ktype1141;
+ ::apache::thrift::protocol::TType _vtype1142;
+ xfer += iprot->readMapBegin(_ktype1141, _vtype1142, _size1140);
+ uint32_t _i1144;
+ for (_i1144 = 0; _i1144 < _size1140; ++_i1144)
{
- std::string _key1115;
- xfer += iprot->readString(_key1115);
- std::string& _val1116 = this->partitionSpecs[_key1115];
- xfer += iprot->readString(_val1116);
+ std::string _key1145;
+ xfer += iprot->readString(_key1145);
+ std::string& _val1146 = this->partitionSpecs[_key1145];
+ xfer += iprot->readString(_val1146);
}
xfer += iprot->readMapEnd();
}
@@ -14097,11 +14097,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr
xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partitionSpecs.size()));
- std::map<std::string, std::string> ::const_iterator _iter1117;
- for (_iter1117 = this->partitionSpecs.begin(); _iter1117 != this->partitionSpecs.end(); ++_iter1117)
+ std::map<std::string, std::string> ::const_iterator _iter1147;
+ for (_iter1147 = this->partitionSpecs.begin(); _iter1147 != this->partitionSpecs.end(); ++_iter1147)
{
- xfer += oprot->writeString(_iter1117->first);
- xfer += oprot->writeString(_iter1117->second);
+ xfer += oprot->writeString(_iter1147->first);
+ xfer += oprot->writeString(_iter1147->second);
}
xfer += oprot->writeMapEnd();
}
@@ -14141,11 +14141,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->partitionSpecs)).size()));
- std::map<std::string, std::string> ::const_iterator _iter1118;
- for (_iter1118 = (*(this->partitionSpecs)).begin(); _iter1118 != (*(this->partitionSpecs)).end(); ++_iter1118)
+ std::map<std::string, std::string> ::const_iterator _iter1148;
+ for (_iter1148 = (*(this->partitionSpecs)).begin(); _iter1148 != (*(this->partitionSpecs)).end(); ++_iter1148)
{
- xfer += oprot->writeString(_iter1118->first);
- xfer += oprot->writeString(_iter1118->second);
+ xfer += oprot->writeString(_iter1148->first);
+ xfer += oprot->writeString(_iter1148->second);
}
xfer += oprot->writeMapEnd();
}
@@ -14390,17 +14390,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->partitionSpecs.clear();
- uint32_t _size1119;
- ::apache::thrift::protocol::TType _ktype1120;
- ::apache::thrift::protocol::TType _vtype1121;
- xfer += iprot->readMapBegin(_ktype1120, _vtype1121, _size1119);
- uint32_t _i1123;
- for (_i1123 = 0; _i1123 < _size1119; ++_i1123)
+ uint32_t _size1149;
+ ::apache::thrift::protocol::TType _ktype1150;
+ ::apache::thrift::protocol::TType _vtype1151;
+ xfer += iprot->readMapBegin(_ktype1150, _vtype1151, _size1149);
+ uint32_t _i1153;
+ for (_i1153 = 0; _i1153 < _size1149; ++_i1153)
{
- std::string _key1124;
- xfer += iprot->readString(_key1124);
- std::string& _val1125 = this->partitionSpecs[_key1124];
- xfer += iprot->readString(_val1125);
+ std::string _key1154;
+ xfer += iprot->readString(_key1154);
+ std::string& _val1155 = this->partitionSpecs[_key1154];
+ xfer += iprot->readString(_val1155);
}
xfer += iprot->readMapEnd();
}
@@ -14461,11 +14461,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partitionSpecs.size()));
- std::map<std::string, std::string> ::const_iterator _iter1126;
- for (_iter1126 = this->partitionSpecs.begin(); _iter1126 != this->partitionSpecs.end(); ++_iter1126)
+ std::map<std::string, std::string> ::const_iterator _iter1156;
+ for (_iter1156 = this->partitionSpecs.begin(); _iter1156 != this->partitionSpecs.end(); ++_iter1156)
{
- xfer += oprot->writeString(_iter1126->first);
- xfer += oprot->writeString(_iter1126->second);
+ xfer += oprot->writeString(_iter1156->first);
+ xfer += oprot->writeString(_iter1156->second);
}
xfer += oprot->writeMapEnd();
}
@@ -14505,11 +14505,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift::
xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->partitionSpecs)).size()));
- std::map<std::string, std::string> ::const_iterator _iter1127;
- for (_iter1127 = (*(this->partitionSpecs)).begin(); _iter1127 != (*(this->partitionSpecs)).end(); ++_iter1127)
+ std::map<std::string, std::string> ::const_iterator _iter1157;
+ for (_iter1157 = (*(this->partitionSpecs)).begin(); _iter1157 != (*(this->partitionSpecs)).end(); ++_iter1157)
{
- xfer += oprot->writeString(_iter1127->first);
- xfer += oprot->writeString(_iter1127->second);
+ xfer += oprot->writeString(_iter1157->first);
+ xfer += oprot->writeString(_iter1157->second);
}
xfer += oprot->writeMapEnd();
}
@@ -14566,14 +14566,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1128;
- ::apache::thrift::protocol::TType _etype1131;
- xfer += iprot->readListBegin(_etype1131, _size1128);
- this->success.resize(_size1128);
- uint32_t _i1132;
- for (_i1132 = 0; _i1132 < _size1128; ++_i1132)
+ uint32_t _size1158;
+ ::apache::thrift::protocol::TType _etype1161;
+ xfer += iprot->readListBegin(_etype1161, _size1158);
+ this->success.resize(_size1158);
+ uint32_t _i1162;
+ for (_i1162 = 0; _i1162 < _size1158; ++_i1162)
{
- xfer += this->success[_i1132].read(iprot);
+ xfer += this->success[_i1162].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -14636,10 +14636,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<Partition> ::const_iterator _iter1133;
- for (_iter1133 = this->success.begin(); _iter1133 != this->success.end(); ++_iter1133)
+ std::vector<Partition> ::const_iterator _iter1163;
+ for (_iter1163 = this->success.begin(); _iter1163 != this->success.end(); ++_iter1163)
{
- xfer += (*_iter1133).write(oprot);
+ xfer += (*_iter1163).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -14696,14 +14696,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1134;
- ::apache::thrift::protocol::TType _etype1137;
- xfer += iprot->readListBegin(_etype1137, _size1134);
- (*(this->success)).resize(_size1134);
- uint32_t _i1138;
- for (_i1138 = 0; _i1138 < _size1134; ++_i1138)
+ uint32_t _size1164;
+ ::apache::thrift::protocol::TType _etype1167;
+ xfer += iprot->readListBegin(_etype1167, _size1164);
+ (*(this->success)).resize(_size1164);
+ uint32_t _i1168;
+ for (_i1168 = 0; _i1168 < _size1164; ++_i1168)
{
- xfer += (*(this->success))[_i1138].read(iprot);
+ xfer += (*(this->success))[_i1168].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -14802,14 +14802,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1139;
- ::apache::thrift::protocol::TType _etype1142;
- xfer += iprot->readListBegin(_etype1142, _size1139);
- this->part_vals.resize(_size1139);
- uint32_t _i1143;
- for (_i1143 = 0; _i1143 < _size1139; ++_i1143)
+ uint32_t _size1169;
+ ::apache::thrift::protocol::TType _etype1172;
+ xfer += iprot->readListBegin(_etype1172, _size1169);
+ this->part_vals.resize(_size1169);
+ uint32_t _i1173;
+ for (_i1173 = 0; _i1173 < _size1169; ++_i1173)
{
- xfer += iprot->readString(this->part_vals[_i1143]);
+ xfer += iprot->readString(this->part_vals[_i1173]);
}
xfer += iprot->readListEnd();
}
@@ -14830,14 +14830,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->group_names.clear();
- uint32_t _size1144;
- ::apache::thrift::protocol::TType _etype1147;
- xfer += iprot->readListBegin(_etype1147, _size1144);
- this->group_names.resize(_size1144);
- uint32_t _i1148;
- for (_i1148 = 0; _i1148 < _size1144; ++_i1148)
+ uint32_t _size1174;
+ ::apache::thrift::protocol::TType _etype1177;
+ xfer += iprot->readListBegin(_etype1177, _size1174);
+ this->group_names.resize(_size1174);
+ uint32_t _i1178;
+ for (_i1178 = 0; _i1178 < _size1174; ++_i1178)
{
- xfer += iprot->readString(this->group_names[_i1148]);
+ xfer += iprot->readString(this->group_names[_i1178]);
}
xfer += iprot->readListEnd();
}
@@ -14874,10 +14874,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1149;
- for (_iter1149 = this->part_vals.begin(); _iter1149 != this->part_vals.end(); ++_iter1149)
+ std::vector<std::string> ::const_iterator _iter1179;
+ for (_iter1179 = this->part_vals.begin(); _iter1179 != this->part_vals.end(); ++_iter1179)
{
- xfer += oprot->writeString((*_iter1149));
+ xfer += oprot->writeString((*_iter1179));
}
xfer += oprot->writeListEnd();
}
@@ -14890,10 +14890,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->group_names.size()));
- std::vector<std::string> ::const_iterator _iter1150;
- for (_iter1150 = this->group_names.begin(); _iter1150 != this->group_names.end(); ++_iter1150)
+ std::vector<std::string> ::const_iterator _iter1180;
+ for (_iter1180 = this->group_names.begin(); _iter1180 != this->group_names.end(); ++_iter1180)
{
- xfer += oprot->writeString((*_iter1150));
+ xfer += oprot->writeString((*_iter1180));
}
xfer += oprot->writeListEnd();
}
@@ -14925,10 +14925,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1151;
- for (_iter1151 = (*(this->part_vals)).begin(); _iter1151 != (*(this->part_vals)).end(); ++_iter1151)
+ std::vector<std::string> ::const_iterator _iter1181;
+ for (_iter1181 = (*(this->part_vals)).begin(); _iter1181 != (*(this->part_vals)).end(); ++_iter1181)
{
- xfer += oprot->writeString((*_iter1151));
+ xfer += oprot->writeString((*_iter1181));
}
xfer += oprot->writeListEnd();
}
@@ -14941,10 +14941,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri
xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->group_names)).size()));
- std::vector<std::string> ::const_iterator _iter1152;
- for (_iter1152 = (*(this->group_names)).begin(); _iter1152 != (*(this->group_names)).end(); ++_iter1152)
+ std::vector<std::string> ::const_iterator _iter1182;
+ for (_iter1182 = (*(this->group_names)).begin(); _iter1182 != (*(this->group_names)).end(); ++_iter1182)
{
- xfer += oprot->writeString((*_iter1152));
+ xfer += oprot->writeString((*_iter1182));
}
xfer += oprot->writeListEnd();
}
@@ -15503,14 +15503,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1153;
- ::apache::thrift::protocol::TType _etype1156;
- xfer += iprot->readListBegin(_etype1156, _size1153);
- this->success.resize(_size1153);
-
<TRUNCATED>
[12/12] hive git commit: HIVE-17466: Metastore API to list unique
partition-key-value combinations (Thiruvel Thirumoolan,
reviewed by Mithun Radhakrishnan)
Posted by mi...@apache.org.
HIVE-17466: Metastore API to list unique partition-key-value combinations (Thiruvel Thirumoolan, reviewed by Mithun Radhakrishnan)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9a149843
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9a149843
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9a149843
Branch: refs/heads/master
Commit: 9a1498439dd8b7d29a272516b71741d814954777
Parents: 32e854e
Author: Mithun RK <mi...@apache.org>
Authored: Tue Sep 12 13:59:47 2017 -0700
Committer: Mithun RK <mi...@apache.org>
Committed: Tue Sep 19 13:46:06 2017 -0700
----------------------------------------------------------------------
.../listener/DummyRawStoreFailEvent.java | 7 +
.../hadoop/hive/metastore/HiveMetaStore.java | 11 +
.../hive/metastore/HiveMetaStoreClient.java | 6 +
.../hadoop/hive/metastore/IMetaStoreClient.java | 6 +-
.../hadoop/hive/metastore/ObjectStore.java | 246 +
.../apache/hadoop/hive/metastore/RawStore.java | 7 +-
.../hive/metastore/cache/CachedStore.java | 9 +
.../DummyRawStoreControlledCommit.java | 8 +-
.../DummyRawStoreForJdoConnection.java | 8 +-
.../gen/thrift/gen-cpp/ThriftHiveMetastore.cpp | 2575 ++++----
.../gen/thrift/gen-cpp/ThriftHiveMetastore.h | 142 +
.../ThriftHiveMetastore_server.skeleton.cpp | 5 +
.../gen/thrift/gen-cpp/hive_metastore_types.cpp | 2395 +++++---
.../gen/thrift/gen-cpp/hive_metastore_types.h | 181 +
.../hive/metastore/api/AbortTxnsRequest.java | 32 +-
.../metastore/api/AddDynamicPartitions.java | 32 +-
.../metastore/api/ClearFileMetadataRequest.java | 32 +-
.../hive/metastore/api/ClientCapabilities.java | 32 +-
.../hive/metastore/api/CompactionRequest.java | 44 +-
.../hive/metastore/api/FireEventRequest.java | 32 +-
.../hadoop/hive/metastore/api/Function.java | 36 +-
.../metastore/api/GetAllFunctionsResponse.java | 36 +-
.../api/GetFileMetadataByExprRequest.java | 32 +-
.../api/GetFileMetadataByExprResult.java | 48 +-
.../metastore/api/GetFileMetadataRequest.java | 32 +-
.../metastore/api/GetFileMetadataResult.java | 44 +-
.../metastore/api/GetOpenTxnsInfoResponse.java | 36 +-
.../hive/metastore/api/GetOpenTxnsResponse.java | 32 +-
.../hive/metastore/api/GetTablesRequest.java | 32 +-
.../hive/metastore/api/GetTablesResult.java | 36 +-
.../api/HeartbeatTxnRangeResponse.java | 64 +-
.../metastore/api/InsertEventRequestData.java | 64 +-
.../hadoop/hive/metastore/api/LockRequest.java | 36 +-
.../api/NotificationEventResponse.java | 36 +-
.../hive/metastore/api/OpenTxnsResponse.java | 32 +-
.../metastore/api/PartitionValuesRequest.java | 1222 ++++
.../metastore/api/PartitionValuesResponse.java | 443 ++
.../hive/metastore/api/PartitionValuesRow.java | 438 ++
.../metastore/api/PutFileMetadataRequest.java | 64 +-
.../hive/metastore/api/ShowCompactResponse.java | 36 +-
.../hive/metastore/api/ShowLocksResponse.java | 36 +-
.../hive/metastore/api/ThriftHiveMetastore.java | 5667 +++++++++++-------
.../gen-php/metastore/ThriftHiveMetastore.php | 1582 +++--
.../src/gen/thrift/gen-php/metastore/Types.php | 1040 +++-
.../hive_metastore/ThriftHiveMetastore-remote | 7 +
.../hive_metastore/ThriftHiveMetastore.py | 1109 ++--
.../gen/thrift/gen-py/hive_metastore/ttypes.py | 685 ++-
.../gen/thrift/gen-rb/hive_metastore_types.rb | 67 +
.../gen/thrift/gen-rb/thrift_hive_metastore.rb | 66 +
.../src/main/thrift/hive_metastore.thrift | 22 +
50 files changed, 12572 insertions(+), 6318 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
----------------------------------------------------------------------
diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
index 8d861e4..d94d920 100644
--- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
+++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
@@ -35,6 +35,7 @@ import org.apache.hadoop.hive.metastore.api.ColumnStatistics;
import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj;
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.Database;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.FileMetadataExprType;
import org.apache.hadoop.hive.metastore.api.Function;
import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
@@ -51,6 +52,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -286,6 +288,11 @@ public class DummyRawStoreFailEvent implements RawStore, Configurable {
}
@Override
+ public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<FieldSchema> order, long maxParts) throws MetaException {
+ return null;
+ }
+
+ @Override
public List<String> listPartitionNamesByFilter(String dbName, String tblName,
String filter, short maxParts) throws MetaException {
return objectStore.listPartitionNamesByFilter(dbName, tblName, filter, maxParts);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
index cf33cca..f2747f9 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
@@ -4140,6 +4140,17 @@ public class HiveMetaStore extends ThriftHiveMetastore {
}
@Override
+ public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException {
+ String dbName = request.getDbName();
+ String tblName = request.getTblName();
+ List<FieldSchema> partCols = new ArrayList<FieldSchema>();
+ partCols.add(request.getPartitionKeys().get(0));
+ return getMS().listPartitionValues(dbName, tblName, request.getPartitionKeys(),
+ request.isApplyDistinct(), request.getFilter(), request.isAscending(),
+ request.getPartitionOrder(), request.getMaxParts());
+ }
+
+ @Override
public void alter_partition(final String db_name, final String tbl_name,
final Partition new_part)
throws InvalidOperationException, MetaException, TException {
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
index 75e4180..f839ee7 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
@@ -1368,6 +1368,12 @@ public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable {
}
@Override
+ public PartitionValuesResponse listPartitionValues(PartitionValuesRequest request)
+ throws MetaException, TException, NoSuchObjectException {
+ return client.get_partition_values(request);
+ }
+
+ @Override
public Partition getPartitionWithAuthInfo(String db_name, String tbl_name,
List<String> part_vals, String user_name, List<String> group_names)
throws MetaException, UnknownTableException, NoSuchObjectException,
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
index 4d251d1..a08fc72 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
@@ -26,7 +26,6 @@ import java.util.Map;
import java.util.Map.Entry;
import org.apache.hadoop.hive.common.ObjectPair;
-import org.apache.hadoop.hive.common.StatsSetupConst;
import org.apache.hadoop.hive.common.ValidTxnList;
import org.apache.hadoop.hive.common.classification.InterfaceAudience;
import org.apache.hadoop.hive.common.classification.InterfaceAudience.Public;
@@ -81,6 +80,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
@@ -587,6 +588,9 @@ public interface IMetaStoreClient {
List<String> part_vals, short max_parts)
throws MetaException, TException, NoSuchObjectException;
+ public PartitionValuesResponse listPartitionValues(PartitionValuesRequest request)
+ throws MetaException, TException, NoSuchObjectException;
+
/**
* Get number of partitions matching specified filter
* @param dbName the database name
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index 3053dcb..7ab98ef 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -103,6 +103,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Order;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesRow;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -2313,6 +2315,250 @@ public class ObjectStore implements RawStore, Configurable {
return pns;
}
+ private String extractPartitionKey(FieldSchema key, List<FieldSchema> pkeys) {
+ StringBuilder buffer = new StringBuilder(256);
+
+ assert pkeys.size() >= 1;
+
+ String partKey = "/" + key.getName() + "=";
+
+ // Table is partitioned by single key
+ if (pkeys.size() == 1 && (pkeys.get(0).getName().matches(key.getName()))) {
+ buffer.append("partitionName.substring(partitionName.indexOf(\"")
+ .append(key.getName()).append("=\") + ").append(key.getName().length() + 1)
+ .append(")");
+
+ // First partition key - anything between key= and first /
+ } else if ((pkeys.get(0).getName().matches(key.getName()))) {
+
+ buffer.append("partitionName.substring(partitionName.indexOf(\"")
+ .append(key.getName()).append("=\") + ").append(key.getName().length() + 1).append(", ")
+ .append("partitionName.indexOf(\"/\")")
+ .append(")");
+
+ // Last partition key - anything between /key= and end
+ } else if ((pkeys.get(pkeys.size() - 1).getName().matches(key.getName()))) {
+ buffer.append("partitionName.substring(partitionName.indexOf(\"")
+ .append(partKey).append("\") + ").append(partKey.length())
+ .append(")");
+
+ // Intermediate key - anything between /key= and the following /
+ } else {
+
+ buffer.append("partitionName.substring(partitionName.indexOf(\"")
+ .append(partKey).append("\") + ").append(partKey.length()).append(", ")
+ .append("partitionName.indexOf(\"/\", partitionName.indexOf(\"").append(partKey)
+ .append("\") + 1))");
+ }
+ LOG.info("Query for Key:" + key.getName() + " is :" + buffer);
+ return buffer.toString();
+ }
+
+ @Override
+ public PartitionValuesResponse listPartitionValues(String dbName, String tableName, List<FieldSchema> cols,
+ boolean applyDistinct, String filter, boolean ascending,
+ List<FieldSchema> order, long maxParts) throws MetaException {
+
+ dbName = dbName.toLowerCase().trim();
+ tableName = tableName.toLowerCase().trim();
+ try {
+ if (filter == null || filter.isEmpty()) {
+ PartitionValuesResponse response =
+ getDistinctValuesForPartitionsNoTxn(dbName, tableName, cols, applyDistinct, ascending, maxParts);
+ LOG.info("Number of records fetched: " + response.getPartitionValues().size());
+ return response;
+ } else {
+ PartitionValuesResponse response =
+ extractPartitionNamesByFilter(dbName, tableName, filter, cols, ascending, applyDistinct, maxParts);
+ if (response != null && response.getPartitionValues() != null) {
+ LOG.info("Number of records fetched with filter: " + response.getPartitionValues().size());
+ }
+ return response;
+ }
+ } catch (Exception t) {
+ LOG.error("Exception in ORM", t);
+ throw new MetaException("Error retrieving partition values: " + t);
+ } finally {
+ }
+ }
+
+ private PartitionValuesResponse extractPartitionNamesByFilter(String dbName, String tableName, String filter,
+ List<FieldSchema> cols, boolean ascending, boolean applyDistinct, long maxParts)
+ throws MetaException, NoSuchObjectException {
+
+ LOG.info("Database: " + dbName + " Table:" + tableName + " filter\"" + filter + "\" cols:" + cols);
+ List<String> partitionResults = new ArrayList<String>();
+ List<String> partitionNames = null;
+ List<Partition> partitions = null;
+ Table tbl = getTable(dbName, tableName);
+ try {
+ // Get partitions by name - ascending or descending
+ partitionNames = getPartitionNamesByFilter(dbName, tableName, filter, ascending, maxParts);
+ } catch (MetaException e) {
+ LOG.warn("Querying by partition names failed, trying out with partition objects, filter:" + filter);
+ }
+
+ if (partitionNames == null) {
+ partitions = getPartitionsByFilter(dbName, tableName, filter, (short) maxParts);
+ }
+
+ if (partitions != null) {
+ partitionNames = new ArrayList<String>(partitions.size());
+ for (Partition partition : partitions) {
+ // Check for NULL's just to be safe
+ if (tbl.getPartitionKeys() != null && partition.getValues() != null) {
+ partitionNames.add(Warehouse.makePartName(tbl.getPartitionKeys(), partition.getValues()));
+ }
+ }
+ }
+
+ if (partitionNames == null && partitions == null) {
+ throw new MetaException("Cannot obtain list of partitions by filter:\"" + filter +
+ "\" for " + dbName + ":" + tableName);
+ }
+
+ if (!ascending) {
+ Collections.sort(partitionNames, Collections.reverseOrder());
+ }
+
+ // Return proper response
+ PartitionValuesResponse response = new PartitionValuesResponse();
+ response.setPartitionValues(new ArrayList<PartitionValuesRow>(partitionNames.size()));
+ LOG.info("Converting responses to Partition values for items:" + partitionNames.size());
+ for (String partName : partitionNames) {
+ ArrayList<String> vals = new ArrayList<String>(tbl.getPartitionKeys().size());
+ for (FieldSchema key : tbl.getPartitionKeys()) {
+ vals.add(null);
+ }
+ PartitionValuesRow row = new PartitionValuesRow();
+ Warehouse.makeValsFromName(partName, vals);
+ for (String value : vals) {
+ row.addToRow(value);
+ }
+ response.addToPartitionValues(row);
+ }
+ return response;
+ }
+
+ private List<String> getPartitionNamesByFilter(String dbName, String tableName,
+ String filter, boolean ascending, long maxParts)
+ throws MetaException {
+
+ boolean success = false;
+ List<String> partNames = new ArrayList<String>();
+ try {
+ openTransaction();
+ LOG.debug("Executing getPartitionNamesByFilter");
+ dbName = dbName.toLowerCase();
+ tableName = tableName.toLowerCase();
+
+ MTable mtable = getMTable(dbName, tableName);
+ if( mtable == null ) {
+ // To be consistent with the behavior of listPartitionNames, if the
+ // table or db does not exist, we return an empty list
+ return partNames;
+ }
+ Map<String, Object> params = new HashMap<String, Object>();
+ String queryFilterString = makeQueryFilterString(dbName, mtable, filter, params);
+ Query query = pm.newQuery(
+ "select partitionName from org.apache.hadoop.hive.metastore.model.MPartition "
+ + "where " + queryFilterString);
+
+ if (maxParts >= 0) {
+ //User specified a row limit, set it on the Query
+ query.setRange(0, maxParts);
+ }
+
+ LOG.debug("Filter specified is " + filter + "," +
+ " JDOQL filter is " + queryFilterString);
+ LOG.debug("Parms is " + params);
+
+ String parameterDeclaration = makeParameterDeclarationStringObj(params);
+ query.declareParameters(parameterDeclaration);
+ if (ascending) {
+ query.setOrdering("partitionName ascending");
+ } else {
+ query.setOrdering("partitionName descending");
+ }
+ query.setResult("partitionName");
+
+ Collection names = (Collection) query.executeWithMap(params);
+ partNames = new ArrayList<String>();
+ for (Iterator i = names.iterator(); i.hasNext();) {
+ partNames.add((String) i.next());
+ }
+
+ LOG.debug("Done executing query for getPartitionNamesByFilter");
+ success = commitTransaction();
+ LOG.debug("Done retrieving all objects for getPartitionNamesByFilter, size:" + partNames.size());
+ query.closeAll();
+ } finally {
+ if (!success) {
+ rollbackTransaction();
+ }
+ }
+ return partNames;
+ }
+
+ private PartitionValuesResponse getDistinctValuesForPartitionsNoTxn(String dbName, String tableName, List<FieldSchema> cols,
+ boolean applyDistinct, boolean ascending, long maxParts)
+ throws MetaException {
+
+ try {
+ openTransaction();
+ Query q = pm.newQuery("select partitionName from org.apache.hadoop.hive.metastore.model.MPartition "
+ + "where table.database.name == t1 && table.tableName == t2 ");
+ q.declareParameters("java.lang.String t1, java.lang.String t2");
+
+ // TODO: Ordering seems to affect the distinctness, needs checking, disabling.
+/*
+ if (ascending) {
+ q.setOrdering("partitionName ascending");
+ } else {
+ q.setOrdering("partitionName descending");
+ }
+*/
+ if (maxParts > 0) {
+ q.setRange(0, maxParts);
+ }
+ StringBuilder partValuesSelect = new StringBuilder(256);
+ if (applyDistinct) {
+ partValuesSelect.append("DISTINCT ");
+ }
+ List<FieldSchema> partitionKeys = getTable(dbName, tableName).getPartitionKeys();
+ for (FieldSchema key : cols) {
+ partValuesSelect.append(extractPartitionKey(key, partitionKeys)).append(", ");
+ }
+ partValuesSelect.setLength(partValuesSelect.length() - 2);
+ LOG.info("Columns to be selected from Partitions: " + partValuesSelect);
+ q.setResult(partValuesSelect.toString());
+
+ PartitionValuesResponse response = new PartitionValuesResponse();
+ response.setPartitionValues(new ArrayList<PartitionValuesRow>());
+ if (cols.size() > 1) {
+ List<Object[]> results = (List<Object[]>) q.execute(dbName, tableName);
+ for (Object[] row : results) {
+ PartitionValuesRow rowResponse = new PartitionValuesRow();
+ for (Object columnValue : row) {
+ rowResponse.addToRow((String) columnValue);
+ }
+ response.addToPartitionValues(rowResponse);
+ }
+ } else {
+ List<Object> results = (List<Object>) q.execute(dbName, tableName);
+ for (Object row : results) {
+ PartitionValuesRow rowResponse = new PartitionValuesRow();
+ rowResponse.addToRow((String) row);
+ response.addToPartitionValues(rowResponse);
+ }
+ }
+ q.closeAll();
+ return response;
+ } finally {
+ commitTransaction();
+ }
+ }
+
private List<String> getPartitionNamesNoTxn(String dbName, String tableName, short max) {
List<String> pns = new ArrayList<String>();
dbName = HiveStringUtils.normalizeIdentifier(dbName);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
index 71982a0..2bc4d99 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
@@ -28,12 +28,12 @@ import java.util.Map;
import org.apache.hadoop.conf.Configurable;
import org.apache.hadoop.hive.common.classification.InterfaceStability;
-import org.apache.hadoop.hive.metastore.TableType;
import org.apache.hadoop.hive.metastore.api.AggrStats;
import org.apache.hadoop.hive.metastore.api.ColumnStatistics;
import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj;
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.Database;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.FileMetadataExprType;
import org.apache.hadoop.hive.metastore.api.Function;
import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
@@ -50,6 +50,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -202,6 +203,10 @@ public interface RawStore extends Configurable {
public abstract List<String> listPartitionNames(String db_name,
String tbl_name, short max_parts) throws MetaException;
+ public abstract PartitionValuesResponse listPartitionValues(String db_name, String tbl_name,
+ List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending,
+ List<FieldSchema> order, long maxParts) throws MetaException;
+
public abstract List<String> listPartitionNamesByFilter(String db_name,
String tbl_name, String filter, short max_parts) throws MetaException;
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
index 3ba81ce..7939bfe 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
@@ -50,6 +50,7 @@ import org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc;
import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj;
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.Database;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.FileMetadataExprType;
import org.apache.hadoop.hive.metastore.api.Function;
import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
@@ -66,6 +67,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -935,6 +937,13 @@ public class CachedStore implements RawStore, Configurable {
}
@Override
+ public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List<FieldSchema> cols,
+ boolean applyDistinct, String filter, boolean ascending,
+ List<FieldSchema> order, long maxParts) throws MetaException {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public List<String> listPartitionNamesByFilter(String db_name,
String tbl_name, String filter, short max_parts) throws MetaException {
// TODO Translate filter -> expr
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java
----------------------------------------------------------------------
diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java
index 4db203d..a75dbb0 100644
--- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java
+++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java
@@ -26,12 +26,12 @@ import java.util.Map;
import org.apache.hadoop.conf.Configurable;
import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.hive.metastore.TableType;
import org.apache.hadoop.hive.metastore.api.AggrStats;
import org.apache.hadoop.hive.metastore.api.ColumnStatistics;
import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj;
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.Database;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.FileMetadataExprType;
import org.apache.hadoop.hive.metastore.api.Function;
import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
@@ -48,6 +48,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -268,6 +269,11 @@ public class DummyRawStoreControlledCommit implements RawStore, Configurable {
}
@Override
+ public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<FieldSchema> order, long maxParts) throws MetaException {
+ return null;
+ }
+
+ @Override
public List<String> listPartitionNamesByFilter(String dbName, String tblName,
String filter, short maxParts) throws MetaException {
return objectStore.listPartitionNamesByFilter(dbName, tblName, filter, maxParts);
http://git-wip-us.apache.org/repos/asf/hive/blob/9a149843/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java
----------------------------------------------------------------------
diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java
index fb16cfc..bbb4bf1 100644
--- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java
+++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java
@@ -27,12 +27,12 @@ import junit.framework.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.conf.HiveConf;
-import org.apache.hadoop.hive.metastore.TableType;
import org.apache.hadoop.hive.metastore.api.AggrStats;
import org.apache.hadoop.hive.metastore.api.ColumnStatistics;
import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj;
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.Database;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
import org.apache.hadoop.hive.metastore.api.FileMetadataExprType;
import org.apache.hadoop.hive.metastore.api.Function;
import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
@@ -49,6 +49,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest;
import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse;
import org.apache.hadoop.hive.metastore.api.Partition;
import org.apache.hadoop.hive.metastore.api.PartitionEventType;
+import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;
import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet;
import org.apache.hadoop.hive.metastore.api.PrincipalType;
import org.apache.hadoop.hive.metastore.api.PrivilegeBag;
@@ -276,6 +277,11 @@ public class DummyRawStoreForJdoConnection implements RawStore {
}
@Override
+ public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<FieldSchema> order, long maxParts) throws MetaException {
+ return null;
+ }
+
+ @Override
public List<String> listPartitionNamesByFilter(String db_name, String tbl_name, String filter,
short max_parts) throws MetaException {