Class DoubleAccumulator

java.lang.Object
io.datarouter.bytes.primitivelist.accumulator.DoubleAccumulator
All Implemented Interfaces:
Iterable<Double>

public class DoubleAccumulator extends Object implements Iterable<Double>
Accumulates a large quantity of primitive doubles. Stores them in paged primitive double arrays. Avoids a large resizing (usually doubling) of the backing array. Not thread safe. This could be promoted to datarouter, but we'd want to improve performance using bit shifting. It could also be enhanced into a PrimitiveDoubleList, but would need support for more operations, more tests.