Class PredicateSearch

java.lang.Object
com.yahoo.search.predicate.index.PredicateSearch

public class PredicateSearch extends Object
Implementation of the "Interval" predicate search algorithm.
Author:
Magnar Nedland, bjorncs
  • Constructor Details

    • PredicateSearch

      public PredicateSearch(List<PostingList> postingLists, byte[] nPostingListsForDocument, byte[] minFeatureIndex, short[] intervalEnds, int highestIntervalEnd)
      Creates a search for a set of posting lists.
      Parameters:
      postingLists - Posting lists for the boolean variables that evaluate to true
      nPostingListsForDocument - The number of posting list for each docId
      minFeatureIndex - Index from docId to min-feature value.
      intervalEnds - The interval end for each document.
      highestIntervalEnd - The highest end value.
  • Method Details

    • stream

      public Stream<Hit> stream()
      Returns:
      A stream of Hit-objects from a lazy evaluation of the boolean search algorithm.