Skip to content

IncrementGenerator generator

Generate a sequential integer as a pure function of the row position.

Why: Use IncrementGenerator for row-position-derived local sequences whose result must be worker-invariant; use SequenceTableGenerator when a database must coordinate identifiers across runs.

Category: core.

Output: int.

1
<key name="value" generator="IncrementGenerator(start=1000, end=9999, step=1, include_end=True)"/>

Parameters

  • start: int; Default 1 โ€” Value produced for the first row.
  • end: int; Default 9223372036854775807 โ€” Upper sequence boundary used to detect exhaustion.
  • step: int; Default 1 โ€” Signed increment applied for each following row position.
  • include_end: bool; Default True โ€” Whether the exact end boundary is a valid output.