Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
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 |
Base class for CREATE [] FUNCTION.
Definition at line 38 of file CreateFunctionStmtBase.java.
|
inlineprotected |
Definition at line 65 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.args_, com.cloudera.impala.analysis.CreateFunctionStmtBase.fnName_, com.cloudera.impala.analysis.CreateFunctionStmtBase.ifNotExists_, com.cloudera.impala.analysis.CreateFunctionStmtBase.location_, com.cloudera.impala.analysis.CreateFunctionStmtBase.optArgs_, and com.cloudera.impala.analysis.CreateFunctionStmtBase.retTypeDef_.
|
inline |
Perform semantic analysis of node and all of its children. Throws exception if any errors found.
analyzer |
AnalysisException |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 125 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.authorization.Privilege.ALL, com.cloudera.impala.analysis.CreateFunctionStmtBase.args_, com.cloudera.impala.catalog.Catalog.BUILTINS_DB, com.cloudera.impala.authorization.Privilege.CREATE, com.cloudera.impala.analysis.CreateFunctionStmtBase.createFunction(), com.cloudera.impala.analysis.Analyzer.DB_DOES_NOT_EXIST_ERROR_MSG, com.cloudera.impala.analysis.CreateFunctionStmtBase.fn_, com.cloudera.impala.analysis.Analyzer.FN_ALREADY_EXISTS_ERROR_MSG, com.cloudera.impala.analysis.CreateFunctionStmtBase.fnName_, com.cloudera.impala.analysis.FunctionArgs.getArgTypes(), com.cloudera.impala.analysis.CreateFunctionStmtBase.getBinaryType(), com.cloudera.impala.analysis.FunctionArgs.hasVarArgs(), com.cloudera.impala.analysis.CreateFunctionStmtBase.ifNotExists_, com.cloudera.impala.analysis.CreateFunctionStmtBase.location_, and com.cloudera.impala.catalog.Function.signatureString().
|
inlineprotected |
Definition at line 87 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.optArgs_.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), and com.cloudera.impala.analysis.CreateUdaStmt.analyze().
|
inlineprotected |
Definition at line 95 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.optArgs_.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), and com.cloudera.impala.analysis.CreateUdaStmt.analyze().
|
abstractprotected |
Creates a concrete function.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze().
|
inlineprivate |
Definition at line 103 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze().
|
inline |
Definition at line 76 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.COMMENT.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), and com.cloudera.impala.analysis.CreateUdaStmt.analyze().
|
inline |
Definition at line 77 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.ifNotExists_.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.toThrift().
|
inlineinherited |
Definition at line 43 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inlineinherited |
Definition at line 42 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inlineinherited |
Print SQL syntax corresponding to this node.
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().
|
inline |
Definition at line 79 of file CreateFunctionStmtBase.java.
References com.cloudera.impala.analysis.CreateFunctionStmtBase.fn_, com.cloudera.impala.analysis.CreateFunctionStmtBase.getIfNotExists(), and com.cloudera.impala.catalog.Function.toThrift().
|
protected |
|
protected |
Definition at line 60 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), com.cloudera.impala.analysis.CreateUdaStmt.analyze(), com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze(), and com.cloudera.impala.analysis.CreateFunctionStmtBase.toThrift().
|
protected |
|
protected |
Definition at line 57 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), com.cloudera.impala.analysis.CreateUdaStmt.analyze(), com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze(), com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase(), and com.cloudera.impala.analysis.CreateFunctionStmtBase.getIfNotExists().
|
protectedinherited |
|
protected |
Definition at line 55 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze(), and com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase().
|
protected |
Definition at line 56 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateUdaStmt.analyze(), com.cloudera.impala.analysis.CreateFunctionStmtBase.checkAndGetOptArg(), com.cloudera.impala.analysis.CreateFunctionStmtBase.checkOptArgNotSet(), com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase(), and com.cloudera.impala.analysis.CreateUdaStmt.getSymbolSymbol().
|
protected |
Definition at line 54 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase().
|
protected |
Definition at line 63 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), and com.cloudera.impala.analysis.CreateUdaStmt.analyze().