Class AvroGenericCoderTranslator

java.lang.Object
org.apache.beam.sdk.extensions.avro.AvroGenericCoderTranslator
All Implemented Interfaces:
org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>

public class AvroGenericCoderTranslator extends Object implements org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>
Coder translator for AvroGenericCoder.
  • Constructor Details

    • AvroGenericCoderTranslator

      public AvroGenericCoderTranslator()
  • Method Details

    • getComponents

      public List<? extends Coder<?>> getComponents(AvroGenericCoder from)
      Specified by:
      getComponents in interface org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>
    • getPayload

      public byte[] getPayload(AvroGenericCoder from)
      Specified by:
      getPayload in interface org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>
    • fromComponents

      public AvroGenericCoder fromComponents(List<Coder<?>> components, byte[] payload, org.apache.beam.sdk.util.construction.CoderTranslation.TranslationContext context)
      Specified by:
      fromComponents in interface org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>