public interface CoderCloudObjectTranslatorRegistrar
Coder authors have the ability to automatically have their Coder registered with
the Dataflow Runner by creating a ServiceLoader entry and a concrete implementation of
this interface.
It is optional but recommended to use one of the many build time tools such as
AutoService to generate the necessary META-INF files automatically.
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Coder>,CloudObjectTranslator<? extends Coder>> |
classesToTranslators()
|
Map<String,CloudObjectTranslator<? extends Coder>> |
classNamesToTranslators()
Gets a map from the name returned by
CloudObject.getClassName() to a translator that
can convert into the equivalent Coder. |
Map<Class<? extends Coder>,CloudObjectTranslator<? extends Coder>> classesToTranslators()
Map<String,CloudObjectTranslator<? extends Coder>> classNamesToTranslators()
CloudObject.getClassName() to a translator that
can convert into the equivalent Coder.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.