Class: Rafflesia::OntologyRelationshipKeyCheckData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_relationship_key_check_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  bytes_scanned: :bytes_scanned,
  columns: :columns,
  duplicate_key_group_count: :duplicate_key_group_count,
  evidence_digest: :evidence_digest,
  evidence_uri: :evidence_uri,
  evidence_warning: :evidence_warning,
  is_cache_hit: :is_cache_hit,
  is_result_truncated: :is_result_truncated,
  max_bytes_scanned: :max_bytes_scanned,
  max_rows_per_key: :max_rows_per_key,
  max_rows_scanned: :max_rows_scanned,
  query_digest: :query_digest,
  relation: :relation,
  rows_scanned: :rows_scanned,
  side: :side,
  status: :status,
  timeout_ms: :timeout_ms,
  unavailable_reason: :unavailable_reason
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyRelationshipKeyCheckData

Returns a new instance of OntologyRelationshipKeyCheckData.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_scanned = hash[:bytes_scanned]
  @columns = (hash[:columns] || [])
  @duplicate_key_group_count = hash[:duplicate_key_group_count]
  @evidence_digest = hash[:evidence_digest]
  @evidence_uri = hash[:evidence_uri]
  @evidence_warning = hash[:evidence_warning]
  @is_cache_hit = hash[:is_cache_hit]
  @is_result_truncated = hash[:is_result_truncated]
  @max_bytes_scanned = hash[:max_bytes_scanned]
  @max_rows_per_key = hash[:max_rows_per_key]
  @max_rows_scanned = hash[:max_rows_scanned]
  @query_digest = hash[:query_digest]
  @relation = hash[:relation]
  @rows_scanned = hash[:rows_scanned]
  @side = hash[:side]
  @status = hash[:status]
  @timeout_ms = hash[:timeout_ms]
  @unavailable_reason = hash[:unavailable_reason]
end

Instance Attribute Details

#bytes_scannedObject

Returns the value of attribute bytes_scanned.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def bytes_scanned
  @bytes_scanned
end

#columnsObject

Returns the value of attribute columns.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def columns
  @columns
end

#duplicate_key_group_countObject

Returns the value of attribute duplicate_key_group_count.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def duplicate_key_group_count
  @duplicate_key_group_count
end

#evidence_digestObject

Returns the value of attribute evidence_digest.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def evidence_digest
  @evidence_digest
end

#evidence_uriObject

Returns the value of attribute evidence_uri.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def evidence_uri
  @evidence_uri
end

#evidence_warningObject

Returns the value of attribute evidence_warning.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def evidence_warning
  @evidence_warning
end

#is_cache_hitObject

Returns the value of attribute is_cache_hit.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def is_cache_hit
  @is_cache_hit
end

#is_result_truncatedObject

Returns the value of attribute is_result_truncated.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def is_result_truncated
  @is_result_truncated
end

#max_bytes_scannedObject

Returns the value of attribute max_bytes_scanned.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def max_bytes_scanned
  @max_bytes_scanned
end

#max_rows_per_keyObject

Returns the value of attribute max_rows_per_key.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def max_rows_per_key
  @max_rows_per_key
end

#max_rows_scannedObject

Returns the value of attribute max_rows_scanned.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def max_rows_scanned
  @max_rows_scanned
end

#query_digestObject

Returns the value of attribute query_digest.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def query_digest
  @query_digest
end

#relationObject

Returns the value of attribute relation.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def relation
  @relation
end

#rows_scannedObject

Returns the value of attribute rows_scanned.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def rows_scanned
  @rows_scanned
end

#sideObject

Returns the value of attribute side.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def side
  @side
end

#statusObject

Returns the value of attribute status.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def status
  @status
end

#timeout_msObject

Returns the value of attribute timeout_ms.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def timeout_ms
  @timeout_ms
end

#unavailable_reasonObject

Returns the value of attribute unavailable_reason.



29
30
31
# File 'lib/rafflesia/ontology/ontology_relationship_key_check_data.rb', line 29

def unavailable_reason
  @unavailable_reason
end