Class: Rafflesia::DatasetTableArtifactDiff

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/dataset_table_artifact_diff.rb

Constant Summary collapse

HASH_ATTRS =
{
  object_id_a: :object_id_a,
  object_id_b: :object_id_b,
  partition_id: :partition_id,
  path: :path,
  row_count_a: :row_count_a,
  row_count_b: :row_count_b,
  row_count_delta: :row_count_delta,
  schema_hash_a: :schema_hash_a,
  schema_hash_b: :schema_hash_b,
  sha256_a: :sha_256_a,
  sha256_b: :sha_256_b,
  structure_id: :structure_id,
  table_name: :table_name
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetTableArtifactDiff

Returns a new instance of DatasetTableArtifactDiff.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 39

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @object_id_a = hash[:object_id_a]
  @object_id_b = hash[:object_id_b]
  @partition_id = hash[:partition_id]
  @path = hash[:path]
  @row_count_a = hash[:row_count_a]
  @row_count_b = hash[:row_count_b]
  @row_count_delta = hash[:row_count_delta]
  @schema_hash_a = hash[:schema_hash_a]
  @schema_hash_b = hash[:schema_hash_b]
  @sha_256_a = hash[:sha256_a]
  @sha_256_b = hash[:sha256_b]
  @structure_id = hash[:structure_id]
  @table_name = hash[:table_name]
end

Instance Attribute Details

#object_id_aObject

Returns the value of attribute object_id_a.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def object_id_a
  @object_id_a
end

#object_id_bObject

Returns the value of attribute object_id_b.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def object_id_b
  @object_id_b
end

#partition_idObject

Returns the value of attribute partition_id.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def partition_id
  @partition_id
end

#pathObject

Returns the value of attribute path.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def path
  @path
end

#row_count_aObject

Returns the value of attribute row_count_a.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def row_count_a
  @row_count_a
end

#row_count_bObject

Returns the value of attribute row_count_b.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def row_count_b
  @row_count_b
end

#row_count_deltaObject

Returns the value of attribute row_count_delta.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def row_count_delta
  @row_count_delta
end

#schema_hash_aObject

Returns the value of attribute schema_hash_a.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def schema_hash_a
  @schema_hash_a
end

#schema_hash_bObject

Returns the value of attribute schema_hash_b.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def schema_hash_b
  @schema_hash_b
end

#sha_256_aObject

Returns the value of attribute sha_256_a.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def sha_256_a
  @sha_256_a
end

#sha_256_bObject

Returns the value of attribute sha_256_b.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def sha_256_b
  @sha_256_b
end

#structure_idObject

Returns the value of attribute structure_id.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def structure_id
  @structure_id
end

#table_nameObject

Returns the value of attribute table_name.



24
25
26
# File 'lib/rafflesia/datasets/dataset_table_artifact_diff.rb', line 24

def table_name
  @table_name
end