Package org.apache.solr.util
Class IntFloatDynamicMap
- java.lang.Object
- 
- org.apache.solr.util.IntFloatDynamicMap
 
- 
- All Implemented Interfaces:
- DynamicMap
 
 public class IntFloatDynamicMap extends Object implements DynamicMap 
- 
- 
Constructor SummaryConstructors Constructor Description IntFloatDynamicMap(int expectedKeyMax, float emptyValue)Create map with expected max value of key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEachValue(FloatConsumer consumer)floatget(int key)voidput(int key, float 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- 
IntFloatDynamicMappublic IntFloatDynamicMap(int expectedKeyMax, float 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, float value)
 - 
getpublic float get(int key) 
 - 
forEachValuepublic void forEachValue(FloatConsumer consumer) 
 - 
removepublic void remove(int key) 
 
- 
 
-