@PublicEvolving public class Types extends Object
Modifier and Type | Field 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 BasicTypeInfo<Long> |
LONG |
static BasicTypeInfo<Short> |
SHORT |
static SqlTimeTypeInfo<Date> |
SQL_DATE |
static SqlTimeTypeInfo<Time> |
SQL_TIME |
static SqlTimeTypeInfo<Timestamp> |
SQL_TIMESTAMP |
static BasicTypeInfo<String> |
STRING |
Constructor and Description |
---|
Types() |
Modifier and Type | Method and Description |
---|---|
static RowTypeInfo |
ROW_NAMED(String[] fieldNames,
TypeInformation<?>... types)
Generates a RowTypeInfo with fields of the given types and with given names.
|
static RowTypeInfo |
ROW(TypeInformation<?>... types)
Generates a RowTypeInfo with fields of the given types.
|
public static final BasicTypeInfo<String> STRING
public static final BasicTypeInfo<Boolean> BOOLEAN
public static final BasicTypeInfo<Byte> BYTE
public static final BasicTypeInfo<Short> SHORT
public static final BasicTypeInfo<Integer> INT
public static final BasicTypeInfo<Long> LONG
public static final BasicTypeInfo<Float> FLOAT
public static final BasicTypeInfo<Double> DOUBLE
public static final BasicTypeInfo<BigDecimal> DECIMAL
public static final SqlTimeTypeInfo<Date> SQL_DATE
public static final SqlTimeTypeInfo<Time> SQL_TIME
public static final SqlTimeTypeInfo<Timestamp> SQL_TIMESTAMP
public static RowTypeInfo ROW(TypeInformation<?>... types)
This method is a shortcut to new RowTypeInfo(types)
.
types
- The types of the row fields, e.g., Types.STRING, Types.INTpublic static RowTypeInfo ROW_NAMED(String[] fieldNames, TypeInformation<?>... types)
Example use: ROW_NAMED(new String[]{"name", "number"}, Types.STRING, Types.INT)
.
This method is identical to new RowTypeInfo(types, names)
.
fieldNames
- array of field namestypes
- array of field typesCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.