Package org.apache.solr.util
Class IntIntDynamicMap
- java.lang.Object
- 
- org.apache.solr.util.IntIntDynamicMap
 
- 
- All Implemented Interfaces:
- DynamicMap
 
 public class IntIntDynamicMap extends Object implements DynamicMap 
- 
- 
Constructor SummaryConstructors Constructor Description IntIntDynamicMap(int expectedKeyMax, int emptyValue)Create map with expected max value of key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEachValue(IntConsumer consumer)intget(int key)voidput(int key, int value)voidremove(int key)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.util.DynamicMapmapExpectedElements, threshold, useArrayBased
 
- 
 
- 
- 
- 
Constructor Detail- 
IntIntDynamicMappublic IntIntDynamicMap(int expectedKeyMax, int emptyValue)Create map with expected max value of key. Although the map will automatically do resizing to be able to hold key>= expectedKeyMax. But putting key much larger thanexpectedKeyMaxis discourage since it can leads to use LOT OF memory.
 
- 
 - 
Method Detail- 
putpublic void put(int key, int value)
 - 
getpublic int get(int key) 
 - 
forEachValuepublic void forEachValue(IntConsumer consumer) 
 - 
removepublic void remove(int key) 
 
- 
 
-