Class: Rafflesia::JoinMeasurements

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/join_measurements.rb

Constant Summary collapse

HASH_ATTRS =
{
  from_distinct_key_count: :from_distinct_key_count,
  from_max_rows_per_key: :from_max_rows_per_key,
  from_null_key_row_count: :from_null_key_row_count,
  from_row_count: :from_row_count,
  overlapping_key_count: :overlapping_key_count,
  to_distinct_key_count: :to_distinct_key_count,
  to_max_rows_per_key: :to_max_rows_per_key,
  to_null_key_row_count: :to_null_key_row_count,
  to_row_count: :to_row_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ JoinMeasurements

Returns a new instance of JoinMeasurements.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/registry/join_measurements.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @from_distinct_key_count = hash[:from_distinct_key_count]
  @from_max_rows_per_key = hash[:from_max_rows_per_key]
  @from_null_key_row_count = hash[:from_null_key_row_count]
  @from_row_count = hash[:from_row_count]
  @overlapping_key_count = hash[:overlapping_key_count]
  @to_distinct_key_count = hash[:to_distinct_key_count]
  @to_max_rows_per_key = hash[:to_max_rows_per_key]
  @to_null_key_row_count = hash[:to_null_key_row_count]
  @to_row_count = hash[:to_row_count]
end

Instance Attribute Details

#from_distinct_key_countObject

Returns the value of attribute from_distinct_key_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def from_distinct_key_count
  @from_distinct_key_count
end

#from_max_rows_per_keyObject

Returns the value of attribute from_max_rows_per_key.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def from_max_rows_per_key
  @from_max_rows_per_key
end

#from_null_key_row_countObject

Returns the value of attribute from_null_key_row_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def from_null_key_row_count
  @from_null_key_row_count
end

#from_row_countObject

Returns the value of attribute from_row_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def from_row_count
  @from_row_count
end

#overlapping_key_countObject

Returns the value of attribute overlapping_key_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def overlapping_key_count
  @overlapping_key_count
end

#to_distinct_key_countObject

Returns the value of attribute to_distinct_key_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def to_distinct_key_count
  @to_distinct_key_count
end

#to_max_rows_per_keyObject

Returns the value of attribute to_max_rows_per_key.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def to_max_rows_per_key
  @to_max_rows_per_key
end

#to_null_key_row_countObject

Returns the value of attribute to_null_key_row_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def to_null_key_row_count
  @to_null_key_row_count
end

#to_row_countObject

Returns the value of attribute to_row_count.



20
21
22
# File 'lib/rafflesia/registry/join_measurements.rb', line 20

def to_row_count
  @to_row_count
end