public class Types$ extends Object
Modifier and Type | Field and Description |
---|---|
static Types$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Types$() |
public static final Types$ MODULE$
public 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 BasicTypeInfo<String> STRING()
public BasicTypeInfo<Boolean> BOOLEAN()
public BasicTypeInfo<Byte> BYTE()
public BasicTypeInfo<Short> SHORT()
public BasicTypeInfo<Integer> INT()
public BasicTypeInfo<Long> LONG()
public BasicTypeInfo<Float> FLOAT()
public BasicTypeInfo<Double> DOUBLE()
public BasicTypeInfo<BigDecimal> DECIMAL()
public SqlTimeTypeInfo<Date> SQL_DATE()
public SqlTimeTypeInfo<Time> SQL_TIME()
public SqlTimeTypeInfo<Timestamp> SQL_TIMESTAMP()
public TimeIntervalTypeInfo<Integer> INTERVAL_MONTHS()
public TimeIntervalTypeInfo<Long> INTERVAL_MILLIS()
public 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 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 TypeInformation<?> PRIMITIVE_ARRAY(TypeInformation<?> elementType)
elementType
- type of the array elements; e.g. Types.INTpublic TypeInformation<?> OBJECT_ARRAY(TypeInformation<?> elementType)
elementType
- type of the array elements; e.g. Types.STRING or Types.INTpublic 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.