Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BirolLab/RNA-Bloom
/ getIndex
Method
getIndex
src/rnabloom/bloom/SimpleBloomFilter.java:42–45 ·
view source on GitHub ↗
(String key)
Source
from the content-addressed store, hash-verified
40
}
41
42
protected
long getIndex(String key) {
43
long hashCode = (long) key.hashCode();
44
return
(hashCode + (long) Integer.MAX_VALUE + 1L) % size;
45
}
46
47
@Override
48
public
void
add(String key) {
Callers
3
add
Method · 0.95
lookup
Method · 0.95
lookupAndAdd
Method · 0.95
Calls
1
hashCode
Method · 0.80
Tested by
no test coverage detected