T - the type of the record that can be emitted with this record writerpublic final class ChannelSelectorRecordWriter<T extends org.apache.flink.core.io.IOReadableWritable> extends RecordWriter<T>
The ChannelSelectorRecordWriter extends the RecordWriter and emits records to the
channel selected by the ChannelSelector for regular emit(IOReadableWritable).
AvailabilityProvider.AvailabilityHelperDEFAULT_OUTPUT_FLUSH_THREAD_NAME, flushAlways, numberOfChannels, rng, serializer, targetPartitionAVAILABLE| Modifier and Type | Method and Description |
|---|---|
void |
broadcastEmit(T record)
This is used to broadcast streaming Watermarks in-band with records.
|
void |
emit(T record)
This is used to send regular records.
|
broadcastEvent, broadcastEvent, checkErroneous, close, emit, flushAll, getAvailableFuture, randomEmit, serializeRecord, setMetricGroupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, isApproximatelyAvailable, isAvailable, orpublic void emit(T record) throws IOException
RecordWriteremit in class RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>IOExceptionpublic void broadcastEmit(T record) throws IOException
RecordWriterbroadcastEmit in class RecordWriter<T extends org.apache.flink.core.io.IOReadableWritable>IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.