public interface FilterPolicy extends XFilterPolicy
Most people will want to use the builtin bloom filter support (see NewBloomFilterPolicy() below).
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createFilter(List<Slice> keys)
Append a filter that summarizes keys[0,n-1] to *dst.
|
boolean |
keyMayMatch(Slice key,
Slice filter)
"filter" contains the data appended by a preceding call to
CreateFilter() on this class.
|
String |
name() |
String name()
byte[] createFilter(List<Slice> keys)
keys - keys[0,n-1] contains a list of keys (potentially with duplicates)
that are ordered according to the user supplied comparator.boolean keyMayMatch(Slice key, Slice filter)
Copyright © 2011–2020. All rights reserved.