public static class HiveSchemaHelper.MySqlCommandParser extends Object
HiveSchemaHelper.NestedScriptParser.CommandType
DEFAUTL_DELIMITER
Constructor and Description |
---|
HiveSchemaHelper.MySqlCommandParser(String dbOpts,
String msUsername,
String msPassword,
HiveConf hiveConf) |
Modifier and Type | Method and Description |
---|---|
String |
cleanseCommand(String dbCommand)
Clear any client specific tags
|
String |
getDelimiter()
Get the SQL statement delimiter
|
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.NestedScriptParser
isPartialCommand
in interface HiveSchemaHelper.NestedScriptParser
IllegalArgumentException
public String getScriptName(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParser
dbCommand
- command from parent scriptIllegalFormatException
IllegalArgumentException
public boolean isNestedScript(String dbCommand)
HiveSchemaHelper.NestedScriptParser
public String getDelimiter()
HiveSchemaHelper.NestedScriptParser
getDelimiter
in interface HiveSchemaHelper.NestedScriptParser
public boolean isNonExecCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParser
isNonExecCommand
in interface HiveSchemaHelper.NestedScriptParser
public String cleanseCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParser
cleanseCommand
in interface HiveSchemaHelper.NestedScriptParser
Copyright © 2017 The Apache Software Foundation. All rights reserved.