Package org.neo4j.gds.core.write
Class RelationshipStreamExporterBuilder<T extends RelationshipStreamExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.RelationshipStreamExporterBuilder<T>
-
- Direct Known Subclasses:
NativeRelationshipStreamExporter.Builder
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
protected TransactionContext
transactionContext
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build()
RelationshipStreamExporterBuilder<T>
withIdMapping(IdMapping idMapping)
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
-
transactionContext
protected final TransactionContext transactionContext
-
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()
-
withIdMapping
public RelationshipStreamExporterBuilder<T> withIdMapping(IdMapping idMapping)
-
withTerminationFlag
public RelationshipStreamExporterBuilder<T> withTerminationFlag(TerminationFlag terminationFlag)
-
withRelationships
public RelationshipStreamExporterBuilder<T> withRelationships(java.util.stream.Stream<Relationship> relationships)
-
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
-
-