Class TransientAdjacencyList

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

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

    • Method Detail

      • compressedMemoryEstimation

        public static MemoryEstimation compressedMemoryEstimation​(long avgDegree,
                                                                  long nodeCount)
      • compressedMemoryEstimation

        @TestOnly
        public static MemoryEstimation compressedMemoryEstimation​(boolean undirected)
      • uncompressedMemoryEstimation

        @TestOnly
        public static MemoryEstimation uncompressedMemoryEstimation​(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
      • propertyCursor

        public PropertyCursor propertyCursor​(long node,
                                             double fallbackValue)
        Description copied from interface: AdjacencyList
        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 AdjacencyList
      • propertyCursor

        public PropertyCursor propertyCursor​(PropertyCursor reuse,
                                             long node,
                                             double fallbackValue)
        Description copied from interface: AdjacencyList
        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 AdjacencyList