@InterfaceAudience.Public public interface ProcessorContext extends TaskContext
Modifier and Type | Method and Description |
---|---|
boolean |
canCommit()
Check whether this attempt can commit its output
|
void |
setProgress(float progress)
Set the overall progress of this Task Attempt.
|
void |
waitForAllInputsReady(Collection<Input> inputs)
Blocking call which returns only after all of the specified Inputs are
ready for consumption.
|
Input |
waitForAnyInputReady(Collection<Input> inputs)
Blocking call which returns when any of the specified Inputs is ready for
consumption.
|
fatalError, getApplicationId, getCounters, getDAGAttemptNumber, getDagIdentifier, getDAGName, getExecutionContext, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getUserPayload, getVertexParallelism, getWorkDirs, notifyProgress, requestInitialMemory, sendEvents
void setProgress(float progress)
TaskContext.notifyProgress()
and so invoking that separately is not required.progress
- Progress in the range from [0.0 - 1.0f]boolean canCommit() throws IOException
IOException
Input waitForAnyInputReady(Collection<Input> inputs) throws InterruptedException
inputs
- the list of Inputs to monitorInterruptedException
void waitForAllInputsReady(Collection<Input> inputs) throws InterruptedException
inputs
- the list of Inputs to monitorInterruptedException
Copyright © 2016 Apache Software Foundation. All rights reserved.