public abstract class AbstractStreamTaskNetworkInput<T,R extends org.apache.flink.runtime.io.network.api.serialization.RecordDeserializer<org.apache.flink.runtime.plugable.DeserializationDelegate<StreamElement>>> extends Object implements StreamTaskInput<T>
RecordDeserializer for spanning records. Specific implementation bind it to a specific RecordDeserializer.PushingAsyncDataInput.DataOutput<T>| 限定符和类型 | 字段和说明 |
|---|---|
protected CheckpointedInputGate |
checkpointedInputGate |
protected org.apache.flink.runtime.plugable.DeserializationDelegate<StreamElement> |
deserializationDelegate |
protected Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,Integer> |
flattenedChannelIndices |
protected int |
inputIndex |
protected org.apache.flink.api.common.typeutils.TypeSerializer<T> |
inputSerializer |
protected Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,R> |
recordDeserializers |
protected StatusWatermarkValve |
statusWatermarkValve
Valve that controls how watermarks and watermark statuses are forwarded.
|
UNSPECIFIED| 构造器和说明 |
|---|
AbstractStreamTaskNetworkInput(CheckpointedInputGate checkpointedInputGate,
org.apache.flink.api.common.typeutils.TypeSerializer<T> inputSerializer,
StatusWatermarkValve statusWatermarkValve,
int inputIndex,
Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,R> recordDeserializers) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
DataInputStatus |
emitNext(PushingAsyncDataInput.DataOutput<T> output)
Pushes the next element to the output from current data input, and returns the input status
to indicate whether there are more available data in current input.
|
protected R |
getActiveSerializer(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo) |
CompletableFuture<?> |
getAvailableFuture() |
int |
getInputIndex()
Returns the input index of this input.
|
protected void |
processBuffer(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent bufferOrEvent) |
protected DataInputStatus |
processEvent(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent bufferOrEvent) |
protected void |
releaseDeserializer(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareSnapshotprotected final CheckpointedInputGate checkpointedInputGate
protected final org.apache.flink.runtime.plugable.DeserializationDelegate<StreamElement> deserializationDelegate
protected final org.apache.flink.api.common.typeutils.TypeSerializer<T> inputSerializer
protected final Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,R extends org.apache.flink.runtime.io.network.api.serialization.RecordDeserializer<org.apache.flink.runtime.plugable.DeserializationDelegate<StreamElement>>> recordDeserializers
protected final Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,Integer> flattenedChannelIndices
protected final StatusWatermarkValve statusWatermarkValve
protected final int inputIndex
public AbstractStreamTaskNetworkInput(CheckpointedInputGate checkpointedInputGate, org.apache.flink.api.common.typeutils.TypeSerializer<T> inputSerializer, StatusWatermarkValve statusWatermarkValve, int inputIndex, Map<org.apache.flink.runtime.checkpoint.channel.InputChannelInfo,R> recordDeserializers)
public DataInputStatus emitNext(PushingAsyncDataInput.DataOutput<T> output) throws Exception
PushingAsyncDataInputThis method should be non blocking.
emitNext 在接口中 PushingAsyncDataInput<T>Exceptionprotected DataInputStatus processEvent(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent bufferOrEvent)
protected void processBuffer(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent bufferOrEvent)
throws IOException
IOExceptionprotected R getActiveSerializer(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
public int getInputIndex()
StreamTaskInputgetInputIndex 在接口中 StreamTaskInput<T>public CompletableFuture<?> getAvailableFuture()
getAvailableFuture 在接口中 org.apache.flink.runtime.io.AvailabilityProviderpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionprotected void releaseDeserializer(org.apache.flink.runtime.checkpoint.channel.InputChannelInfo channelInfo)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.