public class RedshiftBasicEmitter extends S3Emitter
* This class requires the configuration of an Amazon S3 bucket and endpoint, as well as the following Amazon Redshift items:
s3Bucket, s3client, s3Endpoint| Constructor and Description |
|---|
RedshiftBasicEmitter(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 |
generateCopyStatement(String s3File) |
void |
shutdown()
This method is called when the KinesisConnectorRecordProcessor is shutdown.
|
getS3FileName, getS3URIpublic RedshiftBasicEmitter(KinesisConnectorConfiguration configuration)
public List<byte[]> emit(UnmodifiableBuffer<byte[]> buffer) throws IOException
IEmitteremit in interface IEmitter<byte[]>emit in class S3Emitterbuffer - 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)
IEmitterpublic void shutdown()
IEmitterCopyright © 2016. All rights reserved.