Package org.neo4j.gds.core.utils.paged
Class HugeLongLongMap
- java.lang.Object
-
- org.neo4j.gds.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=>longmapping and huge underlying storage, so it can store more than 2B values
-
-
Constructor Summary
Constructors Constructor Description HugeLongLongMap()New instance with sane defaults.HugeLongLongMap(long expectedElements)New instance with sane defaults.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTo(long key, long value)voidclear()booleancontainsKey(long key)longgetOrDefault(long key, long defaultValue)booleanisEmpty()java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor>iterator()static org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation()voidput(long key, long value)voidrelease()longsize()longsizeOf()java.lang.StringtoString()Convert the contents of this map to a human-friendly string.
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation()
-
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:
iteratorin 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:
toStringin classjava.lang.Object
-
-