Package org.neo4j.gds.core.write
Class RelationshipStreamExporterBuilder
java.lang.Object
org.neo4j.gds.core.write.RelationshipStreamExporterBuilder
- Direct Known Subclasses:
NativeRelationshipStreamExporterBuilder,ResultStoreRelationshipStreamExporterBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Optional<org.neo4j.gds.config.ArrowConnectionInfo>protected intprotected intprotected org.neo4j.gds.core.utils.progress.tasks.ProgressTrackerprotected longprotected Stream<org.neo4j.gds.api.ExportedRelationship>protected Optional<org.neo4j.gds.api.ResultStore>protected org.neo4j.gds.termination.TerminationFlagprotected LongUnaryOperator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RelationshipStreamExporterbuild()withArrowConnectionInfo(Optional<org.neo4j.gds.config.ArrowConnectionInfo> arrowConnectionInfo, Optional<String> remoteDatabaseName) withBatchSize(int batchSize) withConcurrency(int concurrency) withIdMappingOperator(LongUnaryOperator toOriginalNodeId) withProgressTracker(org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker) Set theProgressTrackerto use for logging progress during export.withRelationshipCount(long relationshipCount) withRelationships(Stream<org.neo4j.gds.api.ExportedRelationship> relationships) withResultStore(Optional<org.neo4j.gds.api.ResultStore> resultStore) withTerminationFlag(org.neo4j.gds.termination.TerminationFlag terminationFlag)
-
Field Details
-
relationships
-
batchSize
protected int batchSize -
toOriginalId
-
terminationFlag
protected org.neo4j.gds.termination.TerminationFlag terminationFlag -
progressTracker
protected org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker -
relationshipCount
protected long relationshipCount -
concurrency
protected int concurrency -
arrowConnectionInfo
-
remoteDatabaseName
-
resultStore
-
-
Constructor Details
-
RelationshipStreamExporterBuilder
public RelationshipStreamExporterBuilder()
-
-
Method Details
-
build
-
withIdMappingOperator
-
withTerminationFlag
public RelationshipStreamExporterBuilder withTerminationFlag(org.neo4j.gds.termination.TerminationFlag terminationFlag) -
withRelationships
public RelationshipStreamExporterBuilder withRelationships(Stream<org.neo4j.gds.api.ExportedRelationship> relationships) -
withRelationshipCount
-
withBatchSize
-
withProgressTracker
public RelationshipStreamExporterBuilder withProgressTracker(org.neo4j.gds.core.utils.progress.tasks.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
-
withArrowConnectionInfo
public RelationshipStreamExporterBuilder withArrowConnectionInfo(Optional<org.neo4j.gds.config.ArrowConnectionInfo> arrowConnectionInfo, Optional<String> remoteDatabaseName) -
withConcurrency
-
withResultStore
public RelationshipStreamExporterBuilder withResultStore(Optional<org.neo4j.gds.api.ResultStore> resultStore)
-