17 #ifndef COMMON_RECORD_HPP_
18 #define COMMON_RECORD_HPP_
22 #include <avro/Schema.hh>
23 #include <boost/ref.hpp>
32 const boost::any
getValue()
const {
return boost::cref(*this).get(); }
35 avro::GenericDatum
toAvro()
const;
49 avro::NodePtr schema_;
fields_type getField(const keys_type &field_name) const
const avro::NodePtr & getSchema() const
avro::GenericDatum toAvro() const
std::string toString() const
bool hasField(const keys_type &field_name) const
Container::mapped_type fields_type
void removeField(const keys_type &field_name)
boost::uuids::uuid uuid_t
void setUuid(uuid_t uuid)
Container::key_type keys_type
CommonRecord(uuid_t uuid, const avro::NodePtr &schema)
void setField(const keys_type &field_name, fields_type value)
const boost::any getValue() const
const container_type & getFields() const