org.apache.hive.beeline
Interface HiveSchemaHelper.NestedScriptParser

All Known Implementing Classes:
HiveSchemaHelper.DerbyCommandParser, HiveSchemaHelper.MySqlCommandParser, HiveSchemaHelper.OracleCommandParser, HiveSchemaHelper.PostgresCommandParser
Enclosing class:
HiveSchemaHelper

public static interface HiveSchemaHelper.NestedScriptParser


Nested Class Summary
static class HiveSchemaHelper.NestedScriptParser.CommandType
           
 
Field Summary
static String DEFAUTL_DELIMITER
           
 
Method Summary
 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 is should be passed to DB
 boolean isPartialCommand(String dbCommand)
          Find the type of given command
 boolean needsQuotedIdentifier()
          Does the DB required table/column names quoted
 

Field Detail

DEFAUTL_DELIMITER

static final String DEFAUTL_DELIMITER
See Also:
Constant Field Values
Method Detail

isPartialCommand

boolean isPartialCommand(String dbCommand)
                         throws IllegalArgumentException
Find the type of given command

Parameters:
dbCommand -
Returns:
Throws:
IllegalArgumentException

getScriptName

String getScriptName(String dbCommand)
                     throws IllegalArgumentException
Parse the DB specific nesting format and extract the inner script name if any

Parameters:
dbCommand - command from parent script
Returns:
Throws:
IllegalFormatException
IllegalArgumentException

isNestedScript

boolean isNestedScript(String dbCommand)
Find if the given command is a nested script execution

Parameters:
dbCommand -
Returns:

isNonExecCommand

boolean isNonExecCommand(String dbCommand)
Find if the given command is should be passed to DB

Parameters:
dbCommand -
Returns:

getDelimiter

String getDelimiter()
Get the SQL statement delimiter

Returns:

cleanseCommand

String cleanseCommand(String dbCommand)
Clear any client specific tags

Returns:

needsQuotedIdentifier

boolean needsQuotedIdentifier()
Does the DB required table/column names quoted

Returns:


Copyright © 2012 The Apache Software Foundation