public static class HistogramFacetHandler.HistogramCollector<T extends Number> extends Object implements FacetCountCollector
EMPTY_FACET_LIST| Modifier | Constructor and Description |
|---|---|
protected |
HistogramFacetHandler.HistogramCollector(String facetName,
FacetCountCollector baseCollector,
FacetDataCache<?> dataCache,
FacetSpec ospec,
T start,
T end,
T unit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Responsible for release resources used.
|
void |
collect(int docid)
Collect a hit.
|
void |
collectAll()
Collects all hits.
|
int[] |
getCountDistribution()
not supported
|
BrowseFacet |
getFacet(String value)
Gets the facet given a value.
|
int |
getFacetHitsCount(Object value)
Gets the facet count given a value.
|
List<BrowseFacet> |
getFacets()
Gets gathered top facets
|
String |
getName()
Gets the name of the facet
|
FacetIterator |
iterator()
Returns an iterator to visit all the facets
|
protected HistogramFacetHandler.HistogramCollector(String facetName, FacetCountCollector baseCollector, FacetDataCache<?> dataCache, FacetSpec ospec, T start, T end, T unit)
public int[] getCountDistribution()
getCountDistribution in interface FacetCountCollectorpublic BrowseFacet getFacet(String value)
FacetAccessiblegetFacet in interface FacetAccessiblevalue - Facet valuepublic int getFacetHitsCount(Object value)
FacetAccessiblegetFacetHitsCount in interface FacetAccessiblevalue - Facet valuepublic final void collect(int docid)
FacetCountCollectorcollect in interface FacetCountCollectordocid - docpublic final void collectAll()
FacetCountCollectorcollectAll in interface FacetCountCollectorpublic List<BrowseFacet> getFacets()
FacetAccessiblegetFacets in interface FacetAccessiblepublic FacetIterator iterator()
FacetAccessibleiterator in interface FacetAccessiblepublic String getName()
FacetCountCollectorgetName in interface FacetCountCollectorpublic void close()
FacetAccessibleclose in interface FacetAccessibleCopyright © 2005–2013. All rights reserved.