- java.lang.Object
-
- com.pervasive.datarush.functions.FunctionUtil
-
public class FunctionUtil extends Object
A collection of useful utilities for implementing classes related to functions.
-
-
Constructor Summary
Constructors Constructor Description FunctionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScalarTokenTypewidestInputType(FunctionContext ctx)Returns 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.
-
-
-
Method Detail
-
widestInputType
public static ScalarTokenType widestInputType(FunctionContext ctx)
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
public static ScalarTokenType widestInputType(FunctionContext ctx, int... indices)
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.
-
-