org.apache.hadoop.hive.ql.metadata.formatting
Class MetaDataFormatUtils

java.lang.Object
  extended by org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatUtils

public final class MetaDataFormatUtils
extends Object

This class provides methods to format table and index information.


Field Summary
static String FIELD_DELIM
           
static String LINE_DELIM
           
 
Method Summary
static String displayColsUnformatted(List<FieldSchema> cols)
           
static String getAllColumnsInformation(Index index)
           
static String getAllColumnsInformation(List<FieldSchema> cols)
           
static String getAllColumnsInformation(List<FieldSchema> cols, List<FieldSchema> partCols)
           
static String[] getColumnsHeader()
           
static String getIndexColumnsHeader()
           
static String getPartitionInformation(Partition part)
           
static String getTableInformation(Table table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_DELIM

public static final String FIELD_DELIM
See Also:
Constant Field Values

LINE_DELIM

public static final String LINE_DELIM
See Also:
Constant Field Values
Method Detail

getAllColumnsInformation

public static String getAllColumnsInformation(List<FieldSchema> cols)

getAllColumnsInformation

public static String getAllColumnsInformation(List<FieldSchema> cols,
                                              List<FieldSchema> partCols)

getAllColumnsInformation

public static String getAllColumnsInformation(Index index)

displayColsUnformatted

public static String displayColsUnformatted(List<FieldSchema> cols)

getPartitionInformation

public static String getPartitionInformation(Partition part)

getTableInformation

public static String getTableInformation(Table table)

getColumnsHeader

public static String[] getColumnsHeader()

getIndexColumnsHeader

public static String getIndexColumnsHeader()


Copyright © 2011 The Apache Software Foundation