ResolvingDecoder is derived from Decoder, with an additional function to obtain the field ordering of fiedls within a record. More...
#include <Decoder.hh>
Public Member Functions | |
virtual const std::vector < size_t > & | fieldOrder ()=0 |
Returns the order of fields for records. |
ResolvingDecoder is derived from Decoder, with an additional function to obtain the field ordering of fiedls within a record.
virtual const std::vector<size_t>& avro::ResolvingDecoder::fieldOrder | ( | ) | [pure virtual] |
Returns the order of fields for records.
The order of fields could be different from the order of their order in the schema because the writer's field order could be different. In order to avoid buffering and later use, we return the values in the writer's field order.