Class: Kumi::Core::Analyzer::Structs::AccessPlan

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumi/core/analyzer/structs/access_plan.rb

Overview

One plan for a specific path and mode (path:mode)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, containers:, leaf:, scope:, depth:, mode:, on_missing:, key_policy:, operations:, chain:) ⇒ AccessPlan



10
11
12
13
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 10

def initialize(path:, containers:, leaf:, scope:, depth:, mode:, on_missing:, key_policy:, operations:, chain:)
  super
  freeze
end

Instance Attribute Details

#chainObject

Returns the value of attribute chain



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def chain
  @chain
end

#containersObject

Returns the value of attribute containers



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def containers
  @containers
end

#depthObject

Returns the value of attribute depth



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def depth
  @depth
end

#key_policyObject

Returns the value of attribute key_policy



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def key_policy
  @key_policy
end

#leafObject

Returns the value of attribute leaf



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def leaf
  @leaf
end

#modeObject

Returns the value of attribute mode



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def mode
  @mode
end

#on_missingObject

Returns the value of attribute on_missing



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def on_missing
  @on_missing
end

#operationsObject

Returns the value of attribute operations



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def operations
  @operations
end

#pathObject

Returns the value of attribute path



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def path
  @path
end

#scopeObject

Returns the value of attribute scope



8
9
10
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8

def scope
  @scope
end

Instance Method Details

#accessor_keyObject



15
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 15

def accessor_key = "#{path}:#{mode}"

#ndimsObject



16
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 16

def ndims        = depth

#scalar?Boolean



17
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 17

def scalar?      = depth.zero?