Class GenericSpiller

java.lang.Object
io.trino.spiller.GenericSpiller
All Implemented Interfaces:
Spiller, Closeable, AutoCloseable

@NotThreadSafe public class GenericSpiller extends Object implements Spiller
  • Constructor Details

  • Method Details

    • spill

      public com.google.common.util.concurrent.ListenableFuture<Void> spill(Iterator<Page> pageIterator)
      Description copied from interface: Spiller
      Initiate spilling of pages stream. Returns completed future once spilling has finished.
      Specified by:
      spill in interface Spiller
    • getSpills

      public List<Iterator<Page>> getSpills()
      Description copied from interface: Spiller
      Returns list of previously spilled Pages streams.
      Specified by:
      getSpills in interface Spiller
    • close

      public void close()
      Description copied from interface: Spiller
      Close releases/removes all underlying resources used during spilling like for example all created temporary files.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Spiller