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 int
batchSize
protected ProgressTracker
progressTracker
protected java.util.stream.Stream<Relationship>
relationships
protected TerminationFlag
terminationFlag
protected java.util.function.LongUnaryOperator
toOriginalId
-
Constructor Summary
Constructors Constructor Description RelationshipStreamExporterBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build()
RelationshipStreamExporterBuilder<T>
withBatchSize(int batchSize)
RelationshipStreamExporterBuilder<T>
withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalNodeId)
RelationshipStreamExporterBuilder<T>
withProgressTracker(ProgressTracker progressTracker)
Set theProgressTracker
to 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 theProgressTracker
to use for logging progress during export. If aTaskProgressTracker
is used, caller must manage beginning and finishing the subtasks. By default, anProgressTracker.EmptyProgressTracker
is 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
-
-