Class DatafeedUpdate
- java.lang.Object
-
- org.elasticsearch.client.ml.datafeed.DatafeedUpdate
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class DatafeedUpdate extends java.lang.Object implements ToXContentObject
A datafeed update contains partial properties to update aDatafeedConfig. The main difference between this class andDatafeedConfigis that here all fields are nullable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatafeedUpdate.Builder-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ConstructingObjectParser<DatafeedUpdate.Builder,java.lang.Void>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description static DatafeedUpdate.Builderbuilder(java.lang.String id)booleanequals(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.BytesReferencegetAggregations()ChunkingConfiggetChunkingConfig()DelayedDataCheckConfiggetDelayedDataCheckConfig()TimeValuegetFrequency()java.lang.StringgetId()Get the id of the datafeed to updatejava.util.List<java.lang.String>getIndices()java.lang.StringgetJobId()BytesReferencegetQuery()TimeValuegetQueryDelay()java.util.List<SearchSourceBuilder.ScriptField>getScriptFields()java.lang.IntegergetScrollSize()inthashCode()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.XContentBuildertoXContent(XContentBuilder builder, 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.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
PARSER
public static final ConstructingObjectParser<DatafeedUpdate.Builder,java.lang.Void> PARSER
-
-
Method Detail
-
getId
public java.lang.String getId()
Get the id of the datafeed to update
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
getJobId
public java.lang.String getJobId()
-
getQueryDelay
public TimeValue getQueryDelay()
-
getFrequency
public TimeValue getFrequency()
-
getIndices
public java.util.List<java.lang.String> getIndices()
-
getScrollSize
public java.lang.Integer getScrollSize()
-
getQuery
public BytesReference getQuery()
-
getAggregations
public BytesReference getAggregations()
-
getScriptFields
public java.util.List<SearchSourceBuilder.ScriptField> getScriptFields()
-
getChunkingConfig
public ChunkingConfig getChunkingConfig()
-
getDelayedDataCheckConfig
public DelayedDataCheckConfig getDelayedDataCheckConfig()
-
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:
equalsin 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:
hashCodein classjava.lang.Object
-
builder
public static DatafeedUpdate.Builder builder(java.lang.String id)
-
-