private List<FieldSchema> getColumnsByPattern() throws HiveException {
    List<FieldSchema> columns = getCols();
    Matcher matcher = getMatcher();
    return filterColumns(columns, matcher);
  }
Operation process of showing the columns.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/column/show/ShowColumnsOperation.java