java.lang.Object
com.pervasive.datarush.functions.MappedEvaluatorFactory
com.pervasive.datarush.functions.InputMappedFactory
- All Implemented Interfaces:
EvaluatorFactory
A factory mapped by the widest type encompassing
one or more input values.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pervasive.datarush.functions.MappedEvaluatorFactory
MappedEvaluatorFactory.Mapping -
Constructor Summary
ConstructorsConstructorDescriptionInputMappedFactory(int[] indices, MappedEvaluatorFactory.Mapping... mappings) Defines a factory using the specified mapping dispatched by the widest type of the specified arguments.InputMappedFactory(int index, MappedEvaluatorFactory.Mapping... mappings) Defines a factory using the specified mapping and dispatched by the type of the specified argument. -
Method Summary
Modifier and TypeMethodDescriptionprotected ScalarTokenTypegetDispatchType(ScalarSettable result, Object[] arguments) Determines the type to use to select the evaluator.Methods inherited from class com.pervasive.datarush.functions.MappedEvaluatorFactory
contructEvaluator, use
-
Constructor Details
-
InputMappedFactory
Defines a factory using the specified mapping and dispatched by the type of the specified argument.- Parameters:
index- the argument used to determine the lookup type for the evaluatormappings- the type to evaluator mappings to use
-
InputMappedFactory
Defines a factory using the specified mapping dispatched by the widest type of the specified arguments.- Parameters:
indices- the arguments used to determine the lookup type for the evaluator.mappings- the type to evaluator mappings to use
-
-
Method Details
-
getDispatchType
Description copied from class:MappedEvaluatorFactoryDetermines the type to use to select the evaluator.- Specified by:
getDispatchTypein classMappedEvaluatorFactory- Parameters:
result- the result buffer for the functionarguments- the arguments to the function- Returns:
- the type to use to lookup the evaluator
-