Class ArrayIdMapBuilder

  • All Implemented Interfaces:
    IdMapBuilder

    public final class ArrayIdMapBuilder
    extends java.lang.Object
    implements IdMapBuilder
    • Method Detail

      • allocate

        public ArrayIdMapBuilder.BulkAdder allocate​(int batchLength)
        Description copied from interface: IdMapBuilder
        Instantiate an allocator that accepts exactly batchLength many original ids.

        Calling IdMapAllocator.insert(long[]) on the returned allocator requires an array of length batchLength.

        This method is thread-safe and intended to be called by multiple node importer threads.

        Specified by:
        allocate in interface IdMapBuilder
        Returns:
        a non-thread-safe allocator for writing ids to the IdMap
      • array

        public org.neo4j.gds.collections.ha.HugeLongArray array()
      • size

        public long size()