VMware VMware GemFire Native C++ Reference 10.4.3
Loading...
Searching...
No Matches
apache::geode::client::SelectResults Class Referenceabstract

A SelectResults is obtained by executing a Query on the server. More...

#include <SelectResults.hpp>

Inherited by apache::geode::client::CqResults, and apache::geode::client::ResultSet.

Public Types

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

Public Member Functions

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

Detailed Description

A SelectResults is obtained by executing a Query on the server.

This can either be a ResultSet or a StructSet.

Member Typedef Documentation

◆ iterator

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

Interface of an iterator for SelectResults.

Member Function Documentation

◆ begin()

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

Get an iterator pointing to the start of SelectResults.

◆ end()

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

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 virtual

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 virtual

Get the size of the SelectResults.

Returns
the number of items in the SelectResults.

Apache Geode C++ Cache API Documentation