public class TransformerParallel extends Object implements org.apache.commons.collections.Transformer
Transformers to fire independently with the same input. The output is a List for each Transformer in the order in which they exist in transformers
Transformer is mutually exclusive from another.(similar),
TransformerChain.isChainOutput()| Constructor and Description |
|---|
TransformerParallel() |
TransformerParallel(List<org.apache.commons.collections.Transformer> transformers) |
TransformerParallel(org.apache.commons.collections.Transformer transformer) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.commons.collections.Transformer> |
getTransformers() |
boolean |
isCollectExceptions()
If true will collect
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setCollectExceptions(boolean collectExceptions)
If true will collect
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setTransformers(List<org.apache.commons.collections.Transformer> transformers) |
Object |
transform(Object in) |
public TransformerParallel()
public TransformerParallel(List<org.apache.commons.collections.Transformer> transformers)
public TransformerParallel(org.apache.commons.collections.Transformer transformer)
public Object transform(Object in)
transform in interface org.apache.commons.collections.Transformerpublic List<org.apache.commons.collections.Transformer> getTransformers()
public void setTransformers(List<org.apache.commons.collections.Transformer> transformers)
public boolean isCollectExceptions()
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exceptionpublic void setCollectExceptions(boolean collectExceptions)
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular ExceptionCopyright © 2018. All rights reserved.