Class MappingGenerator

java.lang.Object
org.elasticsearch.logsdb.datageneration.MappingGenerator

public class MappingGenerator extends Object
Generator that generates a valid random mapping that follows the structure of provided Template. Mapping will contain all fields from the template with generated mapping parameters.
  • Constructor Details

  • Method Details

    • generate

      public Mapping generate(Template template)
      Generates a valid random mapping following the provided template.
      Parameters:
      template - template for the mapping
      Returns:
      Mapping