Module org.elasticsearch.xcore
Class NullRetentionPolicyConfig
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.NullRetentionPolicyConfig
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.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
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 NullRetentionPolicyConfigstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForDeprecations(String id, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField NAME -
INSTANCE
-
-
Method Details
-
validate
public ActionRequestValidationException validate(ActionRequestValidationException validationException) - Specified by:
validatein interfaceRetentionPolicyConfig
-
checkForDeprecations
public void checkForDeprecations(String id, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) - Specified by:
checkForDeprecationsin interfaceRetentionPolicyConfig
-
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
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-