private void getPartitionMetaDataInformation(StringBuilder tableInfo, Partition partition) {
    formatOutput("Partition Value:", partition.getValues().toString(), tableInfo);
    formatOutput("Database:", partition.getTPartition().getDbName(), tableInfo);
    formatOutput("Table:", partition.getTable().getTableName(), tableInfo);
    formatOutput("CreateTime:", formatDate(partition.getTPartition().getCreateTime()), tableInfo);
    formatOutput("LastAccessTime:", formatDate(partition.getTPartition().getLastAccessTime()), tableInfo);
    formatOutput("Location:", partition.getLocation(), tableInfo);

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