Class IdMap

    • Method Detail

      • toMappedNodeId

        public long toMappedNodeId​(long nodeId)
        Description copied from interface: IdMapping
        Map original nodeId to inner nodeId
        Specified by:
        toMappedNodeId in interface IdMapping
      • toOriginalNodeId

        public long toOriginalNodeId​(long nodeId)
        Description copied from interface: IdMapping
        Map inner nodeId back to original nodeId
        Specified by:
        toOriginalNodeId in interface IdMapping
      • toRootNodeId

        public long toRootNodeId​(long nodeId)
        Description copied from interface: IdMapping
        Maps an internal id to its root internal node id. This is necessary for nested (filtered) id mappings. If this mapping is a nested mapping, this method returns the root node id of the parent mapping. For the root mapping this method returns the given node id.
        Specified by:
        toRootNodeId in interface IdMapping
      • contains

        public boolean contains​(long nodeId)
        Description copied from interface: IdMapping
        Returns true iff the nodeId is mapped, otherwise false.
        Specified by:
        contains in interface IdMapping
      • nodeCount

        public long nodeCount()
        Description copied from interface: IdMapping
        Number of mapped nodeIds.
        Specified by:
        nodeCount in interface IdMapping
      • rootNodeCount

        public long rootNodeCount()
        Description copied from interface: IdMapping
        Number of mapped node ids in the root mapping. This is necessary for nested (filtered) id mappings.
        Specified by:
        rootNodeCount in interface IdMapping
      • forEachNode

        public void forEachNode​(java.util.function.LongPredicate consumer)
        Description copied from interface: NodeIterator
        Iterate over each nodeId
        Specified by:
        forEachNode in interface NodeIterator