Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
LikeFilter..::.CalculateEffectiveness Method
LikeFilter Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Given an IDictionary of available indexes, determine if this IIndexAwareFilter can use any of the indexes to assist in its processing, and if so, determine how effective the use of that index would be. The returned value is an effectiveness estimate of how well this filter can use the specified indexes to filter the specified keys. An operation that requires no more than a single access to the index content (i.e. Equals, NotEquals) has an effectiveness of one. Evaluation of a single entry is assumed to have an effectiveness that depends on the index implementation and is usually measured as a constant number of the single operations. This number is referred to as evaluation cost. If the effectiveness of a filter evaluates to a number larger than the keys.size() then a user could avoid using the index and iterate through the keys calling evaluate rather than applyIndex.

Namespace: Tangosol.Util.Filter
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public int CalculateEffectiveness(
    	IDictionary indexes,
    	ICollection keys
    )

#### Parameters

indexes
  Type: System.Collections..::.IDictionary
  The available IMapIndex objects keyed by the related IValueExtractor; read-only.

keys
  Type: System.Collections..::.ICollection
  The set of keys that will be filtered; read-only.

#### Return Value

[Missing <returns> documentation for "M:Tangosol.Util.Filter.LikeFilter.CalculateEffectiveness(System.Collections.IDictionary,System.Collections.ICollection)"]

#### Implements

IIndexAwareFilter..::.CalculateEffectiveness(IDictionary, ICollection)

# See Also

LikeFilter Class
Tangosol.Util.Filter Namespace