Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::LazyEntryArray< K, V > Class Template Referenceabstract
+ Inheritance diagram for hazelcast::client::LazyEntryArray< K, V >:

Public Member Functions

virtual size_t size () const =0
 
virtual const K * getKey (size_t index)=0
 Please note that this operation is costly due to de-serialization. More...
 
virtual std::auto_ptr< K > releaseKey (size_t index)=0
 Please note that this operation MAY(if not deserialized previously) be costly due to de-serialization. More...
 
virtual const V * getValue (size_t index)=0
 Please note that this operation is costly due to de-serialization. More...
 
virtual std::auto_ptr< V > releaseValue (size_t index)=0
 Please note that this operation is costly due to de-serialization. More...
 
virtual std::pair< const K *, const V * > operator[] (size_t index)=0
 

Member Function Documentation

◆ getKey()

template<typename K , typename V >
virtual const K* hazelcast::client::LazyEntryArray< K, V >::getKey ( size_t  index)
pure virtual

Please note that this operation is costly due to de-serialization.

It caches deserialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the key object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.

◆ getValue()

template<typename K , typename V >
virtual const V* hazelcast::client::LazyEntryArray< K, V >::getValue ( size_t  index)
pure virtual

Please note that this operation is costly due to de-serialization.

It will cache the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the value object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.

◆ operator[]()

template<typename K , typename V >
virtual std::pair<const K *, const V *> hazelcast::client::LazyEntryArray< K, V >::operator[] ( size_t  index)
pure virtual
Parameters
indexThe index of the desired item in the array.
Returns
The key value pointer pair is returned

◆ releaseKey()

template<typename K , typename V >
virtual std::auto_ptr<K> hazelcast::client::LazyEntryArray< K, V >::releaseKey ( size_t  index)
pure virtual

Please note that this operation MAY(if not deserialized previously) be costly due to de-serialization.

It will NOT cache the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the key object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.

◆ releaseValue()

template<typename K , typename V >
virtual std::auto_ptr<V> hazelcast::client::LazyEntryArray< K, V >::releaseValue ( size_t  index)
pure virtual

Please note that this operation is costly due to de-serialization.

It will NOT cache the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the value object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.

◆ size()

template<typename K , typename V >
virtual size_t hazelcast::client::LazyEntryArray< K, V >::size ( ) const
pure virtual
Returns
Returns the number of data items

The documentation for this class was generated from the following file: