Class: Rafflesia::DatabaseJoinSideMeasurement
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinSideMeasurement
- Defined in:
- lib/rafflesia/database_join_candidates/database_join_side_measurement.rb
Constant Summary collapse
- HASH_ATTRS =
{ distinct_key_count: :distinct_key_count, key_profile: :key_profile, matched_distinct_key_count: :matched_distinct_key_count, matched_row_count: :matched_row_count, matched_row_fraction: :matched_row_fraction, max_rows_per_key: :max_rows_per_key, multirow_distinct_key_count: :multirow_distinct_key_count, non_null_key_row_count: :non_null_key_row_count, null_key_row_count: :null_key_row_count, relation_digest: :relation_digest, release_digest: :release_digest, row_count: :row_count, selector: :selector, unmatched_distinct_key_count: :unmatched_distinct_key_count, unmatched_row_count: :unmatched_row_count }.freeze
Instance Attribute Summary collapse
-
#distinct_key_count ⇒ Object
Returns the value of attribute distinct_key_count.
-
#key_profile ⇒ Object
Returns the value of attribute key_profile.
-
#matched_distinct_key_count ⇒ Object
Returns the value of attribute matched_distinct_key_count.
-
#matched_row_count ⇒ Object
Returns the value of attribute matched_row_count.
-
#matched_row_fraction ⇒ Object
Returns the value of attribute matched_row_fraction.
-
#max_rows_per_key ⇒ Object
Returns the value of attribute max_rows_per_key.
-
#multirow_distinct_key_count ⇒ Object
Returns the value of attribute multirow_distinct_key_count.
-
#non_null_key_row_count ⇒ Object
Returns the value of attribute non_null_key_row_count.
-
#null_key_row_count ⇒ Object
Returns the value of attribute null_key_row_count.
-
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#unmatched_distinct_key_count ⇒ Object
Returns the value of attribute unmatched_distinct_key_count.
-
#unmatched_row_count ⇒ Object
Returns the value of attribute unmatched_row_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinSideMeasurement
constructor
A new instance of DatabaseJoinSideMeasurement.
Constructor Details
#initialize(json) ⇒ DatabaseJoinSideMeasurement
Returns a new instance of DatabaseJoinSideMeasurement.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @distinct_key_count = hash[:distinct_key_count] @key_profile = hash[:key_profile] ? Rafflesia::DatabaseJoinKeyProfileRef.new(hash[:key_profile]) : nil @matched_distinct_key_count = hash[:matched_distinct_key_count] @matched_row_count = hash[:matched_row_count] @matched_row_fraction = hash[:matched_row_fraction] @max_rows_per_key = hash[:max_rows_per_key] @multirow_distinct_key_count = hash[:multirow_distinct_key_count] @non_null_key_row_count = hash[:non_null_key_row_count] @null_key_row_count = hash[:null_key_row_count] @relation_digest = hash[:relation_digest] @release_digest = hash[:release_digest] @row_count = hash[:row_count] @selector = hash[:selector] @unmatched_distinct_key_count = hash[:unmatched_distinct_key_count] @unmatched_row_count = hash[:unmatched_row_count] end |
Instance Attribute Details
#distinct_key_count ⇒ Object
Returns the value of attribute distinct_key_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def distinct_key_count @distinct_key_count end |
#key_profile ⇒ Object
Returns the value of attribute key_profile.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def key_profile @key_profile end |
#matched_distinct_key_count ⇒ Object
Returns the value of attribute matched_distinct_key_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def matched_distinct_key_count @matched_distinct_key_count end |
#matched_row_count ⇒ Object
Returns the value of attribute matched_row_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def matched_row_count @matched_row_count end |
#matched_row_fraction ⇒ Object
Returns the value of attribute matched_row_fraction.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def matched_row_fraction @matched_row_fraction end |
#max_rows_per_key ⇒ Object
Returns the value of attribute max_rows_per_key.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def max_rows_per_key @max_rows_per_key end |
#multirow_distinct_key_count ⇒ Object
Returns the value of attribute multirow_distinct_key_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def multirow_distinct_key_count @multirow_distinct_key_count end |
#non_null_key_row_count ⇒ Object
Returns the value of attribute non_null_key_row_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def non_null_key_row_count @non_null_key_row_count end |
#null_key_row_count ⇒ Object
Returns the value of attribute null_key_row_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def null_key_row_count @null_key_row_count end |
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def relation_digest @relation_digest end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def release_digest @release_digest end |
#row_count ⇒ Object
Returns the value of attribute row_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def row_count @row_count end |
#selector ⇒ Object
Returns the value of attribute selector.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def selector @selector end |
#unmatched_distinct_key_count ⇒ Object
Returns the value of attribute unmatched_distinct_key_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def unmatched_distinct_key_count @unmatched_distinct_key_count end |
#unmatched_row_count ⇒ Object
Returns the value of attribute unmatched_row_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidates/database_join_side_measurement.rb', line 26 def unmatched_row_count @unmatched_row_count end |