Interface RangeAggregationFieldStep<PDF extends SearchPredicateFactory>
-
- Type Parameters:
PDF
- The type of factory used to create predicates inAggregationFilterStep.filter(Function)
.
public interface RangeAggregationFieldStep<PDF extends SearchPredicateFactory>
The initial step in a "range" aggregation definition, where the target field can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <F> RangeAggregationRangeStep<?,PDF,F>
field(String fieldPath, Class<F> type)
Target the given field in the range aggregation.<F> RangeAggregationRangeStep<?,PDF,F>
field(String fieldPath, Class<F> type, ValueConvert convert)
Target the given field in the range aggregation.
-
-
-
Method Detail
-
field
default <F> RangeAggregationRangeStep<?,PDF,F> field(String fieldPath, Class<F> type)
Target the given field in the range aggregation.- Type Parameters:
F
- The type of field values.- Parameters:
fieldPath
- The path to the index field to aggregate.type
- The type of field values.- Returns:
- The next step.
-
field
<F> RangeAggregationRangeStep<?,PDF,F> field(String fieldPath, Class<F> type, ValueConvert convert)
Target the given field in the range aggregation.- Type Parameters:
F
- The type of field values.- Parameters:
fieldPath
- The path to the index field to aggregate.type
- The type of field values.convert
- Controls how the ranges passed to the next steps and fetched from the backend should be converted. SeeValueConvert
.- Returns:
- The next step.
-
-