Interface IndexedDataGenerator

All Known Implementing Classes:
ChildCountGenerator, ChildKeyComponentGenerator, CompositeKeyComponentGenerator, GroupedPermutationGenerator, GroupedPrefixGenerator, OrderLineDeliveryDateGenerator, RowProjectionGenerator, SequentialIntegerGenerator

public interface IndexedDataGenerator
A DataGenerator whose value for a row is a deterministic function of that row's absolute (0-based) index, so it can be positioned to any row without replaying every preceding generate() call.

This is what lets the fill engine partition a single table's rows across workers (intra-table parallelism): a worker filling the range [start, end) calls seek(start) once and then iterates generate() as usual, producing exactly the values the sequential fill produces at those rows. Implemented by the counter/cursor-based generators whose output is positional — the key, sequence, child-count, permutation, and prefix generators — so that key columns and the columns correlated with them stay byte-for-byte identical regardless of how the rows are partitioned (preserving foreign-key validity).

Plain random generators are intentionally not indexed: their values carry no cross-row contract, so the engine reseeds them per partition instead.

Since:
2.10.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    seek(long rowIndex)
    Positions this generator so the next DataGenerator.generate() returns the value for the given absolute (0-based) row index.
  • Method Details

    • seek

      void seek(long rowIndex)
      Positions this generator so the next DataGenerator.generate() returns the value for the given absolute (0-based) row index.
      Parameters:
      rowIndex - the absolute, 0-based row index to seek to; must be >= 0