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
Modifier and TypeMethodDescriptiondefault NAdd 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.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
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
Add a bucket for given range.- Parameters:
range- The range to add.- Returns:
- The next step.
- See Also:
-
ranges
Add one bucket for each of the given ranges.- Parameters:
ranges- The ranges to add.- Returns:
- The next step.
- See Also:
-