Class IcebergDecoder<D>
- All Implemented Interfaces:
- org.apache.avro.message.MessageDecoder<D>
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.avro.message.MessageDecoderorg.apache.avro.message.MessageDecoder.BaseDecoder<D>
- 
Constructor SummaryConstructorsConstructorDescriptionIcebergDecoder(Schema readSchema) Creates a new decoder that constructs datum instances described by anIceberg schema.IcebergDecoder(Schema readSchema, org.apache.avro.message.SchemaStore resolver) Creates a new decoder that constructs datum instances described by anIceberg schema.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds anIceberg schemathat can be used to decode buffers.decode(InputStream stream, D reuse) Methods inherited from class org.apache.avro.message.MessageDecoder.BaseDecoderdecode, decode, decode, decode, decode
- 
Constructor Details- 
IcebergDecoderCreates a new decoder that constructs datum instances described by anIceberg schema.The readSchemais as used the expected schema (read schema). Datum instances created by this class will are described by the expected schema.The schema used to decode incoming buffers is determined by the schema fingerprint encoded in the message header. This class can decode messages that were encoded using the readSchemaand other schemas that are added usingaddSchema(org.apache.iceberg.Schema).- Parameters:
- readSchema- the schema used to construct datum instances
 
- 
IcebergDecoderCreates a new decoder that constructs datum instances described by anIceberg schema.The readSchemais as used the expected schema (read schema). Datum instances created by this class will are described by the expected schema.The schema used to decode incoming buffers is determined by the schema fingerprint encoded in the message header. This class can decode messages that were encoded using the readSchemaand other schemas that are added usingaddSchema(org.apache.iceberg.Schema).Schemas may also be returned from an Avro SchemaStore. Avro Schemas from the store must be compatible with Iceberg and should contain id properties and use only Iceberg types.- Parameters:
- readSchema- the- Schemaused to construct datum instances
- resolver- a- SchemaStoreused to find schemas by fingerprint
 
 
- 
- 
Method Details- 
addSchemaAdds anIceberg schemathat can be used to decode buffers.- Parameters:
- writeSchema- a schema to use when decoding buffers
 
- 
decode- Throws:
- IOException
 
 
-