Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class IndexLifecycleOriginationDateParser
java.lang.Object
org.elasticsearch.xpack.core.ilm.IndexLifecycleOriginationDateParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longparseIndexNameAndExtractDate(String indexName) Parses the index according to the supported format and extracts the origination date.static booleanshouldParseIndexName(Settings indexSettings) Determines if the origination date needs to be parsed from the index name.
-
Constructor Details
-
IndexLifecycleOriginationDateParser
public IndexLifecycleOriginationDateParser()
-
-
Method Details
-
shouldParseIndexName
Determines if the origination date needs to be parsed from the index name. -
parseIndexNameAndExtractDate
Parses the index according to the supported format and extracts the origination date. If the index does not match the expected format or the date in the index name doesn't match the `yyyy.MM.dd` format it throws anIllegalArgumentException
-