Class: LogStash::Filters::Dictionary::Memory
- Inherits:
-
Object
- Object
- LogStash::Filters::Dictionary::Memory
- Defined in:
- lib/logstash/filters/dictionary/memory.rb
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
-
#fetch_strategy ⇒ Object
readonly
Returns the value of attribute fetch_strategy.
Instance Method Summary collapse
-
#initialize(hash, exact, regex) ⇒ Memory
constructor
A new instance of Memory.
- #stop_scheduler ⇒ Object
Constructor Details
#initialize(hash, exact, regex) ⇒ Memory
Returns a new instance of Memory.
9 10 11 12 13 14 15 16 |
# File 'lib/logstash/filters/dictionary/memory.rb', line 9 def initialize(hash, exact, regex) klass = case when exact && regex then FetchStrategy::Memory::ExactRegex when exact then FetchStrategy::Memory::Exact else FetchStrategy::Memory::RegexUnion end @fetch_strategy = klass.new(hash) end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
7 8 9 |
# File 'lib/logstash/filters/dictionary/memory.rb', line 7 def dictionary @dictionary end |
#fetch_strategy ⇒ Object (readonly)
Returns the value of attribute fetch_strategy.
7 8 9 |
# File 'lib/logstash/filters/dictionary/memory.rb', line 7 def fetch_strategy @fetch_strategy end |
Instance Method Details
#stop_scheduler ⇒ Object
18 19 20 |
# File 'lib/logstash/filters/dictionary/memory.rb', line 18 def stop_scheduler # noop end |