Package com.day.cq.search.facets.buckets
Class PredefinedBucket
java.lang.Object
com.day.cq.search.facets.buckets.SimpleBucket
com.day.cq.search.facets.buckets.PredefinedBucket
- All Implemented Interfaces:
Bucket
- Direct Known Subclasses:
ValueRangeBucket
PredefinedBucket is a bucket that is backed by some
definition and decides itself which values to accept.- Since:
- 5.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidacceptValue(Value value) Accepts thevalueand increments the counter of this bucket if thevaluematches this buckets definition.Methods inherited from class com.day.cq.search.facets.buckets.SimpleBucket
getCount, getPredicate, getValue, increment
-
Constructor Details
-
PredefinedBucket
-
-
Method Details
-
acceptValue
Accepts thevalueand increments the counter of this bucket if thevaluematches this buckets definition.- Parameters:
value- the value to accept.- Throws:
RepositoryException- if an error occurs while reading from the repository.
-