Class: Google::Apis::DataprocV1::RddStorageInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Overall data about RDD storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RddStorageInfo

Returns a new instance of RddStorageInfo.



6804
6805
6806
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6804

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_distributionArray<Google::Apis::DataprocV1::RddDataDistribution>

Corresponds to the JSON property dataDistribution



6762
6763
6764
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6762

def data_distribution
  @data_distribution
end

#disk_usedFixnum

Corresponds to the JSON property diskUsed

Returns:

  • (Fixnum)


6767
6768
6769
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6767

def disk_used
  @disk_used
end

#memory_usedFixnum

Corresponds to the JSON property memoryUsed

Returns:

  • (Fixnum)


6772
6773
6774
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6772

def memory_used
  @memory_used
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


6777
6778
6779
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6777

def name
  @name
end

#num_cached_partitionsFixnum

Corresponds to the JSON property numCachedPartitions

Returns:

  • (Fixnum)


6782
6783
6784
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6782

def num_cached_partitions
  @num_cached_partitions
end

#num_partitionsFixnum

Corresponds to the JSON property numPartitions

Returns:

  • (Fixnum)


6787
6788
6789
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6787

def num_partitions
  @num_partitions
end

#partitionsArray<Google::Apis::DataprocV1::RddPartitionInfo>

Corresponds to the JSON property partitions



6792
6793
6794
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6792

def partitions
  @partitions
end

#rdd_storage_idFixnum

Corresponds to the JSON property rddStorageId

Returns:

  • (Fixnum)


6797
6798
6799
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6797

def rdd_storage_id
  @rdd_storage_id
end

#storage_levelString

Corresponds to the JSON property storageLevel

Returns:

  • (String)


6802
6803
6804
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6802

def storage_level
  @storage_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6809

def update!(**args)
  @data_distribution = args[:data_distribution] if args.key?(:data_distribution)
  @disk_used = args[:disk_used] if args.key?(:disk_used)
  @memory_used = args[:memory_used] if args.key?(:memory_used)
  @name = args[:name] if args.key?(:name)
  @num_cached_partitions = args[:num_cached_partitions] if args.key?(:num_cached_partitions)
  @num_partitions = args[:num_partitions] if args.key?(:num_partitions)
  @partitions = args[:partitions] if args.key?(:partitions)
  @rdd_storage_id = args[:rdd_storage_id] if args.key?(:rdd_storage_id)
  @storage_level = args[:storage_level] if args.key?(:storage_level)
end