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)
boolean
offer(RelationshipReference record)
Handles the given record and tells the caller, if it can accept more records.long[]
sortBySource()
long[]
sortByTarget()
int[]
spareInts()
long[]
spareLongs()
-
-
-
Constructor Detail
-
RelationshipsBatchBuffer
public RelationshipsBatchBuffer(PartialIdMap idMap, int type, int capacity)
-
-
Method Detail
-
offer
public boolean offer(RelationshipReference record)
Description copied from interface:StoreScanner.RecordConsumer
Handles the given record and tells the caller, if it can accept more records. Can also ignore the record if it is not of interest.- Parameters:
record
- record- Returns:
- true, iff the consumer can consume more records
-
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()
-
-