public class MapifyTranslatorFactory extends Object implements TranslatorFactory<Map<Object,Object>,Collection<Object>>
This takes a datastore collection and converts it to a POJO Map by letting you select out the key value using a class of your own devising. The values will be written to the collection, not the keys.
Constructor and Description |
---|
MapifyTranslatorFactory() |
Modifier and Type | Method and Description |
---|---|
Translator<Map<Object,Object>,Collection<Object>> |
create(TypeKey<Map<Object,Object>> tk,
CreateContext ctx,
Path path)
Create a translator for a type.
|
public Translator<Map<Object,Object>,Collection<Object>> create(TypeKey<Map<Object,Object>> tk, CreateContext ctx, Path path)
TranslatorFactory
create
in interface TranslatorFactory<Map<Object,Object>,Collection<Object>>
tk
- defines the type which is to be translatedpath
- is where this type was discovered, important for logging and exceptionsCopyright © 2016. All rights reserved.