Class TransientUncompressedList

    • Constructor Detail

      • TransientUncompressedList

        public TransientUncompressedList​(long[][] pages,
                                         HugeIntArray degrees,
                                         HugeLongArray offsets)
    • Method Detail

      • adjacencyListEstimation

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

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

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

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation adjacencyPropertiesEstimation​(org.neo4j.gds.RelationshipType relationshipType,
                                                                                                  boolean undirected)
      • 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
      • propertyCursor

        public PropertyCursor propertyCursor​(long node,
                                             double fallbackValue)
        Description copied from interface: AdjacencyProperties
        Create a new cursor for the properties of the relationships of a given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Fallback behavior is not widely available and will be part of the next episode. Undefined behavior if the node does not exist.
        Specified by:
        propertyCursor in interface AdjacencyProperties
      • propertyCursor

        public PropertyCursor propertyCursor​(PropertyCursor reuse,
                                             long node,
                                             double fallbackValue)
        Description copied from interface: AdjacencyProperties
        Create a new cursor for the properties of the relationships of a given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Fallback behavior is not widely available and will be part of the next episode. 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:
        propertyCursor in interface AdjacencyProperties