public class TransformerParallel extends Object implements org.apache.commons.collections.Transformer
Transformer
s 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
ContinueProcessingException s and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setCollectExceptions(boolean collectExceptions)
If true will collect
ContinueProcessingException s 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.Transformer
public List<org.apache.commons.collections.Transformer> getTransformers()
public void setTransformers(List<org.apache.commons.collections.Transformer> transformers)
public boolean isCollectExceptions()
ContinueProcessingException
s and throw a WrapperException
with a LinkedHashMap
of the Transformer
that caused and the particular Exception
public void setCollectExceptions(boolean collectExceptions)
ContinueProcessingException
s and throw a WrapperException
with a LinkedHashMap
of the Transformer
that caused and the particular Exception
Copyright © 2018. All rights reserved.