Interface Node

All Superinterfaces:
PropertyContainer
All Known Implementing Classes:
NodeModel

public interface Node extends PropertyContainer
Author:
Vince Bickers, Mark Angrish, Michael J. Simons
  • Method Details

    • getLabels

      String[] getLabels()
    • getPropertyList

      List<Property<String,Object>> getPropertyList()
    • getPrimaryIndex

      String getPrimaryIndex()
    • labelSignature

      String labelSignature()
      Returns "label signature" for this node - added and removed labels, sorted alphabetically
    • hasVersionProperty

      boolean hasVersionProperty()
      Returns if the node has version property
    • getVersion

      Property<String,Long> getVersion()
      Return current version of the node, null if the node is new
      Specified by:
      getVersion in interface PropertyContainer
      Returns:
      version property with current version
    • getPreviousDynamicLabels

      Set<String> getPreviousDynamicLabels()
    • toRow

      default Map<String,Object> toRow(String nodeIdTarget)
      Turns this node object into a row. The version field is treated different, it is not included with the standard properties, but only as separate value.
      Parameters:
      nodeIdTarget - The name under which to store this nodes id. The value is used as a backreference.
      Returns:
      A map of values representing this node.