Class HugeLongLongMap
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.paged.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 withlong=>long
mapping and huge underlying storage, so it can store more than 2B values
-
-
Constructor Summary
Constructors Constructor Description HugeLongLongMap(long expectedElements, AllocationTracker tracker)
New instance with sane defaults.HugeLongLongMap(AllocationTracker tracker)
New instance with sane defaults.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(long key, long value)
long
getOrDefault(long key, long defaultValue)
boolean
isEmpty()
java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor>
iterator()
static MemoryEstimation
memoryEstimation()
void
release()
long
size()
long
sizeOf()
java.lang.String
toString()
Convert the contents of this map to a human-friendly string.
-
-
-
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
-
memoryEstimation
public static MemoryEstimation memoryEstimation()
-
sizeOf
public long sizeOf()
-
addTo
public void addTo(long key, long value)
-
getOrDefault
public long getOrDefault(long key, long defaultValue)
-
size
public long size()
-
isEmpty
public boolean isEmpty()
-
release
public void release()
-
iterator
public java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor> iterator()
- Specified by:
iterator
in interfacejava.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 classjava.lang.Object
-
-