public static class HiveSchemaHelper.MySqlCommandParser
extends java.lang.Object
HiveSchemaHelper.NestedScriptParser.CommandType
DEFAUTL_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.NestedScriptParser
isPartialCommand
in interface HiveSchemaHelper.NestedScriptParser
java.lang.IllegalArgumentException
public java.lang.String getScriptName(java.lang.String dbCommand) throws java.lang.IllegalArgumentException
HiveSchemaHelper.NestedScriptParser
dbCommand
- command from parent scriptjava.util.IllegalFormatException
java.lang.IllegalArgumentException
public boolean isNestedScript(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParser
public java.lang.String getDelimiter()
HiveSchemaHelper.NestedScriptParser
getDelimiter
in interface HiveSchemaHelper.NestedScriptParser
public boolean isNonExecCommand(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParser
isNonExecCommand
in interface HiveSchemaHelper.NestedScriptParser
public java.lang.String cleanseCommand(java.lang.String dbCommand)
HiveSchemaHelper.NestedScriptParser
cleanseCommand
in interface HiveSchemaHelper.NestedScriptParser
Copyright © 2012 The Apache Software Foundation