15 #ifndef _GRIDGAIN_CACHE_QUERY_FIELDS_CURSOR 16 #define _GRIDGAIN_CACHE_QUERY_FIELDS_CURSOR 20 #include <ignite/common/concurrent.h> 25 #include "gridgain/impl/cache/query/query_impl.h" 26 #include "gridgain/impl/operations.h" 82 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
85 return impl0->HasNext(&err);
89 "Instance is not usable (did you check for error?).");
119 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
122 return impl0->GetNextRow(&err);
126 "Instance is not usable (did you check for error?).");
139 return impl.IsValid();
144 ignite::common::concurrent::SharedPointer<impl::cache::query::QueryCursorImpl> impl;
Query fields cursor.
Definition: query_fields_row.h:36
static const int GG_ERR_GENERIC
Generic GridGain error.
Definition: grid_error.h:104
QueryFieldsRow GetNext()
Get next entry.
Definition: query_fields_cursor.h:100
Query fields cursor.
Definition: query_fields_cursor.h:37
bool HasNext()
Check whether next entry exists.
Definition: query_fields_cursor.h:63
QueryFieldsCursor(impl::cache::query::QueryCursorImpl *impl)
Constructor.
Definition: query_fields_cursor.h:53
bool IsValid()
Check if the instance is valid.
Definition: query_fields_cursor.h:137
bool HasNext(GridError &err)
Check whether next entry exists.
Definition: query_fields_cursor.h:80
Declares gridgain::GridError class.
Declares gridgain::cache::query::QueryFieldsRow class.
Declares gridgain::cache::CacheEntry class.
QueryFieldsRow GetNext(GridError &err)
Get next entry.
Definition: query_fields_cursor.h:117
static void ThrowIfNeeded(GridError &err)
Throw an error if code is not GG_SUCCESS.
Definition: grid_error.cpp:22
GridGain API.
Definition: cache.h:35
QueryFieldsCursor()
Default constructor.
Definition: query_fields_cursor.h:43
Grid error information.
Definition: grid_error.h:70