Public Member Functions

avro::GenericRecord Class Reference

The generic container for Avro records. More...

#include <Generic.hh>

Inheritance diagram for avro::GenericRecord:
avro::GenericContainer

List of all members.

Public Member Functions

 GenericRecord (const NodePtr &schema)
 Constructs a generic record corresponding to the given schema schema, which should be of Avro type record.
size_t fieldCount () const
 Returns the number of fields in the current record.
const GenericDatumfieldAt (size_t pos) const
 Returns the field at the given position pos.
GenericDatumfieldAt (size_t pos)
 Returns the reference to the field at the given position pos, which can be used to change the contents.
void setFieldAt (size_t pos, const GenericDatum &v)
 Replaces the field at the given position pos with v.

Detailed Description

The generic container for Avro records.


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