public final class MetaDataFormatUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_DELIM |
static String |
LINE_DELIM |
Modifier and Type | Method and Description |
---|---|
static String |
getAllColumnsInformation(Index index) |
static String |
getAllColumnsInformation(List<FieldSchema> cols,
boolean printHeader,
boolean isOutputPadded,
List<ColumnStatisticsObj> colStats)
Write formatted information about the given columns to a string
|
static String |
getAllColumnsInformation(List<FieldSchema> cols,
List<FieldSchema> partCols,
boolean printHeader,
boolean isOutputPadded,
boolean showPartColsSep)
Write formatted information about the given columns, including partition
columns to a string
|
static String[] |
getColumnsHeader(List<ColumnStatisticsObj> colStats) |
static MetaDataFormatter |
getFormatter(HiveConf conf) |
static String |
getIndexColumnsHeader() |
static String |
getPartitionInformation(Partition part) |
static String |
getTableInformation(Table table) |
public static final String FIELD_DELIM
public static final String LINE_DELIM
public static String getAllColumnsInformation(List<FieldSchema> cols, boolean printHeader, boolean isOutputPadded, List<ColumnStatisticsObj> colStats)
cols
- - list of columnsprintHeader
- - if header should be includedisOutputPadded
- - make it more human readable by setting indentation
with spaces. Turned off for use by HiveServer2colStats
- public static String getAllColumnsInformation(List<FieldSchema> cols, List<FieldSchema> partCols, boolean printHeader, boolean isOutputPadded, boolean showPartColsSep)
cols
- - list of columnspartCols
- - list of partition columnsprintHeader
- - if header should be includedisOutputPadded
- - make it more human readable by setting indentation
with spaces. Turned off for use by HiveServer2public static String[] getColumnsHeader(List<ColumnStatisticsObj> colStats)
public static String getIndexColumnsHeader()
public static MetaDataFormatter getFormatter(HiveConf conf)
Copyright © 2017 The Apache Software Foundation. All rights reserved.