Class: Rafflesia::CorpuReleaseSequenceQueryRouteTrace
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseSequenceQueryRouteTrace
- Defined in:
- lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb
Constant Summary collapse
- HASH_ATTRS =
{ document_frequency: :document_frequency, estimated_score_per_mb: :estimated_score_per_mb, feature_kind: :feature_kind, inverse_document_frequency: :inverse_document_frequency, is_common_seed: :is_common_seed, phase: :phase, planner_score: :planner_score, position_count: :position_count, posting_bytes: :posting_bytes, posting_object_count: :posting_object_count, posting_object_uris: :posting_object_uris, query_bin: :query_bin, query_position_count: :query_position_count, token: :token }.freeze
Instance Attribute Summary collapse
-
#document_frequency ⇒ Object
Returns the value of attribute document_frequency.
-
#estimated_score_per_mb ⇒ Object
Returns the value of attribute estimated_score_per_mb.
-
#feature_kind ⇒ Object
Returns the value of attribute feature_kind.
-
#inverse_document_frequency ⇒ Object
Returns the value of attribute inverse_document_frequency.
-
#is_common_seed ⇒ Object
Returns the value of attribute is_common_seed.
-
#phase ⇒ Object
Returns the value of attribute phase.
-
#planner_score ⇒ Object
Returns the value of attribute planner_score.
-
#position_count ⇒ Object
Returns the value of attribute position_count.
-
#posting_bytes ⇒ Object
Returns the value of attribute posting_bytes.
-
#posting_object_count ⇒ Object
Returns the value of attribute posting_object_count.
-
#posting_object_uris ⇒ Object
Returns the value of attribute posting_object_uris.
-
#query_bin ⇒ Object
Returns the value of attribute query_bin.
-
#query_position_count ⇒ Object
Returns the value of attribute query_position_count.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseSequenceQueryRouteTrace
constructor
A new instance of CorpuReleaseSequenceQueryRouteTrace.
Constructor Details
#initialize(json) ⇒ CorpuReleaseSequenceQueryRouteTrace
Returns a new instance of CorpuReleaseSequenceQueryRouteTrace.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @document_frequency = hash[:document_frequency] @estimated_score_per_mb = hash[:estimated_score_per_mb] @feature_kind = hash[:feature_kind] @inverse_document_frequency = hash[:inverse_document_frequency] @is_common_seed = hash[:is_common_seed] @phase = hash[:phase] @planner_score = hash[:planner_score] @position_count = hash[:position_count] @posting_bytes = hash[:posting_bytes] @posting_object_count = hash[:posting_object_count] @posting_object_uris = (hash[:posting_object_uris] || []) @query_bin = hash[:query_bin] @query_position_count = hash[:query_position_count] @token = hash[:token] end |
Instance Attribute Details
#document_frequency ⇒ Object
Returns the value of attribute document_frequency.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def document_frequency @document_frequency end |
#estimated_score_per_mb ⇒ Object
Returns the value of attribute estimated_score_per_mb.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def estimated_score_per_mb @estimated_score_per_mb end |
#feature_kind ⇒ Object
Returns the value of attribute feature_kind.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def feature_kind @feature_kind end |
#inverse_document_frequency ⇒ Object
Returns the value of attribute inverse_document_frequency.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def inverse_document_frequency @inverse_document_frequency end |
#is_common_seed ⇒ Object
Returns the value of attribute is_common_seed.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def is_common_seed @is_common_seed end |
#phase ⇒ Object
Returns the value of attribute phase.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def phase @phase end |
#planner_score ⇒ Object
Returns the value of attribute planner_score.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def planner_score @planner_score end |
#position_count ⇒ Object
Returns the value of attribute position_count.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def position_count @position_count end |
#posting_bytes ⇒ Object
Returns the value of attribute posting_bytes.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def posting_bytes @posting_bytes end |
#posting_object_count ⇒ Object
Returns the value of attribute posting_object_count.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def posting_object_count @posting_object_count end |
#posting_object_uris ⇒ Object
Returns the value of attribute posting_object_uris.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def posting_object_uris @posting_object_uris end |
#query_bin ⇒ Object
Returns the value of attribute query_bin.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def query_bin @query_bin end |
#query_position_count ⇒ Object
Returns the value of attribute query_position_count.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def query_position_count @query_position_count end |
#token ⇒ Object
Returns the value of attribute token.
25 26 27 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_route_trace.rb', line 25 def token @token end |