Package org.apache.iceberg.data.avro
Class RawDecoder<D>
- java.lang.Object
-
- org.apache.avro.message.MessageDecoder.BaseDecoder<D>
-
- org.apache.iceberg.data.avro.RawDecoder<D>
-
- All Implemented Interfaces:
org.apache.avro.message.MessageDecoder<D>
public class RawDecoder<D> extends org.apache.avro.message.MessageDecoder.BaseDecoder<D>
-
-
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 newMessageDecoderthat constructs datum instances described by thereadSchema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ddecode(java.io.InputStream stream, D reuse)
-
-
-
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 newMessageDecoderthat constructs datum instances described by thereadSchema.The
readSchemais used for the expected schema and thewriteSchemais the schema used to decode buffers. ThewriteSchemamust be the schema that was used to encode all buffers decoded by this class.
-
-