public class TypeInfoParser extends Object
| Constructor and Description |
|---|
TypeInfoParser() |
| Modifier and Type | Method and Description |
|---|---|
static <X> org.apache.flink.api.common.typeinfo.TypeInformation<X> |
parse(String infoString)
Generates an instance of
TypeInformation by parsing a type
information string. |
public static <X> org.apache.flink.api.common.typeinfo.TypeInformation<X> parse(String infoString)
TypeInformation by parsing a type
information string. A type information string can contain the following
types:
Integer, String, etc.
Integer[],
String[], etc.
Tuple1<TYPE0>,
Tuple2<TYPE0, TYPE1>, etc.org.my.MyPojo<myFieldName=TYPE0,myFieldName2=TYPE1>, etc.java.lang.Class, etc.
org.my.CustomClass[],
org.my.CustomClass$StaticInnerClass[], etc.
DoubleValue,
StringValue, IntegerValue, etc.Tuple2<TYPE0,TYPE1>[], etc.Writable<org.my.CustomWritable>Enum<org.my.CustomEnum>"Tuple2<String,Tuple2<Integer,org.my.MyJob$Pojo<word=String>>>"infoString - type information string to be parsedTypeInformation representation of the stringCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.