Package org.apache.druid.query.search
Interface SearchQueryRunner.SearchColumnSelectorStrategy<ValueSelectorType>
-
- All Superinterfaces:
ColumnSelectorStrategy
- All Known Implementing Classes:
SearchQueryRunner.DoubleSearchColumnSelectorStrategy
,SearchQueryRunner.FloatSearchColumnSelectorStrategy
,SearchQueryRunner.LongSearchColumnSelectorStrategy
,SearchQueryRunner.StringSearchColumnSelectorStrategy
- Enclosing class:
- SearchQueryRunner
public static interface SearchQueryRunner.SearchColumnSelectorStrategy<ValueSelectorType> extends ColumnSelectorStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updateSearchResultSet(String outputName, ValueSelectorType dimSelector, SearchQuerySpec searchQuerySpec, int limit, it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set)
Read the current row from dimSelector and update the search result set.
-
-
-
Method Detail
-
updateSearchResultSet
void updateSearchResultSet(String outputName, ValueSelectorType dimSelector, SearchQuerySpec searchQuerySpec, int limit, it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set)
Read the current row from dimSelector and update the search result set.For each row value: 1. Check if searchQuerySpec accept()s the value 2. If so, add the value to the result set and increment the counter for that value 3. If the size of the result set reaches the limit after adding a value, return early.
- Parameters:
outputName
- Output name for this dimension in the search query being serveddimSelector
- Dimension value selectorsearchQuerySpec
- Spec for the search queryset
- The result set of the search querylimit
- The limit of the search query
-
-