Package org.neo4j.gds.core.huge
Class FilteredNodePropertyValues
- java.lang.Object
-
- org.neo4j.gds.core.huge.FilteredNodePropertyValues
-
- All Implemented Interfaces:
NodePropertyValues
,PropertyValues
- Direct Known Subclasses:
FilteredNodePropertyValues.FilteredToOriginalNodePropertyValues
,FilteredNodePropertyValues.OriginalToFilteredNodePropertyValues
public abstract class FilteredNodePropertyValues extends java.lang.Object implements NodePropertyValues
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FilteredNodePropertyValues.FilteredToOriginalNodePropertyValues
static class
FilteredNodePropertyValues.OriginalToFilteredNodePropertyValues
-
Field Summary
Fields Modifier and Type Field Description protected NodeFilteredGraph
graph
protected NodePropertyValues
properties
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
dimension()
The dimension of the properties.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
nodeCount()
protected abstract long
translateId(long nodeId)
org.neo4j.values.storable.Value
value(long nodeId)
org.neo4j.gds.api.nodeproperties.ValueType
valueType()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.gds.api.properties.nodes.NodePropertyValues
hasValue
-
Methods inherited from interface org.neo4j.gds.api.properties.PropertyValues
unsupportedTypeException
-
-
-
-
Field Detail
-
properties
protected final NodePropertyValues properties
-
graph
protected NodeFilteredGraph graph
-
-
Method Detail
-
translateId
protected abstract long translateId(long nodeId)
-
doubleValue
public double doubleValue(long nodeId)
- Specified by:
doubleValue
in interfaceNodePropertyValues
-
longValue
public long longValue(long nodeId)
- Specified by:
longValue
in interfaceNodePropertyValues
-
floatArrayValue
public float[] floatArrayValue(long nodeId)
- Specified by:
floatArrayValue
in interfaceNodePropertyValues
-
doubleArrayValue
public double[] doubleArrayValue(long nodeId)
- Specified by:
doubleArrayValue
in interfaceNodePropertyValues
-
longArrayValue
public long[] longArrayValue(long nodeId)
- Specified by:
longArrayValue
in interfaceNodePropertyValues
-
getObject
public java.lang.Object getObject(long nodeId)
- Specified by:
getObject
in interfaceNodePropertyValues
-
value
public org.neo4j.values.storable.Value value(long nodeId)
- Specified by:
value
in interfaceNodePropertyValues
-
valueType
public org.neo4j.gds.api.nodeproperties.ValueType valueType()
- Specified by:
valueType
in interfacePropertyValues
-
dimension
public java.util.Optional<java.lang.Integer> dimension()
Description copied from interface:NodePropertyValues
The dimension of the properties. For scalar values, this is 1. For arrays, this is the length of the array stored for the 0th node id. If that array isnull
, this method returnsOptional.empty()
.- Specified by:
dimension
in interfaceNodePropertyValues
- Returns:
- the dimension of the properties stored, or empty if the dimension cannot easily be retrieved.
-
getMaxLongPropertyValue
public java.util.OptionalLong getMaxLongPropertyValue()
- Specified by:
getMaxLongPropertyValue
in interfaceNodePropertyValues
- 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 interfaceNodePropertyValues
- Returns:
- the maximum double value contained in the mapping or an empty
OptionalDouble
if the mapping is empty or the feature is not supported.
-
nodeCount
public long nodeCount()
- Specified by:
nodeCount
in interfaceNodePropertyValues
-
-