Interface ColumnGeneratorFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ColumnGeneratorFactory
Builds the DataGenerator used to override generation for a single column.

The fill engine supplies a RandomGenerator that is already seeded for the target column, so generators created here participate in the same reproducible, per-column seeding (and foreign-key reseeding) as auto-detected generators. Implementations should build their generator from the supplied random rather than creating their own.

Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the generator for the configured column.
  • Method Details

    • create

      DataGenerator<?> create(RandomGenerator random)
      Creates the generator for the configured column.
      Parameters:
      random - the column-seeded random source provided by the fill engine
      Returns:
      the generator to use for the column