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

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    MapOfSets<TKey, TValue>
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class MapOfSets<TKey, TValue> : object
    Type Parameters
    Name Description
    TKey
    TValue

    Constructors

    | Improve this Doc View Source

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

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

    The backing store for this object.

    Properties

    | Improve this Doc View Source

    Map

    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

    | Improve this Doc View Source

    Put(TKey, TValue)

    Adds val to the associated with key in the .
    If key is not already in the map, a new will first be created.

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

    The size of the associated with key once val is added to it.

    | Improve this Doc View Source

    PutAll(TKey, IEnumerable<TValue>)

    Adds multiple vals to the associated with key in the . If key is not already in the map, a new 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
    System.Int32

    The size of the associated with key once val is added to it.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)