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.



7145
7146
7147
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7145

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

Instance Attribute Details

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

Corresponds to the JSON property dataDistribution



7103
7104
7105
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7103

def data_distribution
  @data_distribution
end

#disk_usedFixnum

Corresponds to the JSON property diskUsed

Returns:

  • (Fixnum)


7108
7109
7110
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7108

def disk_used
  @disk_used
end

#memory_usedFixnum

Corresponds to the JSON property memoryUsed

Returns:

  • (Fixnum)


7113
7114
7115
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7113

def memory_used
  @memory_used
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7118
7119
7120
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7118

def name
  @name
end

#num_cached_partitionsFixnum

Corresponds to the JSON property numCachedPartitions

Returns:

  • (Fixnum)


7123
7124
7125
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7123

def num_cached_partitions
  @num_cached_partitions
end

#num_partitionsFixnum

Corresponds to the JSON property numPartitions

Returns:

  • (Fixnum)


7128
7129
7130
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7128

def num_partitions
  @num_partitions
end

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

Corresponds to the JSON property partitions



7133
7134
7135
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7133

def partitions
  @partitions
end

#rdd_storage_idFixnum

Corresponds to the JSON property rddStorageId

Returns:

  • (Fixnum)


7138
7139
7140
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7138

def rdd_storage_id
  @rdd_storage_id
end

#storage_levelString

Corresponds to the JSON property storageLevel

Returns:

  • (String)


7143
7144
7145
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7143

def storage_level
  @storage_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7150

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