Class NodePropertyMap

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      double nodeProperty​(long nodeId, double defaultValue)
      Returns the property value for a node or the given default value if no property had been defined.
      long release()
      Release internal data structures and return an estimate how many bytes were freed.
      long size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodePropertyMap

        public NodePropertyMap​(PagedLongDoubleMap properties,
                               double defaultValue)
    • Method Detail

      • nodeProperty

        public double nodeProperty​(long nodeId)
        Description copied from interface: NodeProperties
        Returns the property value for a node or the loaded default value if no property has been defined.
        Specified by:
        nodeProperty in interface NodeProperties
      • nodeProperty

        public double nodeProperty​(long nodeId,
                                   double defaultValue)
        Description copied from interface: NodeProperties
        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.
        Specified by:
        nodeProperty in interface NodeProperties
      • getMaxPropertyValue

        public java.util.OptionalLong getMaxPropertyValue()
        Specified by:
        getMaxPropertyValue in interface NodeProperties
        Returns:
        the maximum value contained in the mapping or an empty OptionalLong if the mapping is empty or the feature is not supported.
      • release

        public long release()
        Description copied from interface: NodeProperties
        Release internal data structures and return an estimate how many bytes were freed. Note that the mapping is not usable afterwards.
        Specified by:
        release in interface NodeProperties
      • size

        public long size()
        Specified by:
        size in interface NodeProperties
        Returns:
        the number of values stored.