Interface AvgAggregationFieldStep<PDF extends SearchPredicateFactory>
- Type Parameters:
PDF
- The type of factory used to create predicates inAggregationFilterStep.filter(Function)
.
The initial step in an "avg" aggregation definition, where the target field can be set.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <F> AvgAggregationOptionsStep
<?, PDF, F> Target the given field in the avg aggregation.<F> AvgAggregationOptionsStep
<?, PDF, F> field
(String fieldPath, Class<F> type, ValueModel valueModel) Target the given field in the avg aggregation.
-
Method Details
-
field
Target the given field in the avg aggregation. -
field
<F> AvgAggregationOptionsStep<?,PDF, fieldF> (String fieldPath, Class<F> type, ValueModel valueModel) Target the given field in the avg aggregation.- Type Parameters:
F
- The type of field values orDouble
if a double result is required.- Parameters:
fieldPath
- The path to the index field to aggregate.type
- The type of field values.valueModel
- The model of aggregation values, used to determine how computed aggregation value should be converted. SeeValueModel
.- Returns:
- The next step.
-