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 |
---|---|
java.util.Map<java.lang.Class<? extends Coder>,CloudObjectTranslator<? extends Coder>> |
classesToTranslators()
|
java.util.Map<java.lang.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 . |
java.util.Map<java.lang.Class<? extends Coder>,CloudObjectTranslator<? extends Coder>> classesToTranslators()
java.util.Map<java.lang.String,CloudObjectTranslator<? extends Coder>> classNamesToTranslators()
CloudObject.getClassName()
to a translator that
can convert into the equivalent Coder
.