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
public abstract class PredefinedBucket extends SimpleBucket
PredefinedBucket
is a bucket that is backed by some definition and decides itself which values toaccept
.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description PredefinedBucket(Predicate predicate, java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
acceptValue(Value value)
Accepts thevalue
and increments the counter of this bucket if thevalue
matches this buckets definition.-
Methods inherited from class com.day.cq.search.facets.buckets.SimpleBucket
getCount, getPredicate, getValue, increment
-
-
-
-
Constructor Detail
-
PredefinedBucket
public PredefinedBucket(Predicate predicate, java.lang.String name)
-
-
Method Detail
-
acceptValue
public abstract void acceptValue(Value value) throws RepositoryException
Accepts thevalue
and increments the counter of this bucket if thevalue
matches this buckets definition.- Parameters:
value
- the value to accept.- Throws:
RepositoryException
- if an error occurs while reading from the repository.
-
-