Package com.yahoo.search.predicate.index
Class BoundsPostingList
java.lang.Object
com.yahoo.search.predicate.index.MultiIntervalPostingList
com.yahoo.search.predicate.index.BoundsPostingList
- All Implemented Interfaces:
PostingList
Wraps a posting stream of IntervalWithBounds objects (for collapsed
fixed tree leaf nodes) into a PostingList.
- Author:
- Magnar Nedland, bjorncs
-
Constructor Summary
ConstructorDescriptionBoundsPostingList
(PredicateIntervalStore store, int[] docIds, int[] dataRefs, long subquery, int valueDiff) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Fetches the next interval for the current document.protected boolean
prepareIntervals
(int dataRef) Methods inherited from class com.yahoo.search.predicate.index.MultiIntervalPostingList
getDocId, getDocIds, getSubquery, nextDocument, prepareIntervals, size
-
Constructor Details
-
BoundsPostingList
public BoundsPostingList(PredicateIntervalStore store, int[] docIds, int[] dataRefs, long subquery, int valueDiff) - Parameters:
valueDiff
- Difference from the collapsed leaf node's actual value.
-
-
Method Details
-
prepareIntervals
protected boolean prepareIntervals(int dataRef) - Specified by:
prepareIntervals
in classMultiIntervalPostingList
-
nextInterval
public boolean nextInterval()Description copied from interface:PostingList
Fetches the next interval for the current document.- Returns:
- True if there was a next interval
-
getInterval
public int getInterval()- Returns:
- The current interval for the current document
-