@Internal public abstract class AbstractSqlCallContext extends Object implements CallContext
CallContext
backed by SqlOperatorBinding
.Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractSqlCallContext.LiteralValueAccessor
Helper interface for abstracting accessing literals.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractSqlCallContext(DataTypeFactory dataTypeFactory,
FunctionDefinition definition,
String name) |
Modifier and Type | Method and Description |
---|---|
DataTypeFactory |
getDataTypeFactory()
Enables to lookup types in a catalog and resolve RAW types.
|
FunctionDefinition |
getFunctionDefinition()
Returns the function definition that defines the function currently being called.
|
protected static <T> T |
getLiteralValueAs(AbstractSqlCallContext.LiteralValueAccessor accessor,
Class<T> clazz)
Bridges to
ValueLiteralExpression.getValueAs(Class) . |
String |
getName()
Returns the function's name usually referencing the function in a catalog.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgumentDataTypes, getArgumentValue, getOutputDataType, isArgumentLiteral, isArgumentNull, newValidationError
protected AbstractSqlCallContext(DataTypeFactory dataTypeFactory, FunctionDefinition definition, String name)
public DataTypeFactory getDataTypeFactory()
CallContext
getDataTypeFactory
in interface CallContext
public FunctionDefinition getFunctionDefinition()
CallContext
getFunctionDefinition
in interface CallContext
public String getName()
CallContext
Note: The name is meant for debugging purposes only.
getName
in interface CallContext
protected static <T> T getLiteralValueAs(AbstractSqlCallContext.LiteralValueAccessor accessor, Class<T> clazz)
ValueLiteralExpression.getValueAs(Class)
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.