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
RecordWriterand emits records to the channel selected by theChannelSelectorfor regularemit(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, targetPartition
-
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcastEmit(T record)This is used to broadcast streaming Watermarks in-band with records.voidemit(T record)This is used to send regular records.ChannelSelector<T>getChannelSelector()-
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, setMetricGroup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
-
-
-
Method Detail
-
emit
public void emit(T record) throws IOException
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
public void broadcastEmit(T record) throws IOException
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
@VisibleForTesting public ChannelSelector<T> getChannelSelector()
-
-