Package org.neo4j.gds.core.write
Class RelationshipExporterBuilder<T extends RelationshipExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.RelationshipExporterBuilder<T>
-
- Direct Known Subclasses:
NativeRelationshipExporterBuilder
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 RelationshipPropertyTranslator
propertyTranslator
protected TerminationFlag
terminationFlag
protected java.util.function.LongUnaryOperator
toOriginalId
-
Constructor Summary
Constructors Constructor Description RelationshipExporterBuilder()
-
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>
withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalId)
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
-
toOriginalId
protected java.util.function.LongUnaryOperator toOriginalId
-
terminationFlag
protected TerminationFlag terminationFlag
-
graph
protected Graph graph
-
progressTracker
protected ProgressTracker progressTracker
-
propertyTranslator
protected RelationshipPropertyTranslator propertyTranslator
-
-
Method Detail
-
build
public abstract T build()
-
withRelationPropertyTranslator
public RelationshipExporterBuilder<T> withRelationPropertyTranslator(RelationshipPropertyTranslator propertyTranslator)
-
withGraph
public RelationshipExporterBuilder<T> withGraph(Graph graph)
-
withIdMappingOperator
public RelationshipExporterBuilder<T> withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalId)
-
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
-
-