protected abstract static class AbstractCastFunction.Resolver extends java.lang.Object implements DynamicFunctionResolver
Modifier and Type | Field and Description |
---|---|
protected DataType |
dataType |
protected java.lang.String |
name |
Modifier | Constructor and Description |
---|---|
protected |
Resolver(DataType dataType,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPreconditions(java.util.List<DataType> dataTypes) |
protected abstract FunctionImplementation<Function> |
createInstance(java.util.List<DataType> types) |
FunctionImplementation<Function> |
getForTypes(java.util.List<DataType> dataTypes)
returns the function implementation for the given types.
|
protected final java.lang.String name
protected final DataType dataType
protected Resolver(DataType dataType, java.lang.String name)
protected void checkPreconditions(java.util.List<DataType> dataTypes)
protected abstract FunctionImplementation<Function> createInstance(java.util.List<DataType> types)
public FunctionImplementation<Function> getForTypes(java.util.List<DataType> dataTypes) throws java.lang.IllegalArgumentException
DynamicFunctionResolver
getForTypes
in interface DynamicFunctionResolver
java.lang.IllegalArgumentException
- thrown if there is no function that can handle the given types.