public class BucketFacetCountCollector extends Object implements FacetCountCollector
EMPTY_FACET_LIST| Modifier | Constructor and Description |
|---|---|
protected |
BucketFacetCountCollector(String name,
DefaultFacetCountCollector subCollector,
FacetSpec ospec,
Map<String,String[]> predefinedBuckets,
int numdocs) |
| 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 bucketValue)
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
|
public int[] getCountDistribution()
FacetCountCollectorgetCountDistribution in interface FacetCountCollectorpublic String getName()
FacetCountCollectorgetName in interface FacetCountCollectorpublic BrowseFacet getFacet(String bucketValue)
FacetAccessiblegetFacet in interface FacetAccessiblebucketValue - 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 void close()
FacetAccessibleclose in interface FacetAccessiblepublic FacetIterator iterator()
FacetAccessibleiterator in interface FacetAccessibleCopyright © 2005–2013. All rights reserved.