Class ChunkedAdjacencyLists


  • public final class ChunkedAdjacencyLists
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(long index, long[] values, int start, int end, int valuesToAdd)
      For memory efficiency, we reuse the values.
      void add​(long index, long[] values, long[][] allProperties, int start, int end, int valuesToAdd)
      For memory efficiency, we reuse the values.
      long capacity()  
      void consume​(ChunkedAdjacencyLists.Consumer consumer)  
      boolean contains​(long index)  
      static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation​(long avgDegree, long nodeCount, int propertyCount)  
      static ChunkedAdjacencyLists of​(int numberOfProperties, long initialCapacity)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • memoryEstimation

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation​(long avgDegree,
                                                                                     long nodeCount,
                                                                                     int propertyCount)
      • add

        public void add​(long index,
                        long[] values,
                        int start,
                        int end,
                        int valuesToAdd)
        For memory efficiency, we reuse the values. They cannot be reused after calling this method.
        Parameters:
        values - values to write
        start - start index in values
        end - end index in values
      • add

        public void add​(long index,
                        long[] values,
                        long[][] allProperties,
                        int start,
                        int end,
                        int valuesToAdd)
        For memory efficiency, we reuse the values. They cannot be reused after calling this method.
        Parameters:
        values - values to write
        allProperties - properties to write
        start - start index in values and properties
        end - end index in values and properties
        valuesToAdd - the actual number of targets to import from this range
      • capacity

        public long capacity()
      • contains

        public boolean contains​(long index)