T - type of metadata this stage operates upon@ThreadSafe public abstract class BaseIteratingStage<T> extends BaseStage<T>
| Constructor and Description |
|---|
BaseIteratingStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(Collection<Item<T>> itemCollection)
Iterates over each element of the Item collection and delegates the processing of that element to
doExecute(Item). |
protected abstract boolean |
doExecute(Item<T> item)
Processes a given Item.
|
execute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprotected void doExecute(@Nonnull@NonnullElements Collection<Item<T>> itemCollection) throws StageProcessingException
doExecute(Item).
Performs the stage processing on the given Item collection.
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<T>itemCollection - collection to be processedStageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected abstract boolean doExecute(@Nonnull Item<T> item) throws StageProcessingException
item - Item on which to operateStageProcessingException - thrown if there is a problem with the stage processingCopyright © 1999–2016. All rights reserved.