Class HugeLongLongDoubleMap
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.paged.HugeLongLongDoubleMap
-
public final class HugeLongLongDoubleMap extends java.lang.Object
map with two longs as keys and huge underlying storage, so it can store more than 2B values
-
-
Constructor Summary
Constructors Constructor Description HugeLongLongDoubleMap(long expectedElements, AllocationTracker tracker)
New instance with sane defaults.HugeLongLongDoubleMap(AllocationTracker tracker)
New instance with sane defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(long key1, long key2, double value)
double
getOrDefault(long key1, long key2, double defaultValue)
boolean
isEmpty()
void
release()
void
set(long key1, long key2, double value)
long
size()
java.lang.String
toString()
Convert the contents of this map to a human-friendly string.
-
-
-
Constructor Detail
-
HugeLongLongDoubleMap
public HugeLongLongDoubleMap(AllocationTracker tracker)
New instance with sane defaults.
-
HugeLongLongDoubleMap
public HugeLongLongDoubleMap(long expectedElements, AllocationTracker tracker)
New instance with sane defaults.
-
-
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:
toString
in classjava.lang.Object
-
-