T- the data type of items before transformation
U- the data type of items after transformation
public interface StatefulCacheTransformer<T,U> extends CacheProcessor<T,U>
|Modifier and Type||Interface and Description|
Each stateful transformer should implements its own
|Modifier and Type||Method and Description|
Creates and initializes a new transformer state, when the processed cache is iterated.
Transforms the input entry of type
TimedEntry<U> transform(StatefulCacheTransformer.TransformerState transformerState, TimedEntry<T> entry)
Tand outputs an entry of type
Ubased on the current state. The implementation should downcast StatefulCacheTransformer.TransformerState to its own implementation of
TransformerStateto retrieve the values of the state.
transformerState- the current state of the transformer
entry- the input entry
Copyright © 2010–2018 Numerical Method Inc.. All rights reserved.