memgraph/include/storage/label/label_store.hpp
Kruno Tomola Fabro fbd9ca8420 First version of CSVImport tool.
Query and import works.

Properties now use unordered_map.
Reduced memory footprint of properties by more than half.
2016-08-22 19:03:45 +01:00

22 lines
438 B
C++

#pragma once
#include <stdexcept>
#include "data_structures/concurrent/concurrent_set.hpp"
#include "storage/label/label.hpp"
#include "utils/char_str.hpp"
class LabelStore
{
public:
const Label &find_or_create(const char *name);
bool contains(const char *name); // TODO: const
// TODO: implement find method
// return { Label, is_found }
private:
ConcurrentMap<CharStr, std::unique_ptr<Label>> labels;
};