Merged border and testes two querys.
This commit is contained in:
parent
12880ba990
commit
2218b0e472
@ -3,11 +3,11 @@
|
|||||||
#include "config/config.hpp"
|
#include "config/config.hpp"
|
||||||
#include "cypher/ast/ast.hpp"
|
#include "cypher/ast/ast.hpp"
|
||||||
#include "cypher/compiler.hpp"
|
#include "cypher/compiler.hpp"
|
||||||
|
#include "logging/default.hpp"
|
||||||
#include "query_engine/exceptions/errors.hpp"
|
#include "query_engine/exceptions/errors.hpp"
|
||||||
#include "template_engine/engine.hpp"
|
#include "template_engine/engine.hpp"
|
||||||
#include "traverser/cpp_traverser.hpp"
|
#include "traverser/cpp_traverser.hpp"
|
||||||
#include "utils/string/file.hpp"
|
#include "utils/string/file.hpp"
|
||||||
#include "logging/default.hpp"
|
|
||||||
#include "utils/type_discovery.hpp"
|
#include "utils/type_discovery.hpp"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
@ -56,6 +56,7 @@ public:
|
|||||||
{"stripped_hash", std::to_string(stripped_hash)},
|
{"stripped_hash", std::to_string(stripped_hash)},
|
||||||
{"query", query},
|
{"query", query},
|
||||||
// {"stream", type_name<Stream>().to_string()},
|
// {"stream", type_name<Stream>().to_string()},
|
||||||
|
// BARRIER !!!!
|
||||||
{"stream", "RecordStream<io::Socket>"},
|
{"stream", "RecordStream<io::Socket>"},
|
||||||
{"code", cpp_traverser.code}});
|
{"code", cpp_traverser.code}});
|
||||||
|
|
||||||
|
@ -13,8 +13,7 @@ template <typename Stream>
|
|||||||
class ICodeCPU
|
class ICodeCPU
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual bool run(barrier::Db &db, code_args_t &args,
|
virtual bool run(barrier::Db &db, code_args_t &args, Stream &stream) = 0;
|
||||||
Stream &stream) = 0;
|
|
||||||
virtual ~ICodeCPU() {}
|
virtual ~ICodeCPU() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include "storage/edge.hpp"
|
#include "storage/edge.hpp"
|
||||||
#include "storage/edge_record.hpp"
|
#include "storage/edge_record.hpp"
|
||||||
#include "storage/record_accessor.hpp"
|
#include "storage/record_accessor.hpp"
|
||||||
|
#include "storage/vertex_accessor.hpp"
|
||||||
#include "utils/assert.hpp"
|
#include "utils/assert.hpp"
|
||||||
#include "utils/reference_wrapper.hpp"
|
#include "utils/reference_wrapper.hpp"
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ public:
|
|||||||
|
|
||||||
const EdgeType &edge_type() const;
|
const EdgeType &edge_type() const;
|
||||||
|
|
||||||
auto from() const;
|
VertexAccessor from() const;
|
||||||
|
|
||||||
auto to() const;
|
VertexAccessor to() const;
|
||||||
};
|
};
|
||||||
|
@ -5,16 +5,6 @@
|
|||||||
#include "storage/edge_accessor.hpp"
|
#include "storage/edge_accessor.hpp"
|
||||||
#include "storage/vertex_accessor.hpp"
|
#include "storage/vertex_accessor.hpp"
|
||||||
|
|
||||||
auto EdgeAccessor::from() const
|
|
||||||
{
|
|
||||||
return VertexAccessor(this->vlist->from(), this->db);
|
|
||||||
}
|
|
||||||
|
|
||||||
auto EdgeAccessor::to() const
|
|
||||||
{
|
|
||||||
return VertexAccessor(this->vlist->to(), this->db);
|
|
||||||
}
|
|
||||||
|
|
||||||
auto VertexAccessor::out() const
|
auto VertexAccessor::out() const
|
||||||
{
|
{
|
||||||
DbTransaction &t = this->db;
|
DbTransaction &t = this->db;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#include "communication/bolt/v1/transport/chunked_encoder.hpp"
|
#include "communication/bolt/v1/transport/chunked_encoder.hpp"
|
||||||
#include "communication/bolt/v1/transport/socket_stream.hpp"
|
#include "communication/bolt/v1/transport/socket_stream.hpp"
|
||||||
#include "io/network/socket.hpp"
|
#include "io/network/socket.hpp"
|
||||||
#include "storage/edge_x_vertex.hpp"
|
|
||||||
|
|
||||||
template <class Stream>
|
template <class Stream>
|
||||||
void bolt::BoltSerializer<Stream>::write(const EdgeAccessor &edge)
|
void bolt::BoltSerializer<Stream>::write(const EdgeAccessor &edge)
|
||||||
|
@ -10,3 +10,13 @@ const EdgeType &EdgeAccessor::edge_type() const
|
|||||||
runtime_assert(this->record->data.edge_type != nullptr, "EdgeType is null");
|
runtime_assert(this->record->data.edge_type != nullptr, "EdgeType is null");
|
||||||
return *this->record->data.edge_type;
|
return *this->record->data.edge_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VertexAccessor EdgeAccessor::from() const
|
||||||
|
{
|
||||||
|
return VertexAccessor(this->vlist->from(), this->db);
|
||||||
|
}
|
||||||
|
|
||||||
|
VertexAccessor EdgeAccessor::to() const
|
||||||
|
{
|
||||||
|
return VertexAccessor(this->vlist->to(), this->db);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user