Package org.apache.solr.util
Class IntLongDynamicMap
- java.lang.Object
- 
- org.apache.solr.util.IntLongDynamicMap
 
- 
- All Implemented Interfaces:
- DynamicMap
 
 public class IntLongDynamicMap extends Object implements DynamicMap 
- 
- 
Constructor SummaryConstructors Constructor Description IntLongDynamicMap(int expectedKeyMax, long emptyValue)Create map with expected max value of key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEachValue(LongConsumer consumer)longget(int key)voidput(int key, long 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- 
IntLongDynamicMappublic IntLongDynamicMap(int expectedKeyMax, long emptyValue)Create map with expected max value of key. Although the map will automatically do resizing to be able to hold key>=g expectedKeyMax. But putting key much larger thanexpectedKeyMaxis discourage since it can leads to use LOT OF memory.
 
- 
 - 
Method Detail- 
putpublic void put(int key, long value)
 - 
getpublic long get(int key) 
 - 
forEachValuepublic void forEachValue(LongConsumer consumer) 
 - 
removepublic void remove(int key) 
 
- 
 
-