private void getTableMetaDataInformation(StringBuilder tableInfo, Table table, boolean isOutputPadded) {
    formatOutput("Database:", table.getDbName(), tableInfo);
    formatOutput("OwnerType:", (table.getOwnerType() != null) ? table.getOwnerType().name() : "null", tableInfo);
    formatOutput("Owner:", table.getOwner(), tableInfo);
    formatOutput("CreateTime:", formatDate(table.getTTable().getCreateTime()), tableInfo);
    formatOutput("LastAccessTime:", formatDate(table.getTTable().getLastAccessTime()), tableInfo);
    formatOutput("Retention:", Integer.toString(table.getRetention()), tableInfo);
    
    if (!table.isView()) {
      formatOutput("Location:", table.getDataLocation().toString(), tableInfo);
    }
    formatOutput("Table Type:", table.getTableType().name(), tableInfo);

    if (table.getParameters().size() > 0) {
      tableInfo.append("Table Parameters:").append(LINE_DELIM);
      displayAllParameters(table.getParameters(), tableInfo, false, isOutputPadded);
    }
  }
Formats DESC TABLE results to text format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/TextDescTableFormatter.java