public class CurrentTimestampFunction extends Scalar<java.lang.Long,java.lang.Integer> implements FunctionFormatSpec
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRECISION |
static FunctionInfo |
INFO |
static java.lang.String |
NAME |
Constructor and Description |
---|
CurrentTimestampFunction() |
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.Long |
evaluate(Input<java.lang.Integer>... 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 function,
TransactionContext transactionContext)
Normalize a symbol into a simplified form.
|
static void |
register(ScalarFunctionModule function) |
anyNonLiterals, compile, withOperator
public static final java.lang.String NAME
public static final int DEFAULT_PRECISION
public static final FunctionInfo INFO
public static void register(ScalarFunctionModule function)
public java.lang.Long evaluate(Input<java.lang.Integer>... args)
Scalar
public FunctionInfo info()
FunctionImplementation
info
in interface FunctionImplementation
public Symbol normalizeSymbol(Function function, TransactionContext transactionContext)
FunctionImplementation
normalizeSymbol
in interface FunctionImplementation
normalizeSymbol
in class Scalar<java.lang.Long,java.lang.Integer>
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 StmtCtxpublic 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