- java.lang.Object
-
- com.pervasive.datarush.functions.MappedEvaluatorFactory
-
- com.pervasive.datarush.functions.InputMappedFactory
-
- All Implemented Interfaces:
EvaluatorFactory
public class InputMappedFactory extends MappedEvaluatorFactory
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
Constructors Constructor Description InputMappedFactory(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
InputMappedFactory
public InputMappedFactory(int index, MappedEvaluatorFactory.Mapping... mappings)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
public InputMappedFactory(int[] indices, MappedEvaluatorFactory.Mapping... mappings)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 Detail
-
getDispatchType
protected ScalarTokenType getDispatchType(ScalarSettable result, Object[] arguments)
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
-
-