Package org.neo4j.gds.core.loading
Class RelationshipsBatchBuffer
- java.lang.Object
-
- org.neo4j.gds.core.loading.RecordsBatchBuffer<RelationshipReference>
-
- org.neo4j.gds.core.loading.RelationshipsBatchBuffer
-
- All Implemented Interfaces:
StoreScanner.RecordConsumer<RelationshipReference>
public final class RelationshipsBatchBuffer extends RecordsBatchBuffer<RelationshipReference>
-
-
Field Summary
-
Fields inherited from class org.neo4j.gds.core.loading.RecordsBatchBuffer
DEFAULT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description RelationshipsBatchBuffer(PartialIdMap idMap, int type, int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long sourceId, long targetId)
void
add(long sourceId, long targetId, long relationshipReference, org.neo4j.gds.compat.PropertyReference propertyReference)
void
offer(RelationshipReference record)
Imports the record at a given position and return the new position.long[]
sortBySource()
long[]
sortByTarget()
int[]
spareInts()
long[]
spareLongs()
-
-
-
Constructor Detail
-
RelationshipsBatchBuffer
public RelationshipsBatchBuffer(PartialIdMap idMap, int type, int capacity)
-
-
Method Detail
-
offer
public void offer(RelationshipReference record)
Description copied from interface:StoreScanner.RecordConsumer
Imports the record at a given position and return the new position. Can also ignore the record if it is not of interest.
-
add
public void add(long sourceId, long targetId)
-
add
public void add(long sourceId, long targetId, long relationshipReference, org.neo4j.gds.compat.PropertyReference propertyReference)
-
sortBySource
public long[] sortBySource()
-
sortByTarget
public long[] sortByTarget()
-
spareLongs
public long[] spareLongs()
-
spareInts
public int[] spareInts()
-
-