public static class HiveSchemaHelper.MySqlCommandParser extends Object
HiveSchemaHelper.NestedScriptParser.CommandTypeDEFAULT_DELIMITER, DEFAULT_QUOTE| Constructor and Description |
|---|
MySqlCommandParser(String dbOpts,
String msUsername,
String msPassword,
org.apache.hadoop.conf.Configuration conf,
boolean usingSqlLine) |
| Modifier and Type | Method and Description |
|---|---|
String |
cleanseCommand(String dbCommand)
Clear any client specific tags
|
String |
getDelimiter()
Get the SQL statement delimiter
|
String |
getQuoteCharacter()
Get the SQL indentifier quotation character
|
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 |
isPartialCommand(String dbCommand)
Find the type of given command
|
public boolean isPartialCommand(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParserisPartialCommand in interface HiveSchemaHelper.NestedScriptParserIllegalArgumentExceptionpublic String getScriptName(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParserdbCommand - command from parent scriptIllegalFormatExceptionIllegalArgumentExceptionpublic boolean isNestedScript(String dbCommand)
HiveSchemaHelper.NestedScriptParserpublic String getDelimiter()
HiveSchemaHelper.NestedScriptParsergetDelimiter in interface HiveSchemaHelper.NestedScriptParserpublic String getQuoteCharacter()
HiveSchemaHelper.NestedScriptParsergetQuoteCharacter in interface HiveSchemaHelper.NestedScriptParserpublic boolean isNonExecCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParserisNonExecCommand in interface HiveSchemaHelper.NestedScriptParserpublic String cleanseCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParsercleanseCommand in interface HiveSchemaHelper.NestedScriptParserCopyright © 2019 The Apache Software Foundation. All Rights Reserved.