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 singleRecordWriteror multipleRecordWriterinstances 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbroadcastEvent(AbstractEvent event)Broadcasts the provided event to all the internal record writer instances.RecordWriter<T>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
close
-
Methods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
getAvailableFuture, isApproximatelyAvailable, isAvailable
-
-
-
-
Method Detail
-
broadcastEvent
void broadcastEvent(AbstractEvent event) throws IOException
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
RecordWriter<T> getRecordWriter(int outputIndex)
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.
-
-