aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-12-03 15:33:31 -0800
committerJon Bratseth <bratseth@yahoo-inc.com>2016-12-03 15:33:31 -0800
commit63ab72220f5ec6831cc9567949abe05b8056caef (patch)
tree85c56a49aa7cdf987e4973fa2a709c54e5145482 /searchlib
parent328b9da010a66558c8d4078df9d0d248d82c5ee9 (diff)
Rename method
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogEstimator.java4
-rw-r--r--searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/SparseSketch.java2
-rw-r--r--searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/BiasEstimatorTest.java2
-rw-r--r--searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/NormalSketchTest.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogEstimator.java b/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogEstimator.java
index 7055686a4c0..f8e28ee1cb1 100644
--- a/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogEstimator.java
+++ b/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogEstimator.java
@@ -42,10 +42,10 @@ public class HyperLogLogEstimator implements UniqueCountEstimator<Sketch<?>> {
}
/**
- * Estimates the number of unique elements.
+ * Estimates the number of unique labels.
*
* @param sketch A sketch populated with values from the aggregation phase of HLL.
- * @return The estimated number of unique elements.
+ * @return The estimated number of unique labels.
*/
@Override
public long estimateCount(Sketch<?> sketch) {
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/SparseSketch.java b/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/SparseSketch.java
index fbfd08be6b0..6c40befb124 100644
--- a/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/SparseSketch.java
+++ b/searchlib/src/main/java/com/yahoo/searchlib/aggregation/hll/SparseSketch.java
@@ -43,7 +43,7 @@ public class SparseSketch extends Sketch<SparseSketch> {
*
* Serialization format
* ==================
- * Number of elements: 4 bytes
+ * Number of labels: 4 bytes
* Elements: N * 4 bytes
* @param buf Serializer
*/
diff --git a/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/BiasEstimatorTest.java b/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/BiasEstimatorTest.java
index 307214d8c1c..01a43b0e437 100644
--- a/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/BiasEstimatorTest.java
+++ b/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/BiasEstimatorTest.java
@@ -55,7 +55,7 @@ public class BiasEstimatorTest {
@Test
public void requireThatLinearInterpolationIsCorrect() {
BiasEstimator estimator = new BiasEstimator(10);
- double rawEstimate = (738.1256 + 750.4234) / 2; // average of two first elements
+ double rawEstimate = (738.1256 + 750.4234) / 2; // average of two first labels
double expectedBias = (737.1256 + 724.4234) / 2;
assertEstimateEquals(expectedBias, rawEstimate, estimator);
diff --git a/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/NormalSketchTest.java b/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/NormalSketchTest.java
index 3b0a584f37b..4ee5804b814 100644
--- a/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/NormalSketchTest.java
+++ b/searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/NormalSketchTest.java
@@ -20,7 +20,7 @@ public class NormalSketchTest {
@Test
public void requireThatSerializationIsCorrectForIncompressibleData() {
- // A sketch of precision 1 contains only two elements and will therefore not be compressible.
+ // A sketch of precision 1 contains only two labels and will therefore not be compressible.
testSerializationForPrecision(1);
}