Interface TaskContext<S,OT>
-
- Type Parameters:
S
- The UDF type.OT
- The produced data type.
- All Known Implementing Classes:
AbstractIterativeTask
,BatchTask
,IterationHeadTask
,IterationIntermediateTask
,IterationTailTask
public interface TaskContext<S,OT>
The task context gives a driver (e.g.,MapDriver
, orJoinDriver
) access to the runtime components and configuration that they can use to fulfil their task.- See Also:
Driver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
formatLogString(String message)
AbstractInvokable
getContainingTask()
<X> org.apache.flink.api.common.typeutils.TypeComparator<X>
getDriverComparator(int index)
org.apache.flink.api.common.ExecutionConfig
getExecutionConfig()
<X> org.apache.flink.util.MutableObjectIterator<X>
getInput(int index)
<X> org.apache.flink.api.common.typeutils.TypeSerializerFactory<X>
getInputSerializer(int index)
IOManager
getIOManager()
MemoryManager
getMemoryManager()
org.apache.flink.metrics.groups.OperatorMetricGroup
getMetricGroup()
org.apache.flink.util.Collector<OT>
getOutputCollector()
S
getStub()
TaskConfig
getTaskConfig()
TaskManagerRuntimeInfo
getTaskManagerInfo()
ClassLoader
getUserCodeClassLoader()
-
-
-
Method Detail
-
getTaskConfig
TaskConfig getTaskConfig()
-
getTaskManagerInfo
TaskManagerRuntimeInfo getTaskManagerInfo()
-
getUserCodeClassLoader
ClassLoader getUserCodeClassLoader()
-
getMemoryManager
MemoryManager getMemoryManager()
-
getIOManager
IOManager getIOManager()
-
getInput
<X> org.apache.flink.util.MutableObjectIterator<X> getInput(int index)
-
getInputSerializer
<X> org.apache.flink.api.common.typeutils.TypeSerializerFactory<X> getInputSerializer(int index)
-
getDriverComparator
<X> org.apache.flink.api.common.typeutils.TypeComparator<X> getDriverComparator(int index)
-
getStub
S getStub()
-
getExecutionConfig
org.apache.flink.api.common.ExecutionConfig getExecutionConfig()
-
getOutputCollector
org.apache.flink.util.Collector<OT> getOutputCollector()
-
getContainingTask
AbstractInvokable getContainingTask()
-
getMetricGroup
org.apache.flink.metrics.groups.OperatorMetricGroup getMetricGroup()
-
-