public abstract class Impacts extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Impacts()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getDocIdUpTo(int level)
Return the maximum inclusive doc ID until which the list of impacts
returned by
getImpacts(int) is valid. |
abstract List<Impact> |
getImpacts(int level)
Return impacts on the given level.
|
abstract int |
numLevels()
Return the number of levels on which we have impacts.
|
public abstract int numLevels()
public abstract int getDocIdUpTo(int level)
getImpacts(int) is valid. This is a non-decreasing
function of level.public abstract List<Impact> getImpacts(int level)
getDocIdUpTo(int) for the same level, included.
The returned list is never empty.
NOTE: There is no guarantee that these impacts actually appear in postings,
only that they trigger scores that are greater than or equal to the impacts
that actually appear in postings.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.