Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MapOfSets<TKey, TValue>

    Helper class for keeping Lists of Objects associated with keys. WARNING: this CLASS IS NOT THREAD SAFE

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    MapOfSets<TKey, TValue>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class MapOfSets<TKey, TValue>
    Type Parameters
    Name Description
    TKey
    TValue

    Constructors

    MapOfSets(IDictionary<TKey, ISet<TValue>>)

    Helper class for keeping Lists of Objects associated with keys. WARNING: this CLASS IS NOT THREAD SAFE

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    public MapOfSets(IDictionary<TKey, ISet<TValue>> m)
    Parameters
    Type Name Description
    IDictionary<TKey, ISet<TValue>> m

    The backing store for this object.

    Properties

    Map

    Helper class for keeping Lists of Objects associated with keys. WARNING: this CLASS IS NOT THREAD SAFE

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    public virtual IDictionary<TKey, ISet<TValue>> Map { get; }
    Property Value
    Type Description
    IDictionary<TKey, ISet<TValue>>

    Direct access to the map backing this object.

    Methods

    Put(TKey, TValue)

    Adds val to the ISet<T> associated with key in the IDictionary<TKey, TValue>.
    If key is not already in the map, a new ISet<T> will first be created.

    Declaration
    public virtual int Put(TKey key, TValue val)
    Parameters
    Type Name Description
    TKey key
    TValue val
    Returns
    Type Description
    int

    The size of the ISet<T> associated with key once val is added to it.

    PutAll(TKey, IEnumerable<TValue>)

    Adds multiple vals to the ISet<T> associated with key in the IDictionary<TKey, TValue>. If key is not already in the map, a new ISet<T> will first be created.

    Declaration
    public virtual int PutAll(TKey key, IEnumerable<TValue> vals)
    Parameters
    Type Name Description
    TKey key
    IEnumerable<TValue> vals
    Returns
    Type Description
    int

    The size of the ISet<T> associated with key once val is added to it.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.