Class: GroongaDelta::LocalDelta::SchemaTarget
- Inherits:
-
Object
- Object
- GroongaDelta::LocalDelta::SchemaTarget
- Includes:
- ApplyLoggable
- Defined in:
- lib/groonga-delta/local-delta.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #apply(logger, client, processor) ⇒ Object
-
#initialize(path, timestamp) ⇒ SchemaTarget
constructor
A new instance of SchemaTarget.
Constructor Details
#initialize(path, timestamp) ⇒ SchemaTarget
Returns a new instance of SchemaTarget.
254 255 256 257 |
# File 'lib/groonga-delta/local-delta.rb', line 254 def initialize(path, ) @path = path @timestamp = end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
252 253 254 |
# File 'lib/groonga-delta/local-delta.rb', line 252 def path @path end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
253 254 255 |
# File 'lib/groonga-delta/local-delta.rb', line 253 def @timestamp end |
Instance Method Details
#apply(logger, client, processor) ⇒ Object
259 260 261 262 263 |
# File 'lib/groonga-delta/local-delta.rb', line 259 def apply(logger, client, processor) apply_log(logger, @path) do processor.load(@path) end end |