Interface DoubleArrayNodePropertyValues
-
- All Superinterfaces:
NodePropertyValues
,PropertyValues
- All Known Implementing Classes:
EmptyDoubleArrayNodePropertyValues
public interface DoubleArrayNodePropertyValues extends NodePropertyValues
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Integer>
dimension()
The dimension of the properties.double[]
doubleArrayValue(long nodeId)
default float[]
floatArrayValue(long nodeId)
default java.lang.Object
getObject(long nodeId)
default org.neo4j.values.storable.Value
value(long nodeId)
default org.neo4j.gds.api.nodeproperties.ValueType
valueType()
-
Methods inherited from interface org.neo4j.gds.api.properties.nodes.NodePropertyValues
doubleValue, getMaxDoublePropertyValue, getMaxLongPropertyValue, hasValue, longArrayValue, longValue, nodeCount
-
Methods inherited from interface org.neo4j.gds.api.properties.PropertyValues
unsupportedTypeException
-
-
-
-
Method Detail
-
doubleArrayValue
double[] doubleArrayValue(long nodeId)
- Specified by:
doubleArrayValue
in interfaceNodePropertyValues
-
floatArrayValue
default float[] floatArrayValue(long nodeId)
- Specified by:
floatArrayValue
in interfaceNodePropertyValues
-
getObject
default java.lang.Object getObject(long nodeId)
- Specified by:
getObject
in interfaceNodePropertyValues
-
value
default org.neo4j.values.storable.Value value(long nodeId)
- Specified by:
value
in interfaceNodePropertyValues
-
valueType
default org.neo4j.gds.api.nodeproperties.ValueType valueType()
- Specified by:
valueType
in interfacePropertyValues
-
dimension
default 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.
-
-