public int getPosition(String internalName) {
    int pos = -1;

    for (ColumnInfo var : rowSchema.getSignature()) {
      ++pos;
      if (var.getInternalName().equals(internalName)) {
        return pos;
      }
    }

    return -1;
  }
Get a list of aliases for non-hidden columns
@param max the maximum number of columns to return
@return a list of non-hidden column names no greater in size than max
ql/src/java/org/apache/hadoop/hive/ql/parse/RowResolver.java