@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, CompactionRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      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.isSetInitiatorId()) {
        optionals.set(3);
      }
      if (struct.isSetInitiatorVersion()) {
        optionals.set(4);
      }
      if (struct.isSetPoolName()) {
        optionals.set(5);
      }
      if (struct.isSetNumberOfBuckets()) {
        optionals.set(6);
      }
      if (struct.isSetOrderByClause()) {
        optionals.set(7);
      }
      oprot.writeBitSet(optionals, 8);
      if (struct.isSetPartitionname()) {
        oprot.writeString(struct.partitionname);
      }
      if (struct.isSetRunas()) {
        oprot.writeString(struct.runas);
      }
      if (struct.isSetProperties()) {
        {
          oprot.writeI32(struct.properties.size());
          for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter929 : struct.properties.entrySet())
          {
            oprot.writeString(_iter929.getKey());
            oprot.writeString(_iter929.getValue());
          }
        }
      }
      if (struct.isSetInitiatorId()) {
        oprot.writeString(struct.initiatorId);
      }
      if (struct.isSetInitiatorVersion()) {
        oprot.writeString(struct.initiatorVersion);
      }
      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/CompactionRequest.java