protected void processInput(GroupByIdBlock groupIdsBlock, Block values, Optional<Block> maskBlock, Optional<Block> sampleWeightBlock)
{
checkArgument(!sampleWeightBlock.isPresent(), "Sampled data not supported");
groupedState.ensureCapacity(groupIdsBlock.getGroupCount());
Block masks = null;
if (maskBlock.isPresent()) {
masks = maskBlock.get();
}
for (int position = 0; position < groupIdsBlock.getPositionCount(); position++) {
if (masks != null && !masks.getBoolean(position)) {
continue;
}
if (!values.isNull(position)) {
groupedState.setGroupId(groupIdsBlock.getGroupId(position));
AbstractAggregationFunction.this.processInput(state, values, position);