Class IntFloatDynamicMap

java.lang.Object
org.apache.solr.util.IntFloatDynamicMap
All Implemented Interfaces:
DynamicMap

public class IntFloatDynamicMap extends Object implements DynamicMap
  • Constructor Details

    • IntFloatDynamicMap

      public 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 than expectedKeyMax is discourage since it can leads to use LOT OF memory.
  • Method Details

    • put

      public void put(int key, float value)
    • get

      public float get(int key)
    • forEachValue

      public void forEachValue(FloatConsumer consumer)
    • remove

      public void remove(int key)