Class: Igniter::Store::RelationRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/store/access_path.rb

Overview

Declarative relation between two stores. Backed by a ScatterRule that maintains a materialized index in :“_rel<name>”. source: Symbol — store whose facts carry the foreign key partition: Symbol — field in source fact’s value that holds the FK value target: Symbol — logical “owning” store (informational / metadata only) Resolved via IgniterStore#resolve(name, from: partition_value).

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



60
61
62
# File 'lib/igniter/store/access_path.rb', line 60

def name
  @name
end

#partitionObject

Returns the value of attribute partition

Returns:

  • (Object)

    the current value of partition



60
61
62
# File 'lib/igniter/store/access_path.rb', line 60

def partition
  @partition
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



60
61
62
# File 'lib/igniter/store/access_path.rb', line 60

def source
  @source
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



60
61
62
# File 'lib/igniter/store/access_path.rb', line 60

def target
  @target
end