Skip to content

Commit

Permalink
Merge pull request #653 from apache/bloom_doc_typos
Browse files Browse the repository at this point in the history
Fix a few typos in BloomFilter javadocs
  • Loading branch information
jmalkin authored Feb 21, 2025
2 parents e1f3890 + 42a8a26 commit 5248900
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand All @@ -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.
*
* <p>Note: this will not produce the same output hash values as the {@link #queryAndUpdate(char[])}
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down Expand Up @@ -762,7 +762,7 @@ public static long getSerializedSize(final long numBits) {
* 3 ||---------------------------------NumBitsSet------------------------------------|
* </pre>
*
* The raw BitArray bits, if non-empty start at byte 24.
* The raw BitArray bits, if non-empty, start at byte 32.
*/

/**
Expand Down

0 comments on commit 5248900

Please sign in to comment.