NamedMapInvokableTKey, TValue, TParam, TResultEvalPartialKeySet Method

ScaleOut Software NamedCache API
This method is called for a group of keys in the map. It is expected that it will iterate through all the keys and values by calling Next and getting the current key and its value via Key and Value.

Namespace:  Soss.Client.Concurrent
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public virtual TResult EvalPartialKeySet(
	NamedMapInvokableContext<TKey, TValue> context,
	TParam parameter,
	out bool mergeObjExists
)

Parameters

context
Type: Soss.Client.ConcurrentNamedMapInvokableContextTKey, TValue
Operation context with methods to iterate through keys and values; can also be used to modify the current value or remove the current key from the map
parameter
Type: TParam
Optional parameter for the group of keys invocation.
mergeObjExists
Type: SystemBoolean
Output parameter that indicates whether the Eval method was called and returned non-null result. It is important to know for value result types, such as bool, int, etc.

Return Value

Type: TResult
The result object of a type TResult or null in case of processing the group of keys does not produce any result.
Remarks

It is important that the context only iterates through a subset of keys in the map. The final result is produced by calling the Merge method defined as a delegate of this class, to perform a pairwise merge of all obtained results.

This method can be called concurrently by several threads, but with different context objects, so care should be taken not to store any non-thread safe state within the class instance.

See Also

Reference