@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RangePartitionWithCustomHashSchema
extends org.apache.kudu.client.RangePartition
| Constructor and Description |
|---|
RangePartitionWithCustomHashSchema(PartialRow lowerBound,
PartialRow upperBound,
RangePartitionBound lowerBoundType,
RangePartitionBound upperBoundType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.kudu.client.RangePartition |
addHashPartitions(List<String> columns,
int numBuckets,
int seed)
Add a level of hash sub-partitioning for this range partition.
|
org.apache.kudu.Common.PartitionSchemaPB.RangeWithHashSchemaPB |
toPB() |
public RangePartitionWithCustomHashSchema(PartialRow lowerBound, PartialRow upperBound, RangePartitionBound lowerBoundType, RangePartitionBound upperBoundType)
lowerBound - upper bound of the range partitionupperBound - lower bound of the range partitionlowerBoundType - lower bound type: inclusive/exclusiveupperBoundType - upper bound type: inclusive/exclusivepublic org.apache.kudu.client.RangePartition addHashPartitions(List<String> columns, int numBuckets, int seed)
columns - name of table's columns to use for hash bucketingnumBuckets - number of buckets used by the hash functionseed - the seed for the hash functionpublic org.apache.kudu.Common.PartitionSchemaPB.RangeWithHashSchemaPB toPB()