public interface RecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>
| Modifier and Type | Interface and Description |
|---|---|
static class |
RecordDeserializer.DeserializationResult
Status of the deserialization result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
RecordDeserializer.DeserializationResult |
getNextRecord(T target) |
org.apache.flink.util.CloseableIterator<Buffer> |
getUnconsumedBuffer()
Gets the unconsumed buffer which needs to be persisted in unaligned checkpoint scenario.
|
void |
setNextBuffer(Buffer buffer) |
RecordDeserializer.DeserializationResult getNextRecord(T target) throws IOException
IOExceptionvoid setNextBuffer(Buffer buffer) throws IOException
IOExceptionvoid clear()
org.apache.flink.util.CloseableIterator<Buffer> getUnconsumedBuffer() throws IOException
Note that the unconsumed buffer might be null if the whole buffer was already consumed before and there are no partial length or data remained in the end of buffer.
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.