|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.BloomFilter.BloomFilterCounters
public static class BloomFilter.BloomFilterCounters
Counters for bloom filter access and notification of false positives.
BTreeCounters?| Field Summary | |
|---|---|
int |
nbloomAdd
#of keys added to the bloom filter. |
int |
nbloomFalsePos
#of false positives from the bloom filter in contains/lookup(key). |
int |
nbloomRejects
#of keys rejected by the bloom filter in contains/lookup(key). |
int |
nbloomTest
#of keys tested by the bloom filter in contains/lookup(key). |
| Constructor Summary | |
|---|---|
BloomFilter.BloomFilterCounters()
|
|
| Method Summary | |
|---|---|
void |
add(BloomFilter.BloomFilterCounters o)
|
double |
getBloomAcceptRate()
The effective acceptance rate for the bloom filter ( 1 - rejectRate). |
double |
getBloomErrorRate()
The effective error rate (false positive rate) for the bloom filter. |
String |
getBloomFilterPerformance()
Returns a human readable representation of the bloom filter performance, including the correct rejection rate and the false positive rate to date (or at least since the bloom filter was read from the store). |
double |
getBloomRejectionRate()
The effective rejection rate (correct rejection rate) for the bloom filter. |
ICounterSet |
getCounters()
Return a CounterSet reporting on the various counters tracked
in the instance fields of this class. |
String |
toString()
XML representation of the CounterSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int nbloomAdd
public int nbloomTest
public int nbloomRejects
public int nbloomFalsePos
| Constructor Detail |
|---|
public BloomFilter.BloomFilterCounters()
| Method Detail |
|---|
public void add(BloomFilter.BloomFilterCounters o)
o - BTreeCounters are summarized.public double getBloomAcceptRate()
1 - rejectRate).
This is the rate at which the bloom filter reports that the key is in
the index. False positives occur when the filter accepts a key and
the index is consulted but the key is not found in the index.
public double getBloomRejectionRate()
public double getBloomErrorRate()
public ICounterSet getCounters()
CounterSet reporting on the various counters tracked
in the instance fields of this class.
FIXME Integrate with BTreeCounters. This needs to happen when we
setup the bloom filter, so that is in _reopen() for both
BTree and IndexSegment.
public String toString()
CounterSet.
toString in class Objectpublic String getBloomFilterPerformance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||