public abstract class DrillFuncHolder extends AbstractFuncHolder
| Constructor and Description |
|---|
DrillFuncHolder(FunctionAttributes attributes,
FunctionInitializer initializer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProtectedBlock(ClassGenerator<?> g,
com.sun.codemodel.JBlock sub,
String body,
ClassGenerator.HoldingContainer[] inputVariables,
com.sun.codemodel.JVar[] workspaceJVars,
boolean decConstInputOnly) |
boolean |
checkPrecisionRange() |
protected com.sun.codemodel.JVar[] |
declareWorkspaceVariables(ClassGenerator<?> g) |
protected void |
generateBody(ClassGenerator<?> g,
ClassGenerator.BlockType bt,
String body,
ClassGenerator.HoldingContainer[] inputVariables,
com.sun.codemodel.JVar[] workspaceJVars,
boolean decConstantInputOnly) |
ClassLoader |
getClassLoader() |
int |
getCostCategory() |
FunctionHolderExpression |
getExpr(String name,
List<LogicalExpression> args,
ExpressionPosition pos) |
String |
getInputParameters()
Generates string representation of function input parameters:
PARAMETER_TYPE_1-PARAMETER_MODE_1,PARAMETER_TYPE_2-PARAMETER_MODE_2
Example: VARCHAR-REQUIRED,VARCHAR-OPTIONAL
Returns empty string if function has no input parameters.
|
FunctionTemplate.NullHandling |
getNullHandling() |
int |
getParamCount() |
ValueReference[] |
getParameters() |
TypeProtos.MajorType |
getParmMajorType(int i) |
String[] |
getRegisteredNames() |
TypeProtos.MajorType |
getReturnType() |
TypeProtos.MajorType |
getReturnType(List<LogicalExpression> logicalExpressions) |
ValueReference |
getReturnValue() |
WorkspaceReference[] |
getWorkspaceVars() |
boolean |
isAggregating() |
boolean |
isConstant(int i) |
boolean |
isDeterministic() |
boolean |
isFieldReader(int i) |
boolean |
isNiladic() |
boolean |
matches(TypeProtos.MajorType returnType,
List<TypeProtos.MajorType> argTypes) |
protected String |
meth(String methodName) |
protected String |
meth(String methodName,
boolean required) |
com.sun.codemodel.JVar[] |
renderStart(ClassGenerator<?> g,
ClassGenerator.HoldingContainer[] inputVariables) |
String |
toString() |
isComplexWriterFuncHolder, isNested, renderEnd, renderMiddlepublic DrillFuncHolder(FunctionAttributes attributes, FunctionInitializer initializer)
public com.sun.codemodel.JVar[] renderStart(ClassGenerator<?> g, ClassGenerator.HoldingContainer[] inputVariables)
renderStart in class AbstractFuncHolderpublic FunctionHolderExpression getExpr(String name, List<LogicalExpression> args, ExpressionPosition pos)
getExpr in class AbstractFuncHolderpublic boolean isAggregating()
public boolean isDeterministic()
public boolean isNiladic()
public String getInputParameters()
public ClassLoader getClassLoader()
protected com.sun.codemodel.JVar[] declareWorkspaceVariables(ClassGenerator<?> g)
protected void generateBody(ClassGenerator<?> g, ClassGenerator.BlockType bt, String body, ClassGenerator.HoldingContainer[] inputVariables, com.sun.codemodel.JVar[] workspaceJVars, boolean decConstantInputOnly)
protected void addProtectedBlock(ClassGenerator<?> g, com.sun.codemodel.JBlock sub, String body, ClassGenerator.HoldingContainer[] inputVariables, com.sun.codemodel.JVar[] workspaceJVars, boolean decConstInputOnly)
public boolean matches(TypeProtos.MajorType returnType, List<TypeProtos.MajorType> argTypes)
public TypeProtos.MajorType getParmMajorType(int i)
getParmMajorType in class AbstractFuncHolderpublic int getParamCount()
getParamCount in class AbstractFuncHolderpublic boolean isConstant(int i)
public boolean isFieldReader(int i)
public TypeProtos.MajorType getReturnType(List<LogicalExpression> logicalExpressions)
public FunctionTemplate.NullHandling getNullHandling()
public String[] getRegisteredNames()
public int getCostCategory()
public ValueReference[] getParameters()
public boolean checkPrecisionRange()
public TypeProtos.MajorType getReturnType()
public ValueReference getReturnValue()
public WorkspaceReference[] getWorkspaceVars()
Copyright © 2017 The Apache Software Foundation. All rights reserved.