Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yejunhao committed Apr 7, 2024
1 parent e9ee191 commit 61af77f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@
import org.apache.paimon.types.DataType;
import org.apache.paimon.utils.BloomFilter64;

import org.apache.hadoop.util.bloom.HashFunction;

import java.util.BitSet;

/** Bloom filter for file index. */
/**
* Bloom filter for file index.
*
* <p>Note: This class use {@link BloomFilter64} as a base filter. Store the num hash function (one
* integer) and bit set bytes only. Use {@link HashFunction} to hash the objects, which hash bytes
* type(like varchar, binary, etc.) using xx hash, hash numeric type by specified number hash(see
* http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm).
*/
public class BloomFilterFileIndex implements FileIndexer {

public static final String BLOOM_FILTER = "bloom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.BitSet;

/** Bloom filter 64 handle 64 bits hash. */
public class BloomFilter64 {
public final class BloomFilter64 {

private final BitSet bitSet;
private final int numBits;
Expand Down

0 comments on commit 61af77f

Please sign in to comment.