Interface DoubleNodePropertyValues
-
- All Superinterfaces:
NodePropertyValues
,PropertyValues
- All Known Implementing Classes:
EmptyDoubleNodePropertyValues
public interface DoubleNodePropertyValues 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
doubleValue(long nodeId)
default java.util.OptionalDouble
getMaxDoublePropertyValue()
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
doubleArrayValue, floatArrayValue, getMaxLongPropertyValue, hasValue, longArrayValue, longValue, nodeCount
-
Methods inherited from interface org.neo4j.gds.api.properties.PropertyValues
unsupportedTypeException
-
-
-
-
Method Detail
-
doubleValue
double doubleValue(long nodeId)
- Specified by:
doubleValue
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.
-
getMaxDoublePropertyValue
default 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.
-
-