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 Details

  • Method Details

    • createDirectories

      public void createDirectories(URI dir) throws IOException
      Specified by:
      createDirectories in interface io.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:
      createExchangeStorageReader in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
    • createExchangeStorageWriter

      public io.trino.plugin.exchange.filesystem.ExchangeStorageWriter createExchangeStorageWriter(URI file)
      Specified by:
      createExchangeStorageWriter in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
    • createEmptyFile

      public com.google.common.util.concurrent.ListenableFuture<Void> createEmptyFile(URI file)
      Specified by:
      createEmptyFile in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
    • deleteRecursively

      public com.google.common.util.concurrent.ListenableFuture<Void> deleteRecursively(List<URI> directories)
      Specified by:
      deleteRecursively in interface io.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:
      listFilesRecursively in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
    • getWriteBufferSize

      public int getWriteBufferSize()
      Specified by:
      getWriteBufferSize in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface io.trino.plugin.exchange.filesystem.FileSystemExchangeStorage