Class: GraphAgent::Checkpoint::CheckpointTuple

Inherits:
Data
  • Object
show all
Defined in:
lib/graph_agent/checkpoint/base_saver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config:, checkpoint:, metadata: nil, parent_config: nil, pending_writes: []) ⇒ CheckpointTuple

Returns a new instance of CheckpointTuple.



6
7
8
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 6

def initialize(config:, checkpoint:, metadata: nil, parent_config: nil, pending_writes: [])
  super
end

Instance Attribute Details

#checkpointObject (readonly)

Returns the value of attribute checkpoint

Returns:

  • (Object)

    the current value of checkpoint



5
6
7
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5

def checkpoint
  @checkpoint
end

#configObject (readonly)

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



5
6
7
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5

def config
  @config
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



5
6
7
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5

def 
  @metadata
end

#parent_configObject (readonly)

Returns the value of attribute parent_config

Returns:

  • (Object)

    the current value of parent_config



5
6
7
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5

def parent_config
  @parent_config
end

#pending_writesObject (readonly)

Returns the value of attribute pending_writes

Returns:

  • (Object)

    the current value of pending_writes



5
6
7
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5

def pending_writes
  @pending_writes
end