Class DataframeAnalyticsSource.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsSource.Builder
- All Implemented Interfaces:
ObjectBuilder<DataframeAnalyticsSource>
- Enclosing class:
- DataframeAnalyticsSource
public static class DataframeAnalyticsSource.Builder extends java.lang.Object implements ObjectBuilder<DataframeAnalyticsSource>
Builder for
DataframeAnalyticsSource
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DataframeAnalyticsSource.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.DataframeAnalyticsSource
build()
Builds aDataframeAnalyticsSource
.DataframeAnalyticsSource.Builder
index(java.lang.String... value)
Required - Index or indices on which to perform the analysis.DataframeAnalyticsSource.Builder
index(java.util.List<java.lang.String> value)
Required - Index or indices on which to perform the analysis.DataframeAnalyticsSource.Builder
putRuntimeMappings(java.lang.String key, RuntimeField value)
Add a key/value toruntimeMappings(Map)
, creating the map if needed.DataframeAnalyticsSource.Builder
putRuntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)
Add a key/value toruntimeMappings(Map)
, creating the map if needed.DataframeAnalyticsSource.Builder
query(Query value)
The Elasticsearch query domain-specific language (DSL).DataframeAnalyticsSource.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
The Elasticsearch query domain-specific language (DSL).DataframeAnalyticsSource.Builder
runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)
SetruntimeMappings(Map)
to a singleton map.DataframeAnalyticsSource.Builder
runtimeMappings(java.util.Map<java.lang.String,RuntimeField> value)
Definitions of runtime fields that will become part of the mapping of the destination index.DataframeAnalyticsSource.Builder
source(jakarta.json.JsonValue value)
Specifyincludes
and/or `excludes patterns to select which fields will be present in the destination.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index.API name:
index
-
index
Required - Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index.API name:
index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
query
The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}.API name:
query
-
query
public DataframeAnalyticsSource.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}.API name:
query
-
runtimeMappings
public DataframeAnalyticsSource.Builder runtimeMappings(@Nullable java.util.Map<java.lang.String,RuntimeField> value)Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappings
-
putRuntimeMappings
public DataframeAnalyticsSource.Builder putRuntimeMappings(java.lang.String key, RuntimeField value)Add a key/value toruntimeMappings(Map)
, creating the map if needed. -
runtimeMappings
public DataframeAnalyticsSource.Builder runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)SetruntimeMappings(Map)
to a singleton map. -
putRuntimeMappings
public DataframeAnalyticsSource.Builder putRuntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)Add a key/value toruntimeMappings(Map)
, creating the map if needed. -
source
Specifyincludes
and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis.API name:
_source
-
build
Builds aDataframeAnalyticsSource
.- Specified by:
build
in interfaceObjectBuilder<DataframeAnalyticsSource>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-