Package org.neo4j.gds.core.write
Class RelationshipStreamExporterBuilder<T extends RelationshipStreamExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.RelationshipStreamExporterBuilder<T>
-
- Direct Known Subclasses:
NativeRelationshipStreamExporterBuilder
public abstract class RelationshipStreamExporterBuilder<T extends RelationshipStreamExporter> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchSizeprotected ProgressTrackerprogressTrackerprotected java.util.stream.Stream<Relationship>relationshipsprotected TerminationFlagterminationFlagprotected java.util.function.LongUnaryOperatortoOriginalId
-
Constructor Summary
Constructors Constructor Description RelationshipStreamExporterBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tbuild()RelationshipStreamExporterBuilder<T>withBatchSize(int batchSize)RelationshipStreamExporterBuilder<T>withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalNodeId)RelationshipStreamExporterBuilder<T>withProgressTracker(ProgressTracker progressTracker)Set theProgressTrackerto use for logging progress during export.RelationshipStreamExporterBuilder<T>withRelationships(java.util.stream.Stream<Relationship> relationships)RelationshipStreamExporterBuilder<T>withTerminationFlag(TerminationFlag terminationFlag)
-
-
-
Field Detail
-
relationships
protected java.util.stream.Stream<Relationship> relationships
-
batchSize
protected int batchSize
-
toOriginalId
protected java.util.function.LongUnaryOperator toOriginalId
-
terminationFlag
protected TerminationFlag terminationFlag
-
progressTracker
protected ProgressTracker progressTracker
-
-
Method Detail
-
build
public abstract T build()
-
withIdMappingOperator
public RelationshipStreamExporterBuilder<T> withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalNodeId)
-
withTerminationFlag
public RelationshipStreamExporterBuilder<T> withTerminationFlag(TerminationFlag terminationFlag)
-
withRelationships
public RelationshipStreamExporterBuilder<T> withRelationships(java.util.stream.Stream<Relationship> relationships)
-
withBatchSize
@TestOnly public RelationshipStreamExporterBuilder<T> withBatchSize(int batchSize)
-
withProgressTracker
public RelationshipStreamExporterBuilder<T> withProgressTracker(ProgressTracker progressTracker)
Set theProgressTrackerto use for logging progress during export. If aTaskProgressTrackeris used, caller must manage beginning and finishing the subtasks. By default, anProgressTracker.EmptyProgressTrackeris used. That one doesn't require caller to manage any tasks.- Parameters:
progressTracker- The progress tracker to use for logging progress during export.- Returns:
- this
-
-