Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Add an index to the given dictionary of indexes, keyed by the given extractor. Also add the index as a listener to the given cache.

Namespace:  Tangosol.Net.Cache.Support
Assembly:  Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)

Syntax

C#
public static void AddIndex(
	IValueExtractor extractor,
	bool ordered,
	IComparer comparator,
	IObservableCache cache,
	IDictionary dictIndex
)

Parameters

extractor
Type: Tangosol.Util..::.IValueExtractor
The IValueExtractor object that is used to extract an indexable property value from a cache entry.
ordered
Type: System..::.Boolean
True if the contents of the indexed information should be ordered; false otherwise
comparator
Type: System.Collections..::.IComparer
The IComparer object which imposes an ordering on entries in the indexed cache or null if the entries' values natural ordering should be used.
cache
Type: Tangosol.Net.Cache..::.IObservableCache
The cache that the newly created ICacheIndex will use for initialization and listen to for changes.
dictIndex
Type: System.Collections..::.IDictionary
The dictionary of indexes that the newly created ICacheIndex will be added to.

See Also