Class: TencentCloud::Dlc::V20210125::MixedTablePartitions
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::MixedTablePartitions
- Defined in:
- lib/v20210125/models.rb
Overview
DLC分区信息查询返回数据结构
Instance Attribute Summary collapse
- #HivePartitions ⇒ Object
- #IcebergPartitions ⇒ Object
- #NextCursor ⇒ Object
- #TableFormat ⇒ Object
- #TotalSize ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(tableformat = nil, totalsize = nil, nextcursor = nil, icebergpartitions = nil, hivepartitions = nil) ⇒ MixedTablePartitions
constructor
A new instance of MixedTablePartitions.
Constructor Details
#initialize(tableformat = nil, totalsize = nil, nextcursor = nil, icebergpartitions = nil, hivepartitions = nil) ⇒ MixedTablePartitions
Returns a new instance of MixedTablePartitions.
12077 12078 12079 12080 12081 12082 12083 |
# File 'lib/v20210125/models.rb', line 12077 def initialize(tableformat=nil, totalsize=nil, nextcursor=nil, icebergpartitions=nil, hivepartitions=nil) @TableFormat = tableformat @TotalSize = totalsize @NextCursor = nextcursor @IcebergPartitions = icebergpartitions @HivePartitions = hivepartitions end |
Instance Attribute Details
#HivePartitions ⇒ Object
12075 12076 12077 |
# File 'lib/v20210125/models.rb', line 12075 def HivePartitions @HivePartitions end |
#IcebergPartitions ⇒ Object
12075 12076 12077 |
# File 'lib/v20210125/models.rb', line 12075 def IcebergPartitions @IcebergPartitions end |
#NextCursor ⇒ Object
12075 12076 12077 |
# File 'lib/v20210125/models.rb', line 12075 def NextCursor @NextCursor end |
#TableFormat ⇒ Object
12075 12076 12077 |
# File 'lib/v20210125/models.rb', line 12075 def TableFormat @TableFormat end |
#TotalSize ⇒ Object
12075 12076 12077 |
# File 'lib/v20210125/models.rb', line 12075 def TotalSize @TotalSize end |
Instance Method Details
#deserialize(params) ⇒ Object
12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 |
# File 'lib/v20210125/models.rb', line 12085 def deserialize(params) @TableFormat = params['TableFormat'] @TotalSize = params['TotalSize'] @NextCursor = params['NextCursor'] unless params['IcebergPartitions'].nil? @IcebergPartitions = [] params['IcebergPartitions'].each do |i| icebergtablepartition_tmp = IcebergTablePartition.new icebergtablepartition_tmp.deserialize(i) @IcebergPartitions << icebergtablepartition_tmp end end unless params['HivePartitions'].nil? @HivePartitions = [] params['HivePartitions'].each do |i| hivetablepartition_tmp = HiveTablePartition.new hivetablepartition_tmp.deserialize(i) @HivePartitions << hivetablepartition_tmp end end end |