public class Types extends Object
Constructor and Description |
---|
Types() |
Modifier and Type | Method and Description |
---|---|
static BasicTypeInfo<Boolean> |
BOOLEAN() |
static BasicTypeInfo<Byte> |
BYTE() |
static BasicTypeInfo<BigDecimal> |
DECIMAL() |
static BasicTypeInfo<Double> |
DOUBLE() |
static BasicTypeInfo<Float> |
FLOAT() |
static BasicTypeInfo<Integer> |
INT() |
static TimeIntervalTypeInfo<Long> |
INTERVAL_MILLIS() |
static TimeIntervalTypeInfo<Integer> |
INTERVAL_MONTHS() |
static BasicTypeInfo<Long> |
LONG() |
static TypeInformation<?> |
MAP(TypeInformation<?> keyType,
TypeInformation<?> valueType)
Generates type information for a Java HashMap.
|
static TypeInformation<?> |
OBJECT_ARRAY(TypeInformation<?> elementType)
Generates type information for an array consisting of Java object elements.
|
static TypeInformation<?> |
PRIMITIVE_ARRAY(TypeInformation<?> elementType)
Generates type information for an array consisting of Java primitive elements.
|
static TypeInformation<Row> |
ROW(scala.collection.Seq<TypeInformation<?>> types)
Generates row type information.
|
static TypeInformation<Row> |
ROW(String[] names,
TypeInformation<?>[] types)
Generates row type information.
|
static TypeInformation<Row> |
ROW(TypeInformation<?>... types)
Generates row type information.
|
static BasicTypeInfo<Short> |
SHORT() |
static SqlTimeTypeInfo<Date> |
SQL_DATE() |
static SqlTimeTypeInfo<Time> |
SQL_TIME() |
static SqlTimeTypeInfo<Timestamp> |
SQL_TIMESTAMP() |
static BasicTypeInfo<String> |
STRING() |
public static TypeInformation<Row> ROW(TypeInformation<?>... types)
A row type consists of zero or more fields with a field name and a corresponding type.
The fields have the default names (f0, f1, f2 ..).
types
- types of row fields; e.g. Types.STRING, Types.INTpublic static BasicTypeInfo<String> STRING()
public static BasicTypeInfo<Boolean> BOOLEAN()
public static BasicTypeInfo<Byte> BYTE()
public static BasicTypeInfo<Short> SHORT()
public static BasicTypeInfo<Integer> INT()
public static BasicTypeInfo<Long> LONG()
public static BasicTypeInfo<Float> FLOAT()
public static BasicTypeInfo<Double> DOUBLE()
public static BasicTypeInfo<BigDecimal> DECIMAL()
public static SqlTimeTypeInfo<Date> SQL_DATE()
public static SqlTimeTypeInfo<Time> SQL_TIME()
public static SqlTimeTypeInfo<Timestamp> SQL_TIMESTAMP()
public static TimeIntervalTypeInfo<Integer> INTERVAL_MONTHS()
public static TimeIntervalTypeInfo<Long> INTERVAL_MILLIS()
public static TypeInformation<Row> ROW(scala.collection.Seq<TypeInformation<?>> types)
A row type consists of zero or more fields with a field name and a corresponding type.
The fields have the default names (f0, f1, f2 ..).
types
- types of row fields; e.g. Types.STRING, Types.INTpublic static TypeInformation<Row> ROW(String[] names, TypeInformation<?>[] types)
A row type consists of zero or more fields with a field name and a corresponding type.
names
- names of row fields, e.g. "userid", "name"types
- types of row fields; e.g. Types.STRING, Types.INTpublic static TypeInformation<?> PRIMITIVE_ARRAY(TypeInformation<?> elementType)
elementType
- type of the array elements; e.g. Types.INTpublic static TypeInformation<?> OBJECT_ARRAY(TypeInformation<?> elementType)
elementType
- type of the array elements; e.g. Types.STRING or Types.INTpublic static TypeInformation<?> MAP(TypeInformation<?> keyType, TypeInformation<?> valueType)
keyType
- type of the keys of the map e.g. Types.STRINGvalueType
- type of the values of the map e.g. Types.STRINGCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.