Class Datafeed.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Datafeed.Builder>
co.elastic.clients.elasticsearch.ml.Datafeed.Builder
- All Implemented Interfaces:
WithJson<Datafeed.Builder>,ObjectBuilder<Datafeed>
- Enclosing class:
- Datafeed
public static class Datafeed.Builder
extends WithJsonObjectBuilderBase<Datafeed.Builder>
implements ObjectBuilder<Datafeed>
Builder for
Datafeed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Datafeed.Builderaggregations(String key, Aggregation value) API name:aggregationsfinal Datafeed.Builderaggregations(String key, AggregationVariant value) API name:aggregationsfinal Datafeed.BuilderAPI name:aggregationsfinal Datafeed.Builderaggregations(Map<String, Aggregation> map) API name:aggregationsfinal Datafeed.BuilderThe security privileges that the datafeed uses to run its queries.final Datafeed.BuilderThe security privileges that the datafeed uses to run its queries.build()Builds aDatafeed.final Datafeed.BuilderchunkingConfig(ChunkingConfig value) API name:chunking_configfinal Datafeed.BuilderAPI name:chunking_configfinal Datafeed.BuilderdatafeedId(String value) Required - API name:datafeed_idfinal Datafeed.BuilderRequired - API name:delayed_data_check_configfinal Datafeed.BuilderdelayedDataCheckConfig(Function<DelayedDataCheckConfig.Builder, ObjectBuilder<DelayedDataCheckConfig>> fn) Required - API name:delayed_data_check_configfinal Datafeed.BuilderThe interval at which scheduled queries are made while the datafeed runs in real time.final Datafeed.BuilderThe interval at which scheduled queries are made while the datafeed runs in real time.final Datafeed.BuilderAPI name:indexesfinal Datafeed.BuilderAPI name:indexesfinal Datafeed.BuilderRequired - API name:indicesfinal Datafeed.BuilderRequired - API name:indicesfinal Datafeed.BuilderindicesOptions(IndicesOptions value) API name:indices_optionsfinal Datafeed.BuilderAPI name:indices_optionsfinal Datafeed.BuilderRequired - API name:job_idfinal Datafeed.BuildermaxEmptySearches(Integer value) API name:max_empty_searchesfinal Datafeed.BuilderRequired - API name:queryfinal Datafeed.Builderquery(QueryVariant value) Required - API name:queryfinal Datafeed.BuilderRequired - API name:queryfinal Datafeed.BuilderqueryDelay(Time value) API name:query_delayfinal Datafeed.BuilderAPI name:query_delayfinal Datafeed.BuilderruntimeMappings(String key, RuntimeField value) API name:runtime_mappingsfinal Datafeed.BuilderAPI name:runtime_mappingsfinal Datafeed.BuilderruntimeMappings(Map<String, RuntimeField> map) API name:runtime_mappingsfinal Datafeed.BuilderscriptFields(String key, ScriptField value) API name:script_fieldsfinal Datafeed.BuilderAPI name:script_fieldsfinal Datafeed.BuilderscriptFields(Map<String, ScriptField> map) API name:script_fieldsfinal Datafeed.BuilderscrollSize(Integer value) API name:scroll_sizeprotected Datafeed.Builderself()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
-
aggregations
API name:aggregationsAdds all entries of
maptoaggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
aggregations
public final Datafeed.Builder aggregations(String key, Function<Aggregation.Builder, ObjectBuilder<Aggregation>> fn) API name:aggregationsAdds an entry to
aggregationsusing a builder lambda. -
authorization
The security privileges that the datafeed uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the datafeed, this property is omitted.API name:
authorization -
authorization
public final Datafeed.Builder authorization(Function<DatafeedAuthorization.Builder, ObjectBuilder<DatafeedAuthorization>> fn) The security privileges that the datafeed uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the datafeed, this property is omitted.API name:
authorization -
chunkingConfig
API name:chunking_config -
chunkingConfig
public final Datafeed.Builder chunkingConfig(Function<ChunkingConfig.Builder, ObjectBuilder<ChunkingConfig>> fn) API name:chunking_config -
datafeedId
Required - API name:datafeed_id -
frequency
The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example:150s. Whenfrequencyis shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation.API name:
frequency -
frequency
The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example:150s. Whenfrequencyis shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation.API name:
frequency -
indices
Required - API name:indicesAdds all elements of
listtoindices. -
indices
Required - API name:indicesAdds one or more values to
indices. -
indexes
API name:indexesAdds all elements of
listtoindexes. -
indexes
API name:indexesAdds one or more values to
indexes. -
jobId
Required - API name:job_id -
maxEmptySearches
API name:max_empty_searches -
query
Required - API name:query -
query
Required - API name:query -
query
Required - API name:query -
queryDelay
API name:query_delay -
queryDelay
API name:query_delay -
scriptFields
API name:script_fieldsAdds all entries of
maptoscriptFields. -
scriptFields
API name:script_fieldsAdds an entry to
scriptFields. -
scriptFields
public final Datafeed.Builder scriptFields(String key, Function<ScriptField.Builder, ObjectBuilder<ScriptField>> fn) API name:script_fieldsAdds an entry to
scriptFieldsusing a builder lambda. -
scrollSize
API name:scroll_size -
delayedDataCheckConfig
Required - API name:delayed_data_check_config -
delayedDataCheckConfig
public final Datafeed.Builder delayedDataCheckConfig(Function<DelayedDataCheckConfig.Builder, ObjectBuilder<DelayedDataCheckConfig>> fn) Required - API name:delayed_data_check_config -
runtimeMappings
API name:runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
API name:runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final Datafeed.Builder runtimeMappings(String key, Function<RuntimeField.Builder, ObjectBuilder<RuntimeField>> fn) API name:runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
indicesOptions
API name:indices_options -
indicesOptions
public final Datafeed.Builder indicesOptions(Function<IndicesOptions.Builder, ObjectBuilder<IndicesOptions>> fn) API name:indices_options -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Datafeed.Builder>
-
build
Builds aDatafeed.- Specified by:
buildin interfaceObjectBuilder<Datafeed>- Throws:
NullPointerException- if some of the required fields are null.
-