Search in sources :

Example 11 with HllSketch

use of org.apache.datasketches.hll.HllSketch in project druid by druid-io.

the class HllSketchAggregatorFactoryTest method getMockSketch.

private static HllSketch getMockSketch() {
    HllSketch sketch = EasyMock.mock(HllSketch.class);
    EasyMock.expect(sketch.getEstimate()).andReturn(ESTIMATE);
    EasyMock.replay(sketch);
    return sketch;
}
Also used : HllSketch(org.apache.datasketches.hll.HllSketch)

Aggregations

HllSketch (org.apache.datasketches.hll.HllSketch)11 Union (org.apache.datasketches.hll.Union)5 WritableMemory (org.apache.datasketches.memory.WritableMemory)3 Interval (org.joda.time.Interval)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 ThreadLocalRandom (java.util.concurrent.ThreadLocalRandom)2 Nullable (javax.annotation.Nullable)2 Granularity (org.apache.druid.java.util.common.granularity.Granularity)2 DateTime (org.joda.time.DateTime)2 JsonCreator (com.fasterxml.jackson.annotation.JsonCreator)1 JsonProperty (com.fasterxml.jackson.annotation.JsonProperty)1 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 SmileMediaTypes (com.fasterxml.jackson.jaxrs.smile.SmileMediaTypes)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Preconditions (com.google.common.base.Preconditions)1 Throwables (com.google.common.base.Throwables)1 ArrayListMultimap (com.google.common.collect.ArrayListMultimap)1 ImmutableMap (com.google.common.collect.ImmutableMap)1