Module org.elasticsearch.compute
Class DenseVectorCountGroupingAggregatorFunction
java.lang.Object
org.elasticsearch.compute.aggregation.CountGroupingAggregatorFunction
org.elasticsearch.compute.aggregation.DenseVectorCountGroupingAggregatorFunction
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorFunction,org.elasticsearch.core.Releasable
Specialized CountGroupingAggregatorFunction for dense_vectors. dense_vectors are represented as multivalued fields,
so we should only count 1 value for each dense_vector row instead of counting the number of values
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.compute.aggregation.GroupingAggregatorFunction
GroupingAggregatorFunction.AddInput, GroupingAggregatorFunction.PreparedForEvaluation -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetBlockValueCountAtPosition(Block values, int position) Returns the number of values at a given position in a blockMethods inherited from class org.elasticsearch.compute.aggregation.CountGroupingAggregatorFunction
addIntermediateInput, addIntermediateInput, addIntermediateInput, close, intermediateBlockCount, intermediateStateDesc, prepareEvaluateFinal, prepareEvaluateIntermediate, prepareProcessRawInputPage, selectedMayContainUnseenGroups, toString
-
Method Details
-
getBlockValueCountAtPosition
Description copied from class:CountGroupingAggregatorFunctionReturns the number of values at a given position in a block- Overrides:
getBlockValueCountAtPositionin classCountGroupingAggregatorFunction- Parameters:
values- blockposition- position to get the number of values- Returns:
-