Class PredicateSearch


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

      Constructors 
      Constructor Description
      PredicateSearch​(java.util.List<PostingList> postingLists, byte[] nPostingListsForDocument, byte[] minFeatureIndex, short[] intervalEnds, int highestIntervalEnd)
      Creates a search for a set of posting lists.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<Hit> stream()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PredicateSearch

        public PredicateSearch​(java.util.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 Detail

      • stream

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