public class IndexSelector extends Object
Constructor and Description |
---|
IndexSelector(IndexSettings indexSettings,
String prefix,
IndexStrategy strategy,
long expandTimeRangeInMs) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getIndexNames(long start,
long end)
We assume that timeRange is valid:
- not Null
- start and end date is positive
- start date <= end date
|
public IndexSelector(IndexSettings indexSettings, String prefix, IndexStrategy strategy, long expandTimeRangeInMs)
public List<String> getIndexNames(long start, long end)
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
Copyright © 2021. All rights reserved.