in hbase-examples/src/main/python/thrift2/gen-py/hbase/ttypes.py [0:0]
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [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.row = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.columns = []
(_etype17, _size14) = iprot.readListBegin()
for _i18 in range(_size14):
_elem19 = TColumn()
_elem19.read(iprot)
self.columns.append(_elem19)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.timestamp = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.timeRange = TTimeRange()
self.timeRange.read(iprot)
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I32:
self.maxVersions = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.STRING:
self.filterString = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.MAP:
self.attributes = {}
(_ktype21, _vtype22, _size20) = iprot.readMapBegin()
for _i24 in range(_size20):
_key25 = iprot.readBinary()
_val26 = iprot.readBinary()
self.attributes[_key25] = _val26
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 8:
if ftype == TType.STRUCT:
self.authorizations = TAuthorization()
self.authorizations.read(iprot)
else:
iprot.skip(ftype)
elif fid == 9:
if ftype == TType.I32:
self.consistency = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 10:
if ftype == TType.I32:
self.targetReplicaId = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 11:
if ftype == TType.BOOL:
self.cacheBlocks = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 12:
if ftype == TType.I32:
self.storeLimit = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 13:
if ftype == TType.I32:
self.storeOffset = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 14:
if ftype == TType.BOOL:
self.existence_only = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 15:
if ftype == TType.STRING:
self.filterBytes = iprot.readBinary()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()