@Override
public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeString(struct.dbName);
oprot.writeString(struct.tblName);
oprot.writeBinary(struct.expr);
BitSet optionals = new BitSet();
if (struct.isSetDefaultPartitionName()) {
optionals.set(0);
}
if (struct.isSetMaxParts()) {