Module org.elasticsearch.compute
Class DenseVectorCountApproximateGroupingAggregatorFunction
java.lang.Object
org.elasticsearch.compute.aggregation.CountApproximateGroupingAggregatorFunction
org.elasticsearch.compute.aggregation.DenseVectorCountApproximateGroupingAggregatorFunction
- All Implemented Interfaces:
Closeable,AutoCloseable,GroupingAggregatorFunction,org.elasticsearch.core.Releasable
public class DenseVectorCountApproximateGroupingAggregatorFunction
extends CountApproximateGroupingAggregatorFunction
Specialized
CountApproximateGroupingAggregatorFunction 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 dimensions.-
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.CountApproximateGroupingAggregatorFunction
addIntermediateInput, addIntermediateInput, addIntermediateInput, close, intermediateBlockCount, intermediateStateDesc, prepareEvaluateFinal, prepareEvaluateIntermediate, prepareProcessRawInputPage, selectedMayContainUnseenGroups, toString
-
Method Details
-
getBlockValueCountAtPosition
Description copied from class:CountApproximateGroupingAggregatorFunctionReturns the number of values at a given position in a block- Overrides:
getBlockValueCountAtPositionin classCountApproximateGroupingAggregatorFunction- Parameters:
values- blockposition- position to get the number of values- Returns:
-