Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
CreateUdfStmt (FunctionName fnName, FunctionArgs args, TypeDef retTypeDef, HdfsUri location, boolean ifNotExists, HashMap< CreateFunctionStmtBase.OptArg, String > optArgs) | |
void | analyze (Analyzer analyzer) throws AnalysisException |
String | getComment () |
boolean | getIfNotExists () |
TCreateFunctionParams | toThrift () |
String | toSql () |
void | setIsExplain () |
boolean | isExplain () |
Protected Member Functions | |
Function | createFunction (FunctionName fnName, ArrayList< Type > argTypes, Type retType, boolean hasVarArgs) |
String | checkAndGetOptArg (OptArg key) throws AnalysisException |
void | checkOptArgNotSet (OptArg key) throws AnalysisException |
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 |
Represents a CREATE FUNCTION statement.
Definition at line 33 of file CreateUdfStmt.java.
|
inline |
Builds a CREATE FUNCTION statement
fnName | - Name of the function |
fnArgs | - List of types for the arguments to this function |
retType | - The type this function returns. |
location | - Path in HDFS containing the UDA. |
ifNotExists | - If true, no errors are thrown if the function already exists |
additionalArgs | - Key/Value pairs for additional arguments. The keys are validated in analyze() |
Definition at line 44 of file CreateUdfStmt.java.
|
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 51 of file CreateUdfStmt.java.
References com.cloudera.impala.catalog.PrimitiveType.CHAR, com.cloudera.impala.analysis.CreateFunctionStmtBase.checkAndGetOptArg(), com.cloudera.impala.analysis.CreateFunctionStmtBase.checkOptArgNotSet(), com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.CLOSE_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.FINALIZE_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.fn_, com.cloudera.impala.analysis.CreateFunctionStmtBase.getComment(), com.cloudera.impala.analysis.CreateFunctionStmtBase.ifNotExists_, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.INIT_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.MERGE_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.PREPARE_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.SERIALIZE_FN, com.cloudera.impala.analysis.CreateFunctionStmtBase.sqlString_, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.SYMBOL, com.cloudera.impala.analysis.CreateFunctionStmtBase.OptArg.UPDATE_FN, and com.cloudera.impala.catalog.PrimitiveType.VARCHAR.
|
inlineprotectedinherited |
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().
|
inlineprotectedinherited |
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().
|
inlineprotected |
Definition at line 135 of file CreateUdfStmt.java.
|
inlineinherited |
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().
|
inlineinherited |
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().
|
inlineinherited |
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().
|
protectedinherited |
|
protectedinherited |
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().
|
protectedinherited |
|
protectedinherited |
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 |
|
protectedinherited |
Definition at line 55 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.analyze(), and com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase().
|
protectedinherited |
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().
|
protectedinherited |
Definition at line 54 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateFunctionStmtBase.CreateFunctionStmtBase().
|
protectedinherited |
Definition at line 63 of file CreateFunctionStmtBase.java.
Referenced by com.cloudera.impala.analysis.CreateUdfStmt.analyze(), and com.cloudera.impala.analysis.CreateUdaStmt.analyze().