Skip to content

Commit

Permalink
Merge pull request #609 from apache/update_master_from_6.1.1
Browse files Browse the repository at this point in the history
Update Master from 6.1.1
  • Loading branch information
jmalkin authored Oct 16, 2024
2 parents 9fa6ec3 + e9154ff commit 2e9b84e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/datasketches/theta/Sketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public static int getMaxCompactSketchBytes(final int numberOfEntries) {
* log_base2 of the number of nominal entries, which is a power of 2.
* @param lgNomEntries <a href="{@docRoot}/resources/dictionary.html#nomEntries">Nominal Entries</a>
* @return the maximum number of storage bytes required for a CompactSketch with the given
* nomEntries.
* lgNomEntries.
*/
public static int getCompactSketchMaxBytes(final int lgNomEntries) {
return (int)((2 << lgNomEntries) * ThetaUtil.REBUILD_THRESHOLD
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/apache/datasketches/theta/Sketches.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ public static int getMaxCompactSketchBytes(final int numberOfEntries) {

/**
* Returns the maximum number of storage bytes required for a CompactSketch given the configured
* number of nominal entries (power of 2).
* @param nomEntries <a href="{@docRoot}/resources/dictionary.html#nomEntries">Nominal Entries</a>
* log_base2 of the number of nominal entries, which is a power of 2.
* @param lgNomEntries <a href="{@docRoot}/resources/dictionary.html#nomEntries">Nominal Entries</a>
* @return the maximum number of storage bytes required for a CompactSketch with the given
* nomEntries.
* lgNomEntries.
* @see Sketch#getCompactSketchMaxBytes(int)
*/
public static int getCompactSketchMaxBytes(final int nomEntries) {
return Sketch.getCompactSketchMaxBytes(nomEntries);
public static int getCompactSketchMaxBytes(final int lgNomEntries) {
return Sketch.getCompactSketchMaxBytes(lgNomEntries);
}

/**
Expand Down

0 comments on commit 2e9b84e

Please sign in to comment.