- All Implemented Interfaces:
public class PredefinedBucketsFacetExtractor extends PropertyFacetExtractorPredefinedBucketsFacetExtractor extracts facets based on a list of
predefined buckets. This means that the buckets returned will at most be the ones added in the
addPredefinedBucket(PredefinedBucket), but could be less, because only buckets with at least one match will be returned in the facet.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
addPredefinedBucket(PredefinedBucket bucket)Adds a predefined bucket to this extractor.
public void addPredefinedBucket(PredefinedBucket bucket)Adds a predefined bucket to this extractor.
definition- the bucket definition to add.
public Facet getFacet()Description copied from interface:
FacetExtractorCalled after the result set was scanned (and
FacetExtractor.handleNode(Node)was called for each node in the result) to retrieve the final
Facetobject. Please note that this might be called without
FacetExtractor.handleNode(Node)ever being called, if the result was empty.
- an implementation of the
Facetinterface with all buckets found in the result or
nullif nothing was found in the result