public abstract class SampleFixer extends Object
Constructor and Description |
---|
SampleFixer() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 effectIOException
- If there is a low-level I/O error.protected abstract void singleNodeFix(FacetResultNode facetResNode, ScoredDocIDs docIds, double samplingRatio) throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.