Package org.neo4j.graphalgo.core.huge
Class FilteredNodeProperties
- java.lang.Object
-
- org.neo4j.graphalgo.core.huge.FilteredNodeProperties
-
- All Implemented Interfaces:
NodeProperties
- Direct Known Subclasses:
FilteredNodeProperties.FilteredToOriginalNodeProperties
,FilteredNodeProperties.OriginalToFilteredNodeProperties
public abstract class FilteredNodeProperties extends java.lang.Object implements NodeProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FilteredNodeProperties.FilteredToOriginalNodeProperties
static class
FilteredNodeProperties.OriginalToFilteredNodeProperties
-
Field Summary
Fields Modifier and Type Field Description protected NodeFilteredGraph
graph
protected NodeProperties
properties
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double[]
doubleArrayValue(long nodeId)
double
doubleValue(long nodeId)
float[]
floatArrayValue(long nodeId)
java.util.OptionalDouble
getMaxDoublePropertyValue()
java.util.OptionalLong
getMaxLongPropertyValue()
java.lang.Object
getObject(long nodeId)
long[]
longArrayValue(long nodeId)
long
longValue(long nodeId)
long
release()
Release internal data structures and return an estimate how many bytes were freed.long
size()
protected abstract long
translateId(long nodeId)
org.neo4j.values.storable.Value
value(long nodeId)
ValueType
valueType()
-
-
-
Field Detail
-
properties
protected final NodeProperties properties
-
graph
protected NodeFilteredGraph graph
-
-
Method Detail
-
translateId
protected abstract long translateId(long nodeId)
-
doubleValue
public double doubleValue(long nodeId)
- Specified by:
doubleValue
in interfaceNodeProperties
-
longValue
public long longValue(long nodeId)
- Specified by:
longValue
in interfaceNodeProperties
-
floatArrayValue
public float[] floatArrayValue(long nodeId)
- Specified by:
floatArrayValue
in interfaceNodeProperties
-
doubleArrayValue
public double[] doubleArrayValue(long nodeId)
- Specified by:
doubleArrayValue
in interfaceNodeProperties
-
longArrayValue
public long[] longArrayValue(long nodeId)
- Specified by:
longArrayValue
in interfaceNodeProperties
-
getObject
public java.lang.Object getObject(long nodeId)
- Specified by:
getObject
in interfaceNodeProperties
-
value
public org.neo4j.values.storable.Value value(long nodeId)
- Specified by:
value
in interfaceNodeProperties
-
valueType
public ValueType valueType()
- Specified by:
valueType
in interfaceNodeProperties
-
getMaxLongPropertyValue
public java.util.OptionalLong getMaxLongPropertyValue()
- Specified by:
getMaxLongPropertyValue
in interfaceNodeProperties
- Returns:
- the maximum long value contained in the mapping or an empty
OptionalLong
if the mapping is empty or the feature is not supported.
-
getMaxDoublePropertyValue
public java.util.OptionalDouble getMaxDoublePropertyValue()
- Specified by:
getMaxDoublePropertyValue
in interfaceNodeProperties
- Returns:
- the maximum double value contained in the mapping or an empty
OptionalDouble
if the mapping is empty or the feature is not supported.
-
release
public long release()
Description copied from interface:NodeProperties
Release internal data structures and return an estimate how many bytes were freed. Note that the mapping is not usable afterwards.- Specified by:
release
in interfaceNodeProperties
-
size
public long size()
- Specified by:
size
in interfaceNodeProperties
- Returns:
- the number of values stored.
-
-