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, numberOfSubpartitions, 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.
|
ChannelSelector<T> |
getChannelSelector() |
abortCheckpoint, alignedBarrierTimeout, broadcastEvent, broadcastEvent, checkErroneous, close, emit, emit, flushAll, getAvailableFuture, getNumberOfSubpartitions, isSubpartitionDerivable, randomEmit, serializeRecord, setMaxOverdraftBuffersPerGate, 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>IOException@VisibleForTesting public ChannelSelector<T> getChannelSelector()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.