Package com.yahoo.search.predicate.index
Class PredicateSearch
java.lang.Object
com.yahoo.search.predicate.index.PredicateSearch
Implementation of the "Interval" predicate search algorithm.
- Author:
- Magnar Nedland, bjorncs
-
Constructor Summary
ConstructorDescriptionPredicateSearch
(List<PostingList> postingLists, byte[] nPostingListsForDocument, byte[] minFeatureIndex, short[] intervalEnds, int highestIntervalEnd) Creates a search for a set of posting lists. -
Method Summary
-
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 truenPostingListsForDocument
- The number of posting list for each docIdminFeatureIndex
- Index from docId to min-feature value.intervalEnds
- The interval end for each document.highestIntervalEnd
- The highest end value.
-
-
Method Details
-
stream
- Returns:
- A stream of Hit-objects from a lazy evaluation of the boolean search algorithm.
-