Package org.apache.flink.table.catalog
Class TableDistribution
- java.lang.Object
-
- org.apache.flink.table.catalog.TableDistribution
-
@PublicEvolving public class TableDistribution extends Object
Defines whether the given table is distributed across buckets using a specified algorithm and given columns. It represents the DISTRIBUTED BY clause in SQL.- See Also:
SupportsBucketing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableDistribution.KindDistribution kind.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<Integer>getBucketCount()List<String>getBucketKeys()TableDistribution.KindgetKind()inthashCode()static TableDistributionof(TableDistribution.Kind kind, Integer bucketCount, List<String> bucketKeys)Distribution of the given kind over the given keys with a declared number of buckets.static TableDistributionofHash(List<String> bucketKeys, Integer bucketCount)Hash distribution over the given keys among the declared number of buckets.static TableDistributionofRange(List<String> bucketKeys, Integer bucketCount)Range distribution over the given keys among the declared number of buckets.static TableDistributionofUnknown(int bucketCount)Connector-dependent distribution with a declared number of buckets.static TableDistributionofUnknown(List<String> bucketKeys, Integer bucketCount)Connector-dependent distribution with a declared number of buckets.StringtoString()
-
-
-
Method Detail
-
of
public static TableDistribution of(TableDistribution.Kind kind, @Nullable Integer bucketCount, List<String> bucketKeys)
Distribution of the given kind over the given keys with a declared number of buckets.
-
ofUnknown
public static TableDistribution ofUnknown(int bucketCount)
Connector-dependent distribution with a declared number of buckets.
-
ofUnknown
public static TableDistribution ofUnknown(List<String> bucketKeys, @Nullable Integer bucketCount)
Connector-dependent distribution with a declared number of buckets.
-
ofHash
public static TableDistribution ofHash(List<String> bucketKeys, @Nullable Integer bucketCount)
Hash distribution over the given keys among the declared number of buckets.
-
ofRange
public static TableDistribution ofRange(List<String> bucketKeys, @Nullable Integer bucketCount)
Range distribution over the given keys among the declared number of buckets.
-
getKind
public TableDistribution.Kind getKind()
-
-