1
0
Fork 0

adding range info to toJsonHelper.

This commit is contained in:
James 2014-08-18 11:11:27 +02:00
parent a79f72087d
commit f1a7ca51be
1 changed files with 15 additions and 1 deletions

View File

@ -292,11 +292,25 @@ void IndexRangeNode::toJsonHelper (std::map<ExecutionNode*, int>& 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<int>(nodes.size());