AttributeStorage as an
external state storage. Please note, that AttributeStorage is being passed as the parameter to all
Transformer methods. This way it's possible to reuse single instance of a stateful Transformer to
process lots of concurrent transformations.
| Modifier and Type | Method and Description |
|---|---|
| public TransformationResult | Returns: the last returned Transformer result.the external state storage, where Transformer could retrieve or store its state. storage)Gets the last returned Transformer result. |
| public String | |
| public boolean | |
| public void | release(AttributeStorage
the external state storage, where Transformer could retrieve or store its state. storage)The Transformer has done its work and can release all associated resource. |
| public TransformationResult | Returns: the resultTransformationResultthe external state storage, where Transformer could get/put a state. storage, K data to transform input)Transforms an input data to some custom representation. |
| getLastResult | back to summary |
|---|---|
| public TransformationResult Gets the last returned Transformer result. Last result could be either retrieved from internal state, or external storage, which is passed as the parameter.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the Transformer name. The name is used to store Transformer associated data.
| |
| hasInputRemaining | back to summary |
|---|---|
| public boolean hasInputRemaining(AttributeStorage storage, K input) | |
| release | back to summary |
|---|---|
| public void release(AttributeStorage storage) The Transformer has done its work and can release all associated resource.
| |
| transform | back to summary |
|---|---|
| public TransformationResult Transforms an input data to some custom representation. Input and output are not passed implicitly, which means that
Transformer is able to retrieve input and output from its internal state or from external storage
(
| |