public class GeoSimpleFacetCountCollector extends Object implements FacetCountCollector
EMPTY_FACET_LIST| Modifier | Constructor and Description |
|---|---|
protected |
GeoSimpleFacetCountCollector(String name,
FacetDataCache latDataCache,
FacetDataCache longDataCache,
int docBase,
FacetSpec spec,
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()
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
|
protected GeoSimpleFacetCountCollector(String name, FacetDataCache latDataCache, FacetDataCache longDataCache, int docBase, FacetSpec spec, List<String> predefinedRanges)
public void collect(int docid)
FacetCountCollectorcollect in interface FacetCountCollectordocid - docpublic void collectAll()
FacetCountCollectorcollectAll in interface FacetCountCollectorpublic int[] getCountDistribution()
FacetCountCollectorgetCountDistribution 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 List<BrowseFacet> getFacets()
FacetAccessiblegetFacets in interface FacetAccessiblepublic void close()
FacetAccessibleclose in interface FacetAccessiblepublic FacetIterator iterator()
FacetAccessibleiterator in interface FacetAccessibleCopyright © 2005–2013. All rights reserved.