Example #1
0
 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;
 }
Example #2
0
 private void addKeyToBloomFilter(int index, ImmutableBytesPtr key) {
   BloomFilter<byte[]> bFilter = bFilters.get(index);
   bFilter.put(key.copyBytes());
 }