in cassandra-thrift/v11/Cassandra.py [0:0]
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.MAP:
self.mutation_map = {}
(_ktype236, _vtype237, _size235 ) = iprot.readMapBegin()
for _i239 in range(_size235):
_key240 = iprot.readString();
_val241 = {}
(_ktype243, _vtype244, _size242 ) = iprot.readMapBegin()
for _i246 in range(_size242):
_key247 = iprot.readString();
_val248 = []
(_etype252, _size249) = iprot.readListBegin()
for _i253 in range(_size249):
_elem254 = Mutation()
_elem254.read(iprot)
_val248.append(_elem254)
iprot.readListEnd()
_val241[_key247] = _val248
iprot.readMapEnd()
self.mutation_map[_key240] = _val241
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I32:
self.consistency_level = iprot.readI32();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()