public static interface HiveSchemaHelper.NestedScriptParser
Modifier and Type | Interface and Description |
---|---|
static class |
HiveSchemaHelper.NestedScriptParser.CommandType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAUTL_DELIMITER |
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
|
boolean |
needsQuotedIdentifier()
Does the DB required table/column names quoted
|
static final java.lang.String DEFAUTL_DELIMITER
boolean isPartialCommand(java.lang.String dbCommand) throws java.lang.IllegalArgumentException
dbCommand
- java.lang.IllegalArgumentException
java.lang.String getScriptName(java.lang.String dbCommand) throws java.lang.IllegalArgumentException
dbCommand
- command from parent scriptjava.util.IllegalFormatException
java.lang.IllegalArgumentException
boolean isNestedScript(java.lang.String dbCommand)
dbCommand
- boolean isNonExecCommand(java.lang.String dbCommand)
dbCommand
- java.lang.String getDelimiter()
java.lang.String cleanseCommand(java.lang.String dbCommand)
boolean needsQuotedIdentifier()
Copyright © 2012 The Apache Software Foundation