Module: Pacer::Filter::BloomFilter
- Defined in:
- lib/pacer/filter/bloomfilter.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#bloomfilter ⇒ Object
Returns the value of attribute bloomfilter.
-
#expected_count ⇒ Object
Returns the value of attribute expected_count.
-
#false_pos_prob ⇒ Object
Returns the value of attribute false_pos_prob.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
16 17 18 |
# File 'lib/pacer/filter/bloomfilter.rb', line 16 def block @block end |
#bloomfilter ⇒ Object
Returns the value of attribute bloomfilter.
16 17 18 |
# File 'lib/pacer/filter/bloomfilter.rb', line 16 def bloomfilter @bloomfilter end |
#expected_count ⇒ Object
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_prob ⇒ Object
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 |
#uniq ⇒ Object
18 19 20 21 22 |
# File 'lib/pacer/filter/bloomfilter.rb', line 18 def uniq @except ||= [] @uniq = true self end |