Avro C#
Loading...
Searching...
No Matches
Avro.Specific.SpecificReader< T > Class Template Reference

Reader wrapper class for reading data and storing into specific classes. More...

Inheritance diagram for Avro.Specific.SpecificReader< T >:
Avro.Generic.DatumReader< T >

Public Member Functions

 SpecificReader (Schema writerSchema, Schema readerSchema)
 Constructs a generic reader for the given schemas using the DefaultReader. If the reader's and writer's schemas are different this class performs the resolution.
 SpecificReader (SpecificDefaultReader reader)
 Initializes a new instance of the SpecificReader<T> class using an existing SpecificDefaultReader.
T Read (T reuse, Decoder dec)
 Generic read function.

Properties

Schema WriterSchema [get]
 Schema for the writer class.
Schema ReaderSchema [get]
 Schema for the reader class.

Detailed Description

Reader wrapper class for reading data and storing into specific classes.

Template Parameters
TSpecific class type

Member Function Documentation

◆ Read()

T Avro.Specific.SpecificReader< T >.Read ( T reuse,
Decoder dec )
inline

Generic read function.

Parameters
reuseobject to store data read
decdecoder to use for reading data
Returns

Implements Avro.Generic.DatumReader< T >.

◆ SpecificReader() [1/2]

Avro.Specific.SpecificReader< T >.SpecificReader ( Schema writerSchema,
Schema readerSchema )
inline

Constructs a generic reader for the given schemas using the DefaultReader. If the reader's and writer's schemas are different this class performs the resolution.

Parameters
writerSchemaThe schema used while generating the data
readerSchemaThe schema desired by the reader

◆ SpecificReader() [2/2]

Avro.Specific.SpecificReader< T >.SpecificReader ( SpecificDefaultReader reader)
inline

Initializes a new instance of the SpecificReader<T> class using an existing SpecificDefaultReader.

Parameters
readerDefault reader to use.

Property Documentation

◆ ReaderSchema

Schema Avro.Specific.SpecificReader< T >.ReaderSchema
get

Schema for the reader class.

Implements Avro.Generic.DatumReader< T >.

◆ WriterSchema

Schema Avro.Specific.SpecificReader< T >.WriterSchema
get

Schema for the writer class.

Implements Avro.Generic.DatumReader< T >.


The documentation for this class was generated from the following file:
  • src/apache/main/Specific/SpecificReader.cs