|
||||||||||
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).
Method Summary | |
---|---|
void |
describeTable(DataOutputStream out,
String colPath,
String tableName,
Table tbl,
Partition part,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols,
boolean isFormatted,
boolean isExt,
boolean isPretty,
boolean isOutputPadded)
Describe table. |
void |
error(OutputStream out,
String msg,
int errorCode,
String sqlState)
Write an error message. |
void |
error(OutputStream out,
String errorMessage,
int errorCode,
String sqlState,
String errorDetail)
|
void |
showDatabaseDescription(DataOutputStream out,
String database,
String comment,
String location,
String ownerName,
String ownerType,
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. |
Method Detail |
---|
void error(OutputStream out, String msg, int errorCode, String sqlState) throws HiveException
sqlState
- if null
, will be ignored
HiveException
void error(OutputStream out, String errorMessage, int errorCode, String sqlState, String errorDetail) throws HiveException
sqlState
- if null
, will be skipped in outputerrorDetail
- usually string version of some Exception, if null
, will be ignored
HiveException
void showTables(DataOutputStream out, Set<String> tables) throws HiveException
HiveException
void describeTable(DataOutputStream out, String colPath, String tableName, Table tbl, Partition part, List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols, boolean isFormatted, boolean isExt, boolean isPretty, boolean isOutputPadded) throws HiveException
out
- colPath
- tableName
- tbl
- part
- cols
- isFormatted
- - describe with formatted keywordisExt
- isPretty
- isOutputPadded
- - if true, add spacing and indentation
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, String ownerName, String ownerType, Map<String,String> params) throws HiveException
HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |