Class: Rafflesia::DatasetCompactData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetCompactData
- Defined in:
- lib/rafflesia/datasets/dataset_compact_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ compacted_artifact_count: :compacted_artifact_count, compaction: :compaction, dataset_name: :dataset_name, dataset_version: :dataset_version, object: :object, output_dir: :output_dir, output_manifest_path: :output_manifest_path, output_manifest_sha256: :output_manifest_sha_256, row_count: :row_count, shard_size: :shard_size, source_artifact_count: :source_artifact_count, source_manifest_path: :source_manifest_path, source_manifest_sha256: :source_manifest_sha_256, structure_count: :structure_count, table_artifact_count: :table_artifact_count }.freeze
Instance Attribute Summary collapse
-
#compacted_artifact_count ⇒ Object
Returns the value of attribute compacted_artifact_count.
-
#compaction ⇒ Object
Returns the value of attribute compaction.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#object ⇒ Object
Returns the value of attribute object.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#output_manifest_path ⇒ Object
Returns the value of attribute output_manifest_path.
-
#output_manifest_sha_256 ⇒ Object
Returns the value of attribute output_manifest_sha_256.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#shard_size ⇒ Object
Returns the value of attribute shard_size.
-
#source_artifact_count ⇒ Object
Returns the value of attribute source_artifact_count.
-
#source_manifest_path ⇒ Object
Returns the value of attribute source_manifest_path.
-
#source_manifest_sha_256 ⇒ Object
Returns the value of attribute source_manifest_sha_256.
-
#structure_count ⇒ Object
Returns the value of attribute structure_count.
-
#table_artifact_count ⇒ Object
Returns the value of attribute table_artifact_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetCompactData
constructor
A new instance of DatasetCompactData.
Constructor Details
#initialize(json) ⇒ DatasetCompactData
Returns a new instance of DatasetCompactData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @compacted_artifact_count = hash[:compacted_artifact_count] @compaction = hash[:compaction] ? Rafflesia::DatasetCompaction.new(hash[:compaction]) : nil @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @output_dir = hash[:output_dir] @output_manifest_path = hash[:output_manifest_path] @output_manifest_sha_256 = hash[:output_manifest_sha256] @row_count = hash[:row_count] @shard_size = hash[:shard_size] @source_artifact_count = hash[:source_artifact_count] @source_manifest_path = hash[:source_manifest_path] @source_manifest_sha_256 = hash[:source_manifest_sha256] @structure_count = hash[:structure_count] @table_artifact_count = hash[:table_artifact_count] end |
Instance Attribute Details
#compacted_artifact_count ⇒ Object
Returns the value of attribute compacted_artifact_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def compacted_artifact_count @compacted_artifact_count end |
#compaction ⇒ Object
Returns the value of attribute compaction.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def compaction @compaction end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def dataset_version @dataset_version end |
#object ⇒ Object
Returns the value of attribute object.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def object @object end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def output_dir @output_dir end |
#output_manifest_path ⇒ Object
Returns the value of attribute output_manifest_path.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def output_manifest_path @output_manifest_path end |
#output_manifest_sha_256 ⇒ Object
Returns the value of attribute output_manifest_sha_256.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def output_manifest_sha_256 @output_manifest_sha_256 end |
#row_count ⇒ Object
Returns the value of attribute row_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def row_count @row_count end |
#shard_size ⇒ Object
Returns the value of attribute shard_size.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def shard_size @shard_size end |
#source_artifact_count ⇒ Object
Returns the value of attribute source_artifact_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def source_artifact_count @source_artifact_count end |
#source_manifest_path ⇒ Object
Returns the value of attribute source_manifest_path.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def source_manifest_path @source_manifest_path end |
#source_manifest_sha_256 ⇒ Object
Returns the value of attribute source_manifest_sha_256.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def source_manifest_sha_256 @source_manifest_sha_256 end |
#structure_count ⇒ Object
Returns the value of attribute structure_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def structure_count @structure_count end |
#table_artifact_count ⇒ Object
Returns the value of attribute table_artifact_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_compact_data.rb', line 26 def table_artifact_count @table_artifact_count end |