23 #ifndef _IGNITE_CACHE_QUERY_QUERY_CURSOR    24 #define _IGNITE_CACHE_QUERY_QUERY_CURSOR    28 #include <ignite/common/concurrent.h>    32 #include "ignite/impl/cache/query/query_impl.h"    33 #include "ignite/impl/operations.h"    53             template<
typename K, 
typename V>
    75                 QueryCursor(impl::cache::query::QueryCursorImpl* impl) : impl(impl)
   112                     impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
   115                         return impl0->HasNext(err);
   119                             "Instance is not usable (did you check for error?).");
   158                     impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
   164                         impl::Out2Operation<K, V> outOp(key, val);
   166                         impl0->GetNext(outOp, err);
   173                             "Instance is not usable (did you check for error?).");
   208                     impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
   211                         impl::OutQueryGetAllOperation<K, V> outOp(res);
   213                         impl0->GetAll(outOp, err);
   217                             "Instance is not usable (did you check for error?).");
   227                 template<
typename OutIter>
   230                     impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
   233                         impl::OutQueryGetAllOperationIter<K, V, OutIter> outOp(iter);
   235                         impl0->GetAll(outOp);
   240                             "Instance is not usable (did you check for error?).");
   257                     return impl.IsValid();
   262                 ignite::common::concurrent::SharedPointer<impl::cache::query::QueryCursorImpl> impl;
   268 #endif //_IGNITE_CACHE_QUERY_QUERY_CURSOR void GetAll(std::vector< CacheEntry< K, V > > &res, IgniteError &err)
Get all entries. 
Definition: query_cursor.h:206
 
QueryCursor(impl::cache::query::QueryCursorImpl *impl)
Constructor. 
Definition: query_cursor.h:75
 
bool HasNext(IgniteError &err)
Check whether next entry exists. 
Definition: query_cursor.h:110
 
void GetAll(OutIter iter)
Get all entries. 
Definition: query_cursor.h:228
 
CacheEntry< K, V > GetNext(IgniteError &err)
Get next entry. 
Definition: query_cursor.h:156
 
QueryCursor()
Default constructor. 
Definition: query_cursor.h:63
 
Cache entry class template. 
Definition: cache_entry.h:40
 
CacheEntry< K, V > GetNext()
Get next entry. 
Definition: query_cursor.h:134
 
Declares ignite::cache::CacheEntry class. 
 
Ignite error information. 
Definition: ignite_error.h:94
 
bool HasNext()
Check whether next entry exists. 
Definition: query_cursor.h:89
 
Apache Ignite API. 
Definition: cache.h:48
 
Declares ignite::IgniteError class. 
 
void GetAll(std::vector< CacheEntry< K, V > > &res)
Get all entries. 
Definition: query_cursor.h:188
 
Query cursor class template. 
Definition: query_cursor.h:54
 
static void ThrowIfNeeded(const IgniteError &err)
Throw an error if code is not IGNITE_SUCCESS. 
Definition: ignite_error.cpp:27
 
static const int IGNITE_ERR_GENERIC
Generic Ignite error. 
Definition: ignite_error.h:131
 
bool IsValid() const
Check if the instance is valid. 
Definition: query_cursor.h:255