Class: Rafflesia::CorpuReleaseSearchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseSearchData
- Defined in:
- lib/rafflesia/datasets/corpu_release_search_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, candidate_ids: :candidate_ids, corpus: :corpus, engine: :engine, exact_rerank: :exact_rerank, family: :family, hits: :hits, materialized_database_bytes: :materialized_database_bytes, object_store_root: :object_store_root, payload_candidate_ids: :payload_candidate_ids, provenance: :provenance, query_structure_token_extraction: :query_structure_token_extraction, read_budget: :read_budget, release_id: :release_id, sequence_query_trace: :sequence_query_trace, verified_candidate_ids: :verified_candidate_ids, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#candidate_ids ⇒ Object
Returns the value of attribute candidate_ids.
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#exact_rerank ⇒ Object
Returns the value of attribute exact_rerank.
-
#family ⇒ Object
Returns the value of attribute family.
-
#hits ⇒ Object
Returns the value of attribute hits.
-
#materialized_database_bytes ⇒ Object
Returns the value of attribute materialized_database_bytes.
-
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
-
#payload_candidate_ids ⇒ Object
Returns the value of attribute payload_candidate_ids.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
-
#query_structure_token_extraction ⇒ Object
Returns the value of attribute query_structure_token_extraction.
-
#read_budget ⇒ Object
Returns the value of attribute read_budget.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#sequence_query_trace ⇒ Object
Returns the value of attribute sequence_query_trace.
-
#verified_candidate_ids ⇒ Object
Returns the value of attribute verified_candidate_ids.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseSearchData
constructor
A new instance of CorpuReleaseSearchData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseSearchData
Returns a new instance of CorpuReleaseSearchData.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @candidate_ids = (hash[:candidate_ids] || []) @corpus = hash[:corpus] @engine = hash[:engine] @exact_rerank = hash[:exact_rerank] ? Rafflesia::CorpuReleaseExactRerankData.new(hash[:exact_rerank]) : nil @family = hash[:family] @hits = (hash[:hits] || []).map { |item| item ? Rafflesia::CorpuReleaseHit.new(item) : nil } @materialized_database_bytes = hash[:materialized_database_bytes] @object_store_root = hash[:object_store_root] @payload_candidate_ids = (hash[:payload_candidate_ids] || []) @provenance = hash[:provenance] ? Rafflesia::CorpuReleaseSearchProvenance.new(hash[:provenance]) : nil @query_structure_token_extraction = hash[:query_structure_token_extraction] ? Rafflesia::CorpuReleaseStructureTokenExtractionData.new(hash[:query_structure_token_extraction]) : nil @read_budget = hash[:read_budget] ? Rafflesia::SequenceSeedIndexObjectReadBudget.new(hash[:read_budget]) : nil @release_id = hash[:release_id] @sequence_query_trace = hash[:sequence_query_trace] ? Rafflesia::CorpuReleaseSequenceQueryTraceData.new(hash[:sequence_query_trace]) : nil @verified_candidate_ids = (hash[:verified_candidate_ids] || []) @warnings = (hash[:warnings] || []) end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def backend @backend end |
#candidate_ids ⇒ Object
Returns the value of attribute candidate_ids.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def candidate_ids @candidate_ids end |
#corpus ⇒ Object
Returns the value of attribute corpus.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def corpus @corpus end |
#engine ⇒ Object
Returns the value of attribute engine.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def engine @engine end |
#exact_rerank ⇒ Object
Returns the value of attribute exact_rerank.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def exact_rerank @exact_rerank end |
#family ⇒ Object
Returns the value of attribute family.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def family @family end |
#hits ⇒ Object
Returns the value of attribute hits.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def hits @hits end |
#materialized_database_bytes ⇒ Object
Returns the value of attribute materialized_database_bytes.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def materialized_database_bytes @materialized_database_bytes end |
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def object_store_root @object_store_root end |
#payload_candidate_ids ⇒ Object
Returns the value of attribute payload_candidate_ids.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def payload_candidate_ids @payload_candidate_ids end |
#provenance ⇒ Object
Returns the value of attribute provenance.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def provenance @provenance end |
#query_structure_token_extraction ⇒ Object
Returns the value of attribute query_structure_token_extraction.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def query_structure_token_extraction @query_structure_token_extraction end |
#read_budget ⇒ Object
Returns the value of attribute read_budget.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def read_budget @read_budget end |
#release_id ⇒ Object
Returns the value of attribute release_id.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def release_id @release_id end |
#sequence_query_trace ⇒ Object
Returns the value of attribute sequence_query_trace.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def sequence_query_trace @sequence_query_trace end |
#verified_candidate_ids ⇒ Object
Returns the value of attribute verified_candidate_ids.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def verified_candidate_ids @verified_candidate_ids end |
#warnings ⇒ Object
Returns the value of attribute warnings.
28 29 30 |
# File 'lib/rafflesia/datasets/corpu_release_search_data.rb', line 28 def warnings @warnings end |