Class RelationshipsBatchBuffer

    • 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_SHIFT_SIZE

        public static final int BATCH_ENTRY_SHIFT_SIZE
    • Constructor Detail

      • RelationshipsBatchBuffer

        public RelationshipsBatchBuffer​(IdMapping idMap,
                                        int type,
                                        int capacity)
      • RelationshipsBatchBuffer

        public RelationshipsBatchBuffer​(IdMapping idMap,
                                        int type,
                                        int capacity,
                                        boolean throwOnUnMappedNodeIds)
    • 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)
      • isFull

        public boolean isFull()
      • reset

        public void reset()