Class: Rafflesia::FoldSearchCostEvidence

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_search_cost_evidence.rb

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  byte_reduction_fraction: :byte_reduction_fraction,
  cache_state: :cache_state,
  calibration_id: :calibration_id,
  calibration_modes: :calibration_modes,
  calibration_query_count: :calibration_query_count,
  calibration_repeat_count: :calibration_repeat_count,
  calibration_rung_count: :calibration_rung_count,
  calibration_status: :calibration_status,
  calibration_target_count_max: :calibration_target_count_max,
  calibration_target_count_min: :calibration_target_count_min,
  data_read_semantics: :data_read_semantics,
  effective_shard_count: :effective_shard_count,
  estimate_method: :estimate_method,
  estimated_cpu_seconds: :estimated_cpu_seconds,
  estimated_peak_rss_mb: :estimated_peak_rss_mb,
  estimated_wall_ms: :estimated_wall_ms,
  logical_target_db_bytes: :logical_target_db_bytes,
  materialization_reduction_fraction: :materialization_reduction_fraction,
  model_version: :model_version,
  object_read_reduction_fraction: :object_read_reduction_fraction,
  planned_exact_shard_count: :planned_exact_shard_count,
  planned_materialized_bytes: :planned_materialized_bytes,
  planned_object_bytes: :planned_object_bytes,
  planned_object_read_count: :planned_object_read_count,
  query_count: :query_count,
  target_record_count: :target_record_count,
  target_record_count_estimated: :target_record_count_estimated,
  target_shard_count: :target_shard_count,
  warnings: :warnings
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSearchCostEvidence

Returns a new instance of FoldSearchCostEvidence.



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 73

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @cache_state = hash[:cache_state]
  @calibration_id = hash[:calibration_id]
  @calibration_modes = (hash[:calibration_modes] || [])
  @calibration_query_count = hash[:calibration_query_count]
  @calibration_repeat_count = hash[:calibration_repeat_count]
  @calibration_rung_count = hash[:calibration_rung_count]
  @calibration_status = hash[:calibration_status]
  @calibration_target_count_max = hash[:calibration_target_count_max]
  @calibration_target_count_min = hash[:calibration_target_count_min]
  @data_read_semantics = hash[:data_read_semantics]
  @effective_shard_count = hash[:effective_shard_count]
  @estimate_method = hash[:estimate_method]
  @estimated_cpu_seconds = hash[:estimated_cpu_seconds]
  @estimated_peak_rss_mb = hash[:estimated_peak_rss_mb]
  @estimated_wall_ms = hash[:estimated_wall_ms]
  @logical_target_db_bytes = hash[:logical_target_db_bytes]
  @materialization_reduction_fraction = hash[:materialization_reduction_fraction]
  @model_version = hash[:model_version]
  @object_read_reduction_fraction = hash[:object_read_reduction_fraction]
  @planned_exact_shard_count = hash[:planned_exact_shard_count]
  @planned_materialized_bytes = hash[:planned_materialized_bytes]
  @planned_object_bytes = hash[:planned_object_bytes]
  @planned_object_read_count = hash[:planned_object_read_count]
  @query_count = hash[:query_count]
  @target_record_count = hash[:target_record_count]
  @target_record_count_estimated = hash[:target_record_count_estimated]
  @target_shard_count = hash[:target_shard_count]
  @warnings = (hash[:warnings] || [])
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def backend
  @backend
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def byte_reduction_fraction
  @byte_reduction_fraction
end

#cache_stateObject

Returns the value of attribute cache_state.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def cache_state
  @cache_state
end

#calibration_idObject

Returns the value of attribute calibration_id.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_id
  @calibration_id
end

#calibration_modesObject

Returns the value of attribute calibration_modes.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_modes
  @calibration_modes
end

#calibration_query_countObject

Returns the value of attribute calibration_query_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_query_count
  @calibration_query_count
end

#calibration_repeat_countObject

Returns the value of attribute calibration_repeat_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_repeat_count
  @calibration_repeat_count
end

#calibration_rung_countObject

Returns the value of attribute calibration_rung_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_rung_count
  @calibration_rung_count
end

#calibration_statusObject

Returns the value of attribute calibration_status.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_status
  @calibration_status
end

#calibration_target_count_maxObject

Returns the value of attribute calibration_target_count_max.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_target_count_max
  @calibration_target_count_max
end

#calibration_target_count_minObject

Returns the value of attribute calibration_target_count_min.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def calibration_target_count_min
  @calibration_target_count_min
end

#data_read_semanticsObject

Returns the value of attribute data_read_semantics.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def data_read_semantics
  @data_read_semantics
end

#effective_shard_countObject

Returns the value of attribute effective_shard_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def effective_shard_count
  @effective_shard_count
end

#estimate_methodObject

Returns the value of attribute estimate_method.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def estimate_method
  @estimate_method
end

#estimated_cpu_secondsObject

Returns the value of attribute estimated_cpu_seconds.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def estimated_cpu_seconds
  @estimated_cpu_seconds
end

#estimated_peak_rss_mbObject

Returns the value of attribute estimated_peak_rss_mb.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def estimated_peak_rss_mb
  @estimated_peak_rss_mb
end

#estimated_wall_msObject

Returns the value of attribute estimated_wall_ms.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def estimated_wall_ms
  @estimated_wall_ms
end

#logical_target_db_bytesObject

Returns the value of attribute logical_target_db_bytes.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def logical_target_db_bytes
  @logical_target_db_bytes
end

#materialization_reduction_fractionObject

Returns the value of attribute materialization_reduction_fraction.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def materialization_reduction_fraction
  @materialization_reduction_fraction
end

#model_versionObject

Returns the value of attribute model_version.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def model_version
  @model_version
end

#object_read_reduction_fractionObject

Returns the value of attribute object_read_reduction_fraction.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def object_read_reduction_fraction
  @object_read_reduction_fraction
end

#planned_exact_shard_countObject

Returns the value of attribute planned_exact_shard_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def planned_exact_shard_count
  @planned_exact_shard_count
end

#planned_materialized_bytesObject

Returns the value of attribute planned_materialized_bytes.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def planned_materialized_bytes
  @planned_materialized_bytes
end

#planned_object_bytesObject

Returns the value of attribute planned_object_bytes.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def planned_object_bytes
  @planned_object_bytes
end

#planned_object_read_countObject

Returns the value of attribute planned_object_read_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def planned_object_read_count
  @planned_object_read_count
end

#query_countObject

Returns the value of attribute query_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def query_count
  @query_count
end

#target_record_countObject

Returns the value of attribute target_record_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def target_record_count
  @target_record_count
end

#target_record_count_estimatedObject

Returns the value of attribute target_record_count_estimated.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def target_record_count_estimated
  @target_record_count_estimated
end

#target_shard_countObject

Returns the value of attribute target_shard_count.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def target_shard_count
  @target_shard_count
end

#warningsObject

Returns the value of attribute warnings.



41
42
43
# File 'lib/rafflesia/proteins/fold_search_cost_evidence.rb', line 41

def warnings
  @warnings
end