Class TimeSpecFunctionEvaluator
- java.lang.Object
-
- org.apache.pinot.segment.local.function.TimeSpecFunctionEvaluator
-
- All Implemented Interfaces:
FunctionEvaluator
public class TimeSpecFunctionEvaluator extends Object implements FunctionEvaluator
An implementation ofFunctionEvaluatorfor converting the time value based on theTimeFieldSpec.
-
-
Constructor Summary
Constructors Constructor Description TimeSpecFunctionEvaluator(TimeGranularitySpec incomingGranularitySpec, TimeGranularitySpec outgoingGranularitySpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(Object[] values)Evaluates the function on the given values (same order as the arguments) and returns the result.Objectevaluate(GenericRow genericRow)Performs time transformationList<String>getArguments()Get the arguments of the function
-
-
-
Constructor Detail
-
TimeSpecFunctionEvaluator
public TimeSpecFunctionEvaluator(TimeGranularitySpec incomingGranularitySpec, TimeGranularitySpec outgoingGranularitySpec)
-
-
Method Detail
-
getArguments
public List<String> getArguments()
Description copied from interface:FunctionEvaluatorGet the arguments of the function- Specified by:
getArgumentsin interfaceFunctionEvaluator
-
evaluate
public Object evaluate(GenericRow genericRow)
Performs time transformation- Specified by:
evaluatein interfaceFunctionEvaluator
-
evaluate
public Object evaluate(Object[] values)
Description copied from interface:FunctionEvaluatorEvaluates the function on the given values (same order as the arguments) and returns the result.- Specified by:
evaluatein interfaceFunctionEvaluator
-
-