private String getTableInformation(Table table, boolean isOutputPadded) {
    StringBuilder tableInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE);
    tableInfo.append(LINE_DELIM).append("# Detailed Table Information").append(LINE_DELIM);
    getTableMetaDataInformation(tableInfo, table, isOutputPadded);

    tableInfo.append(LINE_DELIM).append("# Storage Information").append(LINE_DELIM);
    getStorageDescriptorInfo(tableInfo, table, table.getTTable().getSd());

    if (table.isView() || table.isMaterializedView()) {
      String viewInfoTitle = "# " + (table.isView() ? "" : "Materialized ") + "View Information";
      tableInfo.append(LINE_DELIM).append(viewInfoTitle).append(LINE_DELIM);
      getViewInfo(tableInfo, table, isOutputPadded);
    }

    return tableInfo.toString();
  }
Formats DESC TABLE results to text format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/TextDescTableFormatter.java