@Internal public final class TypeStrategies extends Object
TypeStrategy
Modifier and Type | Field and Description |
---|---|
static TypeStrategy |
ARRAY
Type strategy that returns a
DataTypes.ARRAY(DataType) with element type equal to the
type of the first argument. |
static TypeStrategy |
MAP
Type strategy that returns a
DataTypes.MAP(DataType, DataType) with a key type equal
to type of the first argument and a value type equal to the type of second argument. |
static TypeStrategy |
MISSING
Placeholder for a missing type strategy.
|
static TypeStrategy |
ROW
Type strategy that returns a
DataTypes.ROW() with fields types equal to input types. |
Modifier and Type | Method and Description |
---|---|
static TypeStrategy |
argument(int pos)
Type strategy that returns the n-th input argument.
|
static TypeStrategy |
explicit(DataType dataType)
Type strategy that returns a fixed
DataType . |
static TypeStrategy |
mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
Type strategy that maps an
InputTypeStrategy to a TypeStrategy if the input
strategy infers identical types. |
public static final TypeStrategy MISSING
public static final TypeStrategy ROW
DataTypes.ROW()
with fields types equal to input types.public static final TypeStrategy MAP
DataTypes.MAP(DataType, DataType)
with a key type equal
to type of the first argument and a value type equal to the type of second argument.public static final TypeStrategy ARRAY
DataTypes.ARRAY(DataType)
with element type equal to the
type of the first argument.public static TypeStrategy explicit(DataType dataType)
DataType
.public static TypeStrategy argument(int pos)
public static TypeStrategy mapping(Map<InputTypeStrategy,TypeStrategy> mappings)
InputTypeStrategy
to a TypeStrategy
if the input
strategy infers identical types.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.