Class TypeHint<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeinfo.TypeHint<T>
-
- Type Parameters:
T- The type information to hint.
@Public public abstract class TypeHint<T> extends Object
A utility class for describing generic types. It can be used to obtain a type information via:TypeInformation<Tuple2<String, Long>> info = TypeInformation.of(new TypeHint<Tuple2<String, Long>>(){});or
TypeInformation<Tuple2<String, Long>> info = new TypeHint<Tuple2<String, Long>>(){}.getTypeInfo();
-
-
Constructor Summary
Constructors Constructor Description TypeHint()Creates a hint for the generic type in the class signature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TypeInformation<T>getTypeInfo()Gets the type information described by this TypeHint.inthashCode()StringtoString()
-
-
-
Method Detail
-
getTypeInfo
public TypeInformation<T> getTypeInfo()
Gets the type information described by this TypeHint.- Returns:
- The type information described by this TypeHint.
-
-