public class S3Emitter extends Object implements IEmitter<byte[]>
| Modifier and Type | Field and Description |
|---|---|
protected String |
s3Bucket |
protected com.amazonaws.services.s3.AmazonS3Client |
s3client |
protected String |
s3Endpoint |
| Constructor and Description |
|---|
S3Emitter(KinesisConnectorConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
List<byte[]> |
emit(UnmodifiableBuffer<byte[]> buffer)
Invoked when the buffer is full.
|
void |
fail(List<byte[]> records)
This method defines how to handle a set of records that cannot successfully be emitted.
|
protected String |
getS3FileName(String firstSeq,
String lastSeq) |
protected String |
getS3URI(String s3FileName) |
void |
shutdown()
This method is called when the KinesisConnectorRecordProcessor is shutdown.
|
protected final String s3Bucket
protected final String s3Endpoint
protected final com.amazonaws.services.s3.AmazonS3Client s3client
public S3Emitter(KinesisConnectorConfiguration configuration)
public List<byte[]> emit(UnmodifiableBuffer<byte[]> buffer) throws IOException
IEmitteremit in interface IEmitter<byte[]>buffer - The full buffer of recordsIOException - A failure was reached that is not recoverable, no retry will occur and the fail
method will be calledpublic void fail(List<byte[]> records)
IEmitterCopyright © 2016. All rights reserved.