Class SourceConfig.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.SourceConfig.Builder
- Enclosing class:
- SourceConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets what indices from which to fetch datasetQuery(org.elasticsearch.index.query.QueryBuilder query) Sets the query to use when fetching the data.setQueryConfig(QueryConfig queryConfig) Sets theQueryConfigobject that references the desired query to use when fetching the datasetRuntimeMappings(Map<String, Object> runtimeMappings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setIndex
Sets what indices from which to fetch data- Parameters:
index- The indices from which to fetch data- Returns:
- The
SourceConfig.Builderwith indices set
-
setQueryConfig
Sets theQueryConfigobject that references the desired query to use when fetching the data- Parameters:
queryConfig- TheQueryConfigto use when fetching data- Returns:
- The
SourceConfig.Builderwith queryConfig set
-
setQuery
Sets the query to use when fetching the data. Convenience method forsetQueryConfig(QueryConfig)- Parameters:
query- TheQueryBuilderto use when fetch data (overwrites theQueryConfig)- Returns:
- The
SourceConfig.Builderwith queryConfig set
-
setRuntimeMappings
-
build
-