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

    boolean this_present_partitionsSpec = true && this.isSetPartitionsSpec();
    boolean that_present_partitionsSpec = true && that.isSetPartitionsSpec();
    if (this_present_partitionsSpec || that_present_partitionsSpec) {
      if (!(this_present_partitionsSpec && that_present_partitionsSpec))
        return false;
      if (!this.partitionsSpec.equals(that.partitionsSpec))
        return false;
    }

    boolean this_present_hasUnknownPartitions = true;
    boolean that_present_hasUnknownPartitions = true;
    if (this_present_hasUnknownPartitions || that_present_hasUnknownPartitions) {
      if (!(this_present_hasUnknownPartitions && that_present_hasUnknownPartitions))
        return false;
      if (this.hasUnknownPartitions != that.hasUnknownPartitions)
        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/PartitionsSpecByExprResult.java