Module: Pacer::Filter::BloomFilter

Defined in:
lib/pacer/filter/bloomfilter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block.



16
17
18
# File 'lib/pacer/filter/bloomfilter.rb', line 16

def block
  @block
end

#bloomfilterObject

Returns the value of attribute bloomfilter.



16
17
18
# File 'lib/pacer/filter/bloomfilter.rb', line 16

def bloomfilter
  @bloomfilter
end

#expected_countObject

Returns the value of attribute expected_count.



16
17
18
# File 'lib/pacer/filter/bloomfilter.rb', line 16

def expected_count
  @expected_count
end

#false_pos_probObject

Returns the value of attribute false_pos_prob.



16
17
18
# File 'lib/pacer/filter/bloomfilter.rb', line 16

def false_pos_prob
  @false_pos_prob
end

Instance Method Details

#except(others) ⇒ Object



24
25
26
27
28
# File 'lib/pacer/filter/bloomfilter.rb', line 24

def except(others)
  @except ||= []
  @except << others
  self
end

#only(others) ⇒ Object



30
31
32
33
34
# File 'lib/pacer/filter/bloomfilter.rb', line 30

def only(others)
  @only ||= []
  @only << others
  self
end

#uniqObject



18
19
20
21
22
# File 'lib/pacer/filter/bloomfilter.rb', line 18

def uniq
  @except ||= []
  @uniq = true
  self
end