Class LazyIdMapBuilder

  • All Implemented Interfaces:
    PartialIdMap

    public final class LazyIdMapBuilder
    extends java.lang.Object
    implements PartialIdMap
    • Constructor Detail

      • LazyIdMapBuilder

        public LazyIdMapBuilder​(int concurrency,
                                boolean hasLabelInformation,
                                boolean hasProperties,
                                org.neo4j.gds.api.PropertyState propertyState)
    • Method Detail

      • prepareForFlush

        public void prepareForFlush()
      • addNode

        public long addNode​(long nodeId,
                            NodeLabelToken nodeLabels)
      • toMappedNodeId

        public long toMappedNodeId​(long originalNodeId)
        Description copied from interface: PartialIdMap
        Maps an original node id to a mapped node id. In case of nested id maps, the mapped node id is always in the space of the innermost mapping.
        Specified by:
        toMappedNodeId in interface PartialIdMap
        Parameters:
        originalNodeId - must be smaller or equal to the id returned by IdMap.highestOriginalId()
      • rootNodeCount

        public java.util.OptionalLong rootNodeCount()
        Description copied from interface: PartialIdMap
        Number of mapped node ids in the root mapping. This is necessary for nested (filtered) id mappings.
        Specified by:
        rootNodeCount in interface PartialIdMap