public interface PartitioningSpiller extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
PartitioningSpiller.PartitioningSpillResult |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes and removes all underlying resources used during spilling.
|
Iterator<Page> |
getSpilledPages(int partition)
Returns iterator of previously spilled pages from given partition.
|
PartitioningSpiller.PartitioningSpillResult |
partitionAndSpill(Page page,
IntPredicate spillPartitionMask)
Partition page and enqueue partitioned pages to spill writers.
|
void |
verifyAllPartitionsRead() |
PartitioningSpiller.PartitioningSpillResult partitionAndSpill(Page page, IntPredicate spillPartitionMask)
PartitioningSpiller.PartitioningSpillResult.getSpillingFuture() is completed when spilling is finished.
This method may not be called if previously initiated spilling is not finished yet.
Iterator<Page> getSpilledPages(int partition)
This method may not be called if previously initiated spilling is not finished yet.
This method may perform blocking I/O to flush internal buffers.
void verifyAllPartitionsRead()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2012–2019. All rights reserved.