T - type for which TypeInformation is created@Public public abstract class TypeInfoFactory<T> extends Object
TypeInformation into the Flink type system. The factory is
called during the type extraction phase if the corresponding type has been annotated with
TypeInfo. In a hierarchy of types the closest factory will be chosen while traversing
upwards, however, a globally registered factory has highest precedence
(see TypeExtractor.registerFactory(Type, Class)).| Constructor and Description |
|---|
TypeInfoFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract TypeInformation<T> |
createTypeInfo(Type t,
Map<String,TypeInformation<?>> genericParameters)
Creates type information for the type the factory is targeted for.
|
public abstract TypeInformation<T> createTypeInfo(Type t, Map<String,TypeInformation<?>> genericParameters)
t - the exact type the type information is created for; might also be a subclass of <T>genericParameters - mapping of the type's generic type parameters to type information
extracted with Flink's type extraction facilities; null values
indicate that type information could not be extracted for this parameterCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.