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 newMessageDecoder
that constructs datum instances described by thereadSchema
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description D
decode(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 newMessageDecoder
that constructs datum instances described by thereadSchema
.The
readSchema
is used for the expected schema and thewriteSchema
is the schema used to decode buffers. ThewriteSchema
must be the schema that was used to encode all buffers decoded by this class.
-
-