com.amazonaws.samples.connectors.timestream.BatchConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flink-connector-timestream Show documentation
Show all versions of flink-connector-timestream Show documentation
Timestream Sink connector for Apache Flink. The sink will buffer, batch, and write data in parallel to Timestream database.
The newest version!
package com.amazonaws.samples.connectors.timestream;
import org.apache.flink.annotation.PublicEvolving;
import software.amazon.awssdk.services.timestreamwrite.model.Record;
import software.amazon.awssdk.services.timestreamwrite.model.WriteRecordsRequest;
import java.io.Serializable;
import java.util.List;
@PublicEvolving
public interface BatchConverter extends Serializable {
/**
* This method will convert multiple buffered records to single WriteRecordRequest to Timestream.
*/
WriteRecordsRequest apply(List bufferedRecords);
}