org.apache.hive.beeline
Class HiveSchemaHelper.MySqlCommandParser

java.lang.Object
  extended by org.apache.hive.beeline.HiveSchemaHelper.MySqlCommandParser
All Implemented Interfaces:
HiveSchemaHelper.NestedScriptParser
Enclosing class:
HiveSchemaHelper

public static class HiveSchemaHelper.MySqlCommandParser
extends Object


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
HiveSchemaHelper.NestedScriptParser.CommandType
 
Field Summary
 
Fields inherited from interface org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
DEFAUTL_DELIMITER
 
Constructor Summary
HiveSchemaHelper.MySqlCommandParser()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveSchemaHelper.MySqlCommandParser

public HiveSchemaHelper.MySqlCommandParser()
Method Detail

isPartialCommand

public boolean isPartialCommand(String dbCommand)
                         throws IllegalArgumentException
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Find the type of given command

Specified by:
isPartialCommand in interface HiveSchemaHelper.NestedScriptParser
Returns:
Throws:
IllegalArgumentException

getScriptName

public String getScriptName(String dbCommand)
                     throws IllegalArgumentException
Description copied from interface: HiveSchemaHelper.NestedScriptParser
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

public boolean isNestedScript(String dbCommand)
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Find if the given command is a nested script execution

Returns:

getDelimiter

public String getDelimiter()
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Get the SQL statement delimiter

Specified by:
getDelimiter in interface HiveSchemaHelper.NestedScriptParser
Returns:

isNonExecCommand

public boolean isNonExecCommand(String dbCommand)
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Find if the given command is should be passed to DB

Specified by:
isNonExecCommand in interface HiveSchemaHelper.NestedScriptParser
Returns:

cleanseCommand

public String cleanseCommand(String dbCommand)
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Clear any client specific tags

Specified by:
cleanseCommand in interface HiveSchemaHelper.NestedScriptParser
Returns:


Copyright © 2012 The Apache Software Foundation