public static interface HiveSchemaHelper.NestedScriptParser
Modifier and Type | Interface and Description |
---|---|
static class |
HiveSchemaHelper.NestedScriptParser.CommandType |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAUTL_DELIMITER |
Modifier and Type | Method and Description |
---|---|
String |
buildCommand(String scriptDir,
String scriptFile)
Flatten the nested upgrade script into a buffer
|
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
|
boolean |
needsQuotedIdentifier()
Does the DB required table/column names quoted
|
static final String DEFAUTL_DELIMITER
boolean isPartialCommand(String dbCommand) throws IllegalArgumentException
dbCommand
- IllegalArgumentException
String getScriptName(String dbCommand) throws IllegalArgumentException
dbCommand
- command from parent scriptIllegalFormatException
IllegalArgumentException
boolean isNestedScript(String dbCommand)
dbCommand
- boolean isNonExecCommand(String dbCommand)
dbCommand
- String getDelimiter()
boolean needsQuotedIdentifier()
String buildCommand(String scriptDir, String scriptFile) throws IllegalFormatException, IOException
scriptDir
- upgrade script directoryscriptFile
- upgrade script fileIllegalFormatException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.