Class IntLongDynamicMap

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

public class IntLongDynamicMap extends Object implements DynamicMap
  • Constructor Details

    • IntLongDynamicMap

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

    • put

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

      public long get(int key)
    • forEachValue

      public void forEachValue(LongConsumer consumer)
    • remove

      public void remove(int key)