Interface FuncHolder
- All Known Implementing Classes:
AbstractFuncHolder
,DrillComplexWriterAggFuncHolder
,DrillComplexWriterFuncHolder
,DrillFuncHolder
,DrillSimpleFuncHolder
,HiveFuncHolder
public interface FuncHolder
Definition of a function as presented to code generation.
Represents the common denominator between Drill and Hive
functions.
-
Method Summary
Modifier and TypeMethodDescriptiongetExpr
(String name, List<LogicalExpression> args, ExpressionPosition pos) Return a reference to this function given a function alias and a list of actual arguments.int
Number of defined input parameters.getParamMajorType
(int i) Drill SQL type of an input parameter.boolean
Checks that the current function holder stores output value using field writer instead of vector holder.boolean
isNested()
-
Method Details
-
isNested
boolean isNested() -
getExpr
Return a reference to this function given a function alias and a list of actual arguments.- Parameters:
name
- alias used in this specific callargs
- expressions of the actual function argumentspos
-- Returns:
- an expression that holds the function definition (this object), actual parameters and related information
-
getParamCount
int getParamCount()Number of defined input parameters. -
getParamMajorType
Drill SQL type of an input parameter. -
isComplexWriterFuncHolder
boolean isComplexWriterFuncHolder()Checks that the current function holder stores output value using field writer instead of vector holder.- Returns:
- true if current function holder uses field writer to store the output value
-