Understanding Cubert Concepts(二)Co-Partitioned Blocks

Understanding Cubert Concepts(二):Cubert Co-Partitioned Blocks

话接上文Cubert PartitionedBlocks,我们介绍了Cubert的核心Block概念之一的分区块,它是一种根据partitionKeyscost function来对原始数据进行RedistributionTransformation来结构化数据,这种结构化的数据是对后续join和cube计算是非常有利的。

好了,本文将着重讲Cubert Block中的另一种Block,Co-PartitionedBlock.

Co-partitioned Blocks

让我们来看下另一种创建blocks的方式:
这种方式就是,依靠一个dataset的index创建``另一个dataset的blocks.
比如:
有一个dataset P 是通过上文Cubert PartitionedBlocksBLOCKGEN方式生成的。这个dataset P 的内部会将partitionKeys的全局的range划分为sub-ranges,使得每个sub-range的key范围对应了一个block.(Ps:就是定范围的rangeKeys的数据在一个block内)

举个例子:

  • BLOCKGEN For DataSet P (PartitionedBlocks)

比如我们对dataset PparititionKey指定为memberId,那么BLOCKGEN过程后,会生成类似如下的索引:

memberIds from 0 to 1000 => block 0
memberIds from 1001 to <
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值