org.apache.lucene.facet.sampling
public static class Sampler.OverSampledFacetRequest extends FacetRequest
FacetRequest.ResultMode, FacetRequest.SortOrder
Modifier and Type | Field and Description |
---|---|
FacetRequest |
orig |
categoryPath, numResults
Constructor and Description |
---|
Sampler.OverSampledFacetRequest(FacetRequest orig,
int num) |
Modifier and Type | Method and Description |
---|---|
FacetsAggregator |
createFacetsAggregator(FacetIndexingParams fip)
Returns the
FacetsAggregator which can aggregate the categories of
this facet request. |
equals, getDepth, getNumLabel, getResultMode, getSortOrder, hashCode, setDepth, setNumLabel, setResultMode, setSortOrder, toString
public final FacetRequest orig
public Sampler.OverSampledFacetRequest(FacetRequest orig, int num)
public FacetsAggregator createFacetsAggregator(FacetIndexingParams fip)
FacetRequest
FacetsAggregator
which can aggregate the categories of
this facet request. The aggregator is expected to aggregate category values
into FacetArrays
. If the facet request does not support that, e.g.
RangeFacetRequest
, it can return null
. Note though that
such requests require a dedicated FacetsAccumulator
.createFacetsAggregator
in class FacetRequest
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.