1
0
Fork 0

Added dummy to collect a shared VPackBuilder from a query object. Has to be properly implemented as soon as VelocyPack is the default AqlValue format

This commit is contained in:
Michael Hackstein 2016-02-03 10:40:51 +01:00
parent 92c69d2039
commit 6eeb686287
2 changed files with 15 additions and 0 deletions

View File

@ -1466,6 +1466,15 @@ std::string Query::getStateString() const {
return std::string(" (while " + StateNames[_state] + ")");
}
////////////////////////////////////////////////////////////////////////////////
/// @brief get a shared builder for in-place VelocyPack construction
////////////////////////////////////////////////////////////////////////////////
std::shared_ptr<VPackBuilder> Query::getSharedBuilder () {
// TODO Proper memory efficient implementation
return std::make_shared<VPackBuilder>();
};
////////////////////////////////////////////////////////////////////////////////
/// @brief cleanup plan and engine for current query
////////////////////////////////////////////////////////////////////////////////

View File

@ -413,6 +413,12 @@ class Query {
std::string getStateString () const;
////////////////////////////////////////////////////////////////////////////////
/// @brief get a shared builder for in-place VelocyPack construction
////////////////////////////////////////////////////////////////////////////////
std::shared_ptr<arangodb::velocypack::Builder> getSharedBuilder ();
// -----------------------------------------------------------------------------
// --SECTION-- private methods
// -----------------------------------------------------------------------------