IN - Type of the input to the partition@Internal public class BoundedOneInputStreamTaskRunner<IN> extends org.apache.flink.api.common.functions.RichMapPartitionFunction<IN,TaggedOperatorSubtaskState>
RichMapPartitionFunction that serves as the runtime for a BoundedStreamTask.
The task is executed processing the data in a particular partition instead of the pulling from
the network stack. After all data has been processed the runner will output the OperatorSubtaskState from the snapshot of the bounded task.
| Constructor and Description |
|---|
BoundedOneInputStreamTaskRunner(org.apache.flink.streaming.api.graph.StreamConfig streamConfig,
int maxParallelism,
Timestamper<IN> timestamper)
Create a new
BoundedOneInputStreamTaskRunner. |
| Modifier and Type | Method and Description |
|---|---|
void |
mapPartition(Iterable<IN> values,
org.apache.flink.util.Collector<TaggedOperatorSubtaskState> out) |
void |
open(org.apache.flink.configuration.Configuration parameters) |
public BoundedOneInputStreamTaskRunner(org.apache.flink.streaming.api.graph.StreamConfig streamConfig,
int maxParallelism,
Timestamper<IN> timestamper)
BoundedOneInputStreamTaskRunner.streamConfig - The internal configuration for the task.maxParallelism - The max parallelism of the operator.public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void mapPartition(Iterable<IN> values, org.apache.flink.util.Collector<TaggedOperatorSubtaskState> out) throws Exception
mapPartition in interface org.apache.flink.api.common.functions.MapPartitionFunction<IN,TaggedOperatorSubtaskState>mapPartition in class org.apache.flink.api.common.functions.RichMapPartitionFunction<IN,TaggedOperatorSubtaskState>ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.