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

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(ID_FIELD_DESC);
      oprot.writeI64(struct.id);
      oprot.writeFieldEnd();
      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.writeString(struct.properties);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetToomanyaborts()) {
        oprot.writeFieldBegin(TOOMANYABORTS_FIELD_DESC);
        oprot.writeBool(struct.toomanyaborts);
        oprot.writeFieldEnd();
      }
      if (struct.state != null) {
        if (struct.isSetState()) {
          oprot.writeFieldBegin(STATE_FIELD_DESC);
          oprot.writeString(struct.state);
          oprot.writeFieldEnd();
        }
      }
      if (struct.workerId != null) {
        if (struct.isSetWorkerId()) {
          oprot.writeFieldBegin(WORKER_ID_FIELD_DESC);
          oprot.writeString(struct.workerId);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetStart()) {
        oprot.writeFieldBegin(START_FIELD_DESC);
        oprot.writeI64(struct.start);
        oprot.writeFieldEnd();
      }
      if (struct.isSetHighestWriteId()) {
        oprot.writeFieldBegin(HIGHEST_WRITE_ID_FIELD_DESC);
        oprot.writeI64(struct.highestWriteId);
        oprot.writeFieldEnd();
      }
      if (struct.errorMessage != null) {
        if (struct.isSetErrorMessage()) {
          oprot.writeFieldBegin(ERROR_MESSAGE_FIELD_DESC);
          oprot.writeString(struct.errorMessage);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetHasoldabort()) {
        oprot.writeFieldBegin(HASOLDABORT_FIELD_DESC);
        oprot.writeBool(struct.hasoldabort);
        oprot.writeFieldEnd();
      }
      if (struct.isSetEnqueueTime()) {
        oprot.writeFieldBegin(ENQUEUE_TIME_FIELD_DESC);
        oprot.writeI64(struct.enqueueTime);
        oprot.writeFieldEnd();
      }
      if (struct.isSetRetryRetention()) {
        oprot.writeFieldBegin(RETRY_RETENTION_FIELD_DESC);
        oprot.writeI64(struct.retryRetention);
        oprot.writeFieldEnd();
      }
      if (struct.poolname != null) {
        if (struct.isSetPoolname()) {
          oprot.writeFieldBegin(POOLNAME_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/CompactionInfoStruct.java