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 org.apache.flink.api.common.typeinfo.TypeInformation<Boolean> |
BOOLEAN()
Deprecated.
Returns type information for a Table API boolean or SQL BOOLEAN type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Byte> |
BYTE()
Deprecated.
Returns type information for a Table API byte or SQL TINYINT type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<BigDecimal> |
DECIMAL()
Deprecated.
Returns type information for a Table API big decimal or SQL DECIMAL type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Double> |
DOUBLE()
Deprecated.
Returns type information for a Table API integer or SQL DOUBLE type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Float> |
FLOAT()
Deprecated.
Returns type information for a Table API float or SQL FLOAT/REAL type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Integer> |
INT()
Deprecated.
Returns type information for a Table API integer or SQL INT/INTEGER type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Long> |
INTERVAL_MILLIS()
Deprecated.
Returns type information for a Table API interval of milliseconds.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Integer> |
INTERVAL_MONTHS()
Deprecated.
Returns type information for a Table API interval of months.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalDateTime> |
LOCAL_DATE_TIME()
Deprecated.
Returns type information for a Table API LocalDateTime type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalDate> |
LOCAL_DATE()
Deprecated.
Returns type information for a Table API LocalDate type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalTime> |
LOCAL_TIME()
Deprecated.
Returns type information for a Table API LocalTime type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Long> |
LONG()
Deprecated.
Returns type information for a Table API long or SQL BIGINT type.
|
static <K,V> org.apache.flink.api.common.typeinfo.TypeInformation<Map<K,V>> |
MAP(org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType,
org.apache.flink.api.common.typeinfo.TypeInformation<V> valueType)
Deprecated.
Generates type information for a Java HashMap.
|
static <E> org.apache.flink.api.common.typeinfo.TypeInformation<Map<E,Integer>> |
MULTISET(org.apache.flink.api.common.typeinfo.TypeInformation<E> elementType)
Deprecated.
Generates type information for a Multiset.
|
static <E> org.apache.flink.api.common.typeinfo.TypeInformation<E[]> |
OBJECT_ARRAY(org.apache.flink.api.common.typeinfo.TypeInformation<E> elementType)
Deprecated.
Generates type information for an array consisting of Java object elements.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
PRIMITIVE_ARRAY(org.apache.flink.api.common.typeinfo.TypeInformation<?> elementType)
Deprecated.
Generates type information for an array consisting of Java primitive elements.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
ROW(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] types)
Deprecated.
Returns type information for
Row with fields of the given types and with given names. |
static org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
ROW(org.apache.flink.api.common.typeinfo.TypeInformation<?>... types)
Deprecated.
Returns type information for
Row with fields of the given types. |
static org.apache.flink.api.common.typeinfo.TypeInformation<Short> |
SHORT()
Deprecated.
Returns type information for a Table API short or SQL SMALLINT type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Date> |
SQL_DATE()
Deprecated.
Returns type information for a Table API SQL date or SQL DATE type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Time> |
SQL_TIME()
Deprecated.
Returns type information for a Table API SQL time or SQL TIME type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<Timestamp> |
SQL_TIMESTAMP()
Deprecated.
Returns type information for a Table API SQL timestamp or SQL TIMESTAMP type.
|
static org.apache.flink.api.common.typeinfo.TypeInformation<String> |
STRING()
Deprecated.
Returns type information for a Table API string or SQL VARCHAR type.
|
public static org.apache.flink.api.common.typeinfo.TypeInformation<String> STRING()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Boolean> BOOLEAN()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Byte> BYTE()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Short> SHORT()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Integer> INT()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Long> LONG()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Float> FLOAT()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Double> DOUBLE()
public static org.apache.flink.api.common.typeinfo.TypeInformation<BigDecimal> DECIMAL()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Date> SQL_DATE()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Time> SQL_TIME()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Timestamp> SQL_TIMESTAMP()
public static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalDate> LOCAL_DATE()
public static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalTime> LOCAL_TIME()
public static org.apache.flink.api.common.typeinfo.TypeInformation<java.time.LocalDateTime> LOCAL_DATE_TIME()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Integer> INTERVAL_MONTHS()
public static org.apache.flink.api.common.typeinfo.TypeInformation<Long> INTERVAL_MILLIS()
public static org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> ROW(org.apache.flink.api.common.typeinfo.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 org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> ROW(String[] fieldNames, org.apache.flink.api.common.typeinfo.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 org.apache.flink.api.common.typeinfo.TypeInformation<?> PRIMITIVE_ARRAY(org.apache.flink.api.common.typeinfo.TypeInformation<?> elementType)
elementType - type of the array elements; e.g. Types.INT()public static <E> org.apache.flink.api.common.typeinfo.TypeInformation<E[]> OBJECT_ARRAY(org.apache.flink.api.common.typeinfo.TypeInformation<E> elementType)
elementType - type of the array elements; e.g. Types.INT()public static <K,V> org.apache.flink.api.common.typeinfo.TypeInformation<Map<K,V>> MAP(org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType, org.apache.flink.api.common.typeinfo.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> org.apache.flink.api.common.typeinfo.TypeInformation<Map<E,Integer>> MULTISET(org.apache.flink.api.common.typeinfo.TypeInformation<E> elementType)
elementType - type of the elements of the multiset e.g. Types.STRING()Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.