Class DatafeedUpdate
java.lang.Object
org.elasticsearch.client.ml.datafeed.DatafeedUpdate
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
A datafeed update contains partial properties to update a
DatafeedConfig
.
The main difference between this class and DatafeedConfig
is that here all
fields are nullable.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedUpdate.Builder,
Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatafeedUpdate.Builder
boolean
The lists of indices and types are compared for equality but they are not sorted first so this test could fail simply because the indices and types lists are in different orders.org.elasticsearch.core.TimeValue
getId()
Get the id of the datafeed to updategetJobId()
getQuery()
org.elasticsearch.core.TimeValue
int
hashCode()
Note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to compute a stable hash code.org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedUpdate.Builder,Void> PARSER
-
-
Method Details
-
getId
Get the id of the datafeed to update -
getRuntimeMappings
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
getJobId
-
getQueryDelay
public org.elasticsearch.core.TimeValue getQueryDelay() -
getFrequency
public org.elasticsearch.core.TimeValue getFrequency() -
getIndices
-
getScrollSize
-
getQuery
-
getAggregations
-
getScriptFields
-
getChunkingConfig
-
getDelayedDataCheckConfig
-
getMaxEmptySearches
-
getIndicesOptions
-
equals
The lists of indices and types are compared for equality but they are not sorted first so this test could fail simply because the indices and types lists are in different orders. Also note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to correctly compare them. -
hashCode
public int hashCode()Note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to compute a stable hash code. -
builder
-