|
Avro C++
|
A utility class to read generic datum from decoders. More...
#include <Generic.hh>
Public Member Functions | |
| GenericReader (ValidSchema s, const DecoderPtr &decoder) | |
| Constructs a reader for the given schema using the given decoder. | |
| GenericReader (const ValidSchema &writerSchema, const ValidSchema &readerSchema, const DecoderPtr &decoder) | |
Constructs a reader for the given reader's schema readerSchema using the given decoder which holds data matching writer's schema writerSchema. | |
| void | read (GenericDatum &datum) const |
| Reads a value off the decoder. | |
| void | drain () |
| Drains any residual bytes in the input stream (e.g. More... | |
Static Public Member Functions | |
| static void | read (Decoder &d, GenericDatum &g) |
| Reads a generic datum from the stream, using the given schema. | |
| static void | read (Decoder &d, GenericDatum &g, const ValidSchema &s) |
| Reads a generic datum from the stream, using the given schema. | |
A utility class to read generic datum from decoders.
|
inline |
Drains any residual bytes in the input stream (e.g.
because reader's schema has no use of them) and return unused bytes back to the underlying input stream.
1.8.17