Class: LogStash::PluginMixins::JdbcStreaming::PreparedStatementHandler
- Inherits:
-
StatementHandler
- Object
- StatementHandler
- LogStash::PluginMixins::JdbcStreaming::PreparedStatementHandler
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb
Instance Attribute Summary collapse
-
#bind_values_array ⇒ Object
readonly
Returns the value of attribute bind_values_array.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prepared ⇒ Object
readonly
Returns the value of attribute prepared.
-
#statement_prepared ⇒ Object
readonly
Returns the value of attribute statement_prepared.
Attributes inherited from StatementHandler
#cache, #parameters, #statement
Instance Method Summary collapse
-
#cache_lookup(db, event) ⇒ Object
Get from cache or performs remote lookup and saves to cache.
Methods inherited from StatementHandler
build_statement_handler, #initialize
Methods included from LogStash::PluginMixins::Jdbc::ValueHandler
#decorate_value, #extract_values_from
Constructor Details
This class inherits a constructor from LogStash::PluginMixins::JdbcStreaming::StatementHandler
Instance Attribute Details
#bind_values_array ⇒ Object (readonly)
Returns the value of attribute bind_values_array.
103 104 105 |
# File 'lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb', line 103 def bind_values_array @bind_values_array end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
103 104 105 |
# File 'lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb', line 103 def name @name end |
#prepared ⇒ Object (readonly)
Returns the value of attribute prepared.
103 104 105 |
# File 'lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb', line 103 def prepared @prepared end |
#statement_prepared ⇒ Object (readonly)
Returns the value of attribute statement_prepared.
103 104 105 |
# File 'lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb', line 103 def statement_prepared @statement_prepared end |
Instance Method Details
#cache_lookup(db, event) ⇒ Object
Get from cache or performs remote lookup and saves to cache
109 110 111 112 |
# File 'lib/logstash/plugin_mixins/jdbc_streaming/statement_handler.rb', line 109 def cache_lookup(db, event) build_prepared_statement(db) common_cache_lookup(db, event) end |