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
Initiate spilling of pages stream. Returns completed future once spilling has finished. Next spill can be initiated as soon as previous one completes. -
spill
Initiate spilling of single page. Returns completed future once spilling has finished. Next spill can be initiated as soon as previous one completes. -
getSpilledPages
Returns list of previously spilled Pages as a single stream. Pages are in the same order as they were spilled. Method requires the issued spill request to be completed. -
getSpilledPagesInMemorySize
long getSpilledPagesInMemorySize()Returns estimate size of pages that would be returned bygetAllSpilledPages(). -
getAllSpilledPages
Initiates read of previously spilled pages. The returnedFuturewill be complete once all pages are read. -
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
-