Module org.elasticsearch.xcore
Class DatafeedUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.DatafeedUpdate
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class DatafeedUpdate
extends Object
implements Writeable, 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 ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ObjectParser<DatafeedUpdate.Builder, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DatafeedConfig datafeedConfig, Map<String, String> headers, ClusterState clusterState) Applies the update to the givenDatafeedConfigbooleanThe 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.getId()Get the id of the datafeed to updategetJobId()inthashCode()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
-
-
Constructor Details
-
DatafeedUpdate
- Throws:
IOException
-
-
Method Details
-
getId
Get the id of the datafeed to update -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getJobId
-
getRuntimeMappings
-
getDelayedDataCheckConfig
-
getMaxEmptySearches
-
getIndicesOptions
-
apply
public DatafeedConfig apply(DatafeedConfig datafeedConfig, Map<String, String> headers, ClusterState clusterState) Applies the update to the givenDatafeedConfig- Returns:
- a new
DatafeedConfigthat contains the update
-
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. -
hashCode
public int hashCode() -
toString
-