IN1 - The type of the records that arrive on the first inputIN2 - The type of the records that arrive on the second input@Internal public final class StreamTwoInputProcessor<IN1,IN2> extends Object implements StreamInputProcessor
TwoInputStreamTask.| Constructor and Description |
|---|
StreamTwoInputProcessor(TwoInputSelectionHandler inputSelectionHandler,
StreamOneInputProcessor<IN1> processor1,
StreamOneInputProcessor<IN2> processor2) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<?> |
getAvailableFuture() |
CompletableFuture<Void> |
prepareSnapshot(org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter channelStateWriter,
long checkpointId) |
org.apache.flink.core.io.InputStatus |
processInput()
In case of two and more input processors this method must call
InputSelectable.nextSelection() to choose which input to consume from next. |
public StreamTwoInputProcessor(TwoInputSelectionHandler inputSelectionHandler, StreamOneInputProcessor<IN1> processor1, StreamOneInputProcessor<IN2> processor2)
public CompletableFuture<?> getAvailableFuture()
getAvailableFuture in interface org.apache.flink.runtime.io.AvailabilityProviderpublic org.apache.flink.core.io.InputStatus processInput()
throws Exception
StreamInputProcessorInputSelectable.nextSelection() to choose which input to consume from next.processInput in interface StreamInputProcessorAvailabilityProvider.getAvailableFuture().Exceptionpublic CompletableFuture<Void> prepareSnapshot(org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter channelStateWriter, long checkpointId) throws org.apache.flink.runtime.checkpoint.CheckpointException
prepareSnapshot in interface StreamInputProcessororg.apache.flink.runtime.checkpoint.CheckpointExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.