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.
12 13 14 15 |
# File 'lib/kumi/core/analyzer/plans.rb', line 12 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
11 12 13 |
# File 'lib/kumi/core/analyzer/plans.rb', line 11 def arg_shapes @arg_shapes end |
#join_hint ⇒ Object
Returns the value of attribute join_hint
11 12 13 |
# File 'lib/kumi/core/analyzer/plans.rb', line 11 def join_hint @join_hint end |
#lifts ⇒ Object
Returns the value of attribute lifts
11 12 13 |
# File 'lib/kumi/core/analyzer/plans.rb', line 11 def lifts @lifts end |
#scope ⇒ Object
Returns the value of attribute scope
11 12 13 |
# File 'lib/kumi/core/analyzer/plans.rb', line 11 def scope @scope end |
Instance Method Details
#depth ⇒ Object
17 18 19 |
# File 'lib/kumi/core/analyzer/plans.rb', line 17 def depth scope.size end |
#scalar? ⇒ Boolean
21 22 23 |
# File 'lib/kumi/core/analyzer/plans.rb', line 21 def scalar? scope.empty? end |