Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
IQueryCache..::.AddIndex Method
IQueryCache Interface See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Add an index to this IQueryCache.

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

# 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

IQueryCache Interface
Tangosol.Net.Cache Namespace