You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2022/07/18 22:48:27 UTC
[datasketches-java] 02/02: finals
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch quantiles_sketch_sorted_view
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
commit 5dc18d25874d47e680b6db9f19350b4a550bc883
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon Jul 18 15:48:19 2022 -0700
finals
---
.../org/apache/datasketches/kll/KllFloatsSketchTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/test/java/org/apache/datasketches/kll/KllFloatsSketchTest.java b/src/test/java/org/apache/datasketches/kll/KllFloatsSketchTest.java
index 7d617233..cb1951ff 100644
--- a/src/test/java/org/apache/datasketches/kll/KllFloatsSketchTest.java
+++ b/src/test/java/org/apache/datasketches/kll/KllFloatsSketchTest.java
@@ -542,13 +542,13 @@ public class KllFloatsSketchTest {
@Test
public void sortedView() {
- KllFloatsSketch sk = KllFloatsSketch.newHeapInstance();
+ final KllFloatsSketch sk = KllFloatsSketch.newHeapInstance();
sk.update(3);
sk.update(1);
sk.update(2);
{ // non-cumulative (inclusive does not matter in this case)
- KllFloatsSketchSortedView view = sk.getSortedView(false, false);
- KllFloatsSketchSortedViewIterator it = view.iterator();
+ final KllFloatsSketchSortedView view = sk.getSortedView(false, false);
+ final KllFloatsSketchSortedViewIterator it = view.iterator();
assertEquals(it.next(), true);
assertEquals(it.getValue(), 1);
assertEquals(it.getWeight(), 1);
@@ -565,8 +565,8 @@ public class KllFloatsSketchTest {
} catch(SketchesStateException e) {}
}
{ // cumulative, non-inclusive
- KllFloatsSketchSortedView view = sk.getSortedView(true, false);
- KllFloatsSketchSortedViewIterator it = view.iterator();
+ final KllFloatsSketchSortedView view = sk.getSortedView(true, false);
+ final KllFloatsSketchSortedViewIterator it = view.iterator();
assertEquals(it.next(), true);
assertEquals(it.getValue(), 1);
assertEquals(it.getWeight(), 0);
@@ -579,8 +579,8 @@ public class KllFloatsSketchTest {
assertEquals(it.next(), false);
}
{ // cumulative, inclusive
- KllFloatsSketchSortedView view = sk.getSortedView(true, true);
- KllFloatsSketchSortedViewIterator it = view.iterator();
+ final KllFloatsSketchSortedView view = sk.getSortedView(true, true);
+ final KllFloatsSketchSortedViewIterator it = view.iterator();
assertEquals(it.next(), true);
assertEquals(it.getValue(), 1);
assertEquals(it.getWeight(), 1);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org