Class IndexNameExpressionResolver.DateMathExpressionResolver

java.lang.Object
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.DateMathExpressionResolver
Enclosing class:
IndexNameExpressionResolver

public static final class IndexNameExpressionResolver.DateMathExpressionResolver extends Object
Resolves a date math expression based on the requested time.
  • Method Details

    • resolveExpression

      public static String resolveExpression(String expression)
      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

      public static String resolveExpression(String expression, LongSupplier getTime)
      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.