Package io.prestosql.spiller
Class GenericSpiller
- java.lang.Object
-
- io.prestosql.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 void
close()
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<?>
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<?> spill(Iterator<Page> pageIterator)
Description copied from interface:Spiller
Initiate spilling of pages stream. Returns completed future once spilling has finished.
-
getSpills
public List<Iterator<Page>> getSpills()
Description copied from interface:Spiller
Returns list of previously spilled Pages streams.
-
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.
-
-