Exemplo n.º 1
0
 public boolean isPresent(ByteBuffer key) {
   for (long bucketIndex : getHashBuckets(key)) {
     if (!bitset.fastGet(bucketIndex)) {
       return false;
     }
   }
   return true;
 }
Exemplo n.º 2
0
 @Override
 public boolean isPresent(byte[] key, int offset, int length) {
   for (long bucketIndex : getHashBuckets(key, offset, length)) {
     if (!bitset.fastGet(bucketIndex)) {
       return false;
     }
   }
   return true;
 }