public boolean equals(CompactionInfoStruct that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_id = true;
    boolean that_present_id = true;
    if (this_present_id || that_present_id) {
      if (!(this_present_id && that_present_id))
        return false;
      if (this.id != that.id)
        return false;
    }

    boolean this_present_dbname = true && this.isSetDbname();
    boolean that_present_dbname = true && that.isSetDbname();
    if (this_present_dbname || that_present_dbname) {
      if (!(this_present_dbname && that_present_dbname))
        return false;
      if (!this.dbname.equals(that.dbname))
        return false;
    }

    boolean this_present_tablename = true && this.isSetTablename();
    boolean that_present_tablename = true && that.isSetTablename();
    if (this_present_tablename || that_present_tablename) {
      if (!(this_present_tablename && that_present_tablename))
        return false;
      if (!this.tablename.equals(that.tablename))
        return false;
    }

    boolean this_present_partitionname = true && this.isSetPartitionname();
    boolean that_present_partitionname = true && that.isSetPartitionname();
    if (this_present_partitionname || that_present_partitionname) {
      if (!(this_present_partitionname && that_present_partitionname))
        return false;
      if (!this.partitionname.equals(that.partitionname))
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_runas = true && this.isSetRunas();
    boolean that_present_runas = true && that.isSetRunas();
    if (this_present_runas || that_present_runas) {
      if (!(this_present_runas && that_present_runas))
        return false;
      if (!this.runas.equals(that.runas))
        return false;
    }

    boolean this_present_properties = true && this.isSetProperties();
    boolean that_present_properties = true && that.isSetProperties();
    if (this_present_properties || that_present_properties) {
      if (!(this_present_properties && that_present_properties))
        return false;
      if (!this.properties.equals(that.properties))
        return false;
    }

    boolean this_present_toomanyaborts = true && this.isSetToomanyaborts();
    boolean that_present_toomanyaborts = true && that.isSetToomanyaborts();
    if (this_present_toomanyaborts || that_present_toomanyaborts) {
      if (!(this_present_toomanyaborts && that_present_toomanyaborts))
        return false;
      if (this.toomanyaborts != that.toomanyaborts)
        return false;
    }

    boolean this_present_state = true && this.isSetState();
    boolean that_present_state = true && that.isSetState();
    if (this_present_state || that_present_state) {
      if (!(this_present_state && that_present_state))
        return false;
      if (!this.state.equals(that.state))
        return false;
    }

    boolean this_present_workerId = true && this.isSetWorkerId();
    boolean that_present_workerId = true && that.isSetWorkerId();
    if (this_present_workerId || that_present_workerId) {
      if (!(this_present_workerId && that_present_workerId))
        return false;
      if (!this.workerId.equals(that.workerId))
        return false;
    }

    boolean this_present_start = true && this.isSetStart();
    boolean that_present_start = true && that.isSetStart();
    if (this_present_start || that_present_start) {
      if (!(this_present_start && that_present_start))
        return false;
      if (this.start != that.start)
        return false;
    }

    boolean this_present_highestWriteId = true && this.isSetHighestWriteId();
    boolean that_present_highestWriteId = true && that.isSetHighestWriteId();
    if (this_present_highestWriteId || that_present_highestWriteId) {
      if (!(this_present_highestWriteId && that_present_highestWriteId))
        return false;
      if (this.highestWriteId != that.highestWriteId)
        return false;
    }

    boolean this_present_errorMessage = true && this.isSetErrorMessage();
    boolean that_present_errorMessage = true && that.isSetErrorMessage();
    if (this_present_errorMessage || that_present_errorMessage) {
      if (!(this_present_errorMessage && that_present_errorMessage))
        return false;
      if (!this.errorMessage.equals(that.errorMessage))
        return false;
    }

    boolean this_present_hasoldabort = true && this.isSetHasoldabort();
    boolean that_present_hasoldabort = true && that.isSetHasoldabort();
    if (this_present_hasoldabort || that_present_hasoldabort) {
      if (!(this_present_hasoldabort && that_present_hasoldabort))
        return false;
      if (this.hasoldabort != that.hasoldabort)
        return false;
    }

    boolean this_present_enqueueTime = true && this.isSetEnqueueTime();
    boolean that_present_enqueueTime = true && that.isSetEnqueueTime();
    if (this_present_enqueueTime || that_present_enqueueTime) {
      if (!(this_present_enqueueTime && that_present_enqueueTime))
        return false;
      if (this.enqueueTime != that.enqueueTime)
        return false;
    }

    boolean this_present_retryRetention = true && this.isSetRetryRetention();
    boolean that_present_retryRetention = true && that.isSetRetryRetention();
    if (this_present_retryRetention || that_present_retryRetention) {
      if (!(this_present_retryRetention && that_present_retryRetention))
        return false;
      if (this.retryRetention != that.retryRetention)
        return false;
    }

    boolean this_present_poolname = true && this.isSetPoolname();
    boolean that_present_poolname = true && that.isSetPoolname();
    if (this_present_poolname || that_present_poolname) {
      if (!(this_present_poolname && that_present_poolname))
        return false;
      if (!this.poolname.equals(that.poolname))
        return false;
    }

    boolean this_present_numberOfBuckets = true && this.isSetNumberOfBuckets();
    boolean that_present_numberOfBuckets = true && that.isSetNumberOfBuckets();
    if (this_present_numberOfBuckets || that_present_numberOfBuckets) {
      if (!(this_present_numberOfBuckets && that_present_numberOfBuckets))
        return false;
      if (this.numberOfBuckets != that.numberOfBuckets)
        return false;
    }

    boolean this_present_orderByClause = true && this.isSetOrderByClause();
    boolean that_present_orderByClause = true && that.isSetOrderByClause();
    if (this_present_orderByClause || that_present_orderByClause) {
      if (!(this_present_orderByClause && that_present_orderByClause))
        return false;
      if (!this.orderByClause.equals(that.orderByClause))
        return false;
    }

    return true;
  }
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