Package org.neo4j.gds.core.write
Class RelationshipExporterBuilder<T extends RelationshipExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.RelationshipExporterBuilder<T>
-
- Direct Known Subclasses:
NativeRelationshipExporter.Builder
public abstract class RelationshipExporterBuilder<T extends RelationshipExporter> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_WRITE_CONCURRENCY
protected Graph
graph
protected ProgressTracker
progressTracker
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()
RelationshipExporterBuilder<T>
withGraph(Graph graph)
RelationshipExporterBuilder<T>
withIdMapping(IdMapping idMapping)
RelationshipExporterBuilder<T>
withProgressTracker(ProgressTracker progressTracker)
Set theProgressTracker
to use for logging progress during export.RelationshipExporterBuilder<T>
withRelationPropertyTranslator(RelationshipPropertyTranslator propertyTranslator)
RelationshipExporterBuilder<T>
withTerminationFlag(TerminationFlag terminationFlag)
-
-
-
Field Detail
-
DEFAULT_WRITE_CONCURRENCY
public static final int DEFAULT_WRITE_CONCURRENCY
- See Also:
- Constant Field Values
-
transactionContext
protected final TransactionContext transactionContext
-
toOriginalId
protected java.util.function.LongUnaryOperator toOriginalId
-
terminationFlag
protected TerminationFlag terminationFlag
-
graph
protected Graph graph
-
progressTracker
protected ProgressTracker progressTracker
-
-
Method Detail
-
build
public abstract T build()
-
withRelationPropertyTranslator
public RelationshipExporterBuilder<T> withRelationPropertyTranslator(RelationshipPropertyTranslator propertyTranslator)
-
withGraph
public RelationshipExporterBuilder<T> withGraph(Graph graph)
-
withIdMapping
public RelationshipExporterBuilder<T> withIdMapping(IdMapping idMapping)
-
withTerminationFlag
public RelationshipExporterBuilder<T> withTerminationFlag(TerminationFlag terminationFlag)
-
withProgressTracker
public RelationshipExporterBuilder<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
-
-