Adds a Bloom-based hint indexer with MurMur hash

This commit is contained in:
Vitor Pamplona
2025-02-20 14:05:58 -05:00
parent 94e0f4ed02
commit aaf86bf53e
53 changed files with 5981 additions and 43 deletions
File diff suppressed because it is too large Load Diff
@@ -49,13 +49,12 @@ class BloomFilter(
fun add(value: HexKey) = add(value.hexToByteArray())
fun print(): String {
val builder = StringBuilder()
for (seed in 0 until bits.size()) {
builder.append(if (bits.get(seed)) "1" else "0")
fun print() =
buildString {
for (seed in 0 until bits.size()) {
append(if (bits.get(seed)) "1" else "0")
}
}
return builder.toString()
}
fun add(value: ByteArray) {
lock.write {