@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, CompactionInfoStruct struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI64(struct.id);
      oprot.writeString(struct.dbname);
      oprot.writeString(struct.tablename);
      oprot.writeI32(struct.type.getValue());
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetPartitionname()) {
        optionals.set(0);
      }
      if (struct.isSetRunas()) {
        optionals.set(1);
      }
      if (struct.isSetProperties()) {
        optionals.set(2);
      }
      if (struct.isSetToomanyaborts()) {
        optionals.set(3);
      }
      if (struct.isSetState()) {
        optionals.set(4);
      }
      if (struct.isSetWorkerId()) {
        optionals.set(5);
      }
      if (struct.isSetStart()) {
        optionals.set(6);
      }
      if (struct.isSetHighestWriteId()) {
        optionals.set(7);
      }
      if (struct.isSetErrorMessage()) {
        optionals.set(8);
      }
      if (struct.isSetHasoldabort()) {
        optionals.set(9);
      }
      if (struct.isSetEnqueueTime()) {
        optionals.set(10);
      }
      if (struct.isSetRetryRetention()) {
        optionals.set(11);
      }
      if (struct.isSetPoolname()) {
        optionals.set(12);
      }
      if (struct.isSetNumberOfBuckets()) {
        optionals.set(13);
      }
      if (struct.isSetOrderByClause()) {
        optionals.set(14);
      }
      oprot.writeBitSet(optionals, 15);
      if (struct.isSetPartitionname()) {
        oprot.writeString(struct.partitionname);
      }
      if (struct.isSetRunas()) {
        oprot.writeString(struct.runas);
      }
      if (struct.isSetProperties()) {
        oprot.writeString(struct.properties);
      }
      if (struct.isSetToomanyaborts()) {
        oprot.writeBool(struct.toomanyaborts);
      }
      if (struct.isSetState()) {
        oprot.writeString(struct.state);
      }
      if (struct.isSetWorkerId()) {
        oprot.writeString(struct.workerId);
      }
      if (struct.isSetStart()) {
        oprot.writeI64(struct.start);
      }
      if (struct.isSetHighestWriteId()) {
        oprot.writeI64(struct.highestWriteId);
      }
      if (struct.isSetErrorMessage()) {
        oprot.writeString(struct.errorMessage);
      }
      if (struct.isSetHasoldabort()) {
        oprot.writeBool(struct.hasoldabort);
      }
      if (struct.isSetEnqueueTime()) {
        oprot.writeI64(struct.enqueueTime);
      }
      if (struct.isSetRetryRetention()) {
        oprot.writeI64(struct.retryRetention);
      }
      if (struct.isSetPoolname()) {
        oprot.writeString(struct.poolname);
      }
      if (struct.isSetNumberOfBuckets()) {
        oprot.writeI32(struct.numberOfBuckets);
      }
      if (struct.isSetOrderByClause()) {
        oprot.writeString(struct.orderByClause);
      }
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java