![]() |
SDK
2.1.4
CloudBackend Software Development Kit - SDK API for C++
|
Synchronous version of querychain. More...
#include <QueryChainSync.h>
Public Types | |
using | JoinException = delegate::JoinDelegate::Exception |
![]() | |
using | ItemsSnapshot = std::vector< Item > |
A vector of items to hold a snapshot. | |
Public Member Functions | |
QueryChainSync | join (Container containerToQuery, std::string key1, std::string key2) |
QueryChainSync | join (Container containerToQuery, std::string key1, std::string key2, Filter constraints) |
QueryChainSync | join (Container containerToQuery, std::string key1, std::string key2, Container containerForResults) |
QueryChainSync | join (Container containerToQuery, std::string key1, std::string key2, Filter constraints, Container containerForResults) |
QueryResult | getQueryResult () const |
![]() | |
Filter | filter () const |
ItemsSnapshot | getItemsSnapshot () const |
Returns a copy of a vector containing the items for this QueryResult. More... | |
std::uint64_t | itemsLoaded () const |
std::uint64_t | totalCount () const |
std::uint64_t | objectsLoaded () const |
std::uint64_t | containersLoaded () const |
bool | containsItem (ItemId itemId) const |
QueryResult (cbe::DefaultCtor) | |
Default constructor. More... | |
operator bool () const | |
Checks if the current instance is real. More... | |
Friends | |
template<class ImplT , typename... QueryAsyncArgsTs> | |
QueryChainSync | querySync (ImplT &impl, delegate::QueryJoinDelegate::ErrorInfo *queryJoinError, const char *fnName, QueryAsyncArgsTs &&... queryAsyncArgs) |
Synchronous version of querychain.
Provides the possibility to chain synchronous join() calls after either a query() or join() in a synchronous call.
QueryChainSync cbe::QueryChainSync::join | ( | Container | containerToQuery, |
std::string | key1, | ||
std::string | key2 | ||
) |
Synchronous version of QueryChain::query(), and throws an exception, JoinException, in case of a failed join.
containerToQuery | The container the join shall be done with. |
key1 | The key from the previous query on which to perform the join. |
key2 | The key on objects in containerToQuery on which to perform the join |
JoinException | Possible only if current instance of QueryChainSync has been retrieved by a call to any of the following methods: |
QueryChainSync cbe::QueryChainSync::join | ( | Container | containerToQuery, |
std::string | key1, | ||
std::string | key2, | ||
Filter | constraints | ||
) |
Same as join(Container,std::string,std::string), but with an additional Filter parameter constraints
.
constraints | A Filter that provides any constraints for the query. |
QueryChainSync cbe::QueryChainSync::join | ( | Container | containerToQuery, |
std::string | key1, | ||
std::string | key2, | ||
Container | containerForResults | ||
) |
Same as join(Container,std::string,std::string), but with an additional Container parameter containerForResults
.
QueryChainSync cbe::QueryChainSync::join | ( | Container | containerToQuery, |
std::string | key1, | ||
std::string | key2, | ||
Filter | constraints, | ||
Container | containerForResults | ||
) |
Same as join(Container,std::string,std::string,Container), but with an additional Filter parameter constraints
.
constraints | A Filter that provides any constraints for the query. |
QueryResult cbe::QueryChainSync::getQueryResult | ( | ) | const |
Returns the QueryResult provided to the delegate after the the last query() or join() call.