Class: GroongaDelta::LocalDelta::SchemaTarget

Inherits:
Object
  • Object
show all
Includes:
ApplyLoggable
Defined in:
lib/groonga-delta/local-delta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, timestamp)
  @path = path
  @timestamp = timestamp
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



252
253
254
# File 'lib/groonga-delta/local-delta.rb', line 252

def path
  @path
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



253
254
255
# File 'lib/groonga-delta/local-delta.rb', line 253

def timestamp
  @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