23 #ifndef _IGNITE_CACHE_QUERY_FIELDS_CURSOR
24 #define _IGNITE_CACHE_QUERY_FIELDS_CURSOR
28 #include <ignite/common/concurrent.h>
33 #include "ignite/impl/cache/query/query_impl.h"
34 #include "ignite/impl/operations.h"
90 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
93 return impl0->HasNext(&err);
97 "Instance is not usable (did you check for error?).");
127 impl::cache::query::QueryCursorImpl* impl0 = impl.Get();
130 return impl0->GetNextRow(&err);
134 "Instance is not usable (did you check for error?).");
147 return impl.IsValid();
152 ignite::common::concurrent::SharedPointer<impl::cache::query::QueryCursorImpl> impl;
bool HasNext(IgniteError &err)
Check whether next entry exists.
Definition: query_fields_cursor.h:88
QueryFieldsCursor()
Default constructor.
Definition: query_fields_cursor.h:51
Declares ignite::cache::query::QueryFieldsRow class.
Query fields cursor.
Definition: query_fields_cursor.h:45
static void ThrowIfNeeded(IgniteError &err)
Throw an error if code is not IGNITE_SUCCESS.
Definition: ignite_error.cpp:27
Declares ignite::cache::CacheEntry class.
Ignite error information.
Definition: ignite_error.h:78
bool IsValid()
Check if the instance is valid.
Definition: query_fields_cursor.h:145
QueryFieldsRow GetNext()
Get next entry.
Definition: query_fields_cursor.h:108
Query fields cursor.
Definition: query_fields_row.h:44
Apache Ignite API.
Definition: binary_consts.h:28
bool HasNext()
Check whether next entry exists.
Definition: query_fields_cursor.h:71
Declares ignite::IgniteError class.
QueryFieldsCursor(impl::cache::query::QueryCursorImpl *impl)
Constructor.
Definition: query_fields_cursor.h:61
QueryFieldsRow GetNext(IgniteError &err)
Get next entry.
Definition: query_fields_cursor.h:125
static const int IGNITE_ERR_GENERIC
Generic Ignite error.
Definition: ignite_error.h:112