public class PathFacetCountCollector extends Object implements FacetCountCollector
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
_count |
protected FacetDataCache |
_dataCache |
EMPTY_FACET_LIST| 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()
Returns an integer array representing the distribution function of a given facet.
|
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
|
boolean |
splitString(String input) |
protected int[] _count
protected final FacetDataCache _dataCache
public int[] getCountDistribution()
FacetCountCollectorgetCountDistribution in interface FacetCountCollectorpublic String getName()
FacetCountCollectorgetName in interface FacetCountCollectorpublic void collect(int docid)
FacetCountCollectorcollect in interface FacetCountCollectordocid - docpublic void collectAll()
FacetCountCollectorcollectAll in interface FacetCountCollectorpublic BrowseFacet getFacet(String value)
FacetAccessiblegetFacet in interface FacetAccessiblevalue - Facet valuepublic int getFacetHitsCount(Object value)
FacetAccessiblegetFacetHitsCount in interface FacetAccessiblevalue - Facet valuepublic boolean splitString(String input)
public List<BrowseFacet> getFacets()
FacetAccessiblegetFacets in interface FacetAccessiblepublic void close()
FacetAccessibleclose in interface FacetAccessiblepublic FacetIterator iterator()
FacetAccessibleiterator in interface FacetAccessibleCopyright © 2005–2013. All rights reserved.