Class: Rafflesia::DatabaseJoinCandidateData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_candidates/database_join_candidate_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  bytes_scanned: :bytes_scanned,
  compatibility: :compatibility,
  declared_relationship_id: :declared_relationship_id,
  evidence_digest: :evidence_digest,
  evidence_uri: :evidence_uri,
  fanout_distinct_key_count: :fanout_distinct_key_count,
  from: :from,
  from_relation: :from_relation,
  from_relation_digest: :from_relation_digest,
  from_release_digest: :from_release_digest,
  from_selector: :from_selector,
  id: :id,
  is_cache_hit: :is_cache_hit,
  is_declared_relationship: :is_declared_relationship,
  is_safe_join: :is_safe_join,
  joined_row_count: :joined_row_count,
  key_overlap_status: :key_overlap_status,
  local_columns: :local_columns,
  matched_distinct_key_count: :matched_distinct_key_count,
  max_joined_rows_per_key: :max_joined_rows_per_key,
  object: :object,
  observation_status: :observation_status,
  observed_cardinality: :observed_cardinality,
  ontology_digest: :ontology_digest,
  ontology_version: :ontology_version,
  query_digest: :query_digest,
  remote_columns: :remote_columns,
  rows_scanned: :rows_scanned,
  to: :to,
  to_relation: :to_relation,
  to_relation_digest: :to_relation_digest,
  to_release_digest: :to_release_digest,
  to_selector: :to_selector,
  unavailable_reason: :unavailable_reason,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatabaseJoinCandidateData

Returns a new instance of DatabaseJoinCandidateData.



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 83

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_scanned = hash[:bytes_scanned]
  @compatibility = hash[:compatibility] ? Rafflesia::DatabaseJoinCandidateCompatibility.new(hash[:compatibility]) : nil
  @declared_relationship_id = hash[:declared_relationship_id]
  @evidence_digest = hash[:evidence_digest]
  @evidence_uri = hash[:evidence_uri]
  @fanout_distinct_key_count = hash[:fanout_distinct_key_count]
  @from = hash[:from] ? Rafflesia::DatabaseJoinSideMeasurement.new(hash[:from]) : nil
  @from_relation = hash[:from_relation]
  @from_relation_digest = hash[:from_relation_digest]
  @from_release_digest = hash[:from_release_digest]
  @from_selector = hash[:from_selector]
  @id = hash[:id]
  @is_cache_hit = hash[:is_cache_hit]
  @is_declared_relationship = hash[:is_declared_relationship]
  @is_safe_join = hash[:is_safe_join]
  @joined_row_count = hash[:joined_row_count]
  @key_overlap_status = hash[:key_overlap_status]
  @local_columns = (hash[:local_columns] || [])
  @matched_distinct_key_count = hash[:matched_distinct_key_count]
  @max_joined_rows_per_key = hash[:max_joined_rows_per_key]
  @object = hash[:object]
  @observation_status = hash[:observation_status]
  @observed_cardinality = hash[:observed_cardinality]
  @ontology_digest = hash[:ontology_digest]
  @ontology_version = hash[:ontology_version]
  @query_digest = hash[:query_digest]
  @remote_columns = (hash[:remote_columns] || [])
  @rows_scanned = hash[:rows_scanned]
  @to = hash[:to] ? Rafflesia::DatabaseJoinSideMeasurement.new(hash[:to]) : nil
  @to_relation = hash[:to_relation]
  @to_relation_digest = hash[:to_relation_digest]
  @to_release_digest = hash[:to_release_digest]
  @to_selector = hash[:to_selector]
  @unavailable_reason = hash[:unavailable_reason]
  @url = hash[:url]
end

Instance Attribute Details

#bytes_scannedObject

Returns the value of attribute bytes_scanned.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def bytes_scanned
  @bytes_scanned
end

#compatibilityObject

Returns the value of attribute compatibility.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def compatibility
  @compatibility
end

#declared_relationship_idObject

Returns the value of attribute declared_relationship_id.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def declared_relationship_id
  @declared_relationship_id
end

#evidence_digestObject

Returns the value of attribute evidence_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def evidence_digest
  @evidence_digest
end

#evidence_uriObject

Returns the value of attribute evidence_uri.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def evidence_uri
  @evidence_uri
end

#fanout_distinct_key_countObject

Returns the value of attribute fanout_distinct_key_count.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def fanout_distinct_key_count
  @fanout_distinct_key_count
end

#fromObject

Returns the value of attribute from.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def from
  @from
end

#from_relationObject

Returns the value of attribute from_relation.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def from_relation
  @from_relation
end

#from_relation_digestObject

Returns the value of attribute from_relation_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def from_relation_digest
  @from_relation_digest
end

#from_release_digestObject

Returns the value of attribute from_release_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def from_release_digest
  @from_release_digest
end

#from_selectorObject

Returns the value of attribute from_selector.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def from_selector
  @from_selector
end

#idObject

Returns the value of attribute id.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def id
  @id
end

#is_cache_hitObject

Returns the value of attribute is_cache_hit.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def is_cache_hit
  @is_cache_hit
end

#is_declared_relationshipObject

Returns the value of attribute is_declared_relationship.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def is_declared_relationship
  @is_declared_relationship
end

#is_safe_joinObject

Returns the value of attribute is_safe_join.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def is_safe_join
  @is_safe_join
end

#joined_row_countObject

Returns the value of attribute joined_row_count.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def joined_row_count
  @joined_row_count
end

#key_overlap_statusObject

Returns the value of attribute key_overlap_status.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def key_overlap_status
  @key_overlap_status
end

#local_columnsObject

Returns the value of attribute local_columns.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def local_columns
  @local_columns
end

#matched_distinct_key_countObject

Returns the value of attribute matched_distinct_key_count.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def matched_distinct_key_count
  @matched_distinct_key_count
end

#max_joined_rows_per_keyObject

Returns the value of attribute max_joined_rows_per_key.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def max_joined_rows_per_key
  @max_joined_rows_per_key
end

#objectObject

Returns the value of attribute object.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def object
  @object
end

#observation_statusObject

Returns the value of attribute observation_status.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def observation_status
  @observation_status
end

#observed_cardinalityObject

Returns the value of attribute observed_cardinality.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def observed_cardinality
  @observed_cardinality
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def ontology_digest
  @ontology_digest
end

#ontology_versionObject

Returns the value of attribute ontology_version.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def ontology_version
  @ontology_version
end

#query_digestObject

Returns the value of attribute query_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def query_digest
  @query_digest
end

#remote_columnsObject

Returns the value of attribute remote_columns.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def remote_columns
  @remote_columns
end

#rows_scannedObject

Returns the value of attribute rows_scanned.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def rows_scanned
  @rows_scanned
end

#toObject

Returns the value of attribute to.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def to
  @to
end

#to_relationObject

Returns the value of attribute to_relation.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def to_relation
  @to_relation
end

#to_relation_digestObject

Returns the value of attribute to_relation_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def to_relation_digest
  @to_relation_digest
end

#to_release_digestObject

Returns the value of attribute to_release_digest.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def to_release_digest
  @to_release_digest
end

#to_selectorObject

Returns the value of attribute to_selector.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def to_selector
  @to_selector
end

#unavailable_reasonObject

Returns the value of attribute unavailable_reason.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def unavailable_reason
  @unavailable_reason
end

#urlObject

Returns the value of attribute url.



46
47
48
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_data.rb', line 46

def url
  @url
end