@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, getDAGName, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getUserPayload, getVertexParallelism, getWorkDirs, requestInitialMemory, sendEventsvoid setProgress(float progress)
progress - Progress in the range from [0.0 - 1.0f]boolean canCommit()
throws IOException
IOExceptionInput waitForAnyInputReady(Collection<Input> inputs) throws InterruptedException
inputs - the list of Inputs to monitorInterruptedExceptionvoid waitForAllInputsReady(Collection<Input> inputs) throws InterruptedException
inputs - the list of Inputs to monitorInterruptedExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.