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.| 构造器和说明 |
|---|
StreamOneInputProcessor(StreamTaskInput<IN> input,
PushingAsyncDataInput.DataOutput<IN> output,
BoundedMultiInput endOfInputAware) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
CompletableFuture<?> |
getAvailableFuture() |
CompletableFuture<Void> |
prepareSnapshot(org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter channelStateWriter,
long checkpointId) |
DataInputStatus |
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 在接口中 org.apache.flink.runtime.io.AvailabilityProviderpublic DataInputStatus processInput() throws Exception
StreamInputProcessorInputSelectable.nextSelection() to choose which input to consume from next.processInput 在接口中 StreamInputProcessorAvailabilityProvider.getAvailableFuture().Exceptionpublic CompletableFuture<Void> prepareSnapshot(org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter channelStateWriter, long checkpointId) throws org.apache.flink.runtime.checkpoint.CheckpointException
prepareSnapshot 在接口中 StreamInputProcessororg.apache.flink.runtime.checkpoint.CheckpointExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.