public class MultipleRecordWriters<T extends org.apache.flink.core.io.IOReadableWritable> extends Object implements RecordWriterDelegate<T>
AvailabilityProvider.AvailabilityHelperAVAILABLE| 构造器和说明 |
|---|
MultipleRecordWriters(List<RecordWriter<T>> recordWriters) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
broadcastEvent(AbstractEvent event)
Broadcasts the provided event to all the internal record writer instances.
|
void |
close() |
CompletableFuture<?> |
getAvailableFuture() |
RecordWriter<T> |
getRecordWriter(int outputIndex)
Returns the internal actual record writer instance based on the output index.
|
boolean |
isAvailable()
In order to best-effort avoid volatile access in
CompletableFuture.isDone(), we check
the condition of future == AVAILABLE firstly for getting probable performance
benefits while hot looping. |
void |
setMaxOverdraftBuffersPerGate(int maxOverdraftBuffersPerGate)
Sets the max overdraft buffer size of per gate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, isApproximatelyAvailable, orpublic MultipleRecordWriters(List<RecordWriter<T>> recordWriters)
public void broadcastEvent(AbstractEvent event) throws IOException
RecordWriterDelegatebroadcastEvent 在接口中 RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>event - the event to be emitted to all the output channels.IOExceptionpublic RecordWriter<T> getRecordWriter(int outputIndex)
RecordWriterDelegategetRecordWriter 在接口中 RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>outputIndex - the index respective to the record writer instance.public void setMaxOverdraftBuffersPerGate(int maxOverdraftBuffersPerGate)
RecordWriterDelegatesetMaxOverdraftBuffersPerGate 在接口中 RecordWriterDelegate<T extends org.apache.flink.core.io.IOReadableWritable>public CompletableFuture<?> getAvailableFuture()
getAvailableFuture 在接口中 AvailabilityProviderpublic boolean isAvailable()
AvailabilityProviderCompletableFuture.isDone(), we check
the condition of future == AVAILABLE firstly for getting probable performance
benefits while hot looping.
It is always safe to use this method in performance nonsensitive scenarios to get the precise state.
isAvailable 在接口中 AvailabilityProviderpublic void close()
close 在接口中 AutoCloseableCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.