in flink-connector-aws/flink-connector-dynamodb/src/main/java/org/apache/flink/connector/dynamodb/sink/DynamoDbSinkWriter.java [127:158]
public DynamoDbSinkWriter(
ElementConverter<InputT, DynamoDbWriteRequest> elementConverter,
InitContext context,
int maxBatchSize,
int maxInFlightRequests,
int maxBufferedRequests,
long maxBatchSizeInBytes,
long maxTimeInBufferMS,
long maxRecordSizeInBytes,
boolean failOnError,
String tableName,
List<String> overwriteByPartitionKeys,
SdkClientProvider<DynamoDbAsyncClient> clientProvider,
Collection<BufferedRequestState<DynamoDbWriteRequest>> states) {
super(
elementConverter,
context,
maxBatchSize,
maxInFlightRequests,
maxBufferedRequests,
maxBatchSizeInBytes,
maxTimeInBufferMS,
maxRecordSizeInBytes,
states);
this.failOnError = failOnError;
this.tableName = tableName;
this.overwriteByPartitionKeys = overwriteByPartitionKeys;
this.metrics = context.metricGroup();
this.numRecordsSendErrorsCounter = metrics.getNumRecordsSendErrorsCounter();
this.numRecordsSendPartialFailure = metrics.counter("numRecordsSendPartialFailure");
this.clientProvider = clientProvider;
}