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 inAggregationFilterStep.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
All Methods Instance Methods Abstract Methods Default Methods 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
.N
range(Range<? extends F> range)
Add a bucket for given range.N
ranges(Collection<? extends Range<? extends F>> ranges)
Add one bucket for each of the given ranges.
-
-
-
Method Detail
-
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:
Range
-
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:
Range
-
-