Class DocumentGenerator

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

public class DocumentGenerator extends Object
Generator that generates a valid random document that follows the structure of provided Template.
  • Constructor Details

  • Method Details

    • generate

      public Map<String,Object> generate(Template template, Mapping mapping)
      Generates a valid random document following the provided template.
      Parameters:
      template - template for the document
      mapping - generated mapping that will be applied to the destination index of this document
      Returns:
      document as a map where subobjects are represented as nested maps