Class TransactionCommitTransformation
- java.lang.Object
-
- cz.o2.proxima.direct.core.transaction.TransactionCommitTransformation
-
- All Implemented Interfaces:
ContextualTransformation<DirectDataOperator>,DataOperatorAware,Transformation,DirectElementWiseTransform,java.io.Serializable,java.lang.AutoCloseable
public class TransactionCommitTransformation extends java.lang.Object implements DirectElementWiseTransform
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionCommitTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidsetup(Repository repo, DirectDataOperator directDataOperator, java.util.Map<java.lang.String,java.lang.Object> cfg)Read the repository and setup descriptors of target entity and attributes.voidtransform(StreamElement input, CommitCallback commitCallback)Transform and output any transformed elements.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.transform.ContextualTransformation
isContextual, onRestart
-
Methods inherited from interface cz.o2.proxima.core.transform.DataOperatorAware
as
-
Methods inherited from interface cz.o2.proxima.direct.core.transform.DirectElementWiseTransform
isDelegateOf
-
Methods inherited from interface cz.o2.proxima.core.transform.Transformation
asContextualTransform, asElementWiseTransform
-
-
-
-
Method Detail
-
setup
public void setup(Repository repo, DirectDataOperator directDataOperator, java.util.Map<java.lang.String,java.lang.Object> cfg)
Description copied from interface:ContextualTransformationRead the repository and setup descriptors of target entity and attributes.- Specified by:
setupin interfaceContextualTransformation<DirectDataOperator>- Specified by:
setupin interfaceDirectElementWiseTransform- Parameters:
repo- the repositorydirectDataOperator-DataOperatorthat delegated this Transformationcfg- transformation config map
-
transform
public void transform(StreamElement input, CommitCallback commitCallback)
Description copied from interface:DirectElementWiseTransformTransform and output any transformed elements. The complete processing is defined by this method.- Specified by:
transformin interfaceDirectElementWiseTransform- Parameters:
input- the inputStreamElementcommitCallback- asynchronous callback notifying about the result
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-