Modifier and Type | Method and Description |
---|---|
PartitionedTable |
hashPartition(HashType type,
int numberOfPartitions)
Hash partition a table into the specified number of partitions.
|
PartitionedTable |
hashPartition(HashType type,
int numberOfPartitions,
int seed)
Hash partition a table into the specified number of partitions.
|
PartitionedTable |
hashPartition(int numberOfPartitions)
Hash partition a table into the specified number of partitions.
|
public PartitionedTable hashPartition(int numberOfPartitions)
numberOfPartitions
- - number of partitions to usePartitionedTable
- Table that exposes a limited functionality of the
Table
classpublic PartitionedTable hashPartition(HashType type, int numberOfPartitions)
type
- the type of hash to use. Depending on the type of hash different restrictions
on the hash column(s) may exist. Not all hash functions are guaranteed to work
besides IDENTITY and MURMUR3.numberOfPartitions
- - number of partitions to usePartitionedTable
- Table that exposes a limited functionality of the
Table
classpublic PartitionedTable hashPartition(HashType type, int numberOfPartitions, int seed)
type
- the type of hash to use. Depending on the type of hash different restrictions
on the hash column(s) may exist. Not all hash functions are guaranteed to work
besides IDENTITY and MURMUR3.numberOfPartitions
- number of partitions to useseed
- the seed value for hashingTable
classCopyright © 2024. All rights reserved.