public class CastFunction extends Scalar<java.lang.Object,java.lang.Object> implements FunctionFormatSpec
Modifier and Type | Field and Description |
---|---|
protected FunctionInfo |
info |
protected DataType |
returnType |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
afterArgs(Function function)
stuff that comes after arguments are formatted
|
java.lang.String |
beforeArgs(Function function)
stuff that comes before arguments are formatted
|
java.lang.Object |
evaluate(Input<java.lang.Object>... args)
Evaluate the function using the provided arguments
|
boolean |
formatArgs(Function function)
whether or not to formatSymbol the arguments
|
FunctionInfo |
info()
Provides meta information about this function implementation.
|
Symbol |
normalizeSymbol(Function symbol,
TransactionContext transactionContext)
Normalize a symbol into a simplified form.
|
protected java.lang.Object |
onEvaluateException(java.lang.Object argument) |
protected Symbol |
onNormalizeException(Symbol argument) |
static void |
register(ScalarFunctionModule module) |
anyNonLiterals, compile, withOperator
protected final DataType returnType
protected final FunctionInfo info
@SafeVarargs public final java.lang.Object evaluate(Input<java.lang.Object>... args)
Scalar
public FunctionInfo info()
FunctionImplementation
info
in interface FunctionImplementation
public Symbol normalizeSymbol(Function symbol, TransactionContext transactionContext)
FunctionImplementation
normalizeSymbol
in interface FunctionImplementation
normalizeSymbol
in class Scalar<java.lang.Object,java.lang.Object>
transactionContext
- context which is shared across normalizeSymbol calls during a statement-lifecycle.
This will only be present if normalizeSymbol is called on the handler node.
normalizeSymbol calls during execution won't receive a StmtCtxprotected java.lang.Object onEvaluateException(java.lang.Object argument)
public java.lang.String beforeArgs(Function function)
FunctionFormatSpec
beforeArgs
in interface FunctionFormatSpec
public java.lang.String afterArgs(Function function)
FunctionFormatSpec
afterArgs
in interface FunctionFormatSpec
public boolean formatArgs(Function function)
FunctionFormatSpec
formatArgs
in interface FunctionFormatSpec
public static void register(ScalarFunctionModule module)