Class DocumentGenerator
java.lang.Object
org.elasticsearch.logsdb.datageneration.DocumentGenerator
Generator that generates a valid random document that follows the structure of provided
Template.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DocumentGenerator
-
-
Method Details
-
generate
Generates a valid random document following the provided template.- Parameters:
template- template for the documentmapping- 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
-