Class IndexSelector


  • public class IndexSelector
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getIndexNames​(long start, long end)
      We assume that timeRange is valid: - not Null - start and end date is positive - start date <= end date
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexSelector

        public IndexSelector​(IndexSettings indexSettings,
                             java.lang.String prefix,
                             IndexStrategy strategy,
                             long expandTimeRangeInMs)
    • Method Detail

      • getIndexNames

        public java.util.List<java.lang.String> getIndexNames​(long start,
                                                              long end)
        We assume that timeRange is valid: - not Null - start and end date is positive - start date <= end date

        We need to be aware that the indexes are part of the GET URL and therefor we can't have too many, it will result in a HTTP 400 from elasticsearch. Therefor we collapse the indexes with wildcards where applicable