Class HugeLongLongMap

  • All Implemented Interfaces:
    java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>

    public final class HugeLongLongMap
    extends java.lang.Object
    implements java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>
    map with long=>long mapping and huge underlying storage, so it can store more than 2B values
    • Constructor Detail

      • HugeLongLongMap

        public HugeLongLongMap​(AllocationTracker tracker)
        New instance with sane defaults.
      • HugeLongLongMap

        public HugeLongLongMap​(long expectedElements,
                               AllocationTracker tracker)
        New instance with sane defaults.
    • Method Detail

      • sizeOf

        public long sizeOf()
      • put

        public void put​(long key,
                        long value)
      • addTo

        public void addTo​(long key,
                          long value)
      • getOrDefault

        public long getOrDefault​(long key,
                                 long defaultValue)
      • containsKey

        public boolean containsKey​(long key)
      • size

        public long size()
      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • release

        public void release()
      • iterator

        public java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>
      • toString

        public java.lang.String toString()
        Convert the contents of this map to a human-friendly string.
        Overrides:
        toString in class java.lang.Object