java.lang.Object
com.pervasive.datarush.functions.FunctionUtil
A collection of useful utilities for implementing classes related
to functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarTokenTypeReturns the widest input type for allScalarValuedFunctionarguments in the context.static ScalarTokenTypewidestInputType(FunctionContext ctx, int... indices) Returns the widest input type for all specifiedScalarValuedFunctionarguments in the context.
-
Constructor Details
-
FunctionUtil
public FunctionUtil()
-
-
Method Details
-
widestInputType
Returns the widest input type for allScalarValuedFunctionarguments in the context.- Parameters:
ctx- the processing context- Returns:
- the widest of all the input types. If there is no such
type (that is, it is
TokenTypeConstant.SCALAR),nullis returned.
-
widestInputType
Returns the widest input type for all specifiedScalarValuedFunctionarguments in the context.- Parameters:
ctx- the processing contextindices- the arguments to use in the calculation- Returns:
- the widest of all the specified input types. If there is no such
type (that is, it is
TokenTypeConstant.SCALAR),nullis returned.
-