Documentation ¶
Index ¶
- func MurmurHash64ABloom(key []byte, seed uint64) uint64
- func StringToBytes(s string) []byte
- type RedCuckooFilter
- func (cf *RedCuckooFilter) Check(data []byte) bool
- func (cf *RedCuckooFilter) Delete(data []byte)
- func (c *RedCuckooFilter) Hash(value []byte) uint64
- func (cf *RedCuckooFilter) Insert(data []byte, isNx bool)
- func (cf *RedCuckooFilter) LoadFrom(dump string, iter int64) bool
- func (cf *RedCuckooFilter) Release()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MurmurHash64ABloom ¶
func StringToBytes ¶
StringToBytes converts string to byte slice without memory allocation.
Types ¶
type RedCuckooFilter ¶
type RedCuckooFilter struct {
// contains filtered or unexported fields
}
func NewCuckooFilter ¶
func NewCuckooFilter(capacity uint, bucketSize, maxIterations, expansion uint) *RedCuckooFilter
func (*RedCuckooFilter) Check ¶
func (cf *RedCuckooFilter) Check(data []byte) bool
int CuckooFilter_Check(const CuckooFilter *filter, CuckooHash hash);
func (*RedCuckooFilter) Delete ¶
func (cf *RedCuckooFilter) Delete(data []byte)
int CuckooFilter_Delete(CuckooFilter *filter, CuckooHash hash);
func (*RedCuckooFilter) Hash ¶
func (c *RedCuckooFilter) Hash(value []byte) uint64
func (*RedCuckooFilter) Insert ¶
func (cf *RedCuckooFilter) Insert(data []byte, isNx bool)
func (*RedCuckooFilter) LoadFrom ¶
func (cf *RedCuckooFilter) LoadFrom(dump string, iter int64) bool
func (*RedCuckooFilter) Release ¶
func (cf *RedCuckooFilter) Release()
Click to show internal directories.
Click to hide internal directories.