Example #1
0
 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('TRegionInfo')
   if self.startKey != None:
     oprot.writeFieldBegin('startKey', TType.STRING, 1)
     oprot.writeString(self.startKey)
     oprot.writeFieldEnd()
   if self.endKey != None:
     oprot.writeFieldBegin('endKey', TType.STRING, 2)
     oprot.writeString(self.endKey)
     oprot.writeFieldEnd()
   if self.id != None:
     oprot.writeFieldBegin('id', TType.I64, 3)
     oprot.writeI64(self.id)
     oprot.writeFieldEnd()
   if self.name != None:
     oprot.writeFieldBegin('name', TType.STRING, 4)
     oprot.writeString(self.name)
     oprot.writeFieldEnd()
   if self.version != None:
     oprot.writeFieldBegin('version', TType.BYTE, 5)
     oprot.writeByte(self.version)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #2
0
 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('AlreadyExists')
   if self.message != None:
     oprot.writeFieldBegin('message', TType.STRING, 1)
     oprot.writeString(self.message)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #3
0
 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('TCell')
   if self.value != None:
     oprot.writeFieldBegin('value', TType.STRING, 1)
     oprot.writeString(self.value)
     oprot.writeFieldEnd()
   if self.timestamp != None:
     oprot.writeFieldBegin('timestamp', TType.I64, 2)
     oprot.writeI64(self.timestamp)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #4
0
 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('ColumnDescriptor')
   if self.name != None:
     oprot.writeFieldBegin('name', TType.STRING, 1)
     oprot.writeString(self.name)
     oprot.writeFieldEnd()
   if self.maxVersions != None:
     oprot.writeFieldBegin('maxVersions', TType.I32, 2)
     oprot.writeI32(self.maxVersions)
     oprot.writeFieldEnd()
   if self.compression != None:
     oprot.writeFieldBegin('compression', TType.STRING, 3)
     oprot.writeString(self.compression)
     oprot.writeFieldEnd()
   if self.inMemory != None:
     oprot.writeFieldBegin('inMemory', TType.BOOL, 4)
     oprot.writeBool(self.inMemory)
     oprot.writeFieldEnd()
   if self.bloomFilterType != None:
     oprot.writeFieldBegin('bloomFilterType', TType.STRING, 5)
     oprot.writeString(self.bloomFilterType)
     oprot.writeFieldEnd()
   if self.bloomFilterVectorSize != None:
     oprot.writeFieldBegin('bloomFilterVectorSize', TType.I32, 6)
     oprot.writeI32(self.bloomFilterVectorSize)
     oprot.writeFieldEnd()
   if self.bloomFilterNbHashes != None:
     oprot.writeFieldBegin('bloomFilterNbHashes', TType.I32, 7)
     oprot.writeI32(self.bloomFilterNbHashes)
     oprot.writeFieldEnd()
   if self.blockCacheEnabled != None:
     oprot.writeFieldBegin('blockCacheEnabled', TType.BOOL, 8)
     oprot.writeBool(self.blockCacheEnabled)
     oprot.writeFieldEnd()
   if self.timeToLive != None:
     oprot.writeFieldBegin('timeToLive', TType.I32, 9)
     oprot.writeI32(self.timeToLive)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #5
0
 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('BatchMutation')
   if self.row != None:
     oprot.writeFieldBegin('row', TType.STRING, 1)
     oprot.writeString(self.row)
     oprot.writeFieldEnd()
   if self.mutations != None:
     oprot.writeFieldBegin('mutations', TType.LIST, 2)
     oprot.writeListBegin(TType.STRUCT, len(self.mutations))
     for iter6 in self.mutations:
       iter6.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #6
0
 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('TRowResult')
   if self.row != None:
     oprot.writeFieldBegin('row', TType.STRING, 1)
     oprot.writeString(self.row)
     oprot.writeFieldEnd()
   if self.columns != None:
     oprot.writeFieldBegin('columns', TType.MAP, 2)
     oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.columns))
     for kiter14,viter15 in self.columns.items():
       oprot.writeString(kiter14)
       viter15.write(oprot)
     oprot.writeMapEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Example #7
0
 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('Mutation')
   if self.isDelete != None:
     oprot.writeFieldBegin('isDelete', TType.BOOL, 1)
     oprot.writeBool(self.isDelete)
     oprot.writeFieldEnd()
   if self.column != None:
     oprot.writeFieldBegin('column', TType.STRING, 2)
     oprot.writeString(self.column)
     oprot.writeFieldEnd()
   if self.value != None:
     oprot.writeFieldBegin('value', TType.STRING, 3)
     oprot.writeString(self.value)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return