23 #ifndef _IGNITE_CACHE_QUERY_QUERY_FIELDS_CURSOR 24 #define _IGNITE_CACHE_QUERY_QUERY_FIELDS_CURSOR 28 #include <ignite/common/concurrent.h> 33 #include "ignite/impl/cache/query/query_impl.h" 34 #include "ignite/impl/operations.h" 108 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
111 return impl0->HasNext(err);
115 "Instance is not usable (did you check for error?).");
153 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
156 return impl0->GetNextRow(err);
160 "Instance is not usable (did you check for error?).");
179 return impl.IsValid();
184 ignite::common::concurrent::SharedPointer<impl::cache::query::QueryCursorImpl> impl;
190 #endif //_IGNITE_CACHE_QUERY_QUERY_FIELDS_CURSOR bool HasNext(IgniteError &err)
Check whether next entry exists.
Definition: query_fields_cursor.h:106
QueryFieldsCursor()
Default constructor.
Definition: query_fields_cursor.h:59
Declares ignite::cache::query::QueryFieldsRow class.
Query fields cursor.
Definition: query_fields_cursor.h:50
bool IsValid() const
Check if the instance is valid.
Definition: query_fields_cursor.h:177
Declares ignite::cache::CacheEntry class.
Ignite error information.
Definition: ignite_error.h:94
QueryFieldsRow GetNext()
Get next entry.
Definition: query_fields_cursor.h:130
Query fields cursor.
Definition: query_fields_row.h:49
Apache Ignite API.
Definition: cache.h:48
bool HasNext()
Check whether next entry exists.
Definition: query_fields_cursor.h:85
Declares ignite::IgniteError class.
QueryFieldsCursor(impl::cache::query::QueryCursorImpl *impl)
Constructor.
Definition: query_fields_cursor.h:71
QueryFieldsRow GetNext(IgniteError &err)
Get next entry.
Definition: query_fields_cursor.h:151
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