Show / Hide Table of Contents

    Class HashDictionary<K, V>

    A generic dictionary class based on a hash set class C5.HashSet`1.

    Inheritance
    System.Object
    EnumerableBase<KeyValuePair<K, V>>
    CollectionValueBase<KeyValuePair<K, V>>
    DictionaryBase<K, V>
    HashDictionary<K, V>
    Implements
    IDictionary<K, V>
    ICollectionValue<KeyValuePair<K, V>>
    System.Collections.Generic.IEnumerable<KeyValuePair<K, V>>
    IShowable
    IFormattable
    Inherited Members
    DictionaryBase<K, V>.pairs
    DictionaryBase<K, V>.CollectionChanged
    DictionaryBase<K, V>.CollectionCleared
    DictionaryBase<K, V>.ItemsAdded
    DictionaryBase<K, V>.ItemsRemoved
    DictionaryBase<K, V>.ListenableEvents
    DictionaryBase<K, V>.ActiveEvents
    DictionaryBase<K, V>.EqualityComparer
    DictionaryBase<K, V>.Add(K, V)
    DictionaryBase<K, V>.AddAll<L, W>(System.Collections.Generic.IEnumerable<KeyValuePair<L, W>>)
    DictionaryBase<K, V>.Remove(K)
    DictionaryBase<K, V>.Remove(K, V)
    DictionaryBase<K, V>.Clear()
    DictionaryBase<K, V>.ContainsSpeed
    DictionaryBase<K, V>.Contains(K)
    DictionaryBase<K, V>.ContainsAll<H>(System.Collections.Generic.IEnumerable<H>)
    DictionaryBase<K, V>.Find(K, V)
    DictionaryBase<K, V>.Update(K, V)
    DictionaryBase<K, V>.Update(K, V, V)
    DictionaryBase<K, V>.FindOrAdd(K, V)
    DictionaryBase<K, V>.UpdateOrAdd(K, V)
    DictionaryBase<K, V>.UpdateOrAdd(K, V, V)
    DictionaryBase<K, V>.Keys
    DictionaryBase<K, V>.Values
    DictionaryBase<K, V>.Func
    DictionaryBase<K, V>.Item[K]
    DictionaryBase<K, V>.IsReadOnly
    DictionaryBase<K, V>.Check()
    DictionaryBase<K, V>.IsEmpty
    DictionaryBase<K, V>.Count
    DictionaryBase<K, V>.CountSpeed
    DictionaryBase<K, V>.Choose()
    DictionaryBase<K, V>.GetEnumerator()
    DictionaryBase<K, V>.Show(System.Text.StringBuilder, Int32, IFormatProvider)
    CollectionValueBase<KeyValuePair<K, V>>.ListenableEvents
    CollectionValueBase<KeyValuePair<K, V>>.ActiveEvents
    CollectionValueBase<KeyValuePair<K, V>>.CollectionChanged
    CollectionValueBase<KeyValuePair<K, V>>.raiseCollectionChanged()
    CollectionValueBase<KeyValuePair<K, V>>.CollectionCleared
    CollectionValueBase<KeyValuePair<K, V>>.raiseCollectionCleared(Boolean, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.raiseCollectionCleared(Boolean, Int32, Nullable<Int32>)
    CollectionValueBase<KeyValuePair<K, V>>.ItemsAdded
    CollectionValueBase<KeyValuePair<K, V>>.raiseItemsAdded(KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.ItemsRemoved
    CollectionValueBase<KeyValuePair<K, V>>.raiseItemsRemoved(KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.ItemInserted
    CollectionValueBase<KeyValuePair<K, V>>.raiseItemInserted(KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.ItemRemovedAt
    CollectionValueBase<KeyValuePair<K, V>>.raiseItemRemovedAt(KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForSetThis(Int32, KeyValuePair<K, V>, KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForInsert(Int32, KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForRemove(KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForRemove(KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForRemoveAt(Int32, KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForUpdate(KeyValuePair<K, V>, KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForUpdate(KeyValuePair<K, V>, KeyValuePair<K, V>, Int32)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForAdd(KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.raiseForRemoveAll(ICollectionValue<KeyValuePair<K, V>>)
    CollectionValueBase<KeyValuePair<K, V>>.IsEmpty
    CollectionValueBase<KeyValuePair<K, V>>.Count
    CollectionValueBase<KeyValuePair<K, V>>.CountSpeed
    CollectionValueBase<KeyValuePair<K, V>>.CopyTo(KeyValuePair<K, V>[], Int32)
    CollectionValueBase<KeyValuePair<K, V>>.ToArray()
    CollectionValueBase<KeyValuePair<K, V>>.Apply(Action<KeyValuePair<K, V>>)
    CollectionValueBase<KeyValuePair<K, V>>.Exists(Func<KeyValuePair<K, V>, Boolean>)
    CollectionValueBase<KeyValuePair<K, V>>.Find(Func<KeyValuePair<K, V>, Boolean>, KeyValuePair<K, V>)
    CollectionValueBase<KeyValuePair<K, V>>.All(Func<KeyValuePair<K, V>, Boolean>)
    CollectionValueBase<KeyValuePair<K, V>>.Filter(Func<KeyValuePair<K, V>, Boolean>)
    CollectionValueBase<KeyValuePair<K, V>>.Choose()
    CollectionValueBase<KeyValuePair<K, V>>.Show(System.Text.StringBuilder, Int32, IFormatProvider)
    CollectionValueBase<KeyValuePair<K, V>>.ToString(String, IFormatProvider)
    CollectionValueBase<KeyValuePair<K, V>>.ToString()
    EnumerableBase<KeyValuePair<K, V>>.GetEnumerator()
    EnumerableBase<KeyValuePair<K, V>>.countItems(System.Collections.Generic.IEnumerable<KeyValuePair<K, V>>)
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public class HashDictionary<K, V> : DictionaryBase<K, V>, IDictionary<K, V>, ICollectionValue<KeyValuePair<K, V>>, System.Collections.Generic.IEnumerable<KeyValuePair<K, V>>, IShowable, IFormattable
    Type Parameters
    Name Description
    K
    V

    Constructors

    | Improve this Doc View Source

    HashDictionary(MemoryType)

    Create a hash dictionary using a default equalityComparer for the keys. Initial capacity of internal table will be 16 entries and threshold for expansion is 66% fill.

    Declaration
    public HashDictionary(MemoryType memoryType = MemoryType.Normal)
    Parameters
    Type Name Description
    MemoryType memoryType
    | Improve this Doc View Source

    HashDictionary(System.Collections.Generic.IEqualityComparer<K>, MemoryType)

    Create a hash dictionary using a custom equalityComparer for the keys. Initial capacity of internal table will be 16 entries and threshold for expansion is 66% fill.

    Declaration
    public HashDictionary(System.Collections.Generic.IEqualityComparer<K> keyequalityComparer, MemoryType memoryType = MemoryType.Normal)
    Parameters
    Type Name Description
    System.Collections.Generic.IEqualityComparer<K> keyequalityComparer

    The external key equalitySCG.Comparer

    MemoryType memoryType

    The memory type of the enumerator used to iterate the collection

    | Improve this Doc View Source

    HashDictionary(Int32, Double, System.Collections.Generic.IEqualityComparer<K>, MemoryType)

    Create a hash dictionary using a custom equalityComparer and prescribing the initial size of the dictionary and a non-default threshold for internal table expansion.

    Declaration
    public HashDictionary(int capacity, double fill, System.Collections.Generic.IEqualityComparer<K> keyequalityComparer, MemoryType memoryType = MemoryType.Normal)
    Parameters
    Type Name Description
    System.Int32 capacity

    The initial capacity. Will be rounded upwards to nearest power of 2, at least 16.

    System.Double fill

    The expansion threshold. Must be between 10% and 90%.

    System.Collections.Generic.IEqualityComparer<K> keyequalityComparer

    The external key equalitySCG.Comparer

    MemoryType memoryType

    The memory type of the enumerator used to iterate the collection

    Implements

    IDictionary<K, V>
    ICollectionValue<T>
    System.Collections.Generic.IEnumerable<>
    IShowable
    IFormattable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)