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 intDEFAULT_WRITE_CONCURRENCYprotected Graphgraphprotected ProgressTrackerprogressTrackerprotected RelationshipPropertyTranslatorpropertyTranslatorprotected TerminationFlagterminationFlagprotected java.util.function.LongUnaryOperatortoOriginalId
-
Constructor Summary
Constructors Constructor Description RelationshipExporterBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tbuild()RelationshipExporterBuilder<T>withGraph(Graph graph)RelationshipExporterBuilder<T>withIdMappingOperator(java.util.function.LongUnaryOperator toOriginalId)RelationshipExporterBuilder<T>withProgressTracker(ProgressTracker progressTracker)Set theProgressTrackerto 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 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
-
-