Class: Kumi::Core::Analyzer::Structs::AccessPlan
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Core::Analyzer::Structs::AccessPlan
- 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
-
#chain ⇒ Object
Returns the value of attribute chain.
-
#containers ⇒ Object
Returns the value of attribute containers.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#key_policy ⇒ Object
Returns the value of attribute key_policy.
-
#leaf ⇒ Object
Returns the value of attribute leaf.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#on_missing ⇒ Object
Returns the value of attribute on_missing.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#path ⇒ Object
Returns the value of attribute path.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
- #accessor_key ⇒ Object
-
#initialize(path:, containers:, leaf:, scope:, depth:, mode:, on_missing:, key_policy:, operations:, chain:) ⇒ AccessPlan
constructor
A new instance of AccessPlan.
- #ndims ⇒ Object
- #scalar? ⇒ Boolean
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
#chain ⇒ Object
Returns the value of attribute chain
8 9 10 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8 def chain @chain end |
#containers ⇒ Object
Returns the value of attribute containers
8 9 10 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8 def containers @containers end |
#depth ⇒ Object
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_policy ⇒ Object
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 |
#leaf ⇒ Object
Returns the value of attribute leaf
8 9 10 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8 def leaf @leaf end |
#mode ⇒ Object
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_missing ⇒ Object
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 |
#operations ⇒ Object
Returns the value of attribute operations
8 9 10 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8 def operations @operations end |
#path ⇒ Object
Returns the value of attribute path
8 9 10 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 8 def path @path end |
#scope ⇒ Object
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_key ⇒ Object
15 |
# File 'lib/kumi/core/analyzer/structs/access_plan.rb', line 15 def accessor_key = "#{path}:#{mode}" |
#ndims ⇒ Object
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? |