Class KinesisPartitionKeyGeneratorFactory

    • Constructor Detail

      • KinesisPartitionKeyGeneratorFactory

        public KinesisPartitionKeyGeneratorFactory()
    • Method Detail

      • getKinesisPartitioner

        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)
        Constructs the kinesis partitioner for a targetTable based on the currently set tableOptions.

        The following rules are applied with decreasing precedence order.

        • If targetTable is partitioned, return a RowDataKinesisPartitioner.
        • If the partitioner type is not set, return a RandomKinesisPartitionKeyGenerator.
        • If a specific partitioner type alias is used, instantiate the corresponding type
        • Interpret the partitioner type as a classname of a user-defined partitioner.
        Parameters:
        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.