memgraph/storage/model/record.hpp

29 lines
542 B
C++
Raw Normal View History

2015-07-07 22:18:26 +08:00
#ifndef MEMGRAPH_STORAGE_RECORD_HPP
#define MEMGRAPH_STORAGE_RECORD_HPP
#include <mutex>
#include <set>
2015-07-07 22:18:26 +08:00
2015-07-31 18:31:08 +08:00
#include "utils/crtp.hpp"
#include "threading/sync/spinlock.hpp"
2015-07-31 18:31:08 +08:00
#include "mvcc/mvcc.hpp"
2015-07-07 22:18:26 +08:00
#include "properties/properties.hpp"
2015-07-31 18:31:08 +08:00
template <class Derived>
2015-07-07 22:18:26 +08:00
class Record
2015-07-31 18:31:08 +08:00
: public Crtp<Derived>,
public mvcc::Mvcc<Derived>
2015-07-07 22:18:26 +08:00
{
public:
// a record contains a key value map containing data
model::Properties properties;
// each record can have one or more distinct labels.
std::set<uint16_t> labels;
2015-07-07 22:18:26 +08:00
};
#endif