Class SynchronousChainedCombineDriver<IN,OUT>
- java.lang.Object
-
- org.apache.flink.runtime.operators.chaining.ChainedDriver<IN,OUT>
-
- org.apache.flink.runtime.operators.chaining.SynchronousChainedCombineDriver<IN,OUT>
-
- Type Parameters:
IN
- The data type consumed by the combiner.OUT
- The data type produced by the combiner.
- All Implemented Interfaces:
Collector<IN>
public class SynchronousChainedCombineDriver<IN,OUT> extends ChainedDriver<IN,OUT>
The chained variant of the combine driver which is also implemented in GroupReduceCombineDriver. In contrast to the GroupReduceCombineDriver, this driver's purpose is only to combine the values received in the chain. It is used by the GroupReduce and the CombineGroup transformation.- See Also:
GroupReduceCombineDriver
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.operators.chaining.ChainedDriver
config, executionConfig, metrics, numRecordsIn, numRecordsOut, objectReuseEnabled, outputCollector, taskName, userCodeClassLoader
-
-
Constructor Summary
Constructors Constructor Description SynchronousChainedCombineDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelTask()
void
close()
Closes the collector.void
closeTask()
void
collect(IN record)
Emits a record.Function
getStub()
String
getTaskName()
void
openTask()
void
setup(AbstractInvokable parent)
-
Methods inherited from class org.apache.flink.runtime.operators.chaining.ChainedDriver
getIOMetrics, getOutputCollector, getTaskConfig, getUdfRuntimeContext, setOutputCollector, setup
-
-
-
-
Method Detail
-
setup
public void setup(AbstractInvokable parent)
- Specified by:
setup
in classChainedDriver<IN,OUT>
-
openTask
public void openTask() throws Exception
- Specified by:
openTask
in classChainedDriver<IN,OUT>
- Throws:
Exception
-
closeTask
public void closeTask() throws Exception
- Specified by:
closeTask
in classChainedDriver<IN,OUT>
- Throws:
Exception
-
cancelTask
public void cancelTask()
- Specified by:
cancelTask
in classChainedDriver<IN,OUT>
-
getStub
public Function getStub()
- Specified by:
getStub
in classChainedDriver<IN,OUT>
-
getTaskName
public String getTaskName()
- Specified by:
getTaskName
in classChainedDriver<IN,OUT>
-
collect
public void collect(IN record)
Description copied from interface:Collector
Emits a record.
-
close
public void close()
Description copied from interface:Collector
Closes the collector. If any data was buffered, that data will be flushed.
-
-