- 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 ScalarTokenType
widestInputType(FunctionContext ctx)
Returns the widest input type for allScalarValuedFunction
arguments in the context.static ScalarTokenType
widestInputType(FunctionContext ctx, int... indices)
Returns the widest input type for all specifiedScalarValuedFunction
arguments in the context.
-
-
-
Method Detail
-
widestInputType
public static ScalarTokenType widestInputType(FunctionContext ctx)
Returns the widest input type for allScalarValuedFunction
arguments 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
),null
is returned.
-
widestInputType
public static ScalarTokenType widestInputType(FunctionContext ctx, int... indices)
Returns the widest input type for all specifiedScalarValuedFunction
arguments 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
),null
is returned.
-
-