Class IdMapAdapter

  • All Implemented Interfaces:
    org.neo4j.gds.api.BatchNodeIterable, org.neo4j.gds.api.IdMap, org.neo4j.gds.api.NodeIterator
    Direct Known Subclasses:
    CypherIdMap

    public abstract class IdMapAdapter
    extends java.lang.Object
    implements org.neo4j.gds.api.IdMap
    • Nested Class Summary

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

        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

        NOT_FOUND, START_NODE_ID
    • Constructor Summary

      Constructors 
      Constructor Description
      IdMapAdapter​(org.neo4j.gds.api.IdMap idMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<org.neo4j.gds.NodeLabel> availableNodeLabels()  
      java.util.Collection<org.neo4j.gds.core.utils.collection.primitive.PrimitiveLongIterable> batchIterables​(long batchSize)  
      boolean contains​(long nodeId)  
      void forEachNode​(java.util.function.LongPredicate consumer)  
      void forEachNodeLabel​(long nodeId, org.neo4j.gds.api.IdMap.NodeLabelConsumer consumer)  
      boolean hasLabel​(long nodeId, org.neo4j.gds.NodeLabel label)  
      long highestNeoId()  
      long nodeCount()  
      org.neo4j.gds.core.utils.collection.primitive.PrimitiveLongIterator nodeIterator()  
      java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels​(long nodeId)  
      org.neo4j.gds.api.IdMap rootIdMap()  
      long rootNodeCount()  
      long toMappedNodeId​(long nodeId)  
      long toOriginalNodeId​(long nodeId)  
      long toRootNodeId​(long nodeId)  
      • 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

        cloneIdMap, safeToMappedNodeId, withFilteredLabels
    • Constructor Detail

      • IdMapAdapter

        public IdMapAdapter​(org.neo4j.gds.api.IdMap idMap)
    • Method Detail

      • batchIterables

        public java.util.Collection<org.neo4j.gds.core.utils.collection.primitive.PrimitiveLongIterable> batchIterables​(long batchSize)
        Specified by:
        batchIterables in interface org.neo4j.gds.api.BatchNodeIterable
      • toMappedNodeId

        public long toMappedNodeId​(long nodeId)
        Specified by:
        toMappedNodeId in interface org.neo4j.gds.api.IdMap
      • toOriginalNodeId

        public long toOriginalNodeId​(long nodeId)
        Specified by:
        toOriginalNodeId in interface org.neo4j.gds.api.IdMap
      • toRootNodeId

        public long toRootNodeId​(long nodeId)
        Specified by:
        toRootNodeId in interface org.neo4j.gds.api.IdMap
      • rootIdMap

        public org.neo4j.gds.api.IdMap rootIdMap()
        Specified by:
        rootIdMap in interface org.neo4j.gds.api.IdMap
      • contains

        public boolean contains​(long nodeId)
        Specified by:
        contains in interface org.neo4j.gds.api.IdMap
      • nodeCount

        public long nodeCount()
        Specified by:
        nodeCount in interface org.neo4j.gds.api.IdMap
      • rootNodeCount

        public long rootNodeCount()
        Specified by:
        rootNodeCount in interface org.neo4j.gds.api.IdMap
      • highestNeoId

        public long highestNeoId()
        Specified by:
        highestNeoId in interface org.neo4j.gds.api.IdMap
      • forEachNode

        public void forEachNode​(java.util.function.LongPredicate consumer)
        Specified by:
        forEachNode in interface org.neo4j.gds.api.NodeIterator
      • nodeIterator

        public org.neo4j.gds.core.utils.collection.primitive.PrimitiveLongIterator nodeIterator()
        Specified by:
        nodeIterator in interface org.neo4j.gds.api.NodeIterator
      • nodeLabels

        public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels​(long nodeId)
        Specified by:
        nodeLabels in interface org.neo4j.gds.api.IdMap
      • forEachNodeLabel

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

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

        public boolean hasLabel​(long nodeId,
                                org.neo4j.gds.NodeLabel label)
        Specified by:
        hasLabel in interface org.neo4j.gds.api.IdMap