Interface RangeAggregationRangeStep<N extends RangeAggregationRangeMoreStep<?,?,PDF,F>,PDF extends SearchPredicateFactory,F>

Type Parameters:
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.
All Known Subinterfaces:
RangeAggregationRangeMoreStep<S,N,PDF,F>

public interface RangeAggregationRangeStep<N extends RangeAggregationRangeMoreStep<?,?,PDF,F>,PDF extends SearchPredicateFactory,F>
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(Range<? extends F> range)
    Add a bucket for given range.
    ranges(Collection<? extends 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(Range<? extends F> range)
      Add a bucket for given range.
      Parameters:
      range - The range to add.
      Returns:
      The next step.
      See Also:
    • ranges

      N ranges(Collection<? extends 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: