Class S3FileSystemExchangeStorage
java.lang.Object
io.trino.plugin.exchange.filesystem.s3.S3FileSystemExchangeStorage
- All Implemented Interfaces:
FileSystemExchangeStorage,AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionS3FileSystemExchangeStorage(S3FileSystemExchangeStorageStats stats, ExchangeS3Config config, S3FileSystemExchangeStorage.CompatibilityMode compatibilityMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcreateDirectories(URI dir) com.google.common.util.concurrent.ListenableFuture<Void> createEmptyFile(URI file) createExchangeStorageReader(List<ExchangeSourceFile> sourceFiles, int maxPageStorageSize, MetricsBuilder metricsBuilder) com.google.common.util.concurrent.ListenableFuture<Void> deleteRecursively(List<URI> directories) intcom.google.common.util.concurrent.ListenableFuture<List<FileStatus>> listFilesRecursively(URI dir)
-
Constructor Details
-
S3FileSystemExchangeStorage
@Inject public S3FileSystemExchangeStorage(S3FileSystemExchangeStorageStats stats, ExchangeS3Config config, S3FileSystemExchangeStorage.CompatibilityMode compatibilityMode) throws IOException - Throws:
IOException
-
-
Method Details
-
createDirectories
- Specified by:
createDirectoriesin interfaceFileSystemExchangeStorage
-
createExchangeStorageReader
public ExchangeStorageReader createExchangeStorageReader(List<ExchangeSourceFile> sourceFiles, int maxPageStorageSize, MetricsBuilder metricsBuilder) - Specified by:
createExchangeStorageReaderin interfaceFileSystemExchangeStorage
-
createExchangeStorageWriter
- Specified by:
createExchangeStorageWriterin interfaceFileSystemExchangeStorage
-
createEmptyFile
- Specified by:
createEmptyFilein interfaceFileSystemExchangeStorage
-
deleteRecursively
public com.google.common.util.concurrent.ListenableFuture<Void> deleteRecursively(List<URI> directories) - Specified by:
deleteRecursivelyin interfaceFileSystemExchangeStorage
-
listFilesRecursively
public com.google.common.util.concurrent.ListenableFuture<List<FileStatus>> listFilesRecursively(URI dir) - Specified by:
listFilesRecursivelyin interfaceFileSystemExchangeStorage
-
getWriteBufferSize
public int getWriteBufferSize()- Specified by:
getWriteBufferSizein interfaceFileSystemExchangeStorage
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFileSystemExchangeStorage- Throws:
IOException
-