Module org.elasticsearch.xcore
Class TimeRetentionPolicyConfig
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TimeRetentionPolicyConfig
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,RetentionPolicyConfig
-
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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForDeprecations(String id, NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) booleanstatic TimeRetentionPolicyConfigfromXContent(XContentParser parser, boolean lenient) getField()inthashCode()static TimeRetentionPolicyConfigparse(XContentParser parser) toString()toXContent(XContentBuilder builder, ToXContent.Params params) validate(ActionRequestValidationException validationException) 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
-
Constructor Details
-
TimeRetentionPolicyConfig
-
TimeRetentionPolicyConfig
- Throws:
IOException
-
-
Method Details
-
getField
-
getMaxAge
-
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
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
parse
-
fromXContent
public static TimeRetentionPolicyConfig fromXContent(XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-