Package org.neo4j.gds.core.write
Class NodeLabelExporterBuilder<T extends NodeLabelExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.NodeLabelExporterBuilder<T>
-
- Direct Known Subclasses:
NativeNodeLabelExporterBuilder
public abstract class NodeLabelExporterBuilder<T extends NodeLabelExporter> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ExecutorService
executorService
protected long
nodeCount
protected ProgressTracker
progressTracker
protected TerminationFlag
terminationFlag
protected java.util.function.LongUnaryOperator
toOriginalId
protected int
writeConcurrency
-
Constructor Summary
Constructors Constructor Description NodeLabelExporterBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build()
NodeLabelExporterBuilder<T>
parallel(java.util.concurrent.ExecutorService es, int writeConcurrency)
NodeLabelExporterBuilder<T>
withIdMap(IdMap idMap)
NodeLabelExporterBuilder<T>
withProgressTracker(ProgressTracker progressTracker)
Set theProgressTracker
to use for logging progress during export.NodeLabelExporterBuilder<T>
withTerminationFlag(TerminationFlag terminationFlag)
-
-
-
Field Detail
-
toOriginalId
protected java.util.function.LongUnaryOperator toOriginalId
-
nodeCount
protected long nodeCount
-
terminationFlag
protected TerminationFlag terminationFlag
-
executorService
protected java.util.concurrent.ExecutorService executorService
-
writeConcurrency
protected int writeConcurrency
-
progressTracker
protected ProgressTracker progressTracker
-
-
Method Detail
-
build
public abstract T build()
-
withIdMap
public NodeLabelExporterBuilder<T> withIdMap(IdMap idMap)
-
withTerminationFlag
public NodeLabelExporterBuilder<T> withTerminationFlag(TerminationFlag terminationFlag)
-
withProgressTracker
public NodeLabelExporterBuilder<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
-
parallel
public NodeLabelExporterBuilder<T> parallel(java.util.concurrent.ExecutorService es, int writeConcurrency)
-
-