Package io.trino.plugin.exchange.hdfs
Class HadoopFileSystemExchangeStorage
java.lang.Object
io.trino.plugin.exchange.hdfs.HadoopFileSystemExchangeStorage
- All Implemented Interfaces:
io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage,AutoCloseable
public class HadoopFileSystemExchangeStorage
extends Object
implements io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcreateDirectories(URI dir) com.google.common.util.concurrent.ListenableFuture<Void> createEmptyFile(URI file) io.trino.plugin.exchange.filesystem.ExchangeStorageReadercreateExchangeStorageReader(List<io.trino.plugin.exchange.filesystem.ExchangeSourceFile> sourceFiles, int maxPageStorageSize) io.trino.plugin.exchange.filesystem.ExchangeStorageWritercom.google.common.util.concurrent.ListenableFuture<Void> deleteRecursively(List<URI> directories) intcom.google.common.util.concurrent.ListenableFuture<List<io.trino.plugin.exchange.filesystem.FileStatus>> listFilesRecursively(URI dir)
-
Constructor Details
-
HadoopFileSystemExchangeStorage
- Throws:
IOException
-
-
Method Details
-
createDirectories
- Specified by:
createDirectoriesin interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage- Throws:
IOException
-
createExchangeStorageReader
public io.trino.plugin.exchange.filesystem.ExchangeStorageReader createExchangeStorageReader(List<io.trino.plugin.exchange.filesystem.ExchangeSourceFile> sourceFiles, int maxPageStorageSize) - Specified by:
createExchangeStorageReaderin interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
createExchangeStorageWriter
public io.trino.plugin.exchange.filesystem.ExchangeStorageWriter createExchangeStorageWriter(URI file) - Specified by:
createExchangeStorageWriterin interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
createEmptyFile
- Specified by:
createEmptyFilein interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
deleteRecursively
public com.google.common.util.concurrent.ListenableFuture<Void> deleteRecursively(List<URI> directories) - Specified by:
deleteRecursivelyin interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
listFilesRecursively
public com.google.common.util.concurrent.ListenableFuture<List<io.trino.plugin.exchange.filesystem.FileStatus>> listFilesRecursively(URI dir) - Specified by:
listFilesRecursivelyin interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
getWriteBufferSize
public int getWriteBufferSize()- Specified by:
getWriteBufferSizein interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
-