private static class AddPartitionsResultTupleScheme extends TupleScheme<AddPartitionsResult> {
@Override
public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPartitions()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetPartitions()) {
{
oprot.writeI32(struct.partitions.size());
for (Partition _iter334 : struct.partitions)
{
_iter334.write(oprot);
}
}