| Package | Description |
|---|---|
| org.apache.hadoop.hive.ql.exec |
Hive QL execution tasks, operators, functions and other handlers.
|
| org.apache.hadoop.hive.ql.parse.type | |
| org.apache.hadoop.hive.ql.session |
| Modifier and Type | Class and Description |
|---|---|
class |
HiveFunctionInfo
FunctionInfo implementation for Hive.
|
class |
WindowFunctionInfo |
| Modifier and Type | Method and Description |
|---|---|
FunctionInfo |
Registry.getFunctionInfo(String functionName)
Looks up the function name in the registry.
|
static FunctionInfo |
FunctionRegistry.getFunctionInfo(String functionName) |
static FunctionInfo |
FunctionRegistry.getTemporaryFunctionInfo(String functionName) |
FunctionInfo |
Registry.registerFunction(String functionName,
Class<?> udfClass,
FunctionInfo.FunctionResource... resources)
Registers the appropriate kind of temporary function based on a class's
type.
|
FunctionInfo |
Registry.registerGenericUDAF(String functionName,
GenericUDAFResolver genericUDAFResolver,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerGenericUDF(String functionName,
Class<? extends GenericUDF> genericUDFClass,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerGenericUDTF(String functionName,
Class<? extends GenericUDTF> genericUDTFClass,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerMacro(String macroName,
ExprNodeDesc body,
List<String> colNames,
List<TypeInfo> colTypes) |
FunctionInfo |
Registry.registerMacro(String macroName,
ExprNodeDesc body,
List<String> colNames,
List<TypeInfo> colTypes,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerPermanentFunction(String functionName,
String className,
boolean registerToSession,
FunctionInfo.FunctionResource... resources) |
static FunctionInfo |
FunctionRegistry.registerPermanentFunction(String functionName,
String className,
boolean registerToSession,
FunctionInfo.FunctionResource[] resources) |
FunctionInfo |
Registry.registerTableFunction(String functionName,
Class<? extends TableFunctionResolver> tFnCls,
FunctionInfo.FunctionResource... resources) |
static FunctionInfo |
FunctionRegistry.registerTemporaryUDF(String functionName,
Class<?> udfClass,
FunctionInfo.FunctionResource... resources)
Registers the appropriate kind of temporary function based on a class's
type.
|
FunctionInfo |
Registry.registerUDAF(String functionName,
Class<? extends UDAF> udafClass,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerUDF(String functionName,
Class<? extends UDF> UDFClass,
boolean isOperator,
FunctionInfo.FunctionResource... resources) |
FunctionInfo |
Registry.registerUDF(String functionName,
Class<? extends UDF> UDFClass,
boolean isOperator,
String displayName,
FunctionInfo.FunctionResource... resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
Registry.getFunctionSynonyms(String funcName,
FunctionInfo funcInfo,
Set<String> synonyms)
Adds to the set of synonyms of the supplied function.
|
void |
FunctionInfo.shareStateWith(FunctionInfo function) |
| Constructor and Description |
|---|
HiveFunctionInfo(FunctionInfo functionInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FunctionInfo |
ExprFactory.getFunctionInfo(String funcName)
Returns the FunctionInfo given the name
|
FunctionInfo |
FunctionHelper.getFunctionInfo(String functionText)
Returns function information based on function text.
|
protected FunctionInfo |
ExprNodeDescExprFactory.getFunctionInfo(String funcName)
Returns the FunctionInfo given the name
|
FunctionInfo |
HiveFunctionHelper.getFunctionInfo(String functionText)
Returns function information based on function text.
|
protected FunctionInfo |
RexNodeExprFactory.getFunctionInfo(String funcName)
Returns the FunctionInfo given the name
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
ExprNodeDescExprFactory.convertCASEIntoCOALESCEFuncCallExpr(FunctionInfo fi,
List<ExprNodeDesc> inputs)
Returns true if a CASE expression can be converted into a COALESCE function call.
|
protected boolean |
RexNodeExprFactory.convertCASEIntoCOALESCEFuncCallExpr(FunctionInfo fi,
List<org.apache.calcite.rex.RexNode> inputs)
Returns true if a CASE expression can be converted into a COALESCE function call.
|
protected abstract boolean |
ExprFactory.convertCASEIntoCOALESCEFuncCallExpr(FunctionInfo fi,
List<T> inputs)
Returns true if a CASE expression can be converted into a COALESCE function call.
|
protected boolean |
ExprNodeDescExprFactory.convertCASEIntoIFFuncCallExpr(FunctionInfo fi,
List<ExprNodeDesc> inputs) |
protected boolean |
ExprFactory.convertCASEIntoIFFuncCallExpr(FunctionInfo fi,
List<T> inputs)
Returns true if a CASE expression can be converted into an IF function call.
|
List<org.apache.calcite.rex.RexNode> |
FunctionHelper.convertInputs(FunctionInfo functionInfo,
List<org.apache.calcite.rex.RexNode> inputs,
org.apache.calcite.rel.type.RelDataType returnType)
Given function information, the inputs to that function, and the
expected return type, it will return the list of inputs with any
necessary adjustments, e.g., casting of expressions.
|
List<org.apache.calcite.rex.RexNode> |
HiveFunctionHelper.convertInputs(FunctionInfo fi,
List<org.apache.calcite.rex.RexNode> inputs,
org.apache.calcite.rel.type.RelDataType returnType)
Given function information, the inputs to that function, and the
expected return type, it will return the list of inputs with any
necessary adjustments, e.g., casting of expressions.
|
protected ExprNodeGenericFuncDesc |
ExprNodeDescExprFactory.createFuncCallExpr(TypeInfo typeInfo,
FunctionInfo fi,
String funcText,
List<ExprNodeDesc> inputs)
Creates function call expression.
|
protected org.apache.calcite.rex.RexNode |
RexNodeExprFactory.createFuncCallExpr(TypeInfo typeInfo,
FunctionInfo functionInfo,
String funcText,
List<org.apache.calcite.rex.RexNode> inputs)
Creates function call expression.
|
protected abstract T |
ExprFactory.createFuncCallExpr(TypeInfo typeInfo,
FunctionInfo fi,
String funcText,
List<T> inputs)
Creates function call expression.
|
org.apache.calcite.rex.RexNode |
FunctionHelper.getExpression(String functionText,
FunctionInfo functionInfo,
List<org.apache.calcite.rex.RexNode> inputs,
org.apache.calcite.rel.type.RelDataType returnType)
Given function information and text, inputs to a function, and the
expected return type, it will return an expression node containing
the function call.
|
org.apache.calcite.rex.RexNode |
HiveFunctionHelper.getExpression(String functionText,
FunctionInfo fi,
List<org.apache.calcite.rex.RexNode> inputs,
org.apache.calcite.rel.type.RelDataType returnType)
Given function information and text, inputs to a function, and the
expected return type, it will return an expression node containing
the function call.
|
org.apache.calcite.rel.type.RelDataType |
FunctionHelper.getReturnType(FunctionInfo functionInfo,
List<org.apache.calcite.rex.RexNode> inputs)
Given function information and its inputs, it returns
the type of the output of the function.
|
org.apache.calcite.rel.type.RelDataType |
HiveFunctionHelper.getReturnType(FunctionInfo fi,
List<org.apache.calcite.rex.RexNode> inputs)
Given function information and its inputs, it returns
the type of the output of the function.
|
protected abstract boolean |
ExprFactory.isAndFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isAndFunction(FunctionInfo fi)
returns true if FunctionInfo is an And function.
|
protected boolean |
ExprNodeDescExprFactory.isAndFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isAndFunction(FunctionInfo fi)
returns true if FunctionInfo is an And function.
|
protected boolean |
RexNodeExprFactory.isAndFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isCompareFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isCompareFunction(FunctionInfo fi)
returns true if FunctionInfo is a compare function (e.g.
|
protected boolean |
ExprNodeDescExprFactory.isCompareFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isCompareFunction(FunctionInfo fi)
returns true if FunctionInfo is a compare function (e.g.
|
protected boolean |
RexNodeExprFactory.isCompareFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isConsistentWithinQuery(FunctionInfo fi) |
boolean |
FunctionHelper.isConsistentWithinQuery(FunctionInfo fi)
Returns whether the expression, for a single query, returns the same result given
the same arguments/children.
|
protected boolean |
ExprNodeDescExprFactory.isConsistentWithinQuery(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isConsistentWithinQuery(FunctionInfo fi)
Returns whether the expression, for a single query, returns the same result given
the same arguments/children.
|
protected boolean |
RexNodeExprFactory.isConsistentWithinQuery(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isEqualFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isEqualFunction(FunctionInfo fi)
returns true if FunctionInfo is an == function.
|
protected boolean |
ExprNodeDescExprFactory.isEqualFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isEqualFunction(FunctionInfo fi)
returns true if FunctionInfo is an == function.
|
protected boolean |
RexNodeExprFactory.isEqualFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isInFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isInFunction(FunctionInfo fi)
returns true if FunctionInfo is an In function.
|
protected boolean |
ExprNodeDescExprFactory.isInFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isInFunction(FunctionInfo fi)
returns true if FunctionInfo is an In function.
|
protected boolean |
RexNodeExprFactory.isInFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isNSCompareFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isNSCompareFunction(FunctionInfo fi) |
protected boolean |
ExprNodeDescExprFactory.isNSCompareFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isNSCompareFunction(FunctionInfo fi) |
protected boolean |
RexNodeExprFactory.isNSCompareFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isOrFunction(FunctionInfo fi) |
boolean |
FunctionHelper.isOrFunction(FunctionInfo fi)
returns true if FunctionInfo is an Or function.
|
protected boolean |
ExprNodeDescExprFactory.isOrFunction(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isOrFunction(FunctionInfo fi)
returns true if FunctionInfo is an Or function.
|
protected boolean |
RexNodeExprFactory.isOrFunction(FunctionInfo fi) |
protected abstract boolean |
ExprFactory.isStateful(FunctionInfo fi) |
boolean |
FunctionHelper.isStateful(FunctionInfo fi)
returns true if FunctionInfo is a stateful function.
|
protected boolean |
ExprNodeDescExprFactory.isStateful(FunctionInfo fi) |
boolean |
HiveFunctionHelper.isStateful(FunctionInfo fi)
returns true if FunctionInfo is a stateful function.
|
protected boolean |
RexNodeExprFactory.isStateful(FunctionInfo fi) |
protected void |
TypeCheckProcFactory.DefaultExprProcessor.validateUDF(ASTNode expr,
boolean isFunction,
TypeCheckCtx ctx,
FunctionInfo fi,
List<T> children) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,FunctionInfo> |
SessionState.getCurrentFunctionsInUse() |
Copyright © 2022 The Apache Software Foundation. All rights reserved.