Kinetica   C#   API  Version 7.2.3.0
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 >:
+ Collaboration diagram for Avro.Specific.SpecificReader< T >:

Public Member Functions

 SpecificReader (Schema writerSchema, Schema readerSchema)
 Constructs a generic reader for the given schemas using the DefaultReader. More...
 
 SpecificReader (SpecificDefaultReader reader)
 
Read (T reuse, Decoder dec)
 Generic read function More...
 

Properties

Schema WriterSchema [get]
 Schema for the writer class More...
 
Schema ReaderSchema [get]
 Schema for the reader class More...
 
- Properties inherited from Avro.Generic.DatumReader< T >
Schema ReaderSchema [get]
 
Schema WriterSchema [get]
 

Detailed Description

Reader wrapper class for reading data and storing into specific classes

Template Parameters
TSpecific class type

Definition at line 33 of file SpecificReader.cs.

Constructor & Destructor Documentation

◆ 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

Definition at line 56 of file SpecificReader.cs.

◆ SpecificReader() [2/2]

Definition at line 61 of file SpecificReader.cs.

Member Function Documentation

◆ Read()

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

Generic read function

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

Implements Avro.Generic.DatumReader< T >.

Definition at line 72 of file SpecificReader.cs.

Property Documentation

◆ ReaderSchema

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

Schema for the reader class

Definition at line 48 of file SpecificReader.cs.

◆ WriterSchema

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

Schema for the writer class

Definition at line 43 of file SpecificReader.cs.


The documentation for this class was generated from the following file: