Class: Rafflesia::QueryBudget

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_scannedObject

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_scannedObject

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_msObject

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