Class: HadoopDsl::LogAnalysis::LogAnalysisReducerModel
- Inherits:
-
BaseReducerModel
- Object
- BaseModel
- BaseReducerModel
- HadoopDsl::LogAnalysis::LogAnalysisReducerModel
- Defined in:
- lib/log_analysis.rb
Defined Under Namespace
Classes: Topic
Instance Attribute Summary collapse
-
#current_topic ⇒ Object
readonly
Returns the value of attribute current_topic.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Attributes inherited from BaseReducerModel
Attributes inherited from BaseModel
Instance Method Summary collapse
- #create_topic(desc, options) ⇒ Object
-
#initialize(key, values) ⇒ LogAnalysisReducerModel
constructor
A new instance of LogAnalysisReducerModel.
Methods included from DslElement
Constructor Details
#initialize(key, values) ⇒ LogAnalysisReducerModel
Returns a new instance of LogAnalysisReducerModel.
192 193 194 195 196 197 |
# File 'lib/log_analysis.rb', line 192 def initialize(key, values) super(key, values) if key =~ /(\w*)#{KEY_SEP}?(.*)/ @topic = Topic.new($1, values) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement
Instance Attribute Details
#current_topic ⇒ Object (readonly)
Returns the value of attribute current_topic.
190 191 192 |
# File 'lib/log_analysis.rb', line 190 def current_topic @current_topic end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
190 191 192 |
# File 'lib/log_analysis.rb', line 190 def topic @topic end |