public class DataSinkTask<IT> extends AbstractInvokable
OutputFormat| 构造器和说明 |
|---|
DataSinkTask(Environment environment)
Create an Invokable task and set its environment.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Future<Void> |
cancel()
This method is called when a task is canceled either as a result of a user abort or an
execution failure.
|
DistributedRuntimeUDFContext |
createRuntimeContext() |
void |
invoke()
Starts the execution.
|
abortCheckpointOnBarrier, cleanUp, dispatchOperatorEvent, getCurrentNumberOfSubtasks, getEnvironment, getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, getUserCodeClassLoader, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, restore, triggerCheckpointAsync, triggerCheckpointOnBarrierpublic DataSinkTask(Environment environment)
environment - The environment assigned to this invokable.public void invoke()
throws Exception
TaskInvokableThis method is called by the task manager when the actual execution of the task starts.
All resources should be cleaned up by calling TaskInvokable.cleanUp(Throwable) ()} after the
method returns.
invoke 在接口中 TaskInvokableinvoke 在类中 AbstractInvokableExceptionpublic Future<Void> cancel() throws Exception
TaskInvokablecancel 在接口中 TaskInvokablecancel 在类中 AbstractInvokableAbstractInvokable is fully terminated.
Note that it may never complete if the invokable is stuck.Exceptionpublic DistributedRuntimeUDFContext createRuntimeContext()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.