| 程序包 | 说明 |
|---|---|
| org.apache.flink.connector.kinesis.sink | |
| org.apache.flink.connector.kinesis.table |
| 限定符和类型 | 方法和说明 |
|---|---|
KinesisStreamsSinkElementConverter.Builder<InputT> |
KinesisStreamsSinkElementConverter.Builder.setPartitionKeyGenerator(PartitionKeyGenerator<InputT> partitionKeyGenerator) |
KinesisStreamsSinkBuilder<InputT> |
KinesisStreamsSinkBuilder.setPartitionKeyGenerator(PartitionKeyGenerator<InputT> partitionKeyGenerator) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FixedKinesisPartitionKeyGenerator<T>
A partitioner ensuring that each internal Flink partition ends up in the same Kinesis partition.
|
class |
RandomKinesisPartitionKeyGenerator<T>
A
PartitionKeyGenerator that maps an arbitrary input element to a random
partition ID. |
class |
RowDataFieldsKinesisPartitionKeyGenerator
A
PartitionKeyGenerator of RowData elements that constructs the partition key
from a list of field names. |
| 限定符和类型 | 方法和说明 |
|---|---|
static PartitionKeyGenerator<org.apache.flink.table.data.RowData> |
KinesisPartitionKeyGeneratorFactory.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. |
| 限定符和类型 | 方法和说明 |
|---|---|
KinesisDynamicSink.KinesisDynamicTableSinkBuilder |
KinesisDynamicSink.KinesisDynamicTableSinkBuilder.setPartitioner(PartitionKeyGenerator<org.apache.flink.table.data.RowData> partitioner) |
| 构造器和说明 |
|---|
KinesisDynamicSink(Integer maxBatchSize,
Integer maxInFlightRequests,
Integer maxBufferedRequests,
Long maxBufferSizeInBytes,
Long maxTimeInBufferMS,
Boolean failOnError,
org.apache.flink.table.types.DataType consumedDataType,
String stream,
Properties kinesisClientProperties,
org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> encodingFormat,
PartitionKeyGenerator<org.apache.flink.table.data.RowData> partitioner) |
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.