Class Reduce<TKey, TValue, TResult>
- Namespace
- Scaleout.Client.MethodInvocation
- Assembly
- Scaleout.Client.dll
Base class for an invocation handler that does not take a parameter and returns an aggregated value.
public abstract class Reduce<TKey, TValue, TResult> : InvokeHandler<TKey, TValue>
Type Parameters
TKey
Type of key used in the Cache<TKey, TValue> that is associated with this invoke handler.
TValue
Type of value that is stored in the Cache<TKey, TValue> associated with this invoke handler.
TResult
Type of the result returned by this invocation handler.
- Inheritance
-
InvokeHandler<TKey, TValue>Reduce<TKey, TValue, TResult>
- Inherited Members
Methods
- AccumulatorFactory()
Abstract. The method that initializes the a thread-local instance of an accumulated result.
- DeserializeResult(Stream)
Abstract. When overridden, deserializes a result object from a stream.
- Evaluate(TKey, TResult, OperationContext<TKey, TValue>)
Abstract. When overridden in a derived class, evaluates an object in the cache. The accumulated result for the operation is passed into this method via the
accumulator
parameter, and the method should return a (possibly) modified accumulator value that will be passed to the next Evaluate call by the pipeline.
- MergeFinal(TResult, TResult)
Abstract. When overridden in a derived class, merges two accumulated results into a single result object.
- SerializeResult(TResult, Stream)
Abstract. When overridden, serializes a result object to a stream.