Class: Rafflesia::FoldRoutingProvenance

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

Constant Summary collapse

HASH_ATTRS =
{
  candidate_shard_ids: :candidate_shard_ids,
  fell_back_to_all_shards: :fell_back_to_all_shards,
  nprobe: :nprobe,
  routing_executed: :routing_executed,
  searched_shard_count: :searched_shard_count,
  total_shard_count: :total_shard_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldRoutingProvenance

Returns a new instance of FoldRoutingProvenance.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_shard_ids = (hash[:candidate_shard_ids] || [])
  @fell_back_to_all_shards = hash[:fell_back_to_all_shards]
  @nprobe = hash[:nprobe]
  @routing_executed = hash[:routing_executed]
  @searched_shard_count = hash[:searched_shard_count]
  @total_shard_count = hash[:total_shard_count]
end

Instance Attribute Details

#candidate_shard_idsObject

Returns the value of attribute candidate_shard_ids.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def candidate_shard_ids
  @candidate_shard_ids
end

#fell_back_to_all_shardsObject

Returns the value of attribute fell_back_to_all_shards.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def fell_back_to_all_shards
  @fell_back_to_all_shards
end

#nprobeObject

Returns the value of attribute nprobe.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def nprobe
  @nprobe
end

#routing_executedObject

Returns the value of attribute routing_executed.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def routing_executed
  @routing_executed
end

#searched_shard_countObject

Returns the value of attribute searched_shard_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def searched_shard_count
  @searched_shard_count
end

#total_shard_countObject

Returns the value of attribute total_shard_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_routing_provenance.rb', line 17

def total_shard_count
  @total_shard_count
end