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 2023/02/08 22:51:18 UTC
[datasketches-java] branch theta_compact_iterator updated: use more suitable iterator
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch theta_compact_iterator
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
The following commit(s) were added to refs/heads/theta_compact_iterator by this push:
new 9d26a602 use more suitable iterator
9d26a602 is described below
commit 9d26a6029935df277f7dbb5c42909373e351d833
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed Feb 8 14:51:12 2023 -0800
use more suitable iterator
---
src/main/java/org/apache/datasketches/theta/EmptyCompactSketch.java | 2 +-
src/main/java/org/apache/datasketches/theta/SingleItemSketch.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/datasketches/theta/EmptyCompactSketch.java b/src/main/java/org/apache/datasketches/theta/EmptyCompactSketch.java
index 888ceaab..09165177 100644
--- a/src/main/java/org/apache/datasketches/theta/EmptyCompactSketch.java
+++ b/src/main/java/org/apache/datasketches/theta/EmptyCompactSketch.java
@@ -113,7 +113,7 @@ final class EmptyCompactSketch extends CompactSketch {
@Override
public HashIterator iterator() {
- return new HeapHashIterator(new long[0], Long.MAX_VALUE);
+ return new HeapCompactHashIterator(new long[0]);
}
/**
diff --git a/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java b/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
index 81f9b884..a4bac21c 100644
--- a/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
+++ b/src/main/java/org/apache/datasketches/theta/SingleItemSketch.java
@@ -320,7 +320,7 @@ final class SingleItemSketch extends CompactSketch {
@Override
public HashIterator iterator() {
- return new HeapHashIterator(new long[] { hash_ }, Long.MAX_VALUE);
+ return new HeapCompactHashIterator(new long[] { hash_ });
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org