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

    hashCode = hashCode * 8191 + ((isSetCols()) ? 131071 : 524287);
    if (isSetCols())
      hashCode = hashCode * 8191 + cols.hashCode();

    hashCode = hashCode * 8191 + ((isSetLocation()) ? 131071 : 524287);
    if (isSetLocation())
      hashCode = hashCode * 8191 + location.hashCode();

    hashCode = hashCode * 8191 + ((isSetInputFormat()) ? 131071 : 524287);
    if (isSetInputFormat())
      hashCode = hashCode * 8191 + inputFormat.hashCode();

    hashCode = hashCode * 8191 + ((isSetOutputFormat()) ? 131071 : 524287);
    if (isSetOutputFormat())
      hashCode = hashCode * 8191 + outputFormat.hashCode();

    hashCode = hashCode * 8191 + ((compressed) ? 131071 : 524287);

    hashCode = hashCode * 8191 + numBuckets;

    hashCode = hashCode * 8191 + ((isSetSerdeInfo()) ? 131071 : 524287);
    if (isSetSerdeInfo())
      hashCode = hashCode * 8191 + serdeInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetBucketCols()) ? 131071 : 524287);
    if (isSetBucketCols())
      hashCode = hashCode * 8191 + bucketCols.hashCode();

    hashCode = hashCode * 8191 + ((isSetSortCols()) ? 131071 : 524287);
    if (isSetSortCols())
      hashCode = hashCode * 8191 + sortCols.hashCode();

    hashCode = hashCode * 8191 + ((isSetParameters()) ? 131071 : 524287);
    if (isSetParameters())
      hashCode = hashCode * 8191 + parameters.hashCode();

    hashCode = hashCode * 8191 + ((isSetSkewedInfo()) ? 131071 : 524287);
    if (isSetSkewedInfo())
      hashCode = hashCode * 8191 + skewedInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetStoredAsSubDirectories()) ? 131071 : 524287);
    if (isSetStoredAsSubDirectories())
      hashCode = hashCode * 8191 + ((storedAsSubDirectories) ? 131071 : 524287);

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