Class RelationshipsBatchBuffer

    • Field Detail

      • ENTRIES_PER_RELATIONSHIP

        public static final int ENTRIES_PER_RELATIONSHIP
        See Also:
        Constant Field Values
    • 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()