Package com.mckoi.database
Class InternalFunctionFactory.TimeStampObFunction
- java.lang.Object
-
- com.mckoi.database.AbstractFunction
-
- com.mckoi.database.InternalFunctionFactory.TimeStampObFunction
-
- All Implemented Interfaces:
Function
- Enclosing class:
- InternalFunctionFactory
static class InternalFunctionFactory.TimeStampObFunction extends AbstractFunction
-
-
Field Summary
Fields Modifier and Type Field Description private static TTypeTIMESTAMP_TYPE
-
Constructor Summary
Constructors Constructor Description TimeStampObFunction(Expression[] params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TObjectevaluate(GroupResolver group, VariableResolver resolver, QueryContext context)Evaluates the function and returns a TObject that represents the result of the function.TTypereturnTType(VariableResolver resolver, QueryContext context)By Default, we assume a function returns a Numeric object.-
Methods inherited from class com.mckoi.database.AbstractFunction
allElements, allVariables, getName, getParameter, init, isAggregate, isGlob, parameterCount, prepareParameters, returnTType, setAggregate, toString
-
-
-
-
Field Detail
-
TIMESTAMP_TYPE
private static final TType TIMESTAMP_TYPE
-
-
Constructor Detail
-
TimeStampObFunction
public TimeStampObFunction(Expression[] params)
-
-
Method Detail
-
evaluate
public TObject evaluate(GroupResolver group, VariableResolver resolver, QueryContext context)
Description copied from interface:FunctionEvaluates the function and returns a TObject that represents the result of the function. The VariableResolver object should be used to look up variables in the parameter of the function. The 'FunctionTable' object should only be used when the function is a grouping function. For example, 'avg(value_of)'.
-
returnTType
public TType returnTType(VariableResolver resolver, QueryContext context)
Description copied from class:AbstractFunctionBy Default, we assume a function returns a Numeric object.- Specified by:
returnTTypein interfaceFunction- Overrides:
returnTTypein classAbstractFunction
-
-