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.| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.flink.runtime.io.AvailabilityProviderpublic InputStatus processInput() throws Exception
processInput 在接口中 StreamInputProcessorAvailabilityProvider.getAvailableFuture().Exceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.