public static class HiveSchemaHelper.PostgresCommandParser extends Object
HiveSchemaHelper.NestedScriptParser.CommandType| Modifier and Type | Field and Description |
|---|---|
static String |
POSTGRES_SKIP_STANDARD_STRINGS_DBOPT |
static String |
POSTGRES_STANDARD_STRINGS_OPT |
DEFAULT_DELIMITER, DEFAULT_QUOTE| Constructor and Description |
|---|
PostgresCommandParser(String dbOpts,
String msUsername,
String msPassword,
org.apache.hadoop.conf.Configuration conf,
boolean usingSqlLine) |
| Modifier and Type | Method and Description |
|---|---|
String |
getScriptName(String dbCommand)
Parse the DB specific nesting format and extract the inner script name if any
|
boolean |
isNestedScript(String dbCommand)
Find if the given command is a nested script execution
|
boolean |
isNonExecCommand(String dbCommand)
Find if the given command should not be passed to DB
|
boolean |
needsQuotedIdentifier()
Does the DB required table/column names quoted
|
public static final String POSTGRES_STANDARD_STRINGS_OPT
public static final String POSTGRES_SKIP_STANDARD_STRINGS_DBOPT
public String getScriptName(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParserdbCommand - command from parent scriptIllegalFormatExceptionIllegalArgumentExceptionpublic boolean isNestedScript(String dbCommand)
HiveSchemaHelper.NestedScriptParserpublic boolean needsQuotedIdentifier()
HiveSchemaHelper.NestedScriptParserneedsQuotedIdentifier in interface HiveSchemaHelper.NestedScriptParserpublic boolean isNonExecCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParserisNonExecCommand in interface HiveSchemaHelper.NestedScriptParserCopyright © 2019 The Apache Software Foundation. All Rights Reserved.