@Override public void aggregateInputSelection( VectorAggregationBufferRow[] aggregationBufferSets, int aggregateIndex, VectorizedRowBatch batch) throws HiveException { int batchSize = batch.size; if (batchSize == 0) { return; } // count(*) cares not about NULLs nor selection for (int i=0; i < batchSize; ++i) { Aggregation myAgg = getCurrentAggregationBuffer( aggregationBufferSets, aggregateIndex, i); ++myAgg.count; } }
public VectorUDAFCountStar(VectorAggregationDesc vecAggrDesc) { super(vecAggrDesc); init(); }
@Override public void aggregateInputSelection( VectorAggregationBufferRow[] aggregationBufferSets, int aggregateIndex, VectorizedRowBatch batch) throws HiveException { int batchSize = batch.size; if (batchSize == 0) { return; } // count(*) cares not about NULLs nor selection for (int i=0; i < batchSize; ++i) { Aggregation myAgg = getCurrentAggregationBuffer( aggregationBufferSets, aggregateIndex, i); ++myAgg.count; } }
@Override public void aggregateInputSelection( VectorAggregationBufferRow[] aggregationBufferSets, int aggregateIndex, VectorizedRowBatch batch) throws HiveException { int batchSize = batch.size; if (batchSize == 0) { return; } // count(*) cares not about NULLs nor selection for (int i=0; i < batchSize; ++i) { Aggregation myAgg = getCurrentAggregationBuffer( aggregationBufferSets, aggregateIndex, i); ++myAgg.count; } }