Module org.elasticsearch.xcore
Class NullRetentionPolicyConfig
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.NullRetentionPolicyConfig
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,RetentionPolicyConfig
NullRetentionPolicyConfig is the implementation of RetentionPolicyConfig used when the user explicitly sets the
retention_policy to null in the _update request:
POST _transform/some-transform/_update
{
"retention_policy": null
}
This is treated *differently* than simply omitting retention_policy from the request as it instructs the API to clear existing
retention_policy from some-transform.-
Nested Class Summary
Nested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForDeprecations(String id, NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) toXContent(XContentBuilder builder, ToXContent.Params params) validate(ActionRequestValidationException validationException) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
-
INSTANCE
-
-
Method Details
-
validate
public ActionRequestValidationException validate(ActionRequestValidationException validationException) - Specified by:
validatein interfaceRetentionPolicyConfig
-
checkForDeprecations
public void checkForDeprecations(String id, NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) - Specified by:
checkForDeprecationsin interfaceRetentionPolicyConfig
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-