public void write(org.apache.thrift.protocol.TProtocol oprot, CompactionRequest struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.dbname != null) {
        oprot.writeFieldBegin(DBNAME_FIELD_DESC);
        oprot.writeString(struct.dbname);
        oprot.writeFieldEnd();
      }
      if (struct.tablename != null) {
        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
        oprot.writeString(struct.tablename);
        oprot.writeFieldEnd();
      }
      if (struct.partitionname != null) {
        if (struct.isSetPartitionname()) {
          oprot.writeFieldBegin(PARTITIONNAME_FIELD_DESC);
          oprot.writeString(struct.partitionname);
          oprot.writeFieldEnd();
        }
      }
      if (struct.type != null) {
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
        oprot.writeI32(struct.type.getValue());
        oprot.writeFieldEnd();
      }
      if (struct.runas != null) {
        if (struct.isSetRunas()) {
          oprot.writeFieldBegin(RUNAS_FIELD_DESC);
          oprot.writeString(struct.runas);
          oprot.writeFieldEnd();
        }
      }
      if (struct.properties != null) {
        if (struct.isSetProperties()) {
          oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size()));
            for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter928 : struct.properties.entrySet())
            {
              oprot.writeString(_iter928.getKey());
              oprot.writeString(_iter928.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.initiatorId != null) {
        if (struct.isSetInitiatorId()) {
          oprot.writeFieldBegin(INITIATOR_ID_FIELD_DESC);
          oprot.writeString(struct.initiatorId);
          oprot.writeFieldEnd();
        }
      }
      if (struct.initiatorVersion != null) {
        if (struct.isSetInitiatorVersion()) {
          oprot.writeFieldBegin(INITIATOR_VERSION_FIELD_DESC);
          oprot.writeString(struct.initiatorVersion);
          oprot.writeFieldEnd();
        }
      }
      if (struct.poolName != null) {
        if (struct.isSetPoolName()) {
          oprot.writeFieldBegin(POOL_NAME_FIELD_DESC);
          oprot.writeString(struct.poolName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetNumberOfBuckets()) {
        oprot.writeFieldBegin(NUMBER_OF_BUCKETS_FIELD_DESC);
        oprot.writeI32(struct.numberOfBuckets);
        oprot.writeFieldEnd();
      }
      if (struct.orderByClause != null) {
        if (struct.isSetOrderByClause()) {
          oprot.writeFieldBegin(ORDER_BY_CLAUSE_FIELD_DESC);
          oprot.writeString(struct.orderByClause);
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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