Class SearchQueryRunner.LongSearchColumnSelectorStrategy

    • Constructor Detail

      • LongSearchColumnSelectorStrategy

        public LongSearchColumnSelectorStrategy()
    • Method Detail

      • updateSearchResultSet

        public void updateSearchResultSet​(String outputName,
                                          BaseLongColumnValueSelector selector,
                                          SearchQuerySpec searchQuerySpec,
                                          int limit,
                                          it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<SearchHit> set)
        Description copied from interface: SearchQueryRunner.SearchColumnSelectorStrategy
        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.

        Specified by:
        updateSearchResultSet in interface SearchQueryRunner.SearchColumnSelectorStrategy<BaseLongColumnValueSelector>
        Parameters:
        outputName - Output name for this dimension in the search query being served
        selector - Dimension value selector
        searchQuerySpec - Spec for the search query
        limit - The limit of the search query
        set - The result set of the search query