public class HsMemoryDataSpiller extends Object implements AutoCloseable
| 构造器和说明 |
|---|
HsMemoryDataSpiller(Path dataFilePath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close this
HsMemoryDataSpiller. |
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. It means spiller will no longer accept new spilling
operation and wait for all previous spilling operation done blocking.close 在接口中 AutoCloseableCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.