This class is an implementation of IEmitter that emits records into Amazon Redshift one by one. It utilizes the Amazon Redshift copy command on each file by first inserting records into Amazon S3 and then performing the Amazon Redshift copy command. Amazon S3 insertion is done by extending the Amazon S3 emitter.
* This class requires the configuration of an Amazon S3 bucket and endpoint, as well as the following Amazon Redshift items:
- Redshift URL
- username and password
- data table and key column (data table stores items from the manifest copy)
- file table and key column (file table is used to store file names to prevent duplicate entries)
- the delimiter used for string parsing when inserting entries into Redshift
NOTE: The Amazon S3 bucket and the Amazon Redshift cluster need to be in the same region.