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 SummaryNested classes/interfaces inherited from interface org.apache.avro.message.MessageDecoderorg.apache.avro.message.MessageDecoder.BaseDecoder<D extends Object>
- 
Constructor SummaryConstructorsConstructorDescriptionRawDecoder(Schema readSchema, Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction, org.apache.avro.Schema writeSchema) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <D> RawDecoder<D>create(Schema readSchema, Function<Schema, org.apache.avro.io.DatumReader<D>> readerFunction, org.apache.avro.Schema writeSchema) Creates a newMessageDecoderthat constructs datum instances described by thereadSchema.decode(InputStream stream, D reuse) Methods inherited from class org.apache.avro.message.MessageDecoder.BaseDecoderdecode, decode, decode, decode, decode
- 
Constructor Details- 
RawDecoder@Deprecated public RawDecoder(Schema readSchema, Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> readerFunction, org.apache.avro.Schema writeSchema) Deprecated.will be removed in 2.0.0; usecreate(org.apache.iceberg.Schema, Function, Schema)insteadCreates 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.
 
- 
- 
Method Details- 
createpublic static <D> RawDecoder<D> create(Schema readSchema, Function<Schema, org.apache.avro.io.DatumReader<D>> 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.- Parameters:
- readSchema- an Iceberg schema to produce when reading
- readerFunction- a function that produces a DatumReader from the read schema
- writeSchema- an Avro schema that describes serialized data to be read
 
- 
decode
 
- 
create(org.apache.iceberg.Schema, Function, Schema)instead