Package org.neo4j.gds.core.write
Class NodePropertyExporterBuilder<T extends NodePropertyExporter>
- java.lang.Object
-
- org.neo4j.gds.core.write.NodePropertyExporterBuilder<T>
-
- Direct Known Subclasses:
NativeNodePropertyExporter.Builder
public abstract class NodePropertyExporterBuilder<T extends NodePropertyExporter> 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 TransactionContext
transactionContext
protected int
writeConcurrency
-
Constructor Summary
Constructors Modifier Constructor Description protected
NodePropertyExporterBuilder(TransactionContext transactionContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build()
NodePropertyExporterBuilder<T>
parallel(java.util.concurrent.ExecutorService es, int writeConcurrency)
NodePropertyExporterBuilder<T>
withIdMapping(IdMapping idMapping)
NodePropertyExporterBuilder<T>
withProgressTracker(ProgressTracker progressTracker)
Set theProgressTracker
to use for logging progress during export.NodePropertyExporterBuilder<T>
withTerminationFlag(TerminationFlag terminationFlag)
-
-
-
Field Detail
-
transactionContext
protected final TransactionContext transactionContext
-
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
-
-
Constructor Detail
-
NodePropertyExporterBuilder
protected NodePropertyExporterBuilder(TransactionContext transactionContext)
-
-
Method Detail
-
build
public abstract T build()
-
withIdMapping
public NodePropertyExporterBuilder<T> withIdMapping(IdMapping idMapping)
-
withTerminationFlag
public NodePropertyExporterBuilder<T> withTerminationFlag(TerminationFlag terminationFlag)
-
withProgressTracker
public NodePropertyExporterBuilder<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 NodePropertyExporterBuilder<T> parallel(java.util.concurrent.ExecutorService es, int writeConcurrency)
-
-