Class: Gitlab::Database::Aggregation::QueryPlan::Order
- Defined in:
- lib/gitlab/database/aggregation/query_plan/order.rb
Instance Attribute Summary collapse
-
#plan_part ⇒ Object
readonly
Returns the value of attribute plan_part.
Attributes inherited from BasePart
Instance Method Summary collapse
- #definition ⇒ Object
- #direction ⇒ Object
-
#initialize(plan_part, configuration) ⇒ Order
constructor
A new instance of Order.
- #instance_key ⇒ Object
Constructor Details
#initialize(plan_part, configuration) ⇒ Order
Returns a new instance of Order.
10 11 12 13 |
# File 'lib/gitlab/database/aggregation/query_plan/order.rb', line 10 def initialize(plan_part, configuration) @plan_part = plan_part @configuration = configuration end |
Instance Attribute Details
#plan_part ⇒ Object (readonly)
Returns the value of attribute plan_part.
8 9 10 |
# File 'lib/gitlab/database/aggregation/query_plan/order.rb', line 8 def plan_part @plan_part end |
Instance Method Details
#definition ⇒ Object
15 16 17 |
# File 'lib/gitlab/database/aggregation/query_plan/order.rb', line 15 def definition plan_part&.definition end |
#direction ⇒ Object
23 24 25 |
# File 'lib/gitlab/database/aggregation/query_plan/order.rb', line 23 def direction configuration[:direction] end |
#instance_key ⇒ Object
19 20 21 |
# File 'lib/gitlab/database/aggregation/query_plan/order.rb', line 19 def instance_key plan_part&.instance_key end |