public class ObjectInputTyper extends Object implements FunctionTyper
Modifier and Type | Field and Description |
---|---|
static HashMap<Class<?>,ScalarTokenType> |
typeTokenMap |
Constructor and Description |
---|
ObjectInputTyper(int... indices) |
ObjectInputTyper(ScalarTokenType bound,
int... indices) |
Modifier and Type | Method and Description |
---|---|
ScalarTokenType |
computeResultType(FunctionContext ctx)
Calculates the result type for the function given the
provided context.
|
ScalarTokenType |
computeUpperBound(FunctionContext ctx)
Calculates the upper bound for the function given the
provided context.
|
public static HashMap<Class<?>,ScalarTokenType> typeTokenMap
public ObjectInputTyper(int... indices)
public ObjectInputTyper(ScalarTokenType bound, int... indices)
public ScalarTokenType computeUpperBound(FunctionContext ctx)
FunctionTyper
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
is null
.
computeUpperBound
in interface FunctionTyper
ctx
- the context of the function being processedpublic ScalarTokenType computeResultType(FunctionContext ctx)
FunctionTyper
The context contains the actual result types of
all arguments to the function. If a argument is not
a subclass of ScalarValuedFunction
, its type
is null
.
computeResultType
in interface FunctionTyper
ctx
- the context of the function being processedCopyright © 2020 Actian Corporation. All rights reserved.