private void getForeignKeysInformation(StringBuilder constraintsInfo, ForeignKeyInfo constraint) {
    formatOutput("Table:", constraint.getChildDatabaseName() + "." + constraint.getChildTableName(), constraintsInfo);
    Map<String, List<ForeignKeyCol>> foreignKeys = constraint.getForeignKeys();
    if (MapUtils.isNotEmpty(foreignKeys)) {
      for (Map.Entry<String, List<ForeignKeyCol>> entry : foreignKeys.entrySet()) {
        getForeignKeyRelInformation(constraintsInfo, entry.getKey(), entry.getValue());
      }
    }
  }
Formats DESC TABLE results to text format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/TextDescTableFormatter.java