@Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetDbname()) ? 131071 : 524287);
    if (isSetDbname())
      hashCode = hashCode * 8191 + dbname.hashCode();

    hashCode = hashCode * 8191 + ((isSetTablename()) ? 131071 : 524287);
    if (isSetTablename())
      hashCode = hashCode * 8191 + tablename.hashCode();

    hashCode = hashCode * 8191 + ((isSetPartitionname()) ? 131071 : 524287);
    if (isSetPartitionname())
      hashCode = hashCode * 8191 + partitionname.hashCode();

    hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
    if (isSetType())
      hashCode = hashCode * 8191 + type.getValue();

    hashCode = hashCode * 8191 + ((isSetRunas()) ? 131071 : 524287);
    if (isSetRunas())
      hashCode = hashCode * 8191 + runas.hashCode();

    hashCode = hashCode * 8191 + ((isSetProperties()) ? 131071 : 524287);
    if (isSetProperties())
      hashCode = hashCode * 8191 + properties.hashCode();

    hashCode = hashCode * 8191 + ((isSetInitiatorId()) ? 131071 : 524287);
    if (isSetInitiatorId())
      hashCode = hashCode * 8191 + initiatorId.hashCode();

    hashCode = hashCode * 8191 + ((isSetInitiatorVersion()) ? 131071 : 524287);
    if (isSetInitiatorVersion())
      hashCode = hashCode * 8191 + initiatorVersion.hashCode();

    hashCode = hashCode * 8191 + ((isSetPoolName()) ? 131071 : 524287);
    if (isSetPoolName())
      hashCode = hashCode * 8191 + poolName.hashCode();

    hashCode = hashCode * 8191 + ((isSetNumberOfBuckets()) ? 131071 : 524287);
    if (isSetNumberOfBuckets())
      hashCode = hashCode * 8191 + numberOfBuckets;

    hashCode = hashCode * 8191 + ((isSetOrderByClause()) ? 131071 : 524287);
    if (isSetOrderByClause())
      hashCode = hashCode * 8191 + orderByClause.hashCode();

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