Package io.trino.spiller
Interface SingleStreamSpiller
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FileSingleStreamSpiller
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close releases/removes all underlying resources used during spilling like for example all created temporary files.Initiates read of previously spilled pages.Returns list of previously spilled Pages as a single stream.longReturns estimate size of pages that would be returned bygetAllSpilledPages().default com.google.common.util.concurrent.ListenableFuture<Void> Initiate spilling of single page.com.google.common.util.concurrent.ListenableFuture<Void> Initiate spilling of pages stream.
-
Method Details
-
spill
-
spill
-
getSpilledPages
-
getSpilledPagesInMemorySize
long getSpilledPagesInMemorySize()Returns estimate size of pages that would be returned bygetAllSpilledPages(). -
getAllSpilledPages
-
close
void close()Close releases/removes all underlying resources used during spilling like for example all created temporary files.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-