Skip to content

Commit

Permalink
Forward skipDanglingRelationships on buffer creation
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ck committed Nov 20, 2023
1 parent 412067c commit 79667c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public int typeId() {
return this.typeId;
}

public boolean skipDanglingRelationships() {
return this.importMetaData.skipDanglingRelationships();
}

public Collection<AdjacencyBuffer.AdjacencyListBuilderTask> adjacencyListBuilderTasks(Optional<AdjacencyCompressor.ValueMapper> mapper) {
return adjacencyBuffer.adjacencyListBuilderTasks(mapper, Optional.empty());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public void accept(KernelTransaction transaction) {
var buffer = new BufferedRelationshipConsumerBuilder()
.idMap(idMap)
.type(importer.typeId())
.skipDanglingRelationships(importer.skipDanglingRelationships())
.capacity(scanner.bufferSize())
.build();

Expand Down

0 comments on commit 79667c6

Please sign in to comment.