|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.sampling.SampleFixer
public abstract class SampleFixer
Fixer of sample facet accumulation results.
Constructor Summary | |
---|---|
SampleFixer()
|
Method Summary | |
---|---|
void |
fixResult(ScoredDocIDs origDocIds,
FacetResult fres,
double samplingRatio)
Alter the input result, fixing it to account for the sampling. |
protected void |
fixResultNode(FacetResultNode facetResNode,
ScoredDocIDs docIds,
double samplingRatio)
Fix result node count, and, recursively, fix all its children |
protected abstract void |
singleNodeFix(FacetResultNode facetResNode,
ScoredDocIDs docIds,
double samplingRatio)
Fix the given node's value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleFixer()
Method Detail |
---|
public void fixResult(ScoredDocIDs origDocIds, FacetResult fres, double samplingRatio) throws IOException
origDocIds
- full set of matching documents.fres
- sample result to be fixed.
IOException
- If there is a low-level I/O error.protected void fixResultNode(FacetResultNode facetResNode, ScoredDocIDs docIds, double samplingRatio) throws IOException
facetResNode
- result node to be fixeddocIds
- docids in effect
IOException
- If there is a low-level I/O error.protected abstract void singleNodeFix(FacetResultNode facetResNode, ScoredDocIDs docIds, double samplingRatio) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |