Package org.neo4j.gds.core.loading
Interface IdMapBuilder
-
- All Known Implementing Classes:
ArrayIdMapBuilder
,GrowingArrayIdMapBuilder
,HighLimitIdMapBuilder
public interface IdMapBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdMapAllocator
allocate(int batchLength)
Instantiate an allocator that accepts exactlybatchLength
many original ids.IdMap
build(LabelInformation.Builder labelInformationBuilder, long highestNodeId, int concurrency)
-
-
-
Method Detail
-
allocate
IdMapAllocator allocate(int batchLength)
Instantiate an allocator that accepts exactlybatchLength
many original ids.Calling
IdMapAllocator.insert(long[])
on the returned allocator requires an array of lengthbatchLength
.This method is thread-safe and intended to be called by multiple node importer threads.
- Returns:
- a non-thread-safe allocator for writing ids to the IdMap
-
build
IdMap build(LabelInformation.Builder labelInformationBuilder, long highestNodeId, int concurrency)
-
-