public class FunctionDescriptor extends Object implements Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
FunctionDescriptor |
clone() |
FunctionMethod.Determinism |
getDeterministic() |
String |
getFullName() |
FunctionMethod |
getMethod() |
String |
getName() |
Procedure |
getProcedure() |
FunctionMethod.PushDown |
getPushdown() |
Class<?> |
getReturnType() |
String |
getSchema() |
Class<?>[] |
getTypes() |
static Object |
importValue(Object result,
Class<?> expectedType,
CommandContext context) |
Object |
invokeFunction(Object[] values,
CommandContext context,
Object functionTarget)
Invoke the function described in the function descriptor, using the
values provided.
|
boolean |
isCalledWithVarArgArrayParam() |
boolean |
isNullDependent() |
boolean |
isSystemFunction(String name) |
Object |
newInstance() |
boolean |
requiresContext() |
void |
setCalledWithVarArgArrayParam(boolean calledWithVarArgArrayParam) |
void |
setHasWrappedArgs(boolean hasWrappedArgs) |
void |
setProcedure(Procedure procedure) |
void |
setSchema(String schema) |
String |
toString() |
public Object newInstance() throws FunctionExecutionException
FunctionExecutionException
public void setHasWrappedArgs(boolean hasWrappedArgs)
public String getSchema()
public void setSchema(String schema)
public String getName()
public String getFullName()
public FunctionMethod.PushDown getPushdown()
public Class<?>[] getTypes()
public Class<?> getReturnType()
public boolean requiresContext()
public Procedure getProcedure()
public void setProcedure(Procedure procedure)
public boolean isNullDependent()
public FunctionMethod.Determinism getDeterministic()
public FunctionDescriptor clone()
public FunctionMethod getMethod()
public Object invokeFunction(Object[] values, CommandContext context, Object functionTarget) throws FunctionExecutionException, BlockedException
values
- Values that should match 1-to-1 with the types described in the
function descriptorcontext
- functionTarget
- the object to invoke the function onfd
- Function descriptor describing the name and types of the argumentsFunctionExecutionException
BlockedException
public static Object importValue(Object result, Class<?> expectedType, CommandContext context) throws ArithmeticException, TransformationException
public boolean isCalledWithVarArgArrayParam()
public void setCalledWithVarArgArrayParam(boolean calledWithVarArgArrayParam)
public boolean isSystemFunction(String name)
Copyright © 2019. All rights reserved.