|
||||||||||
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.JsonMetaDataFormatter
public class JsonMetaDataFormatter
Format table and index information for machine readability using json.
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter |
---|
CONFLICT, ERROR, MISSING |
Constructor Summary | |
---|---|
JsonMetaDataFormatter()
|
Method Summary | |
---|---|
void |
asJson(OutputStream out,
Map<String,Object> data)
Convert the map to a JSON string. |
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)
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonMetaDataFormatter()
Method Detail |
---|
public void asJson(OutputStream out, Map<String,Object> data) throws HiveException
HiveException
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 out, String colPath, String tableName, Table tbl, Partition part, List<FieldSchema> cols, boolean isFormatted, boolean isExt) throws HiveException
describeTable
in interface MetaDataFormatter
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, 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 |