Class ArrayIdMap

    • Constructor Detail

      • ArrayIdMap

        public ArrayIdMap​(HugeLongArray graphIds,
                          org.neo4j.gds.collections.HugeSparseLongArray nodeToGraphIds,
                          LabelInformation labelInformation,
                          long nodeCount,
                          long highestNeoId)
        initialize the map with pre-built sub arrays
    • Method Detail

      • memoryEstimation

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation()
      • toMappedNodeId

        public long toMappedNodeId​(long nodeId)
        Description copied from interface: PartialIdMap
        Map original nodeId to inner nodeId
        Parameters:
        nodeId - must be smaller or equal to the id returned by IdMap.highestNeoId()
      • toOriginalNodeId

        public long toOriginalNodeId​(long nodeId)
        Description copied from interface: IdMap
        Map inner nodeId back to original nodeId
      • toRootNodeId

        public long toRootNodeId​(long nodeId)
        Description copied from interface: IdMap
        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.
      • rootIdMap

        public IdMap rootIdMap()
        Description copied from interface: IdMap
        Returns the original node mapping if the current node mapping is filtered, otherwise it returns itself.
      • contains

        public boolean contains​(long nodeId)
        Description copied from interface: IdMap
        Returns true iff the nodeId is mapped, otherwise false.
      • 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.
      • highestNeoId

        public long highestNeoId()
      • withFilteredLabels

        public ArrayIdMap withFilteredLabels​(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels,
                                             int concurrency)