DataTypes
instead which uses the new type system based on
instances of DataType
. Please make sure to use either the old or the new type
system consistently to avoid unintended behavior. See the website documentation
for more information.@Deprecated public final class Types extends Object
Modifier and Type | Method and Description |
---|---|
static TypeInformation<Boolean> |
BOOLEAN()
Deprecated.
Returns type information for a Table API boolean or SQL BOOLEAN type.
|
static TypeInformation<Byte> |
BYTE()
Deprecated.
Returns type information for a Table API byte or SQL TINYINT type.
|
static TypeInformation<BigDecimal> |
DECIMAL()
Deprecated.
Returns type information for a Table API big decimal or SQL DECIMAL type.
|
static TypeInformation<Double> |
DOUBLE()
Deprecated.
Returns type information for a Table API integer or SQL DOUBLE type.
|
static TypeInformation<Float> |
FLOAT()
Deprecated.
Returns type information for a Table API float or SQL FLOAT/REAL type.
|
static TypeInformation<Integer> |
INT()
Deprecated.
Returns type information for a Table API integer or SQL INT/INTEGER type.
|
static TypeInformation<Long> |
INTERVAL_MILLIS()
Deprecated.
Returns type information for a Table API interval of milliseconds.
|
static TypeInformation<Integer> |
INTERVAL_MONTHS()
Deprecated.
Returns type information for a Table API interval of months.
|
static TypeInformation<java.time.LocalDateTime> |
LOCAL_DATE_TIME()
Deprecated.
Returns type information for a Table API LocalDateTime type.
|
static TypeInformation<java.time.LocalDate> |
LOCAL_DATE()
Deprecated.
Returns type information for a Table API LocalDate type.
|
static TypeInformation<java.time.LocalTime> |
LOCAL_TIME()
Deprecated.
Returns type information for a Table API LocalTime type.
|
static TypeInformation<Long> |
LONG()
Deprecated.
Returns type information for a Table API long or SQL BIGINT type.
|
static <K,V> TypeInformation<Map<K,V>> |
MAP(TypeInformation<K> keyType,
TypeInformation<V> valueType)
Deprecated.
Generates type information for a Java HashMap.
|
static <E> TypeInformation<Map<E,Integer>> |
MULTISET(TypeInformation<E> elementType)
Deprecated.
Generates type information for a Multiset.
|
static <E> TypeInformation<E[]> |
OBJECT_ARRAY(TypeInformation<E> elementType)
Deprecated.
Generates type information for an array consisting of Java object elements.
|
static TypeInformation<?> |
PRIMITIVE_ARRAY(TypeInformation<?> elementType)
Deprecated.
Generates type information for an array consisting of Java primitive elements.
|
static TypeInformation<Row> |
ROW(String[] fieldNames,
TypeInformation<?>[] types)
Deprecated.
Returns type information for
Row with fields of the given types and with given names. |
static TypeInformation<Row> |
ROW(TypeInformation<?>... types)
Deprecated.
Returns type information for
Row with fields of the given types. |
static TypeInformation<Short> |
SHORT()
Deprecated.
Returns type information for a Table API short or SQL SMALLINT type.
|
static TypeInformation<Date> |
SQL_DATE()
Deprecated.
Returns type information for a Table API SQL date or SQL DATE type.
|
static TypeInformation<Time> |
SQL_TIME()
Deprecated.
Returns type information for a Table API SQL time or SQL TIME type.
|
static TypeInformation<Timestamp> |
SQL_TIMESTAMP()
Deprecated.
Returns type information for a Table API SQL timestamp or SQL TIMESTAMP type.
|
static TypeInformation<String> |
STRING()
Deprecated.
Returns type information for a Table API string or SQL VARCHAR type.
|
public static TypeInformation<String> STRING()
public static TypeInformation<Boolean> BOOLEAN()
public static TypeInformation<Byte> BYTE()
public static TypeInformation<Short> SHORT()
public static TypeInformation<Integer> INT()
public static TypeInformation<Long> LONG()
public static TypeInformation<Float> FLOAT()
public static TypeInformation<Double> DOUBLE()
public static TypeInformation<BigDecimal> DECIMAL()
public static TypeInformation<Date> SQL_DATE()
public static TypeInformation<Time> SQL_TIME()
public static TypeInformation<Timestamp> SQL_TIMESTAMP()
public static TypeInformation<java.time.LocalDate> LOCAL_DATE()
public static TypeInformation<java.time.LocalTime> LOCAL_TIME()
public static TypeInformation<java.time.LocalDateTime> LOCAL_DATE_TIME()
public static TypeInformation<Integer> INTERVAL_MONTHS()
public static TypeInformation<Long> INTERVAL_MILLIS()
public static TypeInformation<Row> ROW(TypeInformation<?>... types)
Row
with fields of the given types.
A row is a variable-length, null-aware composite type for storing multiple values in a deterministic field order. Every field can be null regardless of the field's type. The type of row fields cannot be automatically inferred; therefore, it is required to provide type information whenever a row is used.
The schema of rows can have up to Integer.MAX_VALUE
fields, however, all row
instances must strictly adhere to the schema defined by the type info.
This method generates type information with fields of the given types; the fields have the default names (f0, f1, f2 ..).
types
- The types of the row fields, e.g., Types.STRING(), Types.INT()public static TypeInformation<Row> ROW(String[] fieldNames, TypeInformation<?>[] types)
Row
with fields of the given types and with given names.
A row is a variable-length, null-aware composite type for storing multiple values in a deterministic field order. Every field can be null independent of the field's type. The type of row fields cannot be automatically inferred; therefore, it is required to provide type information whenever a row is used.
The schema of rows can have up to Integer.MAX_VALUE
fields, however, all row
instances must strictly adhere to the schema defined by the type info.
fieldNames
- The array of field namestypes
- The types of the row fields, e.g., Types.STRING(), Types.INT()public static TypeInformation<?> PRIMITIVE_ARRAY(TypeInformation<?> elementType)
elementType
- type of the array elements; e.g. Types.INT()public static <E> TypeInformation<E[]> OBJECT_ARRAY(TypeInformation<E> elementType)
elementType
- type of the array elements; e.g. Types.INT()public static <K,V> TypeInformation<Map<K,V>> MAP(TypeInformation<K> keyType, TypeInformation<V> valueType)
keyType
- type of the keys of the map e.g. Types.STRING()valueType
- type of the values of the map e.g. Types.STRING()public static <E> TypeInformation<Map<E,Integer>> MULTISET(TypeInformation<E> elementType)
elementType
- type of the elements of the multiset e.g. Types.STRING()Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.