in flink-connector-aws/flink-connector-aws-kinesis-streams/src/main/java/org/apache/flink/connector/kinesis/table/KinesisDynamicSink.java [68:96]
public KinesisDynamicSink(
@Nullable Integer maxBatchSize,
@Nullable Integer maxInFlightRequests,
@Nullable Integer maxBufferedRequests,
@Nullable Long maxBufferSizeInBytes,
@Nullable Long maxTimeInBufferMS,
@Nullable Boolean failOnError,
@Nullable DataType consumedDataType,
String stream,
@Nullable Properties kinesisClientProperties,
EncodingFormat<SerializationSchema<RowData>> encodingFormat,
PartitionKeyGenerator<RowData> partitioner) {
super(
maxBatchSize,
maxInFlightRequests,
maxBufferedRequests,
maxBufferSizeInBytes,
maxTimeInBufferMS);
this.failOnError = failOnError;
this.kinesisClientProperties = kinesisClientProperties;
this.consumedDataType =
Preconditions.checkNotNull(consumedDataType, "Consumed data type must not be null");
this.stream = Preconditions.checkNotNull(stream, "Kinesis stream name must not be null");
this.encodingFormat =
Preconditions.checkNotNull(encodingFormat, "Encoding format must not be null");
this.partitioner =
Preconditions.checkNotNull(
partitioner, "Kinesis partition key generator must not be null");
}