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(CheckpointedInputGate[] checkpointedInputGates,
org.apache.flink.api.common.typeutils.TypeSerializer<IN1> inputSerializer1,
org.apache.flink.api.common.typeutils.TypeSerializer<IN2> inputSerializer2,
Object lock,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
StreamStatusMaintainer streamStatusMaintainer,
TwoInputStreamOperator<IN1,IN2,?> streamOperator,
TwoInputSelectionHandler inputSelectionHandler,
WatermarkGauge input1WatermarkGauge,
WatermarkGauge input2WatermarkGauge,
OperatorChain<?,?> operatorChain,
org.apache.flink.metrics.Counter numRecordsIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<?> |
getAvailableFuture() |
InputStatus |
processInput() |
public StreamTwoInputProcessor(CheckpointedInputGate[] checkpointedInputGates, org.apache.flink.api.common.typeutils.TypeSerializer<IN1> inputSerializer1, org.apache.flink.api.common.typeutils.TypeSerializer<IN2> inputSerializer2, Object lock, org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager, StreamStatusMaintainer streamStatusMaintainer, TwoInputStreamOperator<IN1,IN2,?> streamOperator, TwoInputSelectionHandler inputSelectionHandler, WatermarkGauge input1WatermarkGauge, WatermarkGauge input2WatermarkGauge, OperatorChain<?,?> operatorChain, org.apache.flink.metrics.Counter numRecordsIn)
public CompletableFuture<?> getAvailableFuture()
getAvailableFuture in interface org.apache.flink.runtime.io.AvailabilityProviderpublic InputStatus processInput() throws Exception
processInput in interface StreamInputProcessorAvailabilityProvider.getAvailableFuture().Exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.