Module org.elasticsearch.xcore
Class DatafeedUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.DatafeedUpdate
- All Implemented Interfaces:
Writeable,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstruewhen this update changes index routing inputs that can alter whether a datafeed participates in cross-project search and therefore whether an internal cloud credential is required.apply(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()toXContent(XContentBuilder builder, 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getJobId
-
getRuntimeMappings
-
getProjectRouting
-
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
-
affectsCrossProjectSearchSurface
Returnstruewhen this update changes index routing inputs that can alter whether a datafeed participates in cross-project search and therefore whether an internal cloud credential is required.
-