Interface RangeAggregationRangeStep<SR,N extends RangeAggregationRangeMoreStep<SR,?,?,PDF,F,A>,PDF extends TypedSearchPredicateFactory<SR>,F,A>

Type Parameters:
SR - Scope root type.
N - The type of the next step.
PDF - The type of factory used to create predicates in AggregationFilterStep.filter(Function).
F - The type of the targeted field.
A - The type of the aggregated value.
All Known Subinterfaces:
RangeAggregationRangeMoreStep<SR,S,N,PDF,F,A>

public interface RangeAggregationRangeStep<SR,N extends RangeAggregationRangeMoreStep<SR,?,?,PDF,F,A>,PDF extends TypedSearchPredicateFactory<SR>,F,A>
The step in a "range" aggregation definition where the ranges can be set.
  • Method Summary

    Modifier and Type
    Method
    Description
    default N
    range(F lowerBound, F upperBound)
    Add a bucket for the range [lowerBound, upperBound) (lower bound included, upper bound excluded), or (lowerBound, upperBound) (both bounds excluded) if the lower bound is -Infinity.
    range(org.hibernate.search.util.common.data.Range<? extends F> range)
    Add a bucket for given range.
    ranges(Collection<? extends org.hibernate.search.util.common.data.Range<? extends F>> ranges)
    Add one bucket for each of the given ranges.
  • Method Details

    • range

      default N range(F lowerBound, F upperBound)
      Add a bucket for the range [lowerBound, upperBound) (lower bound included, upper bound excluded), or (lowerBound, upperBound) (both bounds excluded) if the lower bound is -Infinity.
      Parameters:
      lowerBound - The lower bound of the range.
      upperBound - The upper bound of the range.
      Returns:
      The next step.
    • range

      N range(org.hibernate.search.util.common.data.Range<? extends F> range)
      Add a bucket for given range.
      Parameters:
      range - The range to add.
      Returns:
      The next step.
      See Also:
      • Range
    • ranges

      N ranges(Collection<? extends org.hibernate.search.util.common.data.Range<? extends F>> ranges)
      Add one bucket for each of the given ranges.
      Parameters:
      ranges - The ranges to add.
      Returns:
      The next step.
      See Also:
      • Range