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=>long
mapping 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 void
addTo(long key, long value)
void
clear()
boolean
containsKey(long key)
long
getOrDefault(long key, long defaultValue)
boolean
isEmpty()
java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor>
iterator()
static org.neo4j.gds.core.utils.mem.MemoryEstimation
memoryEstimation()
void
put(long key, long value)
void
release()
long
size()
long
sizeOf()
java.lang.String
toString()
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:
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
-
-