Class DataframeAnalyticsSource.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalyticsSource.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsSource.Builder
- All Implemented Interfaces:
WithJson<DataframeAnalyticsSource.Builder>,ObjectBuilder<DataframeAnalyticsSource>
- Enclosing class:
- DataframeAnalyticsSource
public static class DataframeAnalyticsSource.Builder
extends WithJsonObjectBuilderBase<DataframeAnalyticsSource.Builder>
implements ObjectBuilder<DataframeAnalyticsSource>
Builder for
DataframeAnalyticsSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataframeAnalyticsSource.Required - Index or indices on which to perform the analysis.Required - Index or indices on which to perform the analysis.The Elasticsearch query domain-specific language (DSL).query(QueryVariant value) The Elasticsearch query domain-specific language (DSL).The Elasticsearch query domain-specific language (DSL).runtimeMappings(String key, RuntimeField value) Definitions of runtime fields that will become part of the mapping of the destination index.Definitions of runtime fields that will become part of the mapping of the destination index.runtimeMappings(Map<String, RuntimeField> map) Definitions of runtime fields that will become part of the mapping of the destination index.protected DataframeAnalyticsSource.Builderself()Specifyincludesand/or `excludes patterns to select which fields will be present in the destination.source(Function<DataframeAnalysisAnalyzedFields.Builder, ObjectBuilder<DataframeAnalysisAnalyzedFields>> fn) Specifyincludesand/or `excludes patterns to select which fields will be present in the destination.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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:
indexAdds all elements of
listtoindex. -
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:
indexAdds 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(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 -
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 -
runtimeMappings
Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final DataframeAnalyticsSource.Builder runtimeMappings(String key, Function<RuntimeField.Builder, ObjectBuilder<RuntimeField>> fn) Definitions of runtime fields that will become part of the mapping of the destination index.API name:
runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
source
public final DataframeAnalyticsSource.Builder source(@Nullable DataframeAnalysisAnalyzedFields value) Specifyincludesand/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(Function<DataframeAnalysisAnalyzedFields.Builder, ObjectBuilder<DataframeAnalysisAnalyzedFields>> fn) Specifyincludesand/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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeAnalyticsSource.Builder>
-
build
Builds aDataframeAnalyticsSource.- Specified by:
buildin interfaceObjectBuilder<DataframeAnalyticsSource>- Throws:
NullPointerException- if some of the required fields are null.
-