Class RawDecoder<D>

  • All Implemented Interfaces:
    org.apache.avro.message.MessageDecoder<D>

    public class RawDecoder<D>
    extends org.apache.avro.message.MessageDecoder.BaseDecoder<D>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.avro.message.MessageDecoder

        org.apache.avro.message.MessageDecoder.BaseDecoder<D extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      RawDecoder​(Schema readSchema, java.util.function.Function<org.apache.avro.Schema,​org.apache.avro.io.DatumReader<?>> readerFunction, org.apache.avro.Schema writeSchema)
      Creates a new MessageDecoder that constructs datum instances described by the readSchema.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      D decode​(java.io.InputStream stream, D reuse)  
      • Methods inherited from class org.apache.avro.message.MessageDecoder.BaseDecoder

        decode, decode, decode, decode, decode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RawDecoder

        public RawDecoder​(Schema readSchema,
                          java.util.function.Function<org.apache.avro.Schema,​org.apache.avro.io.DatumReader<?>> readerFunction,
                          org.apache.avro.Schema writeSchema)
        Creates a new MessageDecoder that constructs datum instances described by the readSchema.

        The readSchema is used for the expected schema and the writeSchema is the schema used to decode buffers. The writeSchema must be the schema that was used to encode all buffers decoded by this class.

    • Method Detail

      • decode

        public D decode​(java.io.InputStream stream,
                        D reuse)