Package io.trino.spiller
Class GenericSpiller
- java.lang.Object
-
- io.trino.spiller.GenericSpiller
-
- All Implemented Interfaces:
Spiller,Closeable,AutoCloseable
@NotThreadSafe public class GenericSpiller extends Object implements Spiller
-
-
Constructor Summary
Constructors Constructor Description GenericSpiller(List<Type> types, SpillContext spillContext, AggregatedMemoryContext aggregatedMemoryContext, SingleStreamSpillerFactory singleStreamSpillerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close releases/removes all underlying resources used during spilling like for example all created temporary files.List<Iterator<Page>>getSpills()Returns list of previously spilled Pages streams.com.google.common.util.concurrent.ListenableFuture<Void>spill(Iterator<Page> pageIterator)Initiate spilling of pages stream.
-
-
-
Constructor Detail
-
GenericSpiller
public GenericSpiller(List<Type> types, SpillContext spillContext, AggregatedMemoryContext aggregatedMemoryContext, SingleStreamSpillerFactory singleStreamSpillerFactory)
-
-
Method Detail
-
spill
public com.google.common.util.concurrent.ListenableFuture<Void> spill(Iterator<Page> pageIterator)
Description copied from interface:SpillerInitiate spilling of pages stream. Returns completed future once spilling has finished.
-
getSpills
public List<Iterator<Page>> getSpills()
Description copied from interface:SpillerReturns list of previously spilled Pages streams.
-
close
public void close()
Description copied from interface:SpillerClose releases/removes all underlying resources used during spilling like for example all created temporary files.
-
-