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 ClassesModifier and TypeInterfaceDescriptionstatic enumStatus of the deserialization result. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getNextRecord(T target) org.apache.flink.util.CloseableIterator<Buffer>Gets the unconsumed buffer which needs to be persisted in unaligned checkpoint scenario.voidsetNextBuffer(Buffer buffer)
-
Method Details
-
getNextRecord
- Throws:
IOException
-
setNextBuffer
- Throws:
IOException
-
clear
void clear() -
getUnconsumedBuffer
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
-