Public Member Functions | Properties

Avro::Specific::SpecificReader-g< T > Class Template Reference

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

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

List of all members.

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)
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

template<T>
class Avro::Specific::SpecificReader-g< T >

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

Template Parameters:
T Specific class type

Member Function Documentation

template<T >
T Avro::Specific::SpecificReader-g< T >::Read ( reuse,
Decoder  dec 
) [inline]

Generic read function.

Parameters:
reuse object to store data read
dec decorder to use for reading data
Returns:

Implements Avro::Generic::DatumReader-g< T >.

template<T >
Avro::Specific::SpecificReader-g< 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:
writerSchema The schema used while generating the data
readerSchema The schema desired by the reader

Property Documentation

template<T >
Schema Avro::Specific::SpecificReader-g< T >::ReaderSchema [get]

Schema for the reader class.

Implements Avro::Generic::DatumReader-g< T >.

template<T >
Schema Avro::Specific::SpecificReader-g< T >::WriterSchema [get]

Schema for the writer class.

Implements Avro::Generic::DatumReader-g< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties