LCP: Fix up LCP warnings
Reviewers: mtomic, teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2090
This commit is contained in:
parent
18698ac7e6
commit
59af45f94e
@ -16,18 +16,18 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-rpc create-bfs-subcursor
|
(lcp:define-rpc create-bfs-subcursor
|
||||||
(:request
|
(:request
|
||||||
((tx-id "tx::TransactionId")
|
((tx-id "::tx::TransactionId")
|
||||||
(direction "query::EdgeAtom::Direction")
|
(direction "::query::EdgeAtom::Direction")
|
||||||
(edge-types "std::vector<storage::EdgeType>")
|
(edge-types "std::vector<storage::EdgeType>")
|
||||||
(filter-lambda "query::plan::ExpansionLambda"
|
(filter-lambda "::query::plan::ExpansionLambda"
|
||||||
:slk-load (lambda (member)
|
:slk-load (lambda (member)
|
||||||
#>cpp
|
#>cpp
|
||||||
slk::Load(&self->${member}, reader, ast_storage);
|
slk::Load(&self->${member}, reader, ast_storage);
|
||||||
cpp<#))
|
cpp<#))
|
||||||
(symbol-table "query::SymbolTable")
|
(symbol-table "::query::SymbolTable")
|
||||||
(timestamp :int64_t)
|
(timestamp :int64_t)
|
||||||
(parameters "query::Parameters"))
|
(parameters "::query::Parameters"))
|
||||||
(:serialize (:slk :load-args '((ast-storage "query::AstStorage *")))))
|
(:serialize (:slk :load-args '((ast-storage "::query::AstStorage *")))))
|
||||||
(:response ((member :int64_t))))
|
(:response ((member :int64_t))))
|
||||||
|
|
||||||
(lcp:define-rpc register-subcursors
|
(lcp:define-rpc register-subcursors
|
||||||
@ -67,20 +67,20 @@ cpp<#
|
|||||||
}
|
}
|
||||||
cpp<#)))
|
cpp<#)))
|
||||||
(:serialize (:slk :save-args '((worker-id :int16_t))
|
(:serialize (:slk :save-args '((worker-id :int16_t))
|
||||||
:load-args '((dba "database::GraphDbAccessor *")
|
:load-args '((dba "::database::GraphDbAccessor *")
|
||||||
(data-manager "distributed::DataManager *"))))))
|
(data-manager "::distributed::DataManager *"))))))
|
||||||
|
|
||||||
(lcp:define-rpc set-source
|
(lcp:define-rpc set-source
|
||||||
(:request
|
(:request
|
||||||
((subcursor-id :int64_t)
|
((subcursor-id :int64_t)
|
||||||
(source "storage::VertexAddress")))
|
(source "::storage::VertexAddress")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:define-rpc expand-to-remote-vertex
|
(lcp:define-rpc expand-to-remote-vertex
|
||||||
(:request
|
(:request
|
||||||
((subcursor-id :int64_t)
|
((subcursor-id :int64_t)
|
||||||
(edge "storage::EdgeAddress")
|
(edge "::storage::EdgeAddress")
|
||||||
(vertex "storage::VertexAddress")))
|
(vertex "::storage::VertexAddress")))
|
||||||
(:response ((member :bool))))
|
(:response ((member :bool))))
|
||||||
|
|
||||||
(lcp:define-rpc reconstruct-path
|
(lcp:define-rpc reconstruct-path
|
||||||
|
@ -27,7 +27,7 @@ cpp<#
|
|||||||
(lcp:define-rpc cluster-discovery
|
(lcp:define-rpc cluster-discovery
|
||||||
(:request
|
(:request
|
||||||
((worker-id :int16_t)
|
((worker-id :int16_t)
|
||||||
(endpoint "io::network::Endpoint")))
|
(endpoint "::io::network::Endpoint")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:define-rpc stop-worker
|
(lcp:define-rpc stop-worker
|
||||||
|
@ -15,8 +15,8 @@ cpp<#
|
|||||||
(lcp:namespace distributed)
|
(lcp:namespace distributed)
|
||||||
|
|
||||||
(lcp:define-struct tx-gid-pair ()
|
(lcp:define-struct tx-gid-pair ()
|
||||||
((tx-id "tx::TransactionId")
|
((tx-id "::tx::TransactionId")
|
||||||
(gid "gid::Gid")
|
(gid "::gid::Gid")
|
||||||
(from-worker-id :int64_t))
|
(from-worker-id :int64_t))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
@ -86,6 +86,7 @@ cpp<#
|
|||||||
cpp<#)
|
cpp<#)
|
||||||
:slk-load
|
:slk-load
|
||||||
(lambda (member)
|
(lambda (member)
|
||||||
|
(declare (ignore member))
|
||||||
#>cpp
|
#>cpp
|
||||||
bool has_ptr;
|
bool has_ptr;
|
||||||
slk::Load(&has_ptr, reader);
|
slk::Load(&has_ptr, reader);
|
||||||
@ -105,6 +106,7 @@ cpp<#
|
|||||||
cpp<#)
|
cpp<#)
|
||||||
:slk-load
|
:slk-load
|
||||||
(lambda (member)
|
(lambda (member)
|
||||||
|
(declare (ignore member))
|
||||||
#>cpp
|
#>cpp
|
||||||
bool has_ptr;
|
bool has_ptr;
|
||||||
slk::Load(&has_ptr, reader);
|
slk::Load(&has_ptr, reader);
|
||||||
@ -117,7 +119,7 @@ cpp<#
|
|||||||
(edge-new-output "std::unique_ptr<Edge>" :initarg nil :dont-save t))))
|
(edge-new-output "std::unique_ptr<Edge>" :initarg nil :dont-save t))))
|
||||||
|
|
||||||
(lcp:define-rpc vertex-count
|
(lcp:define-rpc vertex-count
|
||||||
(:request ((member "tx::TransactionId")))
|
(:request ((member "::tx::TransactionId")))
|
||||||
(:response ((member :int64_t))))
|
(:response ((member :int64_t))))
|
||||||
|
|
||||||
(lcp:pop-namespace) ;; distributed
|
(lcp:pop-namespace) ;; distributed
|
||||||
|
@ -10,11 +10,11 @@ cpp<#
|
|||||||
(lcp:namespace distributed)
|
(lcp:namespace distributed)
|
||||||
|
|
||||||
(lcp:define-rpc make-snapshot
|
(lcp:define-rpc make-snapshot
|
||||||
(:request ((member "tx::TransactionId")))
|
(:request ((member "::tx::TransactionId")))
|
||||||
(:response ((member :bool))))
|
(:response ((member :bool))))
|
||||||
|
|
||||||
(lcp:define-rpc recover-wal-and-indexes
|
(lcp:define-rpc recover-wal-and-indexes
|
||||||
(:request ((member "durability::RecoveryData")))
|
(:request ((member "::durability::RecoveryData")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:pop-namespace) ;; distributed
|
(lcp:pop-namespace) ;; distributed
|
||||||
|
@ -14,15 +14,15 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-rpc populate-index
|
(lcp:define-rpc populate-index
|
||||||
(:request
|
(:request
|
||||||
((label "storage::Label")
|
((label "::storage::Label")
|
||||||
(property "storage::Property")
|
(property "::storage::Property")
|
||||||
(tx-id "tx::TransactionId")))
|
(tx-id "::tx::TransactionId")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:define-rpc create-index
|
(lcp:define-rpc create-index
|
||||||
(:request
|
(:request
|
||||||
((label "storage::Label")
|
((label "::storage::Label")
|
||||||
(property "storage::Property")))
|
(property "::storage::Property")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:pop-namespace) ;; distributed
|
(lcp:pop-namespace) ;; distributed
|
||||||
|
@ -35,8 +35,8 @@ cpp<#
|
|||||||
(plan "std::shared_ptr<query::plan::LogicalOperator>"
|
(plan "std::shared_ptr<query::plan::LogicalOperator>"
|
||||||
:slk-save #'slk-save-plan
|
:slk-save #'slk-save-plan
|
||||||
:slk-load #'slk-load-plan)
|
:slk-load #'slk-load-plan)
|
||||||
(symbol-table "query::SymbolTable")
|
(symbol-table "::query::SymbolTable")
|
||||||
(storage "query::AstStorage" :initarg nil :dont-save t)))
|
(storage "::query::AstStorage" :initarg nil :dont-save t)))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:define-rpc remove-plan
|
(lcp:define-rpc remove-plan
|
||||||
|
@ -94,7 +94,7 @@ the relevant parts of the response, ready for use."))
|
|||||||
"Id of the worker on which the response is created, used for
|
"Id of the worker on which the response is created, used for
|
||||||
serializing vertices (converting local to global addresses). Indicates which
|
serializing vertices (converting local to global addresses). Indicates which
|
||||||
of (old, new) records of a graph element should be sent.")
|
of (old, new) records of a graph element should be sent.")
|
||||||
(send-versions "storage::SendVersions" :dont-save t)
|
(send-versions "::storage::SendVersions" :dont-save t)
|
||||||
;; Temporary caches used between deserialization and post-processing
|
;; Temporary caches used between deserialization and post-processing
|
||||||
;; (transfering the ownership of this data to a Cache).
|
;; (transfering the ownership of this data to a Cache).
|
||||||
(vertices "std::vector<GraphElementData<Vertex>>" :dont-save t)
|
(vertices "std::vector<GraphElementData<Vertex>>" :dont-save t)
|
||||||
@ -116,11 +116,11 @@ frame (potentially embedded in lists/maps) is too error-prone.")
|
|||||||
cpp<#
|
cpp<#
|
||||||
(lcp:define-struct (graph-element-data t-record) ()
|
(lcp:define-struct (graph-element-data t-record) ()
|
||||||
((cypher-id :int64_t)
|
((cypher-id :int64_t)
|
||||||
(global-address "storage::Address<mvcc::VersionList<TRecord>>")
|
(global-address "::storage::Address<mvcc::VersionList<TRecord>>")
|
||||||
(old-record "std::unique_ptr<TRecord>")
|
(old-record "std::unique_ptr<TRecord>")
|
||||||
(new-record "std::unique_ptr<TRecord>")
|
(new-record "std::unique_ptr<TRecord>")
|
||||||
(element-in-frame
|
(element-in-frame
|
||||||
"query::TypedValue *"
|
"::query::TypedValue *"
|
||||||
:documentation
|
:documentation
|
||||||
"The position in frame is optional. This same structure is used for
|
"The position in frame is optional. This same structure is used for
|
||||||
deserializing path elements, in which case the vertex/edge in question is not
|
deserializing path elements, in which case the vertex/edge in question is not
|
||||||
@ -167,19 +167,19 @@ to the appropriate value. Not used on side that generates the response.")
|
|||||||
|
|
||||||
(lcp:define-rpc pull
|
(lcp:define-rpc pull
|
||||||
(:request
|
(:request
|
||||||
((tx-id "tx::TransactionId")
|
((tx-id "::tx::TransactionId")
|
||||||
(tx-snapshot "tx::Snapshot"
|
(tx-snapshot "::tx::Snapshot"
|
||||||
:slk-save #'slk-save-snapshot
|
:slk-save #'slk-save-snapshot
|
||||||
:slk-load #'slk-load-snapshot)
|
:slk-load #'slk-load-snapshot)
|
||||||
(plan-id :int64_t)
|
(plan-id :int64_t)
|
||||||
(command-id "tx::CommandId")
|
(command-id "::tx::CommandId")
|
||||||
(timestamp :int64_t)
|
(timestamp :int64_t)
|
||||||
(parameters "query::Parameters")
|
(parameters "::query::Parameters")
|
||||||
(symbols "std::vector<query::Symbol>")
|
(symbols "std::vector<query::Symbol>")
|
||||||
(accumulate :bool)
|
(accumulate :bool)
|
||||||
(batch-size :int64_t)
|
(batch-size :int64_t)
|
||||||
;; Indicates which of (old, new) records of a graph element should be sent.
|
;; Indicates which of (old, new) records of a graph element should be sent.
|
||||||
(send-versions "storage::SendVersions")))
|
(send-versions "::storage::SendVersions")))
|
||||||
(:response
|
(:response
|
||||||
((data "PullResData" :initarg :move
|
((data "PullResData" :initarg :move
|
||||||
:slk-load (lambda (m)
|
:slk-load (lambda (m)
|
||||||
@ -194,13 +194,13 @@ to the appropriate value. Not used on side that generates the response.")
|
|||||||
|
|
||||||
(lcp:define-rpc reset-cursor
|
(lcp:define-rpc reset-cursor
|
||||||
(:request
|
(:request
|
||||||
((tx-id "tx::TransactionId")
|
((tx-id "::tx::TransactionId")
|
||||||
(plan-id :int64_t)
|
(plan-id :int64_t)
|
||||||
(command-id "tx::CommandId")))
|
(command-id "::tx::CommandId")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:define-rpc transaction-command-advanced
|
(lcp:define-rpc transaction-command-advanced
|
||||||
(:request ((member "tx::TransactionId")))
|
(:request ((member "::tx::TransactionId")))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
(lcp:pop-namespace) ;; distributed
|
(lcp:pop-namespace) ;; distributed
|
||||||
|
@ -11,7 +11,7 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-rpc ran-local-gc
|
(lcp:define-rpc ran-local-gc
|
||||||
(:request
|
(:request
|
||||||
((local-oldest-active "tx::TransactionId")
|
((local-oldest-active "::tx::TransactionId")
|
||||||
(worker-id :int16_t)))
|
(worker-id :int16_t)))
|
||||||
(:response ()))
|
(:response ()))
|
||||||
|
|
||||||
|
@ -24,22 +24,22 @@ cpp<#
|
|||||||
(:serialize))
|
(:serialize))
|
||||||
|
|
||||||
(lcp:define-rpc update
|
(lcp:define-rpc update
|
||||||
(:request ((member "database::StateDelta")
|
(:request ((member "::database::StateDelta")
|
||||||
(worker-id :int64_t)))
|
(worker-id :int64_t)))
|
||||||
(:response ((member "UpdateResult"))))
|
(:response ((member "UpdateResult"))))
|
||||||
|
|
||||||
(lcp:define-rpc update-apply
|
(lcp:define-rpc update-apply
|
||||||
(:request ((member "tx::TransactionId")))
|
(:request ((member "::tx::TransactionId")))
|
||||||
(:response ((member "UpdateResult"))))
|
(:response ((member "UpdateResult"))))
|
||||||
|
|
||||||
(lcp:define-struct create-result ()
|
(lcp:define-struct create-result ()
|
||||||
((result "UpdateResult")
|
((result "UpdateResult")
|
||||||
(cypher-id :int64_t :documentation "Only valid if creation was successful.")
|
(cypher-id :int64_t :documentation "Only valid if creation was successful.")
|
||||||
(gid "gid::Gid" :documentation "Only valid if creation was successful."))
|
(gid "::gid::Gid" :documentation "Only valid if creation was successful."))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
(lcp:define-struct create-vertex-req-data ()
|
(lcp:define-struct create-vertex-req-data ()
|
||||||
((tx-id "tx::TransactionId")
|
((tx-id "::tx::TransactionId")
|
||||||
(labels "std::vector<storage::Label>")
|
(labels "std::vector<storage::Label>")
|
||||||
(properties "std::unordered_map<storage::Property, PropertyValue>")
|
(properties "std::unordered_map<storage::Property, PropertyValue>")
|
||||||
(cypher-id "std::optional<int64_t>"))
|
(cypher-id "std::optional<int64_t>"))
|
||||||
@ -51,10 +51,10 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct create-edge-req-data ()
|
(lcp:define-struct create-edge-req-data ()
|
||||||
((worker-id :int64_t)
|
((worker-id :int64_t)
|
||||||
(from "gid::Gid")
|
(from "::gid::Gid")
|
||||||
(to "storage::VertexAddress")
|
(to "::storage::VertexAddress")
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(tx-id "tx::TransactionId")
|
(tx-id "::tx::TransactionId")
|
||||||
(cypher-id "std::optional<int64_t>"))
|
(cypher-id "std::optional<int64_t>"))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
@ -64,11 +64,11 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct add-in-edge-req-data ()
|
(lcp:define-struct add-in-edge-req-data ()
|
||||||
((worker-id :int64_t)
|
((worker-id :int64_t)
|
||||||
(from "storage::VertexAddress")
|
(from "::storage::VertexAddress")
|
||||||
(edge-address "storage::EdgeAddress")
|
(edge-address "::storage::EdgeAddress")
|
||||||
(to "gid::Gid")
|
(to "::gid::Gid")
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(tx-id "tx::TransactionId"))
|
(tx-id "::tx::TransactionId"))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
(lcp:define-rpc add-in-edge
|
(lcp:define-rpc add-in-edge
|
||||||
@ -77,8 +77,8 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct remove-vertex-req-data ()
|
(lcp:define-struct remove-vertex-req-data ()
|
||||||
((worker-id :int64_t)
|
((worker-id :int64_t)
|
||||||
(gid "gid::Gid")
|
(gid "::gid::Gid")
|
||||||
(tx-id "tx::TransactionId")
|
(tx-id "::tx::TransactionId")
|
||||||
(check-empty :bool))
|
(check-empty :bool))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
@ -88,10 +88,10 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct remove-edge-data ()
|
(lcp:define-struct remove-edge-data ()
|
||||||
((worker-id :int64_t)
|
((worker-id :int64_t)
|
||||||
(tx-id "tx::TransactionId")
|
(tx-id "::tx::TransactionId")
|
||||||
(edge-id "gid::Gid")
|
(edge-id "::gid::Gid")
|
||||||
(vertex-from-id "gid::Gid")
|
(vertex-from-id "::gid::Gid")
|
||||||
(vertex-to-address "storage::VertexAddress"))
|
(vertex-to-address "::storage::VertexAddress"))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
(lcp:define-rpc remove-edge
|
(lcp:define-rpc remove-edge
|
||||||
@ -100,9 +100,9 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct remove-in-edge-data ()
|
(lcp:define-struct remove-in-edge-data ()
|
||||||
((worker-id :int64_t)
|
((worker-id :int64_t)
|
||||||
(tx-id "tx::TransactionId")
|
(tx-id "::tx::TransactionId")
|
||||||
(vertex "gid::Gid")
|
(vertex "::gid::Gid")
|
||||||
(edge-address "storage::EdgeAddress"))
|
(edge-address "::storage::EdgeAddress"))
|
||||||
(:serialize (:slk)))
|
(:serialize (:slk)))
|
||||||
|
|
||||||
(lcp:define-rpc remove-in-edge
|
(lcp:define-rpc remove-in-edge
|
||||||
@ -111,7 +111,7 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct created-info ()
|
(lcp:define-struct created-info ()
|
||||||
((cypher-id "int64_t")
|
((cypher-id "int64_t")
|
||||||
(gid "gid::Gid"))
|
(gid "::gid::Gid"))
|
||||||
(:public #>cpp
|
(:public #>cpp
|
||||||
CreatedInfo(int64_t cypher_id, gid::Gid gid)
|
CreatedInfo(int64_t cypher_id, gid::Gid gid)
|
||||||
: cypher_id(cypher_id), gid(gid) {}
|
: cypher_id(cypher_id), gid(gid) {}
|
||||||
@ -119,7 +119,7 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct created-vertex-info ()
|
(lcp:define-struct created-vertex-info ()
|
||||||
((cypher-id "int64_t")
|
((cypher-id "int64_t")
|
||||||
(gid "gid::Gid"))
|
(gid "::gid::Gid"))
|
||||||
(:public #>cpp
|
(:public #>cpp
|
||||||
CreatedVertexInfo(int64_t cypher_id, gid::Gid gid)
|
CreatedVertexInfo(int64_t cypher_id, gid::Gid gid)
|
||||||
: cypher_id(cypher_id), gid(gid) {}
|
: cypher_id(cypher_id), gid(gid) {}
|
||||||
@ -127,7 +127,7 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-struct created-edge-info ()
|
(lcp:define-struct created-edge-info ()
|
||||||
((cypher-id "int64_t")
|
((cypher-id "int64_t")
|
||||||
(edge-address "storage::EdgeAddress"))
|
(edge-address "::storage::EdgeAddress"))
|
||||||
(:public #>cpp
|
(:public #>cpp
|
||||||
CreatedEdgeInfo(int64_t cypher_id, storage::EdgeAddress edge_address)
|
CreatedEdgeInfo(int64_t cypher_id, storage::EdgeAddress edge_address)
|
||||||
: cypher_id(cypher_id), edge_address(edge_address) {}
|
: cypher_id(cypher_id), edge_address(edge_address) {}
|
||||||
|
@ -22,24 +22,24 @@ cpp<#
|
|||||||
(
|
(
|
||||||
;; Members valid for every delta.
|
;; Members valid for every delta.
|
||||||
(type "Type")
|
(type "Type")
|
||||||
(transaction-id "tx::TransactionId")
|
(transaction-id "::tx::TransactionId")
|
||||||
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
||||||
;; TODO: when preparing the WAL for distributed, most likely remove Gids and
|
;; TODO: when preparing the WAL for distributed, most likely remove Gids and
|
||||||
;; only keep addresses.
|
;; only keep addresses.
|
||||||
(vertex-id "gid::Gid")
|
(vertex-id "::gid::Gid")
|
||||||
(edge-id "gid::Gid")
|
(edge-id "::gid::Gid")
|
||||||
(cypher-id :int64_t)
|
(cypher-id :int64_t)
|
||||||
(edge-address "storage::EdgeAddress")
|
(edge-address "::storage::EdgeAddress")
|
||||||
(vertex-from-id "gid::Gid")
|
(vertex-from-id "::gid::Gid")
|
||||||
(vertex-from-address "storage::VertexAddress")
|
(vertex-from-address "::storage::VertexAddress")
|
||||||
(vertex-to-id "gid::Gid")
|
(vertex-to-id "::gid::Gid")
|
||||||
(vertex-to-address "storage::VertexAddress")
|
(vertex-to-address "::storage::VertexAddress")
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(edge-type-name "std::string")
|
(edge-type-name "std::string")
|
||||||
(property "storage::Property")
|
(property "::storage::Property")
|
||||||
(property-name "std::string")
|
(property-name "std::string")
|
||||||
(value "PropertyValue" :initval "PropertyValue::Null")
|
(value "PropertyValue" :initval "PropertyValue::Null")
|
||||||
(label "storage::Label")
|
(label "::storage::Label")
|
||||||
(label-name "std::string")
|
(label-name "std::string")
|
||||||
(check-empty :bool))
|
(check-empty :bool))
|
||||||
(:documentation
|
(:documentation
|
||||||
|
@ -25,25 +25,25 @@ cpp<#
|
|||||||
(
|
(
|
||||||
;; Members valid for every delta.
|
;; Members valid for every delta.
|
||||||
(type "Type")
|
(type "Type")
|
||||||
(transaction-id "tx::TransactionId")
|
(transaction-id "::tx::TransactionId")
|
||||||
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
||||||
;; TODO: when preparing the WAL for distributed, most likely remove Gids and
|
;; TODO: when preparing the WAL for distributed, most likely remove Gids and
|
||||||
;; only keep addresses.
|
;; only keep addresses.
|
||||||
(vertex-id "gid::Gid")
|
(vertex-id "::gid::Gid")
|
||||||
(edge-id "gid::Gid")
|
(edge-id "::gid::Gid")
|
||||||
(edge-address "mvcc::VersionList<Edge> *")
|
(edge-address "::mvcc::VersionList<Edge> *")
|
||||||
(vertex-from-id "gid::Gid")
|
(vertex-from-id "::gid::Gid")
|
||||||
(vertex-from-address "mvcc::VersionList<Vertex> *")
|
(vertex-from-address "::mvcc::VersionList<Vertex> *")
|
||||||
(vertex-to-id "gid::Gid")
|
(vertex-to-id "::gid::Gid")
|
||||||
(vertex-to-address "mvcc::VersionList<Vertex> *")
|
(vertex-to-address "::mvcc::VersionList<Vertex> *")
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(edge-type-name "std::string")
|
(edge-type-name "std::string")
|
||||||
(property "storage::Property")
|
(property "::storage::Property")
|
||||||
(property-name "std::string")
|
(property-name "std::string")
|
||||||
(properties "std::vector<storage::Property>")
|
(properties "std::vector<storage::Property>")
|
||||||
(property-names "std::vector<std::string>")
|
(property-names "std::vector<std::string>")
|
||||||
(value "PropertyValue" :initval "PropertyValue::Null")
|
(value "PropertyValue" :initval "PropertyValue::Null")
|
||||||
(label "storage::Label")
|
(label "::storage::Label")
|
||||||
(label-name "std::string")
|
(label-name "std::string")
|
||||||
(check-empty :bool))
|
(check-empty :bool))
|
||||||
(:documentation
|
(:documentation
|
||||||
|
@ -25,20 +25,20 @@ cpp<#
|
|||||||
(
|
(
|
||||||
;; Members valid for every delta.
|
;; Members valid for every delta.
|
||||||
(type "Type")
|
(type "Type")
|
||||||
(transaction-id "tx::TransactionId")
|
(transaction-id "::tx::TransactionId")
|
||||||
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
;; Members valid only for some deltas, see StateDelta::Type comments above.
|
||||||
(vertex-id "gid::Gid")
|
(vertex-id "::gid::Gid")
|
||||||
(edge-id "gid::Gid")
|
(edge-id "::gid::Gid")
|
||||||
(vertex-from-id "gid::Gid")
|
(vertex-from-id "::gid::Gid")
|
||||||
(vertex-to-id "gid::Gid")
|
(vertex-to-id "::gid::Gid")
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(edge-type-name "std::string")
|
(edge-type-name "std::string")
|
||||||
(property "storage::Property")
|
(property "::storage::Property")
|
||||||
(property-name "std::string")
|
(property-name "std::string")
|
||||||
(properties "std::vector<storage::Property>")
|
(properties "std::vector<storage::Property>")
|
||||||
(property-names "std::vector<std::string>")
|
(property-names "std::vector<std::string>")
|
||||||
(value "PropertyValue" :initval "PropertyValue::Null")
|
(value "PropertyValue" :initval "PropertyValue::Null")
|
||||||
(label "storage::Label")
|
(label "::storage::Label")
|
||||||
(label-name "std::string")
|
(label-name "std::string")
|
||||||
(check-empty :bool))
|
(check-empty :bool))
|
||||||
(:documentation
|
(:documentation
|
||||||
|
@ -719,7 +719,7 @@ CPP-TYPE-DECL."
|
|||||||
}"))
|
}"))
|
||||||
(undefine-cpp-types)
|
(undefine-cpp-types)
|
||||||
;; inheritance with :ignore-other-base-classes and :base
|
;; inheritance with :ignore-other-base-classes and :base
|
||||||
(let ((base-class (lcp:define-class base ("utils::TotalOrdering")
|
(let ((base-class (lcp:define-class base ("::utils::TotalOrdering")
|
||||||
((int-member :int32_t)
|
((int-member :int32_t)
|
||||||
(string-member "std::string"))
|
(string-member "std::string"))
|
||||||
(:abstractp t)
|
(:abstractp t)
|
||||||
@ -729,7 +729,7 @@ CPP-TYPE-DECL."
|
|||||||
:init-object (lambda (var typename)
|
:init-object (lambda (var typename)
|
||||||
(format nil "~A* ~A = GlobalFactory::Create();"
|
(format nil "~A* ~A = GlobalFactory::Create();"
|
||||||
typename var)))))
|
typename var)))))
|
||||||
(child-class (lcp:define-class child (base "utils::TotalOrdering" "utils::TotalOrdering")
|
(child-class (lcp:define-class child (base "::utils::TotalOrdering" "::utils::TotalOrdering")
|
||||||
((another-int-member :int64_t))
|
((another-int-member :int64_t))
|
||||||
(:clone :ignore-other-base-classes t))))
|
(:clone :ignore-other-base-classes t))))
|
||||||
(is-generated (lcp.clone:clone-function-definition-for-class base-class)
|
(is-generated (lcp.clone:clone-function-definition-for-class base-class)
|
||||||
|
@ -505,9 +505,11 @@ To process the typestring means to:
|
|||||||
(typestring-fully-qualified-p typestring))
|
(typestring-fully-qualified-p typestring))
|
||||||
typestring)
|
typestring)
|
||||||
((typestring-qualified-p typestring)
|
((typestring-qualified-p typestring)
|
||||||
|
(let ((cpp-type (parse-cpp-type-declaration typestring)))
|
||||||
|
(unless (string= (first (cpp-type-namespace cpp-type)) "std")
|
||||||
(typestring-warn
|
(typestring-warn
|
||||||
"Treating qualified type \"~A\" as the fully qualified type \"::~A\"."
|
"Treating qualified type \"~A\" as the fully qualified type \"::~A\"."
|
||||||
typestring typestring)
|
typestring typestring)))
|
||||||
(format nil "::~A" typestring))
|
(format nil "::~A" typestring))
|
||||||
;; Unqualified.
|
;; Unqualified.
|
||||||
(t
|
(t
|
||||||
|
@ -428,8 +428,8 @@ a preceeding `MATCH`), or multiple nodes (`MATCH ... CREATE` or
|
|||||||
(properties "std::vector<std::pair<storage::Property, Expression *>>"
|
(properties "std::vector<std::pair<storage::Property, Expression *>>"
|
||||||
:slk-save #'slk-save-properties
|
:slk-save #'slk-save-properties
|
||||||
:slk-load #'slk-load-properties)
|
:slk-load #'slk-load-properties)
|
||||||
(edge-type "storage::EdgeType")
|
(edge-type "::storage::EdgeType")
|
||||||
(direction "EdgeAtom::Direction" :initval "EdgeAtom::Direction::BOTH"))
|
(direction "::EdgeAtom::Direction" :initval "EdgeAtom::Direction::BOTH"))
|
||||||
(:serialize (:slk :save-args '((helper "query::plan::LogicalOperator::SaveHelper *"))
|
(:serialize (:slk :save-args '((helper "query::plan::LogicalOperator::SaveHelper *"))
|
||||||
:load-args '((helper "query::plan::LogicalOperator::SlkLoadHelper *"))))
|
:load-args '((helper "query::plan::LogicalOperator::SlkLoadHelper *"))))
|
||||||
(:clone :args '((storage "AstStorage *"))))
|
(:clone :args '((storage "AstStorage *"))))
|
||||||
@ -588,7 +588,7 @@ with a constructor argument.
|
|||||||
(:clone))
|
(:clone))
|
||||||
|
|
||||||
(lcp:define-class scan-all-by-label (scan-all)
|
(lcp:define-class scan-all-by-label (scan-all)
|
||||||
((label "storage::Label" :scope :public))
|
((label "::storage::Label" :scope :public))
|
||||||
(:documentation
|
(:documentation
|
||||||
"Behaves like @c ScanAll, but this operator produces only vertices with
|
"Behaves like @c ScanAll, but this operator produces only vertices with
|
||||||
given label.
|
given label.
|
||||||
@ -667,8 +667,8 @@ given label.
|
|||||||
cpp<#)
|
cpp<#)
|
||||||
|
|
||||||
(lcp:define-class scan-all-by-label-property-range (scan-all)
|
(lcp:define-class scan-all-by-label-property-range (scan-all)
|
||||||
((label "storage::Label" :scope :public)
|
((label "::storage::Label" :scope :public)
|
||||||
(property "storage::Property" :scope :public)
|
(property "::storage::Property" :scope :public)
|
||||||
(property-name "std::string" :scope :public)
|
(property-name "std::string" :scope :public)
|
||||||
(lower-bound "std::optional<Bound>" :scope :public
|
(lower-bound "std::optional<Bound>" :scope :public
|
||||||
:slk-save #'slk-save-optional-bound
|
:slk-save #'slk-save-optional-bound
|
||||||
@ -720,8 +720,8 @@ property value which is inside a range (inclusive or exlusive).
|
|||||||
(:clone))
|
(:clone))
|
||||||
|
|
||||||
(lcp:define-class scan-all-by-label-property-value (scan-all)
|
(lcp:define-class scan-all-by-label-property-value (scan-all)
|
||||||
((label "storage::Label" :scope :public)
|
((label "::storage::Label" :scope :public)
|
||||||
(property "storage::Property" :scope :public)
|
(property "::storage::Property" :scope :public)
|
||||||
(property-name "std::string" :scope :public)
|
(property-name "std::string" :scope :public)
|
||||||
(expression "Expression *" :scope :public
|
(expression "Expression *" :scope :public
|
||||||
:slk-save #'slk-save-ast-pointer
|
:slk-save #'slk-save-ast-pointer
|
||||||
@ -769,7 +769,7 @@ This is where the new node will be stored.")
|
|||||||
(edge-symbol "Symbol"
|
(edge-symbol "Symbol"
|
||||||
:documentation "Symbol for the edges to be expanded.
|
:documentation "Symbol for the edges to be expanded.
|
||||||
This is where a TypedValue containing a list of expanded edges will be stored.")
|
This is where a TypedValue containing a list of expanded edges will be stored.")
|
||||||
(direction "EdgeAtom::Direction"
|
(direction "::EdgeAtom::Direction"
|
||||||
:documentation "EdgeAtom::Direction determining the direction of edge
|
:documentation "EdgeAtom::Direction determining the direction of edge
|
||||||
expansion. The direction is relative to the starting vertex for each expansion.")
|
expansion. The direction is relative to the starting vertex for each expansion.")
|
||||||
(edge-types "std::vector<storage::EdgeType>"
|
(edge-types "std::vector<storage::EdgeType>"
|
||||||
@ -882,7 +882,7 @@ pulled.")
|
|||||||
:slk-load #'slk-load-operator-pointer)
|
:slk-load #'slk-load-operator-pointer)
|
||||||
(input-symbol "Symbol" :scope :public)
|
(input-symbol "Symbol" :scope :public)
|
||||||
(common "ExpandCommon" :scope :public)
|
(common "ExpandCommon" :scope :public)
|
||||||
(type "EdgeAtom::Type" :scope :public)
|
(type "::EdgeAtom::Type" :scope :public)
|
||||||
(is-reverse :bool :scope :public :documentation
|
(is-reverse :bool :scope :public :documentation
|
||||||
"True if the path should be written as expanding from node_symbol to input_symbol.")
|
"True if the path should be written as expanding from node_symbol to input_symbol.")
|
||||||
(lower-bound "Expression *" :scope :public
|
(lower-bound "Expression *" :scope :public
|
||||||
@ -1178,7 +1178,7 @@ Has a flag for using DETACH DELETE when deleting vertices.")
|
|||||||
((input "std::shared_ptr<LogicalOperator>" :scope :public
|
((input "std::shared_ptr<LogicalOperator>" :scope :public
|
||||||
:slk-save #'slk-save-operator-pointer
|
:slk-save #'slk-save-operator-pointer
|
||||||
:slk-load #'slk-load-operator-pointer)
|
:slk-load #'slk-load-operator-pointer)
|
||||||
(property "storage::Property" :scope :public)
|
(property "::storage::Property" :scope :public)
|
||||||
(lhs "PropertyLookup *" :scope :public
|
(lhs "PropertyLookup *" :scope :public
|
||||||
:slk-save #'slk-save-ast-pointer
|
:slk-save #'slk-save-ast-pointer
|
||||||
:slk-load (slk-load-ast-pointer "PropertyLookup"))
|
:slk-load (slk-load-ast-pointer "PropertyLookup"))
|
||||||
@ -1345,7 +1345,7 @@ It does NOT remove labels that are already set on that Vertex.")
|
|||||||
((input "std::shared_ptr<LogicalOperator>" :scope :public
|
((input "std::shared_ptr<LogicalOperator>" :scope :public
|
||||||
:slk-save #'slk-save-operator-pointer
|
:slk-save #'slk-save-operator-pointer
|
||||||
:slk-load #'slk-load-operator-pointer)
|
:slk-load #'slk-load-operator-pointer)
|
||||||
(property "storage::Property" :scope :public)
|
(property "::storage::Property" :scope :public)
|
||||||
(lhs "PropertyLookup *" :scope :public
|
(lhs "PropertyLookup *" :scope :public
|
||||||
:slk-save #'slk-save-ast-pointer
|
:slk-save #'slk-save-ast-pointer
|
||||||
:slk-load (slk-load-ast-pointer "PropertyLookup")))
|
:slk-load (slk-load-ast-pointer "PropertyLookup")))
|
||||||
@ -1591,7 +1591,7 @@ elements are in an undefined state after aggregation.")
|
|||||||
(key "Expression *"
|
(key "Expression *"
|
||||||
:slk-save #'slk-save-ast-pointer
|
:slk-save #'slk-save-ast-pointer
|
||||||
:slk-load (slk-load-ast-pointer "Expression"))
|
:slk-load (slk-load-ast-pointer "Expression"))
|
||||||
(op "Aggregation::Op")
|
(op "::Aggregation::Op")
|
||||||
(output-sym "Symbol"))
|
(output-sym "Symbol"))
|
||||||
(:documentation
|
(:documentation
|
||||||
"An aggregation element, contains:
|
"An aggregation element, contains:
|
||||||
|
@ -45,7 +45,7 @@ cpp<#
|
|||||||
(:request
|
(:request
|
||||||
((leader-id :uint16_t)
|
((leader-id :uint16_t)
|
||||||
(term :uint64_t)
|
(term :uint64_t)
|
||||||
(snapshot-metadata "raft::SnapshotMetadata")
|
(snapshot-metadata "::raft::SnapshotMetadata")
|
||||||
(data "std::string")))
|
(data "std::string")))
|
||||||
(:response
|
(:response
|
||||||
((term :uint64_t))))
|
((term :uint64_t))))
|
||||||
|
@ -53,7 +53,7 @@ cpp<#
|
|||||||
|
|
||||||
(lcp:define-rpc clog-info
|
(lcp:define-rpc clog-info
|
||||||
(:request ((member "TransactionId")))
|
(:request ((member "TransactionId")))
|
||||||
(:response ((member "CommitLog::Info"
|
(:response ((member "::tx::CommitLog::Info"
|
||||||
:slk-save #'slk-save-commitlog-info
|
:slk-save #'slk-save-commitlog-info
|
||||||
:slk-load #'slk-load-commitlog-info))))
|
:slk-load #'slk-load-commitlog-info))))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user