|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaDataFormatter
Interface to format table and index information. We can format it for human readability (lines of text) or for machine readability (json).
Field Summary | |
---|---|
static int |
CONFLICT
Conflict error code. |
static int |
ERROR
Generic error code. |
static int |
MISSING
Missing error code. |
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 out,
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 out,
String database,
String comment,
String location,
Map<String,String> params)
Describe a database. |
void |
showDatabases(DataOutputStream out,
List<String> databases)
Show the databases |
void |
showTablePartitons(DataOutputStream out,
List<String> parts)
Show the table partitions. |
void |
showTables(DataOutputStream out,
Set<String> tables)
Show a list of tables. |
void |
showTableStatus(DataOutputStream out,
Hive db,
HiveConf conf,
List<Table> tbls,
Map<String,String> part,
Partition par)
Show the table status. |
Field Detail |
---|
static final int ERROR
static final int MISSING
static final int CONFLICT
Method Detail |
---|
void error(OutputStream out, String msg, int errorCode) throws HiveException
HiveException
void logWarn(OutputStream out, String msg, int errorCode) throws HiveException
HiveException
void logInfo(OutputStream out, String msg, int errorCode) throws HiveException
HiveException
void consoleError(SessionState.LogHelper console, String msg, int errorCode)
void consoleError(SessionState.LogHelper console, String msg, String detail, int errorCode)
void showTables(DataOutputStream out, Set<String> tables) throws HiveException
HiveException
void describeTable(DataOutputStream out, String colPath, String tableName, Table tbl, Partition part, List<FieldSchema> cols, boolean isFormatted, boolean isExt) throws HiveException
HiveException
void showTableStatus(DataOutputStream out, Hive db, HiveConf conf, List<Table> tbls, Map<String,String> part, Partition par) throws HiveException
HiveException
void showTablePartitons(DataOutputStream out, List<String> parts) throws HiveException
HiveException
void showDatabases(DataOutputStream out, List<String> databases) throws HiveException
HiveException
void showDatabaseDescription(DataOutputStream out, String database, String comment, String location, Map<String,String> params) throws HiveException
HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |