class AverageAggregate extends AbstractAggregator<DoubleAverageAggregatorValue> implements Serializable {

    @Override
    public DoubleAverageAggregatorValue aggregate(RowTraversal traversal, Column<?> column) {

        DoubleAverageAggregatorValue averageValue = new DoubleAverageAggregatorValue();
        RowTraversal notNullTraversal = getNotNullTraversal(traversal, column);
        averageValue.setValue((getSumValue(traversal, column)).getValue());
        averageValue.setRowCount(notNullTraversal.getCardinality());
        return averageValue;
    }

}