Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Add an index to this IQueryCache.

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

Syntax

C#
void AddIndex(
	IValueExtractor extractor,
	bool isOrdered,
	IComparer comparer
)

Parameters

extractor
Type: Tangosol.Util..::..IValueExtractor
The IValueExtractor object that is used to extract an indexable object from a value stored in the indexed cache. Must not be null.
isOrdered
Type: System..::..Boolean
true if the contents of the indexed information should be ordered; false otherwise.
comparer
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.

Remarks

This allows to correlate values stored in this indexed cache (or attributes of those values) to the corresponding keys in the indexed dictionary and increase the performance of GetKeys and GetEntries methods.

See Also