org.apache.hive.beeline
Class HiveSchemaHelper.PostgresCommandParser

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

public static class HiveSchemaHelper.PostgresCommandParser
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.PostgresCommandParser()
           
 
Method Summary
 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 needsQuotedIdentifier()
          Does the DB required table/column names quoted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveSchemaHelper.PostgresCommandParser

public HiveSchemaHelper.PostgresCommandParser()
Method Detail

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:

needsQuotedIdentifier

public boolean needsQuotedIdentifier()
Description copied from interface: HiveSchemaHelper.NestedScriptParser
Does the DB required table/column names quoted

Specified by:
needsQuotedIdentifier in interface HiveSchemaHelper.NestedScriptParser
Returns:


Copyright © 2012 The Apache Software Foundation