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

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(id);

    hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287);
    if (isSetState())
      hashCode = hashCode * 8191 + state.getValue();

    hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287);
    if (isSetUser())
      hashCode = hashCode * 8191 + user.hashCode();

    hashCode = hashCode * 8191 + ((isSetHostname()) ? 131071 : 524287);
    if (isSetHostname())
      hashCode = hashCode * 8191 + hostname.hashCode();

    hashCode = hashCode * 8191 + ((isSetAgentInfo()) ? 131071 : 524287);
    if (isSetAgentInfo())
      hashCode = hashCode * 8191 + agentInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetHeartbeatCount()) ? 131071 : 524287);
    if (isSetHeartbeatCount())
      hashCode = hashCode * 8191 + heartbeatCount;

    hashCode = hashCode * 8191 + ((isSetMetaInfo()) ? 131071 : 524287);
    if (isSetMetaInfo())
      hashCode = hashCode * 8191 + metaInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetStartedTime()) ? 131071 : 524287);
    if (isSetStartedTime())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startedTime);

    hashCode = hashCode * 8191 + ((isSetLastHeartbeatTime()) ? 131071 : 524287);
    if (isSetLastHeartbeatTime())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(lastHeartbeatTime);

    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/TxnInfo.java