public class JsonMetaDataFormatter extends Object implements MetaDataFormatter
| Constructor and Description |
|---|
JsonMetaDataFormatter() |
| Modifier and Type | Method and Description |
|---|---|
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 |
showErrors(DataOutputStream out,
org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse response) |
public void error(OutputStream out, String msg, int errorCode, String sqlState) throws HiveException
error in interface MetaDataFormattersqlState - if null, will be ignoredHiveExceptionpublic void error(OutputStream out, String errorMessage, int errorCode, String sqlState, String errorDetail) throws HiveException
error in interface MetaDataFormattersqlState - if null, will be skipped in outputerrorDetail - usually string version of some Exception, if null, will be ignoredHiveExceptionpublic void showErrors(DataOutputStream out, org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse response) throws HiveException
showErrors in interface MetaDataFormatterHiveExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.