@Internal public class KinesisPartitionKeyGeneratorFactory extends Object
PartitionKeyGenerator.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SINK_PARTITIONER_VALUE_FIXED |
static String |
SINK_PARTITIONER_VALUE_RANDOM |
| 构造器和说明 |
|---|
KinesisPartitionKeyGeneratorFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PartitionKeyGenerator<org.apache.flink.table.data.RowData> |
getKinesisPartitioner(org.apache.flink.configuration.ReadableConfig tableOptions,
org.apache.flink.table.types.logical.RowType physicalType,
List<String> partitionKeys,
ClassLoader classLoader)
Constructs the kinesis partitioner for a
targetTable based on the currently set
tableOptions. |
public static PartitionKeyGenerator<org.apache.flink.table.data.RowData> getKinesisPartitioner(org.apache.flink.configuration.ReadableConfig tableOptions, org.apache.flink.table.types.logical.RowType physicalType, List<String> partitionKeys, ClassLoader classLoader)
targetTable based on the currently set
tableOptions.
The following rules are applied with decreasing precedence order.
targetTable is partitioned, return a RowDataKinesisPartitioner.
RandomKinesisPartitionKeyGenerator.
tableOptions - A read-only set of config options that determines the partitioner type.physicalType - Physical type for partitioning.partitionKeys - Partitioning keys in physical type.classLoader - A ClassLoader to use for loading user-defined partitioner classes.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.