Class: TencentCloud::Dlc::V20210125::MixedTablePartitions

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210125/models.rb

Overview

DLC分区信息查询返回数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#HivePartitionsObject

Parameters:

  • TableFormat:

    数据表格式

  • TotalSize:

    分区总数

  • NextCursor:

    分页查询的游标信息,在获取下一页信息时需要回传到服务端

  • IcebergPartitions:

    iceberg表分区信息

  • HivePartitions:

    hive表分区信息



12075
12076
12077
# File 'lib/v20210125/models.rb', line 12075

def HivePartitions
  @HivePartitions
end

#IcebergPartitionsObject

Parameters:

  • TableFormat:

    数据表格式

  • TotalSize:

    分区总数

  • NextCursor:

    分页查询的游标信息,在获取下一页信息时需要回传到服务端

  • IcebergPartitions:

    iceberg表分区信息

  • HivePartitions:

    hive表分区信息



12075
12076
12077
# File 'lib/v20210125/models.rb', line 12075

def IcebergPartitions
  @IcebergPartitions
end

#NextCursorObject

Parameters:

  • TableFormat:

    数据表格式

  • TotalSize:

    分区总数

  • NextCursor:

    分页查询的游标信息,在获取下一页信息时需要回传到服务端

  • IcebergPartitions:

    iceberg表分区信息

  • HivePartitions:

    hive表分区信息



12075
12076
12077
# File 'lib/v20210125/models.rb', line 12075

def NextCursor
  @NextCursor
end

#TableFormatObject

Parameters:

  • TableFormat:

    数据表格式

  • TotalSize:

    分区总数

  • NextCursor:

    分页查询的游标信息,在获取下一页信息时需要回传到服务端

  • IcebergPartitions:

    iceberg表分区信息

  • HivePartitions:

    hive表分区信息



12075
12076
12077
# File 'lib/v20210125/models.rb', line 12075

def TableFormat
  @TableFormat
end

#TotalSizeObject

Parameters:

  • TableFormat:

    数据表格式

  • TotalSize:

    分区总数

  • NextCursor:

    分页查询的游标信息,在获取下一页信息时需要回传到服务端

  • IcebergPartitions:

    iceberg表分区信息

  • HivePartitions:

    hive表分区信息



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