Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
LiteDictionary Class
Members See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
An implementation of IDictionary that is optimal (in terms of both size and speed) for very small sets of data but still works excellently with large sets of data.

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

# Syntax

C#
    public class LiteDictionary : IDictionary,
    	ICollection, IEnumerable

# Remarks

This implementation is not thread-safe.

The LiteDictionary implementation switches at runtime between several different sub-implementations for storing the IDictionary of objects, described here:

1. "empty dictionary" - a dictionary that contains no data;
2. "single entry" - a reference directly to a single dictionary entry;
3. "object[]" - a reference to an array of entries; the item limit for this implementation is determined by the THRESHOLD()()() constant;
4. "delegation" - for more than THRESHOLD()()() items, a dictionary is created to delegate the dictionary management to; sub-classes can override the default delegation class Hashtable by overriding the factory method InstantiateDictionary()()().

The LiteDictionary implementation supports the null key value.

# Inheritance Hierarchy

System..::.Object
Tangosol.Util..::.LiteDictionary

# See Also

LiteDictionary Members
Tangosol.Util Namespace