Package fr.ght1pc9kc.testy.search
Class WithOpenSearchData.WithOpenSearchDataBuilder
java.lang.Object
fr.ght1pc9kc.testy.search.WithOpenSearchData.WithOpenSearchDataBuilder
- Enclosing class:
WithOpenSearchData
Builder for the extension class
WithOpenSearchData.-
Method Summary
Modifier and TypeMethodDescriptionaddDataset(String index, OpenSearchDataSet<?> dataSet) Add a data set.build()Build the extension.withObjectMapper(WithObjectMapper wObjectMapper) Add a customized object mapper to convert the objects to documents.
-
Method Details
-
withObjectMapper
public WithOpenSearchData.WithOpenSearchDataBuilder withObjectMapper(WithObjectMapper wObjectMapper) Add a customized object mapper to convert the objects to documents.- Parameters:
wObjectMapper- TheWithObjectMapperextension to map the documents.- Returns:
- Builder instance.
-
addDataset
public WithOpenSearchData.WithOpenSearchDataBuilder addDataset(String index, OpenSearchDataSet<?> dataSet) Add a data set.- Parameters:
index- Name of the index the data set will fill.dataSet- Set of data to initialize the index with.- Returns:
- Builder instance.
-
build
Build the extension.- Returns:
- The built
WithOpenSearchDataextension.
-