java.lang.Object
org.elasticsearch.datageneration.datasource.DataSource

public class DataSource extends Object
This class handles any decision performed during data generation that changes the output. For example: generating a random number, array of random size, mapping parameter.

Goals of this abstraction are:

  • to be able to easily add new types of decisions/generators
  • to decouple different types of decisions from each other, adding new data type should be an isolated additive change
  • to allow overriding only small specific subset of behavior (e.g. for testing purposes)