Interface CoderCloudObjectTranslatorRegistrar

  • All Known Implementing Classes:
    DefaultCoderCloudObjectTranslatorRegistrar

    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.

    • 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()
        Gets a map from Coder to a CloudObjectTranslator that can translate that Coder.
      • classNamesToTranslators

        java.util.Map<java.lang.String,​CloudObjectTranslator<? extends org.apache.beam.sdk.coders.Coder>> classNamesToTranslators()
        Gets a map from the name returned by CloudObject.getClassName() to a translator that can convert into the equivalent Coder.