Documentation ¶
Index ¶
- Constants
- func EstimateParameters(n uint, p float64) (uint, uint)
- type BitSetProvider
- type BloomFilter
- func (f *BloomFilter) Add(key string, data [][]byte) error
- func (f *BloomFilter) AddBitSetProvider(name string, bitSet BitSetProvider)
- func (f *BloomFilter) BitSetClear(name string)
- func (f *BloomFilter) BitSetOnline(name string, online bool)
- func (f *BloomFilter) Exists(key string, data [][]byte) ([]bool, error)
- func (f *BloomFilter) SetHashFunc(hf HashFunc)
- type BloomFilterInterface
- type BloomMeta
- type BloomMetaStore
- type BloomRotation
- type BloomRotationInterface
- type HashFunc
- type RedisBitSet
- type RedisBloomFilter
- func (f *RedisBloomFilter) Add(key string, data [][]byte) error
- func (f *RedisBloomFilter) AddBitSetProvider(name string, bitSet redisBitSetProvider)
- func (f *RedisBloomFilter) BitSetClear(name string)
- func (f *RedisBloomFilter) BitSetOnline(name string, online bool)
- func (f *RedisBloomFilter) Exists(key string, data [][]byte) ([]bool, error)
- type ReidsBloomMetaStore
- type ResetFunc
Constants ¶
View Source
const ( Redis_BloomMeta_Key = "bloommeta" Redis_BloomMeta_Lock_Key = "bloommeta_lock" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitSetProvider ¶
type BloomFilter ¶
type BloomFilter struct { BloomRotation // contains filtered or unexported fields }
func New ¶
func New(m uint, k uint) *BloomFilter
func (*BloomFilter) AddBitSetProvider ¶
func (f *BloomFilter) AddBitSetProvider(name string, bitSet BitSetProvider)
func (*BloomFilter) BitSetClear ¶
func (f *BloomFilter) BitSetClear(name string)
func (*BloomFilter) BitSetOnline ¶
func (f *BloomFilter) BitSetOnline(name string, online bool)
func (*BloomFilter) Exists ¶
func (f *BloomFilter) Exists(key string, data [][]byte) ([]bool, error)
func (*BloomFilter) SetHashFunc ¶
func (f *BloomFilter) SetHashFunc(hf HashFunc)
type BloomFilterInterface ¶
type BloomMetaStore ¶
type BloomRotation ¶
type BloomRotation struct {
// contains filtered or unexported fields
}
func (*BloomRotation) SetBloomMetaStore ¶
func (f *BloomRotation) SetBloomMetaStore(store BloomMetaStore)
func (*BloomRotation) StartRotation ¶
func (f *BloomRotation) StartRotation(activeProviderName string, rotationList []string, rotationInterval int64, overwirte bool)
type BloomRotationInterface ¶
type RedisBitSet ¶
type RedisBitSet struct {
// contains filtered or unexported fields
}
func NewRedisBitSet ¶
func NewRedisBitSet(redis *redis.Pool) *RedisBitSet
func (*RedisBitSet) Clear ¶
func (r *RedisBitSet) Clear()
func (*RedisBitSet) Online ¶
func (r *RedisBitSet) Online(online bool)
func (*RedisBitSet) SetBatchCount ¶
func (r *RedisBitSet) SetBatchCount(c int)
func (*RedisBitSet) SetResetFunc ¶
func (r *RedisBitSet) SetResetFunc(f ResetFunc)
type RedisBloomFilter ¶
type RedisBloomFilter struct { BloomRotation // contains filtered or unexported fields }
func NewRedisBloom ¶
func NewRedisBloom() *RedisBloomFilter
func (*RedisBloomFilter) AddBitSetProvider ¶
func (f *RedisBloomFilter) AddBitSetProvider(name string, bitSet redisBitSetProvider)
func (*RedisBloomFilter) BitSetClear ¶
func (f *RedisBloomFilter) BitSetClear(name string)
func (*RedisBloomFilter) BitSetOnline ¶
func (f *RedisBloomFilter) BitSetOnline(name string, online bool)
type ReidsBloomMetaStore ¶
type ReidsBloomMetaStore struct {
// contains filtered or unexported fields
}
func NewReidsBloomMetaStore ¶
func NewReidsBloomMetaStore(pool *redis.Pool) *ReidsBloomMetaStore
func (*ReidsBloomMetaStore) Get ¶
func (r *ReidsBloomMetaStore) Get() (*BloomMeta, error)
func (*ReidsBloomMetaStore) Lock ¶
func (r *ReidsBloomMetaStore) Lock() error
func (*ReidsBloomMetaStore) Save ¶
func (r *ReidsBloomMetaStore) Save(meta *BloomMeta) error
Click to show internal directories.
Click to hide internal directories.