|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.facet.search.FacetsAccumulator
org.apache.lucene.facet.search.StandardFacetsAccumulator
org.apache.lucene.facet.search.sampling.SamplingAccumulator
public class SamplingAccumulator
Facets accumulation with sampling.
Note two major differences between this class and SamplingWrapper:
FacetsAccumulator while this class
directly extends StandardFacetsAccumulator.FacetsAccumulator.getComplementThreshold().
Note: Sampling accumulation (Accumulation over a sampled-set of the results),
does not guarantee accurate values for
FacetResult.getNumValidDescendants() &
FacetResultNode.getResidue().
Sampler| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.facet.search.StandardFacetsAccumulator |
|---|
floatArrayAllocator, intArrayAllocator, isUsingComplements, maxPartitions, partitionSize |
| Fields inherited from class org.apache.lucene.facet.search.FacetsAccumulator |
|---|
DEFAULT_COMPLEMENT_THRESHOLD, DISABLE_COMPLEMENT, FORCE_COMPLEMENT, indexReader, searchParams, taxonomyReader |
| Constructor Summary | |
|---|---|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Constructor... |
|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
IntArrayAllocator intArrayAllocator,
FloatArrayAllocator floatArrayAllocator)
Constructor... |
|
| Method Summary | |
|---|---|
List<FacetResult> |
accumulate(ScoredDocIDs docids)
Accumulate facets over given documents, according to facet requests in effect. |
protected ScoredDocIDs |
actualDocsToAccumulate(ScoredDocIDs docids)
Set the actual set of documents over which accumulation should take place. |
protected double |
getTotalCountsFactor()
Expert: factor by which counts should be multiplied when initializing the count arrays from total counts. |
| Methods inherited from class org.apache.lucene.facet.search.StandardFacetsAccumulator |
|---|
getCategoryListMap, shouldComplement |
| Methods inherited from class org.apache.lucene.facet.search.FacetsAccumulator |
|---|
getComplementThreshold, isAllowLabeling, mayComplement, setAllowLabeling, setComplementThreshold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
IntArrayAllocator intArrayAllocator,
FloatArrayAllocator floatArrayAllocator)
public SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
| Method Detail |
|---|
public List<FacetResult> accumulate(ScoredDocIDs docids)
throws IOException
FacetsAccumulator
accumulate in class StandardFacetsAccumulatordocids - documents (and their scores) for which facets are Accumulated.
IOException - on error.
protected ScoredDocIDs actualDocsToAccumulate(ScoredDocIDs docids)
throws IOException
StandardFacetsAccumulatorAllows to override the set of documents to accumulate for. Invoked just before actual accumulating starts. From this point that set of documents remains unmodified. Default implementation just returns the input unchanged.
actualDocsToAccumulate in class StandardFacetsAccumulatordocids - candidate documents to accumulate for
IOExceptionprotected double getTotalCountsFactor()
StandardFacetsAccumulator
getTotalCountsFactor in class StandardFacetsAccumulator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||