IN - The type of the record that can be read with this record reader.@Internal public final class StreamOneInputProcessor<IN> extends Object implements StreamInputProcessor
OneInputStreamTask.| Constructor and Description |
|---|
StreamOneInputProcessor(StreamTaskInput<IN> input,
PushingAsyncDataInput.DataOutput<IN> output,
BoundedMultiInput endOfInputAware) |
| 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 StreamOneInputProcessor(StreamTaskInput<IN> input, PushingAsyncDataInput.DataOutput<IN> output, BoundedMultiInput endOfInputAware)
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–2022 The Apache Software Foundation. All rights reserved.