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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.avro.message.MessageDecoder
org.apache.avro.message.MessageDecoder.BaseDecoder<D>
-
Constructor Summary
ConstructorDescriptionRawDecoder
(Schema readSchema, 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
Methods inherited from class org.apache.avro.message.MessageDecoder.BaseDecoder
decode, decode, decode, decode, decode
-
Constructor Details
-
RawDecoder
public RawDecoder(Schema readSchema, 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.
-
-
Method Details
-
decode
-