Class: Rafflesia::DatabaseJoinKeyProfileRef

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

Constant Summary collapse

HASH_ATTRS =
{
  bytes_scanned: :bytes_scanned,
  columns: :columns,
  distinct_key_count: :distinct_key_count,
  engine: :engine,
  evidence_digest: :evidence_digest,
  evidence_uri: :evidence_uri,
  id: :id,
  is_cache_hit: :is_cache_hit,
  max_rows_per_key: :max_rows_per_key,
  multirow_distinct_key_count: :multirow_distinct_key_count,
  non_null_row_count: :non_null_row_count,
  object_ref: :object_ref,
  query_digest: :query_digest,
  relation_digest: :relation_digest,
  release_digest: :release_digest,
  row_count: :row_count,
  rows_scanned: :rows_scanned,
  selector: :selector
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatabaseJoinKeyProfileRef

Returns a new instance of DatabaseJoinKeyProfileRef.



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/database_join_candidates/database_join_key_profile_ref.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_scanned = hash[:bytes_scanned]
  @columns = (hash[:columns] || [])
  @distinct_key_count = hash[:distinct_key_count]
  @engine = hash[:engine]
  @evidence_digest = hash[:evidence_digest]
  @evidence_uri = hash[:evidence_uri]
  @id = hash[:id]
  @is_cache_hit = hash[:is_cache_hit]
  @max_rows_per_key = hash[:max_rows_per_key]
  @multirow_distinct_key_count = hash[:multirow_distinct_key_count]
  @non_null_row_count = hash[:non_null_row_count]
  @object_ref = hash[:object_ref] ? Rafflesia::ObjectRef.new(hash[:object_ref]) : nil
  @query_digest = hash[:query_digest]
  @relation_digest = hash[:relation_digest]
  @release_digest = hash[:release_digest]
  @row_count = hash[:row_count]
  @rows_scanned = hash[:rows_scanned]
  @selector = hash[:selector]
end

Instance Attribute Details

#bytes_scannedObject

Returns the value of attribute bytes_scanned.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def bytes_scanned
  @bytes_scanned
end

#columnsObject

Returns the value of attribute columns.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def columns
  @columns
end

#distinct_key_countObject

Returns the value of attribute distinct_key_count.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def distinct_key_count
  @distinct_key_count
end

#engineObject

Returns the value of attribute engine.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def engine
  @engine
end

#evidence_digestObject

Returns the value of attribute evidence_digest.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def evidence_digest
  @evidence_digest
end

#evidence_uriObject

Returns the value of attribute evidence_uri.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def evidence_uri
  @evidence_uri
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def id
  @id
end

#is_cache_hitObject

Returns the value of attribute is_cache_hit.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def is_cache_hit
  @is_cache_hit
end

#max_rows_per_keyObject

Returns the value of attribute max_rows_per_key.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def max_rows_per_key
  @max_rows_per_key
end

#multirow_distinct_key_countObject

Returns the value of attribute multirow_distinct_key_count.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def multirow_distinct_key_count
  @multirow_distinct_key_count
end

#non_null_row_countObject

Returns the value of attribute non_null_row_count.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def non_null_row_count
  @non_null_row_count
end

#object_refObject

Returns the value of attribute object_ref.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def object_ref
  @object_ref
end

#query_digestObject

Returns the value of attribute query_digest.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def query_digest
  @query_digest
end

#relation_digestObject

Returns the value of attribute relation_digest.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def relation_digest
  @relation_digest
end

#release_digestObject

Returns the value of attribute release_digest.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def release_digest
  @release_digest
end

#row_countObject

Returns the value of attribute row_count.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def row_count
  @row_count
end

#rows_scannedObject

Returns the value of attribute rows_scanned.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def rows_scanned
  @rows_scanned
end

#selectorObject

Returns the value of attribute selector.



29
30
31
# File 'lib/rafflesia/database_join_candidates/database_join_key_profile_ref.rb', line 29

def selector
  @selector
end