|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.metadata.formatting.JsonMetaDataFormatter
public class JsonMetaDataFormatter
Format table and index information for machine readability using json.
Constructor Summary | |
---|---|
JsonMetaDataFormatter()
|
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)
Show the description of a database |
void |
showDatabases(DataOutputStream out,
List<String> databases)
Show a list of 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonMetaDataFormatter()
Method Detail |
---|
public void error(OutputStream out, String msg, int errorCode, String sqlState) throws HiveException
error
in interface MetaDataFormatter
sqlState
- if null
, will be ignored
HiveException
public void error(OutputStream out, String errorMessage, int errorCode, String sqlState, String errorDetail) throws HiveException
error
in interface MetaDataFormatter
sqlState
- if null
, will be skipped in outputerrorDetail
- usually string version of some Exception, if null
, will be ignored
HiveException
public void showTables(DataOutputStream out, Set<String> tables) throws HiveException
showTables
in interface MetaDataFormatter
HiveException
public 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
describeTable
in interface MetaDataFormatter
isFormatted
- - describe with formatted keywordisOutputPadded
- - if true, add spacing and indentation
HiveException
public void showTableStatus(DataOutputStream out, 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 out, List<String> parts) throws HiveException
showTablePartitons
in interface MetaDataFormatter
HiveException
public void showDatabases(DataOutputStream out, List<String> databases) throws HiveException
showDatabases
in interface MetaDataFormatter
HiveException
public void showDatabaseDescription(DataOutputStream out, String database, String comment, String location, String ownerName, String ownerType, 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 |