release/barrier
This commit is contained in:
parent
1f448ef1fd
commit
5bba920944
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ Testing/
|
|||||||
ve/
|
ve/
|
||||||
release/memgraph_*
|
release/memgraph_*
|
||||||
release/libs/
|
release/libs/
|
||||||
|
release/barrier/
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
{"stripped_hash", std::to_string(stripped_hash)},
|
{"stripped_hash", std::to_string(stripped_hash)},
|
||||||
{"query", query},
|
{"query", query},
|
||||||
#ifdef BARRIER
|
#ifdef BARRIER
|
||||||
{"stream", "RecordStream<io::Socket>"},
|
{"stream", "RecordStream<::io::Socket>"},
|
||||||
#else
|
#else
|
||||||
{"stream", type_name<Stream>().to_string()},
|
{"stream", type_name<Stream>().to_string()},
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "communication/communication.hpp"
|
|
||||||
#include "query_engine/query_stripped.hpp"
|
#include "query_engine/query_stripped.hpp"
|
||||||
|
|
||||||
#ifdef BARRIER
|
#ifdef BARRIER
|
||||||
#include "barrier/barrier.hpp"
|
#include "barrier/barrier.hpp"
|
||||||
|
#include "io/network/socket.hpp"
|
||||||
#else
|
#else
|
||||||
|
#include "communication/communication.hpp"
|
||||||
#include "database/db.hpp"
|
#include "database/db.hpp"
|
||||||
#include "database/db_accessor.hpp"
|
#include "database/db_accessor.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,7 +74,7 @@ const std::string write_all_vertices =
|
|||||||
const std::string find_and_write_vertices_by_label =
|
const std::string find_and_write_vertices_by_label =
|
||||||
"auto &label = t.label_find_or_create(\"{1}\");\n"
|
"auto &label = t.label_find_or_create(\"{1}\");\n"
|
||||||
" stream.write_field(\"{0}\");\n"
|
" stream.write_field(\"{0}\");\n"
|
||||||
" label.index().for_range(t)->for_all([&](auto vertex) {{\n"
|
" label.index().for_range(t).for_all([&](auto vertex) {{\n"
|
||||||
" stream.write_record();\n"
|
" stream.write_record();\n"
|
||||||
" stream.write_list_header(1);\n"
|
" stream.write_list_header(1);\n"
|
||||||
" stream.write(vertex);\n"
|
" stream.write(vertex);\n"
|
||||||
@ -97,7 +97,7 @@ const std::string write_all_edges =
|
|||||||
const std::string find_and_write_edges_by_type =
|
const std::string find_and_write_edges_by_type =
|
||||||
"auto &type = t.type_find_or_create(\"{1}\");\n"
|
"auto &type = t.type_find_or_create(\"{1}\");\n"
|
||||||
" stream.write_field(\"{0}\");\n"
|
" stream.write_field(\"{0}\");\n"
|
||||||
" type.index().for_range(t)->for_all([&](auto edge) {{\n"
|
" type.index().for_range(t).for_all([&](auto edge) {{\n"
|
||||||
" stream.write_record();\n"
|
" stream.write_record();\n"
|
||||||
" stream.write_list_header(1);\n"
|
" stream.write_list_header(1);\n"
|
||||||
" stream.write(edge);\n"
|
" stream.write(edge);\n"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "query_engine/util.hpp"
|
|
||||||
#include "query_engine/i_code_cpu.hpp"
|
#include "query_engine/i_code_cpu.hpp"
|
||||||
#include "storage/model/properties/all.hpp"
|
#include "storage/model/properties/all.hpp"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user