public static class SearchQueryRunner.StringSearchColumnSelectorStrategy extends Object implements SearchQueryRunner.SearchColumnSelectorStrategy<DimensionSelector>
Constructor and Description |
---|
StringSearchColumnSelectorStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
updateSearchResultSet(String outputName,
DimensionSelector 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.
|
public void updateSearchResultSet(String outputName, DimensionSelector selector, SearchQuerySpec searchQuerySpec, int limit, it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set)
SearchQueryRunner.SearchColumnSelectorStrategy
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.
updateSearchResultSet
in interface SearchQueryRunner.SearchColumnSelectorStrategy<DimensionSelector>
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 queryCopyright © 2011–2017. All rights reserved.