Interface RecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>
-
- All Known Implementing Classes:
SpillingAdaptiveSpanningRecordDeserializer
public interface RecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>Interface for turning sequences of memory segments into records.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRecordDeserializer.DeserializationResultStatus of the deserialization result.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()RecordDeserializer.DeserializationResultgetNextRecord(T target)org.apache.flink.util.CloseableIterator<Buffer>getUnconsumedBuffer()Gets the unconsumed buffer which needs to be persisted in unaligned checkpoint scenario.voidsetNextBuffer(Buffer buffer)
-
-
-
Method Detail
-
getNextRecord
RecordDeserializer.DeserializationResult getNextRecord(T target) throws IOException
- Throws:
IOException
-
setNextBuffer
void setNextBuffer(Buffer buffer) throws IOException
- Throws:
IOException
-
clear
void clear()
-
getUnconsumedBuffer
org.apache.flink.util.CloseableIterator<Buffer> getUnconsumedBuffer() throws IOException
Gets the unconsumed buffer which needs to be persisted in unaligned checkpoint scenario.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.
- Throws:
IOException
-
-