java.lang.Object
com.pervasive.datarush.functions.ObjectInputTyper
- All Implemented Interfaces:
FunctionTyper
A typer determining the output type of a function based
on the types of one or more Object inputs. If more than one
input is used, the widest of the inputs is used.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectInputTyper(int... indices) ObjectInputTyper(ScalarTokenType bound, int... indices) -
Method Summary
Modifier and TypeMethodDescriptionCalculates the result type for the function given the provided context.Calculates the upper bound for the function given the provided context.
-
Field Details
-
typeTokenMap
-
-
Constructor Details
-
ObjectInputTyper
public ObjectInputTyper(int... indices) -
ObjectInputTyper
-
-
Method Details
-
computeUpperBound
Description copied from interface:FunctionTyperCalculates the upper bound for the function given the provided context.The context contains the upper bounds on the types of all arguments to the function. If a argument is not a subclass of
ScalarValuedFunction, its type isnull.- Specified by:
computeUpperBoundin interfaceFunctionTyper- Parameters:
ctx- the context of the function being processed- Returns:
- the upper bound on the function
-
computeResultType
Description copied from interface:FunctionTyperCalculates the result type for the function given the provided context.The context contains the actual result types of all arguments to the function. If a argument is not a subclass of
ScalarValuedFunction, its type isnull.- Specified by:
computeResultTypein interfaceFunctionTyper- Parameters:
ctx- the context of the function being processed- Returns:
- the result type of the function
-