HOG2
|
#include <MinBloom.h>
Public Member Functions | |
MinBloomFilter (uint64_t numItems, double targetHitRate, bool save, bool zero=true) | |
MinBloomFilter (uint64_t filterSize, int numHash, bool save, bool zero=true) | |
MinBloomFilter (uint64_t filterSize, int numHash, const char *loadPrefix) | |
~MinBloomFilter () | |
void | Analyze () |
void | Insert (uint64_t item, int depth) |
int | Contains (uint64_t item) |
uint64_t | GetStorage () |
int | GetNumHash () |
void | Load () |
Private Member Functions | |
uint64_t | Hash (uint64_t value, int which) |
Private Attributes | |
int | numHash |
bool | saveAtExit |
uint64_t | filterSize |
FourBitArray * | bits |
Definition at line 15 of file MinBloom.h.
MinBloomFilter::MinBloomFilter | ( | uint64_t | numItems, |
double | targetHitRate, | ||
bool | save, | ||
bool | zero = true |
||
) |
Definition at line 55 of file MinBloom.cpp.
References bits, filterSize, numHash, and saveAtExit.
MinBloomFilter::MinBloomFilter | ( | uint64_t | filterSize, |
int | numHash, | ||
bool | save, | ||
bool | zero = true |
||
) |
Definition at line 32 of file MinBloom.cpp.
References bits, FourBitArray::FillMax(), filterSize, numHash, and saveAtExit.
MinBloomFilter::MinBloomFilter | ( | uint64_t | filterSize, |
int | numHash, | ||
const char * | loadPrefix | ||
) |
Definition at line 41 of file MinBloom.cpp.
References bits, filterSize, numHash, FourBitArray::Read(), and saveAtExit.
MinBloomFilter::~MinBloomFilter | ( | ) |
Definition at line 88 of file MinBloom.cpp.
References bits, filterSize, numHash, saveAtExit, and FourBitArray::Write().
void MinBloomFilter::Analyze | ( | ) |
Definition at line 101 of file MinBloom.cpp.
References bits, FourBitArray::Get(), and FourBitArray::Size().
int MinBloomFilter::Contains | ( | uint64_t | item | ) |
Definition at line 131 of file MinBloom.cpp.
References bits, filterSize, FourBitArray::Get(), Hash(), max, and numHash.
|
inline |
Definition at line 25 of file MinBloom.h.
References numHash.
|
inline |
Definition at line 24 of file MinBloom.h.
References filterSize.
|
private |
Definition at line 144 of file MinBloom.cpp.
Referenced by Contains(), and Insert().
void MinBloomFilter::Insert | ( | uint64_t | item, |
int | depth | ||
) |
Definition at line 121 of file MinBloom.cpp.
References bits, filterSize, FourBitArray::Get(), Hash(), min(), numHash, and FourBitArray::Set().
void MinBloomFilter::Load | ( | ) |
Definition at line 113 of file MinBloom.cpp.
References bits, filterSize, numHash, FourBitArray::Read(), and saveAtExit.
|
private |
Definition at line 32 of file MinBloom.h.
Referenced by Analyze(), Contains(), Insert(), Load(), MinBloomFilter(), and ~MinBloomFilter().
|
private |
Definition at line 31 of file MinBloom.h.
Referenced by Contains(), GetStorage(), Insert(), Load(), MinBloomFilter(), and ~MinBloomFilter().
|
private |
Definition at line 29 of file MinBloom.h.
Referenced by Contains(), GetNumHash(), Insert(), Load(), MinBloomFilter(), and ~MinBloomFilter().
|
private |
Definition at line 30 of file MinBloom.h.
Referenced by Load(), MinBloomFilter(), and ~MinBloomFilter().