@Override
  public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(pathNames);
    boolean data_present = data == null;
    builder.append(data_present);
    if (data_present) {
      builder.append(data);
    }
    return builder.toHashCode();
  }
Creates a locking object for a table (when partition spec is not provided)
or a table partition
@param hiveDB    an object to communicate with the metastore
@param tableName the table to create the locking object on
@param partSpec  the spec of a partition to create the locking object on
@return  the locking object
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java