public class HsMemoryDataSpiller extends Object implements AutoCloseable
| 构造器和说明 |
|---|
HsMemoryDataSpiller(Path dataFilePath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close this
HsMemoryDataSpiller when resultPartition is closed. |
void |
release()
Release this
HsMemoryDataSpiller when resultPartition is released. |
CompletableFuture<List<HsFileDataIndex.SpilledBuffer>> |
spillAsync(List<BufferWithIdentity> bufferToSpill)
Spilling buffers to disk asynchronously.
|
public HsMemoryDataSpiller(Path dataFilePath) throws IOException
IOExceptionpublic CompletableFuture<List<HsFileDataIndex.SpilledBuffer>> spillAsync(List<BufferWithIdentity> bufferToSpill)
bufferToSpill - buffers need to be spilled, must ensure that it is sorted by
(subpartitionId, bufferIndex).public void close()
HsMemoryDataSpiller when resultPartition is closed. It means spiller will
no longer accept new spilling operation.
This method only called by main task thread.
close 在接口中 AutoCloseablepublic void release()
HsMemoryDataSpiller when resultPartition is released. It means spiller
will wait for all previous spilling operation done blocking and close the file channel.
This method only called by rpc thread.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.