tylerchr / parallel-database

An experimental parallelized database optimized for read performance
2 stars 0 forks source link

Implement accumulator reduction #4

Open tylerchr opened 8 years ago

tylerchr commented 8 years ago

In order to parallelize, we will have various nodes each working on an accumulator. In order to reduce those results together, we need a way (maybe a method in the Accumulator interface?) to combine multiple accumulators together.

For example:

This will result in four different AverageAccumulator instances, and we need a way to reduce those four into a single AverageAccumulator.