Apache Geode Native C++ Reference  1.14.0
apache::geode::client::SelectResults Class Referenceabstract

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

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. 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 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