Class ChannelSelectorRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>
java.lang.Object
org.apache.flink.runtime.io.network.api.writer.RecordWriter<T>
org.apache.flink.runtime.io.network.api.writer.ChannelSelectorRecordWriter<T>
- Type Parameters:
T- the type of the record that can be emitted with this record writer
- All Implemented Interfaces:
AvailabilityProvider
public final class ChannelSelectorRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>
extends RecordWriter<T>
A regular record-oriented runtime result writer.
The ChannelSelectorRecordWriter extends the RecordWriter and emits records to the
channel selected by the ChannelSelector for regular emit(IOReadableWritable).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelper -
Field Summary
Fields inherited from class org.apache.flink.runtime.io.network.api.writer.RecordWriter
DEFAULT_OUTPUT_FLUSH_THREAD_NAME, flushAlways, numberOfSubpartitions, rng, serializer, targetPartitionFields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastEmit(T record) This is used to broadcast streaming Watermarks in-band with records.voidThis is used to send regular records.Methods inherited from class org.apache.flink.runtime.io.network.api.writer.RecordWriter
abortCheckpoint, alignedBarrierTimeout, broadcastEvent, broadcastEvent, checkErroneous, close, emit, emit, flushAll, getAvailableFuture, getNumberOfSubpartitions, isSubpartitionDerivable, randomEmit, serializeRecord, setMaxOverdraftBuffersPerGate, setMetricGroupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
Method Details
-
emit
Description copied from class:RecordWriterThis is used to send regular records.- Specified by:
emitin classRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOException
-
broadcastEmit
Description copied from class:RecordWriterThis is used to broadcast streaming Watermarks in-band with records.- Specified by:
broadcastEmitin classRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOException
-
getChannelSelector
-