private static class RowMutationTupleScheme extends TupleScheme<RowMutation> {
@Override
public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, RowMutation struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetTable()) {
optionals.set(0);
}
if (struct.isSetRowId()) {
optionals.set(1);
}
if (struct.isSetWal()) {
optionals.set(2);
}
if (struct.isSetRowMutationType()) {
optionals.set(3);
}
if (struct.isSetRecordMutations()) {
optionals.set(4);
}
if (struct.isSetWaitToBeVisible()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetTable()) {
oprot.writeString(struct.table);
}
if (struct.isSetRowId()) {
oprot.writeString(struct.rowId);
}
if (struct.isSetWal()) {
oprot.writeBool(struct.wal);
}
if (struct.isSetRowMutationType()) {
oprot.writeI32(struct.rowMutationType.getValue());
}
if (struct.isSetRecordMutations()) {
{
oprot.writeI32(struct.recordMutations.size());
for (RecordMutation _iter88 : struct.recordMutations)
{
_iter88.write(oprot);
}
}
}
if (struct.isSetWaitToBeVisible()) {
oprot.writeBool(struct.waitToBeVisible);
}
}