Class: Rafflesia::CacheBenchmarkStep

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/cache/cache_benchmark_step.rb

Constant Summary collapse

HASH_ATTRS =
{
  all_cache_hits: :all_cache_hits,
  cache_hit_bytes: :cache_hit_bytes,
  cache_hit_count: :cache_hit_count,
  cache_miss_bytes: :cache_miss_bytes,
  cache_miss_count: :cache_miss_count,
  elapsed_ms: :elapsed_ms,
  file_count: :file_count,
  hit_count: :hit_count,
  lock_wait_ms: :lock_wait_ms,
  materialize_db_ms: :materialize_db_ms,
  name: :name,
  object_read_bytes: :object_read_bytes,
  object_read_count: :object_read_count,
  object_storage_backends: :object_storage_backends,
  pack_access_mode: :pack_access_mode,
  remaining_size_bytes: :remaining_size_bytes,
  remote_read_metrics: :remote_read_metrics,
  removed_count: :removed_count,
  resolve_query_ms: :resolve_query_ms,
  search_ms: :search_ms,
  selected_size_bytes: :selected_size_bytes,
  shard_count: :shard_count,
  status: :status,
  store_output_ms: :store_output_ms,
  total_size_bytes: :total_size_bytes,
  warning_count: :warning_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CacheBenchmarkStep

Returns a new instance of CacheBenchmarkStep.



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 65

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @all_cache_hits = hash[:all_cache_hits]
  @cache_hit_bytes = hash[:cache_hit_bytes]
  @cache_hit_count = hash[:cache_hit_count]
  @cache_miss_bytes = hash[:cache_miss_bytes]
  @cache_miss_count = hash[:cache_miss_count]
  @elapsed_ms = hash[:elapsed_ms]
  @file_count = hash[:file_count]
  @hit_count = hash[:hit_count]
  @lock_wait_ms = hash[:lock_wait_ms]
  @materialize_db_ms = hash[:materialize_db_ms]
  @name = hash[:name]
  @object_read_bytes = hash[:object_read_bytes]
  @object_read_count = hash[:object_read_count]
  @object_storage_backends = (hash[:object_storage_backends] || [])
  @pack_access_mode = hash[:pack_access_mode]
  @remaining_size_bytes = hash[:remaining_size_bytes]
  @remote_read_metrics = hash[:remote_read_metrics] ? Rafflesia::BlastRemoteReadMetrics.new(hash[:remote_read_metrics]) : nil
  @removed_count = hash[:removed_count]
  @resolve_query_ms = hash[:resolve_query_ms]
  @search_ms = hash[:search_ms]
  @selected_size_bytes = hash[:selected_size_bytes]
  @shard_count = hash[:shard_count]
  @status = hash[:status]
  @store_output_ms = hash[:store_output_ms]
  @total_size_bytes = hash[:total_size_bytes]
  @warning_count = hash[:warning_count]
end

Instance Attribute Details

#all_cache_hitsObject

Returns the value of attribute all_cache_hits.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def all_cache_hits
  @all_cache_hits
end

#cache_hit_bytesObject

Returns the value of attribute cache_hit_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def cache_hit_bytes
  @cache_hit_bytes
end

#cache_hit_countObject

Returns the value of attribute cache_hit_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def cache_hit_count
  @cache_hit_count
end

#cache_miss_bytesObject

Returns the value of attribute cache_miss_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def cache_miss_bytes
  @cache_miss_bytes
end

#cache_miss_countObject

Returns the value of attribute cache_miss_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def cache_miss_count
  @cache_miss_count
end

#elapsed_msObject

Returns the value of attribute elapsed_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def elapsed_ms
  @elapsed_ms
end

#file_countObject

Returns the value of attribute file_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def file_count
  @file_count
end

#hit_countObject

Returns the value of attribute hit_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def hit_count
  @hit_count
end

#lock_wait_msObject

Returns the value of attribute lock_wait_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def lock_wait_ms
  @lock_wait_ms
end

#materialize_db_msObject

Returns the value of attribute materialize_db_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def materialize_db_ms
  @materialize_db_ms
end

#nameObject

Returns the value of attribute name.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def name
  @name
end

#object_read_bytesObject

Returns the value of attribute object_read_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def object_read_bytes
  @object_read_bytes
end

#object_read_countObject

Returns the value of attribute object_read_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def object_read_count
  @object_read_count
end

#object_storage_backendsObject

Returns the value of attribute object_storage_backends.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def object_storage_backends
  @object_storage_backends
end

#pack_access_modeObject

Returns the value of attribute pack_access_mode.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def pack_access_mode
  @pack_access_mode
end

#remaining_size_bytesObject

Returns the value of attribute remaining_size_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def remaining_size_bytes
  @remaining_size_bytes
end

#remote_read_metricsObject

Returns the value of attribute remote_read_metrics.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def remote_read_metrics
  @remote_read_metrics
end

#removed_countObject

Returns the value of attribute removed_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def removed_count
  @removed_count
end

#resolve_query_msObject

Returns the value of attribute resolve_query_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def resolve_query_ms
  @resolve_query_ms
end

#search_msObject

Returns the value of attribute search_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def search_ms
  @search_ms
end

#selected_size_bytesObject

Returns the value of attribute selected_size_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def selected_size_bytes
  @selected_size_bytes
end

#shard_countObject

Returns the value of attribute shard_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def shard_count
  @shard_count
end

#statusObject

Returns the value of attribute status.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def status
  @status
end

#store_output_msObject

Returns the value of attribute store_output_ms.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def store_output_ms
  @store_output_ms
end

#total_size_bytesObject

Returns the value of attribute total_size_bytes.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def total_size_bytes
  @total_size_bytes
end

#warning_countObject

Returns the value of attribute warning_count.



37
38
39
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37

def warning_count
  @warning_count
end