Пример #1
0
        private HashSet <string> GetIndexes(IRepositoryQuery query)
        {
            var indexes = new HashSet <string>();

            var elasticIndexes = query.GetElasticIndexes();

            if (elasticIndexes.Count > 0)
            {
                indexes.AddRange(elasticIndexes);
            }

            if (query.GetElasticIndexesStartUtc().HasValue || query.GetElasticIndexesEndUtc().HasValue)
            {
                indexes.AddRange(TimeSeriesIndex.GetIndexes(query.GetElasticIndexesStartUtc(), query.GetElasticIndexesEndUtc()));
            }

            return(indexes);
        }