|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hive.beeline.HiveSchemaHelper.MySqlCommandParser
public static class HiveSchemaHelper.MySqlCommandParser
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 |
---|
public HiveSchemaHelper.MySqlCommandParser()
Method Detail |
---|
public boolean isPartialCommand(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParser
isPartialCommand
in interface HiveSchemaHelper.NestedScriptParser
IllegalArgumentException
public String getScriptName(String dbCommand) throws IllegalArgumentException
HiveSchemaHelper.NestedScriptParser
dbCommand
- command from parent script
IllegalFormatException
IllegalArgumentException
public boolean isNestedScript(String dbCommand)
HiveSchemaHelper.NestedScriptParser
public String getDelimiter()
HiveSchemaHelper.NestedScriptParser
getDelimiter
in interface HiveSchemaHelper.NestedScriptParser
public boolean isNonExecCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParser
isNonExecCommand
in interface HiveSchemaHelper.NestedScriptParser
public String cleanseCommand(String dbCommand)
HiveSchemaHelper.NestedScriptParser
cleanseCommand
in interface HiveSchemaHelper.NestedScriptParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |