Class DataframeAnalyticsSource.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsSource.Builder
- All Implemented Interfaces:
ObjectBuilder<DataframeAnalyticsSource>
- Enclosing class:
- DataframeAnalyticsSource
public static class DataframeAnalyticsSource.Builder extends ObjectBuilderBase implements ObjectBuilder<DataframeAnalyticsSource>
Builder for
DataframeAnalyticsSource
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DataframeAnalyticsSource
build()
Builds aDataframeAnalyticsSource
.DataframeAnalyticsSource.Builder
index(java.lang.String value, java.lang.String... values)
Required - Index or indices on which to perform the analysis.DataframeAnalyticsSource.Builder
index(java.util.List<java.lang.String> list)
Required - Index or indices on which to perform the analysis.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, RuntimeField value)
Definitions of runtime fields that will become part of the mapping of the destination index.DataframeAnalyticsSource.Builder
runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)
Definitions of runtime fields that will become part of the mapping of the destination index.DataframeAnalyticsSource.Builder
runtimeMappings(java.util.Map<java.lang.String,RuntimeField> map)
Definitions of runtime fields that will become part of the mapping of the destination index.DataframeAnalyticsSource.Builder
source(DataframeAnalysisAnalyzedFields value)
Specifyincludes
and/or `excludes patterns to select which fields will be present in the destination.DataframeAnalyticsSource.Builder
source(java.util.function.Function<DataframeAnalysisAnalyzedFields.Builder,ObjectBuilder<DataframeAnalysisAnalyzedFields>> fn)
Specifyincludes
and/or `excludes patterns to select which fields will be present in the destination.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
toindex
. -
index
public final DataframeAnalyticsSource.Builder index(java.lang.String value, java.lang.String... values)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
Adds one or more values to
index
. -
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 final 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 final DataframeAnalyticsSource.Builder runtimeMappings(java.util.Map<java.lang.String,RuntimeField> map)Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappings
Adds all entries of
map
toruntimeMappings
. -
runtimeMappings
public final DataframeAnalyticsSource.Builder runtimeMappings(java.lang.String key, RuntimeField value)Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappings
Adds an entry to
runtimeMappings
. -
runtimeMappings
public final DataframeAnalyticsSource.Builder runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappings
Adds an entry to
runtimeMappings
using a builder lambda. -
source
public final DataframeAnalyticsSource.Builder source(@Nullable DataframeAnalysisAnalyzedFields value)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
-
source
public final DataframeAnalyticsSource.Builder source(java.util.function.Function<DataframeAnalysisAnalyzedFields.Builder,ObjectBuilder<DataframeAnalysisAnalyzedFields>> fn)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.
-