From f1a7ca51beeff5ad5c211695d0c2984ef0d51e0e Mon Sep 17 00:00:00 2001 From: James Date: Mon, 18 Aug 2014 11:11:27 +0200 Subject: [PATCH] adding range info to toJsonHelper. --- arangod/Aql/ExecutionNode.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arangod/Aql/ExecutionNode.cpp b/arangod/Aql/ExecutionNode.cpp index eb90fcd46c..8ab0bca9b9 100644 --- a/arangod/Aql/ExecutionNode.cpp +++ b/arangod/Aql/ExecutionNode.cpp @@ -292,11 +292,25 @@ void IndexRangeNode::toJsonHelper (std::map& indexTab, return; } + // put together the range info . . . + Json ranges(Json::List); + + for (auto x : *_ranges) { + Json item(Json::Array); + item("name", Json(x._name)) + ("low", x._low.copy()) + ("lowOpen", Json(x._lowOpen)) + ("high", x._high.copy()) + ("highOpen", Json(x._highOpen)); + ranges(item); + } + // Now put info about vocbase and cid in there json("database", Json(_vocbase->_name)) ("collection", Json(_collection->name)) ("outVariable", _outVariable->toJson()) - ("index", _index->index()->json(_index->index())); + ("index", _index->index()->json(_index->index())) + ("ranges", ranges); // And add it: int len = static_cast(nodes.size());