Package org.apache.druid.query.search
Class SearchQueryRunner.DoubleSearchColumnSelectorStrategy
java.lang.Object
org.apache.druid.query.search.SearchQueryRunner.DoubleSearchColumnSelectorStrategy
- All Implemented Interfaces:
ColumnSelectorStrategy,SearchQueryRunner.SearchColumnSelectorStrategy<BaseDoubleColumnValueSelector>
- Enclosing class:
- SearchQueryRunner
public static class SearchQueryRunner.DoubleSearchColumnSelectorStrategy
extends Object
implements SearchQueryRunner.SearchColumnSelectorStrategy<BaseDoubleColumnValueSelector>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateSearchResultSet(String outputName, BaseDoubleColumnValueSelector selector, SearchQuerySpec searchQuerySpec, int limit, it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set) Read the current row from dimSelector and update the search result set.
-
Constructor Details
-
DoubleSearchColumnSelectorStrategy
public DoubleSearchColumnSelectorStrategy()
-
-
Method Details
-
updateSearchResultSet
public void updateSearchResultSet(String outputName, BaseDoubleColumnValueSelector selector, SearchQuerySpec searchQuerySpec, int limit, it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set) Description copied from interface:SearchQueryRunner.SearchColumnSelectorStrategyRead 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.
- Specified by:
updateSearchResultSetin interfaceSearchQueryRunner.SearchColumnSelectorStrategy<BaseDoubleColumnValueSelector>- Parameters:
outputName- Output name for this dimension in the search query being servedselector- Dimension value selectorsearchQuerySpec- Spec for the search querylimit- The limit of the search queryset- The result set of the search query
-