@PublicEvolving public class TableDistribution extends Object
SupportsBucketing
Modifier and Type | Class and Description |
---|---|
static class |
TableDistribution.Kind
Distribution kind.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<Integer> |
getBucketCount() |
List<String> |
getBucketKeys() |
TableDistribution.Kind |
getKind() |
int |
hashCode() |
static TableDistribution |
of(TableDistribution.Kind kind,
Integer bucketCount,
List<String> bucketKeys)
Distribution of the given kind over the given keys with a declared number of buckets.
|
static TableDistribution |
ofHash(List<String> bucketKeys,
Integer bucketCount)
Hash distribution over the given keys among the declared number of buckets.
|
static TableDistribution |
ofRange(List<String> bucketKeys,
Integer bucketCount)
Range distribution over the given keys among the declared number of buckets.
|
static TableDistribution |
ofUnknown(int bucketCount)
Connector-dependent distribution with a declared number of buckets.
|
static TableDistribution |
ofUnknown(List<String> bucketKeys,
Integer bucketCount)
Connector-dependent distribution with a declared number of buckets.
|
String |
toString() |
public static TableDistribution of(TableDistribution.Kind kind, @Nullable Integer bucketCount, List<String> bucketKeys)
public static TableDistribution ofUnknown(int bucketCount)
public static TableDistribution ofUnknown(List<String> bucketKeys, @Nullable Integer bucketCount)
public static TableDistribution ofHash(List<String> bucketKeys, @Nullable Integer bucketCount)
public static TableDistribution ofRange(List<String> bucketKeys, @Nullable Integer bucketCount)
public TableDistribution.Kind getKind()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.