Class 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 to accept.
    Since:
    5.2
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void acceptValue​(javax.jcr.Value value)
      Accepts the value and increments the counter of this bucket if the value matches this buckets definition.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PredefinedBucket

        public PredefinedBucket​(Predicate predicate,
                                java.lang.String name)
    • Method Detail

      • acceptValue

        public abstract void acceptValue​(javax.jcr.Value value)
                                  throws javax.jcr.RepositoryException
        Accepts the value and increments the counter of this bucket if the value matches this buckets definition.
        Parameters:
        value - the value to accept.
        Throws:
        javax.jcr.RepositoryException - if an error occurs while reading from the repository.