Interface CoderCloudObjectTranslatorRegistrar
-
- All Known Implementing Classes:
DefaultCoderCloudObjectTranslatorRegistrar
public interface CoderCloudObjectTranslatorRegistrarCoderauthors have the ability to automatically have theirCoderregistered with the Dataflow Runner by creating aServiceLoaderentry and a concrete implementation of this interface.It is optional but recommended to use one of the many build time tools such as
AutoServiceto generate the necessary META-INF files automatically.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.Class<? extends org.apache.beam.sdk.coders.Coder>,CloudObjectTranslator<? extends org.apache.beam.sdk.coders.Coder>>classesToTranslators()java.util.Map<java.lang.String,CloudObjectTranslator<? extends org.apache.beam.sdk.coders.Coder>>classNamesToTranslators()Gets a map from the name returned byCloudObject.getClassName()to a translator that can convert into the equivalentCoder.
-
-
-
Method Detail
-
classesToTranslators
java.util.Map<java.lang.Class<? extends org.apache.beam.sdk.coders.Coder>,CloudObjectTranslator<? extends org.apache.beam.sdk.coders.Coder>> classesToTranslators()
-
classNamesToTranslators
java.util.Map<java.lang.String,CloudObjectTranslator<? extends org.apache.beam.sdk.coders.Coder>> classNamesToTranslators()
Gets a map from the name returned byCloudObject.getClassName()to a translator that can convert into the equivalentCoder.
-
-