From 42a8a2686f8e86087862a813b7600cf81310095f Mon Sep 17 00:00:00 2001 From: jmalkin <786705+jmalkin@users.noreply.github.com> Date: Fri, 21 Feb 2025 10:33:21 -0800 Subject: [PATCH] Fix a few typos in BloomFilter javadocs --- .../filters/bloomfilter/BloomFilter.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/apache/datasketches/filters/bloomfilter/BloomFilter.java b/src/main/java/org/apache/datasketches/filters/bloomfilter/BloomFilter.java index 171fc2cfb..7c166a29d 100644 --- a/src/main/java/org/apache/datasketches/filters/bloomfilter/BloomFilter.java +++ b/src/main/java/org/apache/datasketches/filters/bloomfilter/BloomFilter.java @@ -381,7 +381,7 @@ private void updateInternal(final long h0, final long h1) { /** * Updates the filter with the provided long and - * returns the result from quering that value prior to the update. + * returns the result from querying that value prior to the update. * @param item an item with which to update the filter * @return The query result prior to applying the update */ @@ -393,7 +393,7 @@ public boolean queryAndUpdate(final long item) { /** * Updates the filter with the provided double and - * returns the result from quering that value prior to the update. + * returns the result from querying that value prior to the update. * The double is canonicalized (NaN and +/- infinity) in the call. * @param item an item with which to update the filter * @return The query result prior to applying the update @@ -408,7 +408,7 @@ public boolean queryAndUpdate(final double item) { /** * Updates the filter with the provided String and - * returns the result from quering that value prior to the update. + * returns the result from querying that value prior to the update. * The string is converted to a byte array using UTF8 encoding. * *
Note: this will not produce the same output hash values as the {@link #queryAndUpdate(char[])} @@ -428,7 +428,7 @@ public boolean queryAndUpdate(final String item) { /** * Updates the filter with the provided byte[] and - * returns the result from quering that array prior to the update. + * returns the result from querying that array prior to the update. * @param data an array with which to update the filter * @return The query result prior to applying the update, or false if data is null */ @@ -440,7 +440,7 @@ public boolean queryAndUpdate(final byte[] data) { /** * Updates the filter with the provided char[] and - * returns the result from quering that array prior to the update. + * returns the result from querying that array prior to the update. * @param data an array with which to update the filter * @return The query result prior to applying the update, or false if data is null */ @@ -453,7 +453,7 @@ public boolean queryAndUpdate(final char[] data) { /** * Updates the filter with the provided short[] and - * returns the result from quering that array prior to the update. + * returns the result from querying that array prior to the update. * @param data an array with which to update the filter * @return The query result prior to applying the update, or false if data is null */ @@ -466,7 +466,7 @@ public boolean queryAndUpdate(final short[] data) { /** * Updates the filter with the provided int[] and - * returns the result from quering that array prior to the update. + * returns the result from querying that array prior to the update. * @param data an array with which to update the filter * @return The query result prior to applying the update, or false if data is null */ @@ -479,7 +479,7 @@ public boolean queryAndUpdate(final int[] data) { /** * Updates the filter with the provided long[] and - * returns the result from quering that array prior to the update. + * returns the result from querying that array prior to the update. * @param data an array with which to update the filter * @return The query result prior to applying the update, or false if data is null */ @@ -492,7 +492,7 @@ public boolean queryAndUpdate(final long[] data) { /** * Updates the filter with the provided Memory and - * returns the result from quering that Memory prior to the update. + * returns the result from querying that Memory prior to the update. * @param mem an array with which to update the filter * @return The query result prior to applying the update, or false if mem is null */ @@ -762,7 +762,7 @@ public static long getSerializedSize(final long numBits) { * 3 ||---------------------------------NumBitsSet------------------------------------| * * - * The raw BitArray bits, if non-empty start at byte 24. + * The raw BitArray bits, if non-empty, start at byte 32. */ /**