private static class TColumnTupleScheme extends TupleScheme<TColumn> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetColumnName()) {
optionals.set(0);
}
if (struct.isSetCell()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetColumnName()) {
oprot.writeBinary(struct.columnName);
}
if (struct.isSetCell()) {
struct.cell.write(oprot);
}
}