Module org.elasticsearch.server
Class IndexNameExpressionResolver.DateMathExpressionResolver
java.lang.Object
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.DateMathExpressionResolver
- Enclosing class:
IndexNameExpressionResolver
Resolves a date math expression based on the requested time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
resolveExpression
(String expression) Resolves a date math expression using the current time.static String
resolveExpression
(String expression, LongSupplier getTime) Resolves a date math expression using the provided time.
-
Method Details
-
resolveExpression
Resolves a date math expression using the current time. This method recognises a date math expression iff when they start with%3C
and end with%3E
. Otherwise, it returns the expression intact. -
resolveExpression
Resolves a date math expression using the provided time. This method recognises a date math expression iff when they start with%3C
and end with%3E
. Otherwise, it returns the expression intact.
-