InvocableCacheHelperAddIndex Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
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: 14.1.1.14 (14.1.1.14)
Syntaxpublic static void AddIndex(
IValueExtractor extractor,
bool ordered,
IComparer comparator,
IObservableCache cache,
IDictionary dictIndex
)
Parameters
- extractor
- Type: Tangosol.UtilIValueExtractor
The IValueExtractor object that is used to extract an indexable
property value from a cache entry.
- ordered
- Type: SystemBoolean
True if the contents of the indexed information should be ordered;
false otherwise
- comparator
- Type: System.CollectionsIComparer
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.CacheIObservableCache
The cache that the newly created ICacheIndex will use for
initialization and listen to for changes.
- dictIndex
- Type: System.CollectionsIDictionary
The dictionary of indexes that the newly created ICacheIndex will
be added to.
See Also