Interface RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>
- All Superinterfaces:
AutoCloseable,AvailabilityProvider
- All Known Implementing Classes:
MultipleRecordWriters,NonRecordWriter,SingleRecordWriter
public interface RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>
extends AvailabilityProvider, AutoCloseable
The record writer delegate provides the availability function for task processor, and it might
represent a single
RecordWriter or multiple RecordWriter instances in specific
implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelper -
Field Summary
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastEvent(AbstractEvent event) Broadcasts the provided event to all the internal record writer instances.getRecordWriter(int outputIndex) Returns the internal actual record writer instance based on the output index.voidsetMaxOverdraftBuffersPerGate(int maxOverdraftBuffersPerGate) Sets the max overdraft buffer size of per gate.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
getAvailableFuture, isApproximatelyAvailable, isAvailable
-
Method Details
-
broadcastEvent
Broadcasts the provided event to all the internal record writer instances.- Parameters:
event- the event to be emitted to all the output channels.- Throws:
IOException
-
getRecordWriter
Returns the internal actual record writer instance based on the output index.- Parameters:
outputIndex- the index respective to the record writer instance.
-
setMaxOverdraftBuffersPerGate
void setMaxOverdraftBuffersPerGate(int maxOverdraftBuffersPerGate) Sets the max overdraft buffer size of per gate.
-