Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.analysis.CreateFunctionStmtBase Class Referenceabstract
Inheritance diagram for com.cloudera.impala.analysis.CreateFunctionStmtBase:
Collaboration diagram for com.cloudera.impala.analysis.CreateFunctionStmtBase:

Classes

enum  OptArg
 

Public Member Functions

String getComment ()
 
boolean getIfNotExists ()
 
TCreateFunctionParams toThrift ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
String toSql ()
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Member Functions

 CreateFunctionStmtBase (FunctionName fnName, FunctionArgs args, TypeDef retTypeDef, HdfsUri location, boolean ifNotExists, HashMap< CreateFunctionStmtBase.OptArg, String > optArgs)
 
String checkAndGetOptArg (OptArg key) throws AnalysisException
 
void checkOptArgNotSet (OptArg key) throws AnalysisException
 
abstract Function createFunction (FunctionName fnName, ArrayList< Type > argTypes, Type retType, boolean hasVarArgs)
 

Protected Attributes

final FunctionName fnName_
 
final FunctionArgs args_
 
final TypeDef retTypeDef_
 
final HdfsUri location_
 
final HashMap
< CreateFunctionStmtBase.OptArg,
String > 
optArgs_
 
final boolean ifNotExists_
 
Function fn_
 
String sqlString_
 
boolean isExplain_ = false
 

Private Member Functions

TFunctionBinaryType getBinaryType () throws AnalysisException
 

Detailed Description

Base class for CREATE [] FUNCTION.

Definition at line 38 of file CreateFunctionStmtBase.java.

Constructor & Destructor Documentation

Member Function Documentation

String com.cloudera.impala.analysis.CreateFunctionStmtBase.checkAndGetOptArg ( OptArg  key) throws AnalysisException
inlineprotected
void com.cloudera.impala.analysis.CreateFunctionStmtBase.checkOptArgNotSet ( OptArg  key) throws AnalysisException
inlineprotected
abstract Function com.cloudera.impala.analysis.CreateFunctionStmtBase.createFunction ( FunctionName  fnName,
ArrayList< Type argTypes,
Type  retType,
boolean  hasVarArgs 
)
abstractprotected

Creates a concrete function.

Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze().

TFunctionBinaryType com.cloudera.impala.analysis.CreateFunctionStmtBase.getBinaryType ( ) throws AnalysisException
inlineprivate
String com.cloudera.impala.analysis.CreateFunctionStmtBase.getComment ( )
inline
boolean com.cloudera.impala.analysis.CreateFunctionStmtBase.getIfNotExists ( )
inline
boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.StatementBase.toSql ( )
inlineinherited

Print SQL syntax corresponding to this node.

See Also
com.cloudera.impala.parser.ParseNode::toSql()

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 41 of file StatementBase.java.

Referenced by com.cloudera.impala.analysis.CreateUdaStmt.analyze(), and com.cloudera.impala.analysis.QueryStmt.createSortInfo().

TCreateFunctionParams com.cloudera.impala.analysis.CreateFunctionStmtBase.toThrift ( )
inline

Member Data Documentation

final HdfsUri com.cloudera.impala.analysis.CreateFunctionStmtBase.location_
protected
final TypeDef com.cloudera.impala.analysis.CreateFunctionStmtBase.retTypeDef_
protected
String com.cloudera.impala.analysis.CreateFunctionStmtBase.sqlString_
protected

The documentation for this class was generated from the following file: