Package org.neo4j.graphalgo.core.loading
Class RelationshipsBatchBuffer
- java.lang.Object
-
- org.neo4j.graphalgo.core.loading.RecordsBatchBuffer<RelationshipReference>
-
- org.neo4j.graphalgo.core.loading.RelationshipsBatchBuffer
-
- All Implemented Interfaces:
StoreScanner.RecordConsumer<RelationshipReference>
public final class RelationshipsBatchBuffer extends RecordsBatchBuffer<RelationshipReference>
-
-
Field Summary
Fields Modifier and Type Field Description static int
BATCH_ENTRY_SHIFT_SIZE
static int
BATCH_ENTRY_SIZE
static int
PROPERTIES_REFERENCE_OFFSET
static int
RELATIONSHIP_REFERENCE_OFFSET
-
Fields inherited from class org.neo4j.graphalgo.core.loading.RecordsBatchBuffer
DEFAULT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description RelationshipsBatchBuffer(IdMapping idMap, int type, int capacity)
RelationshipsBatchBuffer(IdMapping idMap, int type, int capacity, boolean throwOnUnMappedNodeIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long sourceId, long targetId, long relationshipReference)
void
add(long sourceId, long targetId, long relationshipReference, long 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()
-
-
-
Field Detail
-
RELATIONSHIP_REFERENCE_OFFSET
public static final int RELATIONSHIP_REFERENCE_OFFSET
- See Also:
- Constant Field Values
-
PROPERTIES_REFERENCE_OFFSET
public static final int PROPERTIES_REFERENCE_OFFSET
- See Also:
- Constant Field Values
-
BATCH_ENTRY_SIZE
public static final int BATCH_ENTRY_SIZE
- See Also:
- Constant Field Values
-
BATCH_ENTRY_SHIFT_SIZE
public static final int BATCH_ENTRY_SHIFT_SIZE
-
-
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, long relationshipReference)
-
add
public void add(long sourceId, long targetId, long relationshipReference, long propertyReference)
-
sortBySource
public long[] sortBySource()
-
sortByTarget
public long[] sortByTarget()
-
spareLongs
public long[] spareLongs()
-
spareInts
public int[] spareInts()
-
-