Package org.neo4j.gds.core.loading
Class NullPropertyMap
- java.lang.Object
-
- org.neo4j.gds.core.loading.NullPropertyMap
-
- All Implemented Interfaces:
NodePropertyValues
,PropertyValues
- Direct Known Subclasses:
NullPropertyMap.DoubleNullPropertyMap
,NullPropertyMap.LongNullPropertyMap
public abstract class NullPropertyMap extends java.lang.Object implements NodePropertyValues
NodePropertyValues
implementation which always returns a given default property value upon invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NullPropertyMap.DoubleNullPropertyMap
static class
NullPropertyMap.LongNullPropertyMap
-
Constructor Summary
Constructors Constructor Description NullPropertyMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
dimension()
The dimension of the properties.-
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
doubleArrayValue, doubleValue, floatArrayValue, getMaxDoublePropertyValue, getMaxLongPropertyValue, getObject, hasValue, longArrayValue, longValue, nodeCount, value
-
Methods inherited from interface org.neo4j.gds.api.properties.PropertyValues
unsupportedTypeException, valueType
-
-
-
-
Method Detail
-
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.
-
-