org.apache.flink.fs.s3.common.writer.S3RecoverableWriter Java Examples

The following examples show how to use org.apache.flink.fs.s3.common.writer.S3RecoverableWriter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlinkS3FileSystem.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public RecoverableWriter createRecoverableWriter() throws IOException {
	if (s3AccessHelper == null) {
		// this is the case for Presto
		throw new UnsupportedOperationException("This s3 file system implementation does not support recoverable writers.");
	}

	return S3RecoverableWriter.writer(
			getHadoopFileSystem(),
			tmpFileCreator,
			s3AccessHelper,
			uploadThreadPool,
			s3uploadPartSize,
			maxConcurrentUploadsPerStream);
}
 
Example #2
Source File: FlinkS3FileSystem.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public RecoverableWriter createRecoverableWriter() throws IOException {
	if (s3AccessHelper == null) {
		// this is the case for Presto
		throw new UnsupportedOperationException("This s3 file system implementation does not support recoverable writers.");
	}

	return S3RecoverableWriter.writer(
			getHadoopFileSystem(),
			tmpFileCreator,
			s3AccessHelper,
			uploadThreadPool,
			s3uploadPartSize,
			maxConcurrentUploadsPerStream);
}
 
Example #3
Source File: FlinkS3FileSystem.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public RecoverableWriter createRecoverableWriter() throws IOException {
	if (s3AccessHelper == null) {
		// this is the case for Presto
		throw new UnsupportedOperationException("This s3 file system implementation does not support recoverable writers.");
	}

	return S3RecoverableWriter.writer(
			getHadoopFileSystem(),
			tmpFileCreator,
			s3AccessHelper,
			uploadThreadPool,
			s3uploadPartSize,
			maxConcurrentUploadsPerStream);
}