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 |
|---|---|
String |
createAliasFor(TypeInformation<?> type)
Turn the given type information into the String representation that shall be stored.
|
ClassTypeInformation<?> |
resolveTypeFrom(Object alias)
Returns the
TypeInformation that shall be used when the given String value is found as type hint. |
public ClassTypeInformation<?> resolveTypeFrom(Object 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 TypeInformationMappervalue - the type to load, must not be null.String representation or null if nothing found or the
class cannot be loaded.public String createAliasFor(TypeInformation<?> type)
createAliasFor in interface TypeInformationMappertypeInformation - must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.