![]()  | 
  
      Apache Ignite C++
    
   | 
 
Query cursor class template. More...
#include <query_cursor.h>
Public Member Functions | |
| QueryCursor () | |
| Default constructor.  More... | |
| QueryCursor (impl::cache::query::QueryCursorImpl *impl) | |
| Constructor.  More... | |
| bool | HasNext () | 
| Check whether next entry exists.  More... | |
| bool | HasNext (IgniteError &err) | 
| Check whether next entry exists.  More... | |
| CacheEntry< K, V > | GetNext () | 
| Get next entry.  More... | |
| CacheEntry< K, V > | GetNext (IgniteError &err) | 
| Get next entry.  More... | |
| void | GetAll (std::vector< CacheEntry< K, V > > &res) | 
| Get all entries.  More... | |
| void | GetAll (std::vector< CacheEntry< K, V > > &res, IgniteError &err) | 
| Get all entries.  More... | |
| template<typename OutIter > | |
| void | GetAll (OutIter iter) | 
| Get all entries.  More... | |
| bool | IsValid () const | 
| Check if the instance is valid.  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 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 released automatically once all the instances are destructed.
      
  | 
  inline | 
Default constructor.
Constructed instance is not valid and thus can not be used as a cursor.
      
  | 
  inline | 
Constructor.
Internal method. Should not be used by user.
| impl | Implementation. | 
      
  | 
  inline | 
Get all entries.
This method should only be used on the valid instance.
| res | Vector where query entries will be stored. | 
| IgniteError | class instance in case of failure. | 
      
  | 
  inline | 
Get all entries.
Properly sets error param in case of failure.
This method should only be used on the valid instance.
| res | Vector where query entries will be stored. | 
| err | Used to set operation result. | 
      
  | 
  inline | 
Get all entries.
This method should only be used on the valid instance.
| iter | Output iterator. | 
      
  | 
  inline | 
Get next entry.
This method should only be used on the valid instance.
| IgniteError | class instance in case of failure. | 
      
  | 
  inline | 
Get next entry.
Properly sets error param in case of failure.
This method should only be used on the valid instance.
| err | Used to set operation result. | 
      
  | 
  inline | 
Check whether next entry exists.
This method should only be used on the valid instance.
| IgniteError | class instance in case of failure. | 
      
  | 
  inline | 
Check whether next entry exists.
Properly sets error param in case of failure.
This method should only be used on the valid instance.
| err | Used to set operation result. | 
      
  | 
  inline | 
Check if the instance is valid.
Invalid instance can be returned if some of the previous operations have resulted in a failure. For example invalid instance can be returned by not-throwing version of method in case of error. Invalid instances also often can be created using default constructor.
 1.8.13