public class PredefinedBucketsFacetExtractor extends PropertyFacetExtractor
predefined buckets. This means that the buckets
returned will at most be the ones added in the
constructor or
through addPredefinedBucket(PredefinedBucket), but could be less,
because only buckets with at least one match will be returned in the facet.| Constructor and Description |
|---|
PredefinedBucketsFacetExtractor(java.lang.String propertyRelPath) |
PredefinedBucketsFacetExtractor(java.lang.String propertyRelPath,
java.util.Collection<? extends PredefinedBucket> buckets) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPredefinedBucket(PredefinedBucket bucket)
Adds a predefined bucket to this extractor.
|
boolean |
equals(java.lang.Object obj) |
Facet |
getFacet()
Called after the result set was scanned (and
FacetExtractor.handleNode(Node)
was called for each node in the result) to retrieve the final
Facet object. |
int |
hashCode() |
handleNodepublic PredefinedBucketsFacetExtractor(java.lang.String propertyRelPath)
public PredefinedBucketsFacetExtractor(java.lang.String propertyRelPath,
java.util.Collection<? extends PredefinedBucket> buckets)
public void addPredefinedBucket(PredefinedBucket bucket)
definition - the bucket definition to add.public Facet getFacet()
FacetExtractorFacetExtractor.handleNode(Node)
was called for each node in the result) to retrieve the final
Facet object. Please note that this might be called without
FacetExtractor.handleNode(Node) ever being called, if the result was empty.
Implementations can use the simple FacetImpl implementation
of the Facet interface.
Facet interface with all buckets
found in the result or null if nothing was found in
the resultpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved