public static class BufferSpiller.SpilledBufferOrEventSequence extends Object
BufferSpiller
. The sequence of buffers and events can be read back using the
method getNext()
.Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up all file resources held by this spilled sequence.
|
BufferOrEvent |
getNext()
Gets the next BufferOrEvent from the spilled sequence, or
null , if the
sequence is exhausted. |
void |
open()
Initializes the sequence for reading.
|
public void open()
public BufferOrEvent getNext() throws IOException
null
, if the
sequence is exhausted.null
(end of sequence).IOException
- Thrown, if the reads failed, of if the byte stream is corrupt.public void cleanup() throws IOException
IOException
- Thrown, if file channel closing or file deletion fail.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.