Class SpillingAdaptiveSpanningRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>
java.lang.Object
org.apache.flink.runtime.io.network.api.serialization.SpillingAdaptiveSpanningRecordDeserializer<T>
- Type Parameters:
T- The type of the record to be deserialized.
- All Implemented Interfaces:
RecordDeserializer<T>
public class SpillingAdaptiveSpanningRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>
extends Object
implements RecordDeserializer<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.network.api.serialization.RecordDeserializer
RecordDeserializer.DeserializationResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionSpillingAdaptiveSpanningRecordDeserializer(String[] tmpDirectories) SpillingAdaptiveSpanningRecordDeserializer(String[] tmpDirectories, int thresholdForSpilling, int fileBufferSize) -
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)
-
Field Details
-
DEFAULT_THRESHOLD_FOR_SPILLING
public static final int DEFAULT_THRESHOLD_FOR_SPILLING- See Also:
-
DEFAULT_FILE_BUFFER_SIZE
public static final int DEFAULT_FILE_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
SpillingAdaptiveSpanningRecordDeserializer
-
SpillingAdaptiveSpanningRecordDeserializer
public SpillingAdaptiveSpanningRecordDeserializer(String[] tmpDirectories, int thresholdForSpilling, int fileBufferSize)
-
-
Method Details
-
setNextBuffer
- Specified by:
setNextBufferin interfaceRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOException
-
getUnconsumedBuffer
Description copied from interface:RecordDeserializerGets 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.
- Specified by:
getUnconsumedBufferin interfaceRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOException
-
getNextRecord
- Specified by:
getNextRecordin interfaceRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOException
-
clear
public void clear()- Specified by:
clearin interfaceRecordDeserializer<T extends org.apache.flink.core.io.IOReadableWritable>
-