public class RangeFacetCountCollector extends Object implements FacetCountCollector
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
_count |
protected FacetDataCache |
_dataCache |
EMPTY_FACET_LIST| Constructor and Description |
|---|
RangeFacetCountCollector(String name,
FacetDataCache dataCache,
int docBase,
FacetSpec ospec,
List<String> predefinedRanges) |
| 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()
gets distribution of the value arrays.
|
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
|
List<BrowseFacet> |
getFacetsNew() |
String |
getName()
Gets the name of the facet
|
FacetIterator |
iterator()
Returns an iterator to visit all the facets
|
protected int[] _count
protected FacetDataCache _dataCache
public RangeFacetCountCollector(String name, FacetDataCache dataCache, int docBase, FacetSpec ospec, List<String> predefinedRanges)
public int[] getCountDistribution()
getCountDistribution in interface FacetCountCollectorpublic String getName()
FacetCountCollectorgetName in interface FacetCountCollectorpublic BrowseFacet getFacet(String value)
FacetAccessiblegetFacet in interface FacetAccessiblevalue - Facet valuepublic int getFacetHitsCount(Object value)
FacetAccessiblegetFacetHitsCount in interface FacetAccessiblevalue - Facet valuepublic void collect(int docid)
FacetCountCollectorcollect in interface FacetCountCollectordocid - docpublic final void collectAll()
FacetCountCollectorcollectAll in interface FacetCountCollectorpublic List<BrowseFacet> getFacets()
FacetAccessiblegetFacets in interface FacetAccessiblepublic List<BrowseFacet> getFacetsNew()
public void close()
FacetAccessibleclose in interface FacetAccessiblepublic FacetIterator iterator()
FacetAccessibleiterator in interface FacetAccessibleCopyright © 2005–2013. All rights reserved.