Class ReduceWithParam<TKey, TValue, TParam, TResult>
- Namespace
- Scaleout.Client.MethodInvocation
- Assembly
- Scaleout.Client.dll
Base class for an invocation handler that takes a parameter and returns an aggregated value.
public abstract class ReduceWithParam<TKey, TValue, TParam, 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.
TParam
Type of the parameter object that is passed into the handler's Evaluate(TKey, TParam, TResult, OperationContext<TKey, TValue>) callback.
TResult
Type of the result returned by this invocation handler.
- Inheritance
-
InvokeHandler<TKey, TValue>ReduceWithParam<TKey, TValue, TParam, TResult>
- Inherited Members
Methods
- AccumulatorFactory(TParam)
Abstract. The method that initializes the a thread-local instance of an accumulated result.
- DeserializeParam(byte[])
Abstract. When overridden in a derived class, deserializes the parameter object that was supplied by the client.
- DeserializeResult(Stream)
Abstract. When overridden, deserializes a result object from a stream.
- Evaluate(TKey, TParam, 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.