NormalSketch extends Sketch<NormalSketch> { @Override public void aggregate(Iterable<Integer> hashValues) { for (int hash : hashValues) { aggregate(hash); } } NormalSketch();  NormalSketch(int precision); @Override void merge(NormalSketch other); @Override void aggregate(Iterable<Integer> hashValues); @Override void aggregate(int hash); byte[] data(); int size(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int classId; }
@Test public void requireThatSketchBucketsAreCorrectForMultipleValues() { NormalSketch sketch = new NormalSketch(10); sketch.aggregate(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)); for (int i = 0; i < 10; i++) { assertBucketEquals(sketch, i, 23); } for (int i = 10; i < 1024; i++) { assertBucketEquals(sketch, i, 0); } }