Class: Rafflesia::DatasetTableArtifact

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

Constant Summary collapse

HASH_ATTRS =
{
  is_compacted: :is_compacted,
  object: :object,
  partition_id: :partition_id,
  partition_scope: :partition_scope,
  relation: :relation,
  row_count: :row_count,
  row_scope_column: :row_scope_column,
  schema_hash: :schema_hash,
  schema_version: :schema_version,
  source_artifact_count: :source_artifact_count,
  structure_count: :structure_count,
  structure_id: :structure_id,
  tool_run_id: :tool_run_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetTableArtifact

Returns a new instance of DatasetTableArtifact.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @is_compacted = hash[:is_compacted]
  @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil
  @partition_id = hash[:partition_id]
  @partition_scope = hash[:partition_scope]
  @relation = hash[:relation]
  @row_count = hash[:row_count]
  @row_scope_column = hash[:row_scope_column]
  @schema_hash = hash[:schema_hash]
  @schema_version = hash[:schema_version]
  @source_artifact_count = hash[:source_artifact_count]
  @structure_count = hash[:structure_count]
  @structure_id = hash[:structure_id]
  @tool_run_id = hash[:tool_run_id]
end

Instance Attribute Details

#is_compactedObject

Returns the value of attribute is_compacted.



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

def is_compacted
  @is_compacted
end

#objectObject

Returns the value of attribute object.



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

def object
  @object
end

#partition_idObject

Returns the value of attribute partition_id.



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

def partition_id
  @partition_id
end

#partition_scopeObject

Returns the value of attribute partition_scope.



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

def partition_scope
  @partition_scope
end

#relationObject

Returns the value of attribute relation.



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

def relation
  @relation
end

#row_countObject

Returns the value of attribute row_count.



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

def row_count
  @row_count
end

#row_scope_columnObject

Returns the value of attribute row_scope_column.



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

def row_scope_column
  @row_scope_column
end

#schema_hashObject

Returns the value of attribute schema_hash.



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

def schema_hash
  @schema_hash
end

#schema_versionObject

Returns the value of attribute schema_version.



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

def schema_version
  @schema_version
end

#source_artifact_countObject

Returns the value of attribute source_artifact_count.



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

def source_artifact_count
  @source_artifact_count
end

#structure_countObject

Returns the value of attribute structure_count.



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

def structure_count
  @structure_count
end

#structure_idObject

Returns the value of attribute structure_id.



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

def structure_id
  @structure_id
end

#tool_run_idObject

Returns the value of attribute tool_run_id.



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

def tool_run_id
  @tool_run_id
end