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