Package org.neo4j.graphalgo.api
Interface NodeProperties
-
- All Known Implementing Classes:
FilteredNodeProperties
,NodePropertyArray
,NullPropertyMap
,UnionNodeProperties
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface NodeProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.OptionalLong
getMaxPropertyValue()
double
nodeProperty(long nodeId)
Returns the property value for a node or the loaded default value if no property has been defined.default double
nodeProperty(long nodeId, double defaultValue)
Returns the property value for a node or the given default value if no property had been defined.default long
release()
Release internal data structures and return an estimate how many bytes were freed.default long
size()
static PropertyTranslator<NodeProperties>
translatorFor(org.neo4j.values.storable.NumberType numberType)
-
-
-
Method Detail
-
nodeProperty
double nodeProperty(long nodeId)
Returns the property value for a node or the loaded default value if no property has been defined.
-
nodeProperty
default double nodeProperty(long nodeId, double defaultValue)
Returns the property value for a node or the given default value if no property had been defined. The default value has precedence over the default value defined by the loader.
-
getMaxPropertyValue
default java.util.OptionalLong getMaxPropertyValue()
- Returns:
- the maximum value contained in the mapping or an empty
OptionalLong
if the mapping is empty or the feature is not supported.
-
release
default long release()
Release internal data structures and return an estimate how many bytes were freed. Note that the mapping is not usable afterwards.
-
size
default long size()
- Returns:
- the number of values stored.
-
translatorFor
static PropertyTranslator<NodeProperties> translatorFor(org.neo4j.values.storable.NumberType numberType)
-
-