Class AvroGenericCoderTranslator

  • All Implemented Interfaces:
    org.apache.beam.sdk.util.construction.CoderTranslator<AvroGenericCoder>

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

      • AvroGenericCoderTranslator

        public AvroGenericCoderTranslator()
    • Method Detail

      • getComponents

        public java.util.List<? extends org.apache.beam.sdk.coders.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​(java.util.List<org.apache.beam.sdk.coders.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>