|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.metadata.formatting.TextMetaDataFormatter
public class TextMetaDataFormatter
Format table and index information for human readability using simple lines of text.
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter |
---|
CONFLICT, ERROR, MISSING |
Constructor Summary | |
---|---|
TextMetaDataFormatter()
|
Method Summary | |
---|---|
void |
consoleError(SessionState.LogHelper console,
String msg,
int errorCode)
Write a console error message. |
void |
consoleError(SessionState.LogHelper console,
String msg,
String detail,
int errorCode)
Write a console error message. |
void |
describeTable(DataOutputStream outStream,
String colPath,
String tableName,
Table tbl,
Partition part,
List<FieldSchema> cols,
boolean isFormatted,
boolean isExt)
Describe table. |
void |
error(OutputStream out,
String msg,
int errorCode)
Write an error message. |
void |
logInfo(OutputStream out,
String msg,
int errorCode)
Write a log info message. |
void |
logWarn(OutputStream out,
String msg,
int errorCode)
Write a log warn message. |
void |
showDatabaseDescription(DataOutputStream outStream,
String database,
String comment,
String location,
Map<String,String> params)
Describe a database |
void |
showDatabases(DataOutputStream outStream,
List<String> databases)
Show the list of databases |
void |
showTablePartitons(DataOutputStream outStream,
List<String> parts)
Show the table partitions. |
void |
showTables(DataOutputStream out,
Set<String> tables)
Show a list of tables. |
void |
showTableStatus(DataOutputStream outStream,
Hive db,
HiveConf conf,
List<Table> tbls,
Map<String,String> part,
Partition par)
Show the table status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextMetaDataFormatter()
Method Detail |
---|
public void error(OutputStream out, String msg, int errorCode) throws HiveException
error
in interface MetaDataFormatter
HiveException
public void logWarn(OutputStream out, String msg, int errorCode) throws HiveException
logWarn
in interface MetaDataFormatter
HiveException
public void logInfo(OutputStream out, String msg, int errorCode) throws HiveException
logInfo
in interface MetaDataFormatter
HiveException
public void consoleError(SessionState.LogHelper console, String msg, int errorCode)
consoleError
in interface MetaDataFormatter
public void consoleError(SessionState.LogHelper console, String msg, String detail, int errorCode)
consoleError
in interface MetaDataFormatter
public void showTables(DataOutputStream out, Set<String> tables) throws HiveException
showTables
in interface MetaDataFormatter
HiveException
public void describeTable(DataOutputStream outStream, String colPath, String tableName, Table tbl, Partition part, List<FieldSchema> cols, boolean isFormatted, boolean isExt) throws HiveException
MetaDataFormatter
describeTable
in interface MetaDataFormatter
HiveException
public void showTableStatus(DataOutputStream outStream, Hive db, HiveConf conf, List<Table> tbls, Map<String,String> part, Partition par) throws HiveException
MetaDataFormatter
showTableStatus
in interface MetaDataFormatter
HiveException
public void showTablePartitons(DataOutputStream outStream, List<String> parts) throws HiveException
showTablePartitons
in interface MetaDataFormatter
HiveException
public void showDatabases(DataOutputStream outStream, List<String> databases) throws HiveException
showDatabases
in interface MetaDataFormatter
HiveException
public void showDatabaseDescription(DataOutputStream outStream, String database, String comment, String location, Map<String,String> params) throws HiveException
showDatabaseDescription
in interface MetaDataFormatter
HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |