Class RecordExtractorFactory.WriterHandle

java.lang.Object
com.ocient.cli.extract.RecordExtractorFactory.WriterHandle
Enclosing class:
RecordExtractorFactory

public static class RecordExtractorFactory.WriterHandle
extends Object
Born out of a need to parallelize Amazon S3 Multi-Part Uploads through a number of synchronous OutputStream and AbstractWriter implementations. The handle provides a mechanism allowing backing impls to close asynchronously. For an S3 stream, this means uploading any remaining parts and sending the complete message. Doing this asynchronously allows ResultSetExtractors to begin extracting to the next file before the current file has closed.