public class SimpleTypeInformationMapper extends Object implements TypeInformationMapper
TypeInformationMapper implementation that interprets the alias handles as fully qualified class name
and tries to load a class with the given name to build TypeInformation. Returns the fully qualified class
name for alias creation.| Constructor and Description |
|---|
SimpleTypeInformationMapper() |
| Modifier and Type | Method and Description |
|---|---|
Alias |
createAliasFor(TypeInformation<?> type)
Turn the given type information into the String representation that shall be stored.
|
TypeInformation<?> |
resolveTypeFrom(Alias alias)
Returns the
TypeInformation that shall be used when the given String value is found as type hint. |
@Nullable public TypeInformation<?> resolveTypeFrom(Alias alias)
TypeInformation that shall be used when the given String value is found as type hint.
The implementation will simply interpret the given value as fully-qualified class name and try to load the class.
Will return null in case the given String is empty.resolveTypeFrom in interface TypeInformationMapperalias - the type to load, must not be null.String representation or null if nothing found or the
class cannot be loaded.public Alias createAliasFor(TypeInformation<?> type)
createAliasFor in interface TypeInformationMappertype - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.