修饰符和类型 | 方法和描述 |
---|---|
PartitionedTable |
hashPartition(HashType type, int numberOfPartitions)
将一个表哈希分区为指定数量的分区。
|
PartitionedTable |
hashPartition(HashType type, int numberOfPartitions, int seed)
将一个表哈希分区为指定数量的分区。
|
PartitionedTable |
hashPartition(int numberOfPartitions)
将一个表哈希分区为指定数量的分区。
|
public PartitionedTable hashPartition(int numberOfPartitions)
numberOfPartitions
- 要使用的分区数量PartitionedTable
- 暴露 Table
类部分功能的表public PartitionedTable hashPartition(HashType type, int numberOfPartitions)
type
- 要使用的哈希类型。根据哈希类型的不同,哈希列可能存在不同的限制。除了 IDENTITY 和 MURMUR3 之外,并非所有哈希函数都能保证正常工作。numberOfPartitions
- 要使用的分区数量PartitionedTable
- 暴露 Table
类部分功能的表public PartitionedTable hashPartition(HashType type, int numberOfPartitions, int seed)
type
- 要使用的哈希类型。根据哈希类型的不同,哈希列可能存在不同的限制。除了 IDENTITY 和 MURMUR3 之外,并非所有哈希函数都能保证正常工作。numberOfPartitions
- 要使用的分区数量seed
- 哈希的种子值Table
类部分功能的表版权所有 © 2025。保留所有权利。