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 voidadd(long sourceId, long targetId)voidadd(long sourceId, long targetId, long relationshipReference, org.neo4j.gds.compat.PropertyReference propertyReference)voidoffer(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.RecordConsumerImports 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()
-
-