protected class FusedView.FusedBloomFilter extends Object implements IBloomFilter
Modifier | Constructor and Description |
---|---|
protected |
FusedView.FusedBloomFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(byte[] key)
Unsupported operation.
|
boolean |
contains(byte[] key)
Applies the
IBloomFilter for each source index in turn and
returns true if ANY of the component index filters
return true (if any filters say that their index has
data for that key then you need to read the index). |
void |
falsePos()
This implementation notifies the bloom filter for the first source
index (if it exists).
|
public boolean add(byte[] key)
add
in interface IBloomFilter
key
- The key.true
iff the filter state was unchanged by the
incorporation of this key into the filter.UnsupportedOperationException
- always.public boolean contains(byte[] key)
IBloomFilter
for each source index in turn and
returns true
if ANY of the component index filters
return true
(if any filters say that their index has
data for that key then you need to read the index). If a filter does
not exist (or has been disabled) for a given component index then the
code treats the filter as always reporting true
(that
is, forcing us to check the index). So a source component index
without a bloom filter or an index with a disabled bloom filter acts
as its filter has a high false positive rate, however the test is a
NOP so it is cheap.contains
in interface IBloomFilter
key
- The key.true
if the filter has either that key or some key
that is hash equivalent to that key using the hashing function
imposed by the filter; false
iff the filter can
guarantee that the key has not been added to the filter.public void falsePos()
AccessPath
also tests the bloom filter and needs a
means to report false positives. It should be the only one that calls
this method on this implementation class.falsePos
in interface IBloomFilter
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.