Class DatafeedUpdate
java.lang.Object
org.elasticsearch.client.ml.datafeed.DatafeedUpdate
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class DatafeedUpdate
extends java.lang.Object
implements org.elasticsearch.common.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 Modifier and Type Class Description static class
DatafeedUpdate.Builder
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<DatafeedUpdate.Builder,java.lang.Void>
PARSER
-
Method Summary
Modifier and Type Method Description static DatafeedUpdate.Builder
builder(java.lang.String id)
boolean
equals(java.lang.Object other)
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.common.bytes.BytesReference
getAggregations()
ChunkingConfig
getChunkingConfig()
DelayedDataCheckConfig
getDelayedDataCheckConfig()
org.elasticsearch.common.unit.TimeValue
getFrequency()
java.lang.String
getId()
Get the id of the datafeed to updatejava.util.List<java.lang.String>
getIndices()
org.elasticsearch.action.support.IndicesOptions
getIndicesOptions()
java.lang.String
getJobId()
java.lang.Integer
getMaxEmptySearches()
org.elasticsearch.common.bytes.BytesReference
getQuery()
org.elasticsearch.common.unit.TimeValue
getQueryDelay()
java.util.List<org.elasticsearch.search.builder.SearchSourceBuilder.ScriptField>
getScriptFields()
java.lang.Integer
getScrollSize()
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.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<DatafeedUpdate.Builder,java.lang.Void> PARSER
-
-
Method Details
-
getId
public java.lang.String getId()Get the id of the datafeed to update -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
getJobId
public java.lang.String getJobId() -
getQueryDelay
public org.elasticsearch.common.unit.TimeValue getQueryDelay() -
getFrequency
public org.elasticsearch.common.unit.TimeValue getFrequency() -
getIndices
public java.util.List<java.lang.String> getIndices() -
getScrollSize
public java.lang.Integer getScrollSize() -
getQuery
public org.elasticsearch.common.bytes.BytesReference getQuery() -
getAggregations
public org.elasticsearch.common.bytes.BytesReference getAggregations() -
getScriptFields
public java.util.List<org.elasticsearch.search.builder.SearchSourceBuilder.ScriptField> getScriptFields() -
getChunkingConfig
-
getDelayedDataCheckConfig
-
getMaxEmptySearches
public java.lang.Integer getMaxEmptySearches() -
getIndicesOptions
public org.elasticsearch.action.support.IndicesOptions getIndicesOptions() -
equals
public boolean equals(java.lang.Object other)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.- Overrides:
equals
in classjava.lang.Object
-
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.- Overrides:
hashCode
in classjava.lang.Object
-
builder
-