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 |
DEFAUTL_DELIMITER
Constructor and Description |
---|
HiveSchemaHelper.PostgresCommandParser(String dbOpts,
String msUsername,
String msPassword,
HiveConf hiveConf) |
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 String POSTGRES_STANDARD_STRINGS_OPT
public static String POSTGRES_SKIP_STANDARD_STRINGS_DBOPT
public String getScriptName(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParser
dbCommand
- command from parent scriptIllegalFormatException
IllegalArgumentException
public boolean isNestedScript(String dbCommand)
HiveSchemaHelper.NestedScriptParser
public boolean needsQuotedIdentifier()
HiveSchemaHelper.NestedScriptParser
needsQuotedIdentifier
in interface HiveSchemaHelper.NestedScriptParser
public boolean isNonExecCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParser
isNonExecCommand
in interface HiveSchemaHelper.NestedScriptParser
Copyright © 2017 The Apache Software Foundation. All rights reserved.