Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Properties | List of all members
Lucene.Net.Util.MapOfSets< TKey, TValue > Class Template Reference

Helper class for keeping Listss of Objects associated with keys. WARNING: THIS CLASS IS NOT THREAD SAFE More...

Public Member Functions

 MapOfSets (IDictionary< TKey, HashSet< TValue >> m)
 
virtual int Put (TKey key, TValue val)
 Adds val to the Set associated with key in the Map. If key is not already in the map, a new Set will first be created.
 
virtual int PutAll (TKey key, IEnumerable< TValue > vals)
 Adds multiple vals to the Set associated with key in the Map. If key is not already in the map, a new Set will first be created.
 

Properties

virtual IDictionary< TKey,
HashSet< TValue > > 
Map [get]
 direct access to the map backing this object.
 

Detailed Description

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

Definition at line 25 of file MapOfSets.cs.

Constructor & Destructor Documentation

Lucene.Net.Util.MapOfSets< TKey, TValue >.MapOfSets ( IDictionary< TKey, HashSet< TValue >>  m)
Parameters
mthe backing store for this object

Definition at line 31 of file MapOfSets.cs.

Member Function Documentation

virtual int Lucene.Net.Util.MapOfSets< TKey, TValue >.Put ( TKey  key,
TValue  val 
)
virtual

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

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

Definition at line 47 of file MapOfSets.cs.

virtual int Lucene.Net.Util.MapOfSets< TKey, TValue >.PutAll ( TKey  key,
IEnumerable< TValue >  vals 
)
virtual

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

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

Definition at line 64 of file MapOfSets.cs.

Property Documentation

virtual IDictionary<TKey, HashSet<TValue> > Lucene.Net.Util.MapOfSets< TKey, TValue >.Map
get

direct access to the map backing this object.

Definition at line 38 of file MapOfSets.cs.


The documentation for this class was generated from the following file: