Package org.apache.lucene.util
Class MapOfSets<K,V>
java.lang.Object
org.apache.lucene.util.MapOfSets<K,V>
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.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MapOfSets
- Parameters:
m
- the backing store for this object
-
-
Method Details
-
getMap
- Returns:
- direct access to the map backing this object.
-
put
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.
-
putAll
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.
-