Class: Rafflesia::QueryBudget
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryBudget
- Defined in:
- lib/rafflesia/database_join_candidate_matrices/query_budget.rb
Constant Summary collapse
- HASH_ATTRS =
{ max_bytes_scanned: :max_bytes_scanned, max_rows_scanned: :max_rows_scanned, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#max_bytes_scanned ⇒ Object
Returns the value of attribute max_bytes_scanned.
-
#max_rows_scanned ⇒ Object
Returns the value of attribute max_rows_scanned.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryBudget
constructor
A new instance of QueryBudget.
Constructor Details
#initialize(json) ⇒ QueryBudget
Returns a new instance of QueryBudget.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/database_join_candidate_matrices/query_budget.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @max_bytes_scanned = hash[:max_bytes_scanned] @max_rows_scanned = hash[:max_rows_scanned] @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#max_bytes_scanned ⇒ Object
Returns the value of attribute max_bytes_scanned.
14 15 16 |
# File 'lib/rafflesia/database_join_candidate_matrices/query_budget.rb', line 14 def max_bytes_scanned @max_bytes_scanned end |
#max_rows_scanned ⇒ Object
Returns the value of attribute max_rows_scanned.
14 15 16 |
# File 'lib/rafflesia/database_join_candidate_matrices/query_budget.rb', line 14 def max_rows_scanned @max_rows_scanned end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
14 15 16 |
# File 'lib/rafflesia/database_join_candidate_matrices/query_budget.rb', line 14 def timeout_ms @timeout_ms end |