Public Member Functions | List of all members
GridGain.Datastream.StreamTransformer< K, V, A, R > Class Template Reference

Convenience adapter to transform update existing values in streaming cache based on the previously cached value. More...

Inherits GridGain.Datastream.IStreamReceiver< K, V >, and IPortableWriteAware.

Public Member Functions

 StreamTransformer (ICacheEntryProcessor< K, V, A, R > proc)
 Initializes a new instance of the StreamTransformer<K, V, A, R> class. More...
 
void Receive (ICache< K, V > cache, ICollection< ICacheEntry< K, V >> entries)
 

Detailed Description

Template Parameters
KThe type of the cache key.
VThe type of the cache value.
AThe type of the processor argument.
RThe type of the processor result.

Constructor & Destructor Documentation

Parameters
procEntry processor.

Member Function Documentation

void GridGain.Datastream.StreamTransformer< K, V, A, R >.Receive ( ICache< K, V >  cache,
ICollection< ICacheEntry< K, V >>  entries 
)

Updates cache with batch of entries.

Implements GridGain.Datastream.IStreamReceiver< K, V >.