Class CypherIdMap

  • All Implemented Interfaces:
    org.neo4j.gds.api.BatchNodeIterable, org.neo4j.gds.api.IdMap, org.neo4j.gds.api.NodeIterator, org.neo4j.gds.api.PartialIdMap, NodeLabelUpdater

    public class CypherIdMap
    extends org.neo4j.gds.api.IdMapAdapter
    implements NodeLabelUpdater
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.neo4j.gds.api.BatchNodeIterable

        org.neo4j.gds.api.BatchNodeIterable.BitSetIdIterator, org.neo4j.gds.api.BatchNodeIterable.IdIterable, org.neo4j.gds.api.BatchNodeIterable.IdIterator
      • Nested classes/interfaces inherited from interface org.neo4j.gds.api.IdMap

        org.neo4j.gds.api.IdMap.NodeLabelConsumer
    • Field Summary

      • Fields inherited from interface org.neo4j.gds.api.IdMap

        NO_TYPE, NOT_FOUND, START_NODE_ID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLabelToNode​(long nodeId, org.neo4j.gds.NodeLabel nodeLabel)  
      void addNodeLabel​(org.neo4j.gds.NodeLabel nodeLabel)  
      java.util.Set<org.neo4j.gds.NodeLabel> availableNodeLabels()  
      void forEachNodeLabel​(long mappedNodeId, org.neo4j.gds.api.IdMap.NodeLabelConsumer consumer)  
      boolean hasLabel​(long mappedNodeId, org.neo4j.gds.NodeLabel nodeLabel)  
      long nodeCount​(org.neo4j.gds.NodeLabel nodeLabel)  
      java.util.List<org.neo4j.gds.NodeLabel> nodeLabels​(long mappedNodeId)  
      void removeLabelFromNode​(long nodeId, org.neo4j.gds.NodeLabel nodeLabel)  
      • Methods inherited from class org.neo4j.gds.api.IdMapAdapter

        addNodeIdToLabel, batchIterables, containsOriginalId, forEachNode, highestOriginalId, nodeCount, nodeIterator, nodeIterator, rootIdMap, rootNodeCount, toMappedNodeId, toOriginalNodeId, toRootNodeId, typeId, withFilteredLabels
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.neo4j.gds.api.IdMap

        safeToMappedNodeId
    • Method Detail

      • addNodeLabel

        public void addNodeLabel​(org.neo4j.gds.NodeLabel nodeLabel)
        Specified by:
        addNodeLabel in interface org.neo4j.gds.api.IdMap
        Specified by:
        addNodeLabel in interface NodeLabelUpdater
        Overrides:
        addNodeLabel in class org.neo4j.gds.api.IdMapAdapter
      • addLabelToNode

        public void addLabelToNode​(long nodeId,
                                   org.neo4j.gds.NodeLabel nodeLabel)
        Specified by:
        addLabelToNode in interface NodeLabelUpdater
      • nodeLabels

        public java.util.List<org.neo4j.gds.NodeLabel> nodeLabels​(long mappedNodeId)
        Specified by:
        nodeLabels in interface org.neo4j.gds.api.IdMap
        Overrides:
        nodeLabels in class org.neo4j.gds.api.IdMapAdapter
      • forEachNodeLabel

        public void forEachNodeLabel​(long mappedNodeId,
                                     org.neo4j.gds.api.IdMap.NodeLabelConsumer consumer)
        Specified by:
        forEachNodeLabel in interface org.neo4j.gds.api.IdMap
        Overrides:
        forEachNodeLabel in class org.neo4j.gds.api.IdMapAdapter
      • availableNodeLabels

        public java.util.Set<org.neo4j.gds.NodeLabel> availableNodeLabels()
        Specified by:
        availableNodeLabels in interface org.neo4j.gds.api.IdMap
        Overrides:
        availableNodeLabels in class org.neo4j.gds.api.IdMapAdapter
      • hasLabel

        public boolean hasLabel​(long mappedNodeId,
                                org.neo4j.gds.NodeLabel nodeLabel)
        Specified by:
        hasLabel in interface org.neo4j.gds.api.IdMap
        Overrides:
        hasLabel in class org.neo4j.gds.api.IdMapAdapter
      • nodeCount

        public long nodeCount​(org.neo4j.gds.NodeLabel nodeLabel)
        Specified by:
        nodeCount in interface org.neo4j.gds.api.IdMap
        Overrides:
        nodeCount in class org.neo4j.gds.api.IdMapAdapter