![]() |
GridGain C++
|
Query cursor class template. More...
#include <query_cursor.h>
Public Member Functions | |
QueryCursor () | |
Default constructor. | |
QueryCursor (const impl::thin::cache::query::QueryCursorProxy &impl) | |
Constructor. More... | |
bool | HasNext () const |
Check whether next entry exists. More... | |
CacheEntry< K, V > | GetNext () |
Get next entry. More... | |
void | GetAll (std::vector< CacheEntry< K, V > > &res) |
Get all entries. More... | |
template<typename OutIter > | |
void | GetAll (OutIter iter) |
Get all entries. More... | |
Query cursor class template.
Both key and value types should be default-constructable, copy-constructable and assignable. Also BinaryType class template should be specialized for both types.
This class is implemented as a reference to an implementation so copying of this class instance will only create another reference to the same underlying object. Underlying object will be released automatically once all the instances are destructed.
|
inlineexplicit |
Constructor.
impl | Implementation. |
|
inline |
Get all entries.
iter | Output iterator. |
IgniteError | class instance in case of failure. |
|
inline |
Get all entries.
res | Vector where query entries will be stored. |
IgniteError | class instance in case of failure. |
|
inline |
|
inline |
Check whether next entry exists.
IgniteError | class instance in case of failure. |