Show / Hide Table of Contents

Class ConverterCollections.ConverterQueryCache

A Converter QueryCache views an underlying IQueryCache through a set of key and value IConverters.

Inheritance
object
ConverterCollections.ConverterDictionary
ConverterCollections.ConverterCache
ConverterCollections.ConverterQueryCache
Implements
IQueryCache
ICache
IDictionary
ICollection
IEnumerable
Inherited Members
ConverterCollections.ConverterCache.Cache
ConverterCollections.ConverterCache.GetAll(ICollection)
ConverterCollections.ConverterCache.Insert(object, object)
ConverterCollections.ConverterCache.Insert(object, object, long)
ConverterCollections.ConverterCache.InsertAll(IDictionary)
ConverterCollections.ConverterCache.Entries
ConverterCollections.ConverterCache.GetEnumerator()
ConverterCollections.ConverterCache.InstantiateEntries(ICollection, IConverter, IConverter, IConverter, IConverter)
ConverterCollections.ConverterCache.InstantiateCacheEnumerator(ICacheEnumerator, IConverter, IConverter, IConverter)
ConverterCollections.ConverterCache.m_entries
ConverterCollections.ConverterDictionary.Dictionary
ConverterCollections.ConverterDictionary.ConverterKeyUp
ConverterCollections.ConverterDictionary.ConverterKeyDown
ConverterCollections.ConverterDictionary.ConverterValueUp
ConverterCollections.ConverterDictionary.ConverterValueDown
ConverterCollections.ConverterDictionary.Contains(object)
ConverterCollections.ConverterDictionary.Add(object, object)
ConverterCollections.ConverterDictionary.Clear()
ConverterCollections.ConverterDictionary.Remove(object)
ConverterCollections.ConverterDictionary.this[object]
ConverterCollections.ConverterDictionary.Keys
ConverterCollections.ConverterDictionary.Values
ConverterCollections.ConverterDictionary.IsReadOnly
ConverterCollections.ConverterDictionary.IsFixedSize
ConverterCollections.ConverterDictionary.CopyTo(Array, int)
ConverterCollections.ConverterDictionary.Count
ConverterCollections.ConverterDictionary.SyncRoot
ConverterCollections.ConverterDictionary.IsSynchronized
ConverterCollections.ConverterDictionary.InstantiateCollection(ICollection, IConverter, IConverter)
ConverterCollections.ConverterDictionary.InstantiateDictionary(IDictionary, IConverter, IConverter, IConverter, IConverter)
ConverterCollections.ConverterDictionary.InstantiateDictionaryEnumerator(IDictionaryEnumerator, IConverter, IConverter)
ConverterCollections.ConverterDictionary.ToString()
ConverterCollections.ConverterDictionary.m_dictionary
ConverterCollections.ConverterDictionary.m_convKeyUp
ConverterCollections.ConverterDictionary.m_convKeyDown
ConverterCollections.ConverterDictionary.m_convValUp
ConverterCollections.ConverterDictionary.m_convValDown
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
[Serializable]
public class ConverterCollections.ConverterQueryCache : ConverterCollections.ConverterCache, IQueryCache, ICache, IDictionary, ICollection, IEnumerable

Constructors

ConverterQueryCache(IQueryCache, IConverter, IConverter, IConverter, IConverter)

Constructor.

Declaration
public ConverterQueryCache(IQueryCache cache, IConverter convKeyUp, IConverter convKeyDown, IConverter convValUp, IConverter convValDown)
Parameters
Type Name Description
IQueryCache cache

The underlying IQueryCache.

IConverter convKeyUp

The IConverter to view the underlying cache's keys through.

IConverter convKeyDown

The IConverter to use to pass keys down to the underlying cache.

IConverter convValUp

The IConverter to view the underlying cache's values through.

IConverter convValDown

The IConverter to use to pass values down to the underlying cache.

Properties

QueryCache

The underlying IQueryCache.

Declaration
public virtual IQueryCache QueryCache { get; }
Property Value
Type Description
IQueryCache

The underlying IQueryCache.

Methods

AddIndex(IValueExtractor, bool, IComparer)

Add an index to this IQueryCache.

Declaration
public virtual void AddIndex(IValueExtractor extractor, bool isOrdered, IComparer comparer)
Parameters
Type Name Description
IValueExtractor extractor

The IValueExtractor object that is used to extract an indexable object from a value stored in the indexed cache. Must not be null.

bool isOrdered

true if the contents of the indexed information should be ordered; false otherwise.

IComparer comparer

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.

GetEntries(IFilter)

Return a collection of the entries contained in this cache that satisfy the criteria expressed by the filter.

Declaration
public virtual ICacheEntry[] GetEntries(IFilter filter)
Parameters
Type Name Description
IFilter filter

The IFilter object representing the criteria that the entries of this cache should satisfy.

Returns
Type Description
ICacheEntry[]

A collection of entries that satisfy the specified criteria.

GetEntries(IFilter, IComparer)

Return a collection of the entries contained in this cache that satisfy the criteria expressed by the filter.

Declaration
public virtual ICacheEntry[] GetEntries(IFilter filter, IComparer comparer)
Parameters
Type Name Description
IFilter filter

The IFilter object representing the criteria that the entries of this cache should satisfy.

IComparer comparer

The IComparable object which imposes an ordering on entries in the resulting collection; or null if the entries' values natural ordering should be used.

Returns
Type Description
ICacheEntry[]

A collection of entries that satisfy the specified criteria.

Remarks

It is guaranteed that enumerator will traverse the array in such a way that the entry values come up in ascending order, sorted by the specified comparer or according to the natural ordering.

GetKeys(IFilter)

Return a collection of the keys contained in this cache for entries that satisfy the criteria expressed by the filter.

Declaration
public virtual object[] GetKeys(IFilter filter)
Parameters
Type Name Description
IFilter filter

The IFilter object representing the criteria that the entries of this cache should satisfy.

Returns
Type Description
object[]

A collection of keys for entries that satisfy the specified criteria.

GetValues(IFilter)

Return a collection of the values contained in this cache for entries that satisfy the criteria expressed by the filter.

Declaration
public virtual object[] GetValues(IFilter filter)
Parameters
Type Name Description
IFilter filter

The IFilter object representing the criteria that the entries of this cache should satisfy.

Returns
Type Description
object[]

A collection of the values for entries that satisfy the specified criteria.

GetValues(IFilter, IComparer)

Return a collection of the values contained in this cache for entries that satisfy the criteria expressed by the filter.

Declaration
public virtual object[] GetValues(IFilter filter, IComparer comparer)
Parameters
Type Name Description
IFilter filter

The IFilter object representing the criteria that the entries of this cache should satisfy.

IComparer comparer

The IComparable object which imposes an ordering on entries in the resulting collection; or null if the entries' values natural ordering should be used.

Returns
Type Description
object[]

A collection of entries that satisfy the specified criteria.

Remarks

It is guaranteed that enumerator will traverse the array in such a way that the values come up in ascending order, sorted by the specified comparer or according to the natural ordering.

RemoveIndex(IValueExtractor)

Remove an index from this IQueryCache.

Declaration
public virtual void RemoveIndex(IValueExtractor extractor)
Parameters
Type Name Description
IValueExtractor extractor

The IValueExtractor object that is used to extract an indexable object from a value stored in the cache.

Implements

IQueryCache
ICache
IDictionary
ICollection
IEnumerable
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.