Package org.neo4j.gds.core.utils.paged
Class HugeLongLongDoubleMap
- java.lang.Object
-
- org.neo4j.gds.core.utils.paged.HugeLongLongDoubleMap
-
public final class HugeLongLongDoubleMap extends java.lang.Objectmap with two longs as keys and huge underlying storage, so it can store more than 2B values
-
-
Constructor Summary
Constructors Constructor Description HugeLongLongDoubleMap()New instance with sane defaults.HugeLongLongDoubleMap(long expectedElements)New instance with sane defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTo(long key1, long key2, double value)doublegetOrDefault(long key1, long key2, double defaultValue)booleanisEmpty()voidrelease()voidset(long key1, long key2, double value)longsize()java.lang.StringtoString()Convert the contents of this map to a human-friendly string.
-
-
-
Method Detail
-
set
public void set(long key1, long key2, double value)
-
addTo
public void addTo(long key1, long key2, double value)
-
getOrDefault
public double getOrDefault(long key1, long key2, double defaultValue)
-
size
public long size()
-
isEmpty
public boolean isEmpty()
-
release
public void release()
-
toString
public java.lang.String toString()
Convert the contents of this map to a human-friendly string.- Overrides:
toStringin classjava.lang.Object
-
-