aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/UniqueCountEstimator.java
blob: bf28ea8186fd7d39c5a0fc11f020bf1e19e2cd33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.aggregation.hll;

/**
 * A interface for unique count estimation algorithms. The goal of this interface is
 * to aid unit testing of {@link HyperLogLogEstimator} users.
 *
 * @author bjorncs
 */
public interface UniqueCountEstimator<T> {

    long estimateCount(T sketch);

}