Class TransientCompressedList

  • All Implemented Interfaces:
    java.lang.AutoCloseable, AdjacencyList

    public final class TransientCompressedList
    extends java.lang.Object
    implements AdjacencyList
    • Constructor Detail

    • Method Detail

      • adjacencyListEstimation

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation​(org.neo4j.gds.RelationshipType relationshipType,
                                                                                            boolean undirected)
      • adjacencyListEstimation

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation​(long avgDegree,
                                                                                            long nodeCount)
      • adjacencyListEstimation

        @TestOnly
        public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyListEstimation​(boolean undirected)
      • close

        public void close()
        Specified by:
        close in interface AdjacencyList
        Specified by:
        close in interface java.lang.AutoCloseable
      • degree

        public int degree​(long node)
        Description copied from interface: AdjacencyList
        Returns the degree of a node. Undefined behavior if the node does not exist.
        Specified by:
        degree in interface AdjacencyList
      • adjacencyCursor

        public AdjacencyCursor adjacencyCursor​(long node,
                                               double fallbackValue)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Whether and how AdjacencyCursors will return properties is unclear. Undefined behavior if the node does not exist.
        Specified by:
        adjacencyCursor in interface AdjacencyList
      • adjacencyCursor

        public AdjacencyCursor adjacencyCursor​(@Nullable
                                               @Nullable AdjacencyCursor reuse,
                                               long node,
                                               double fallbackValue)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Whether and how AdjacencyCursors will return properties is unclear. The implementation might try to reuse the provided reuse cursor, if possible. That is not guaranteed, however, implementation may choose to ignore the reuse cursor for any reason. Undefined behavior if the node does not exist.
        Specified by:
        adjacencyCursor in interface AdjacencyList