Class: Kumi::Core::Analyzer::Plans::Scope
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Core::Analyzer::Plans::Scope
- Defined in:
- lib/kumi/core/analyzer/plans.rb
Overview
Scope plan: defines the dimensional execution context for a declaration
Instance Attribute Summary collapse
-
#arg_shapes ⇒ Object
Returns the value of attribute arg_shapes.
-
#join_hint ⇒ Object
Returns the value of attribute join_hint.
-
#lifts ⇒ Object
Returns the value of attribute lifts.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
- #depth ⇒ Object
-
#initialize(scope: [], lifts: [], join_hint: nil, arg_shapes: {}) ⇒ Scope
constructor
A new instance of Scope.
- #scalar? ⇒ Boolean
Constructor Details
#initialize(scope: [], lifts: [], join_hint: nil, arg_shapes: {}) ⇒ Scope
Returns a new instance of Scope.
11 12 13 14 |
# File 'lib/kumi/core/analyzer/plans.rb', line 11 def initialize(scope: [], lifts: [], join_hint: nil, arg_shapes: {}) super freeze end |
Instance Attribute Details
#arg_shapes ⇒ Object
Returns the value of attribute arg_shapes
10 11 12 |
# File 'lib/kumi/core/analyzer/plans.rb', line 10 def arg_shapes @arg_shapes end |
#join_hint ⇒ Object
Returns the value of attribute join_hint
10 11 12 |
# File 'lib/kumi/core/analyzer/plans.rb', line 10 def join_hint @join_hint end |
#lifts ⇒ Object
Returns the value of attribute lifts
10 11 12 |
# File 'lib/kumi/core/analyzer/plans.rb', line 10 def lifts @lifts end |
#scope ⇒ Object
Returns the value of attribute scope
10 11 12 |
# File 'lib/kumi/core/analyzer/plans.rb', line 10 def scope @scope end |
Instance Method Details
#depth ⇒ Object
16 17 18 |
# File 'lib/kumi/core/analyzer/plans.rb', line 16 def depth scope.size end |
#scalar? ⇒ Boolean
20 21 22 |
# File 'lib/kumi/core/analyzer/plans.rb', line 20 def scalar? scope.empty? end |