Class ChainedDriver<IT,OT>
java.lang.Object
org.apache.flink.runtime.operators.chaining.ChainedDriver<IT,OT>
- All Implemented Interfaces:
org.apache.flink.util.Collector<IT>
- Direct Known Subclasses:
ChainedAllReduceDriver,ChainedFlatMapDriver,ChainedMapDriver,ChainedReduceCombineDriver,NoOpChainedDriver,SynchronousChainedCombineDriver
public abstract class ChainedDriver<IT,OT>
extends Object
implements org.apache.flink.util.Collector<IT>
The interface to be implemented by drivers that do not run in an own task context, but are
chained to other tasks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TaskConfigprotected org.apache.flink.api.common.ExecutionConfigprotected InternalOperatorMetricGroupprotected org.apache.flink.metrics.Counterprotected org.apache.flink.metrics.Counterprotected booleanprotected org.apache.flink.util.Collector<OT>protected Stringprotected ClassLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract voidabstract voidorg.apache.flink.util.Collector<OT>abstract org.apache.flink.api.common.functions.FunctiongetStub()abstract Stringprotected org.apache.flink.api.common.functions.RuntimeContextabstract voidopenTask()voidsetOutputCollector(org.apache.flink.util.Collector<?> outputCollector) abstract voidsetup(AbstractInvokable parent) voidsetup(TaskConfig config, String taskName, org.apache.flink.util.Collector<OT> outputCollector, AbstractInvokable parent, org.apache.flink.util.UserCodeClassLoader userCodeClassLoader, org.apache.flink.api.common.ExecutionConfig executionConfig, Map<String, org.apache.flink.api.common.accumulators.Accumulator<?, ?>> accumulatorMap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.Collector
close
-
Field Details
-
config
-
taskName
-
outputCollector
-
userCodeClassLoader
-
executionConfig
protected org.apache.flink.api.common.ExecutionConfig executionConfig -
objectReuseEnabled
protected boolean objectReuseEnabled -
metrics
-
numRecordsIn
protected org.apache.flink.metrics.Counter numRecordsIn -
numRecordsOut
protected org.apache.flink.metrics.Counter numRecordsOut
-
-
Constructor Details
-
ChainedDriver
public ChainedDriver()
-
-
Method Details
-
setup
public void setup(TaskConfig config, String taskName, org.apache.flink.util.Collector<OT> outputCollector, AbstractInvokable parent, org.apache.flink.util.UserCodeClassLoader userCodeClassLoader, org.apache.flink.api.common.ExecutionConfig executionConfig, Map<String, org.apache.flink.api.common.accumulators.Accumulator<?, ?>> accumulatorMap) -
setup
-
openTask
- Throws:
Exception
-
closeTask
- Throws:
Exception
-
cancelTask
public abstract void cancelTask() -
getStub
public abstract org.apache.flink.api.common.functions.Function getStub() -
getTaskName
-
collect
- Specified by:
collectin interfaceorg.apache.flink.util.Collector<IT>
-
getIOMetrics
-
getUdfRuntimeContext
protected org.apache.flink.api.common.functions.RuntimeContext getUdfRuntimeContext() -
setOutputCollector
public void setOutputCollector(org.apache.flink.util.Collector<?> outputCollector) -
getOutputCollector
-
getTaskConfig
-