gemfire::ResultSet Class Reference

Inherits gemfire::SelectResults.


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.

Public Member Functions

virtual
SelectResultsIterator 
getIterator ()=0
 Get a SelectResultsIterator with which to iterate over the items in the ResultSet.
virtual bool isModifiable () const =0
 Check whether the ResultSet is modifiable.
virtual const
SerializablePtr 
operator[] (size_t index) const =0
 Index operator to directly access an item in the ResultSet.
void preserveSB () const
 Atomically increment reference count.
int32_t refCount ()
 
Returns:
the reference count

void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
virtual size_t size () const =0
 Get the size of the ResultSet.
virtual ~ResultSet ()
 Destructor.

Constructor & Destructor Documentation

virtual gemfire::ResultSet::~ResultSet (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual SelectResultsIterator gemfire::ResultSet::getIterator (  )  [pure virtual]

Get a SelectResultsIterator with which to iterate over the items in the ResultSet.

Returns:
The SelectResultsIterator with which to iterate.

Implements gemfire::SelectResults.

virtual bool gemfire::ResultSet::isModifiable (  )  const [pure virtual]

Check whether the ResultSet is modifiable.

Returns:
false always at this time.

Implements gemfire::SelectResults.

virtual const SerializablePtr gemfire::ResultSet::operator[] ( size_t  index  )  const [pure virtual]

Index operator to directly access an item in the ResultSet.

Parameters:
index the index number of the required item.
Exceptions:
IllegalArgumentException if the index is out of bounds.
Returns:
A smart pointer to the item indexed.

Implements gemfire::SelectResults.

void gemfire::SharedBase::preserveSB (  )  const [inherited]

Atomically increment reference count.

int32_t gemfire::SharedBase::refCount (  )  [inline, inherited]

Returns:
the reference count

void gemfire::SharedBase::releaseSB (  )  const [inherited]

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.

virtual size_t gemfire::ResultSet::size (  )  const [pure virtual]

Get the size of the ResultSet.

Returns:
the number of items in the ResultSet.

Implements gemfire::SelectResults.


GemFire C++ Cache API Documentation