private int isKeyinPage(ImmutableBytesPtr key, int index) { // use BloomFilter to determine if key is contained in page // prevent expensive IO if (bFilters.get(index).mightContain(key.copyBytes())) { return index; } return -1; }
private void addKeyToBloomFilter(int index, ImmutableBytesPtr key) { BloomFilter<byte[]> bFilter = bFilters.get(index); bFilter.put(key.copyBytes()); }