public static class HiveSchemaHelper.MySqlCommandParser
extends java.lang.Object
HiveSchemaHelper.NestedScriptParser.CommandTypeDEFAUTL_DELIMITER| Constructor and Description |
|---|
MySqlCommandParser() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cleanseCommand(java.lang.String dbCommand)
Clear any client specific tags
|
java.lang.String |
getDelimiter()
Get the SQL statement delimiter
|
java.lang.String |
getScriptName(java.lang.String dbCommand)
Parse the DB specific nesting format and extract the inner script name if any
|
boolean |
isNestedScript(java.lang.String dbCommand)
Find if the given command is a nested script execution
|
boolean |
isNonExecCommand(java.lang.String dbCommand)
Find if the given command is should be passed to DB
|
boolean |
isPartialCommand(java.lang.String dbCommand)
Find the type of given command
|
public boolean isPartialCommand(java.lang.String dbCommand)
throws java.lang.IllegalArgumentException
HiveSchemaHelper.NestedScriptParserisPartialCommand in interface HiveSchemaHelper.NestedScriptParserjava.lang.IllegalArgumentExceptionpublic java.lang.String getScriptName(java.lang.String dbCommand)
throws java.lang.IllegalArgumentException
HiveSchemaHelper.NestedScriptParserdbCommand - command from parent scriptjava.util.IllegalFormatExceptionjava.lang.IllegalArgumentExceptionpublic boolean isNestedScript(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParserpublic java.lang.String getDelimiter()
HiveSchemaHelper.NestedScriptParsergetDelimiter in interface HiveSchemaHelper.NestedScriptParserpublic boolean isNonExecCommand(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParserisNonExecCommand in interface HiveSchemaHelper.NestedScriptParserpublic java.lang.String cleanseCommand(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParsercleanseCommand in interface HiveSchemaHelper.NestedScriptParserCopyright © 2012 The Apache Software Foundation