VMware Tanzu GemFire Native C++ Reference 10.2.7
apache::geode::client::ResultSet Class Referenceabstract

A ResultSet may be obtained after executing a Query which is obtained from a QueryService which in turn is obtained from a Cache. More...

#include <ResultSet.hpp>

Inherits apache::geode::client::SelectResults.

Public Types

typedef std::vector< std::shared_ptr< Cacheable > >::iterator iterator
 Interface of an iterator for SelectResults. More...
 

Public Member Functions

virtual iterator begin ()=0
 Get an iterator pointing to the start of SelectResults. More...
 
virtual iterator end ()=0
 Get an iterator pointing to the end of SelectResults. More...
 
virtual const std::shared_ptr< Serializableoperator[] (size_t index) const =0
 Index operator to directly access an item in the SelectResults. More...
 
virtual size_t size () const =0
 Get the size of the SelectResults. More...
 

Detailed Description

A ResultSet may be obtained after executing a Query which is obtained from a QueryService which in turn is obtained from a Cache.

Member Typedef Documentation

◆ iterator

typedef std::vector<std::shared_ptr<Cacheable>>::iterator apache::geode::client::SelectResults::iterator
inherited

Interface of an iterator for SelectResults.

Member Function Documentation

◆ begin()

virtual iterator apache::geode::client::SelectResults::begin ( )
pure virtualinherited

Get an iterator pointing to the start of SelectResults.

◆ end()

virtual iterator apache::geode::client::SelectResults::end ( )
pure virtualinherited

Get an iterator pointing to the end of SelectResults.

◆ operator[]()

virtual const std::shared_ptr< Serializable > apache::geode::client::SelectResults::operator[] ( size_t  index) const
pure virtualinherited

Index operator to directly access an item in the SelectResults.

Parameters
indexthe index number of the required item.
Exceptions
IllegalArgumentExceptionif the index is out of bounds.
Returns
A smart pointer to the item indexed.

◆ size()

virtual size_t apache::geode::client::SelectResults::size ( ) const
pure virtualinherited

Get the size of the SelectResults.

Returns
the number of items in the SelectResults.

Apache Geode C++ Cache API Documentation