Package cz.o2.proxima.core.transform
Class IdentityTransformation
- java.lang.Object
-
- cz.o2.proxima.core.transform.IdentityTransformation
-
- All Implemented Interfaces:
DataOperatorAgnostic,DataOperatorAware,ElementWiseProxyTransform,ElementWiseTransformation,ProxyTransform,Transformation,java.io.Serializable
@Stable public class IdentityTransformation extends java.lang.Object implements ElementWiseTransformation, ElementWiseProxyTransform
Transform perfoming identity mapping.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.transform.ElementWiseProxyTransform
ElementWiseProxyTransform.ProxySetupContext
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.transform.ElementWiseTransformation
ElementWiseTransformation.Collector<T>
-
-
Constructor Summary
Constructors Constructor Description IdentityTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapply(StreamElement input, ElementWiseTransformation.Collector<StreamElement> collector)Apply the transformation function.java.lang.StringfromProxy(java.lang.String proxy)Apply transformation to attribute name from proxy naming.voidsetup(Repository repo, java.util.Map<java.lang.String,java.lang.Object> cfg)Setup this transform.java.lang.StringtoProxy(java.lang.String raw)Apply transformation to attribute name to proxy naming.-
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.DataOperatorAgnostic
isContextual, isDelegateOf
-
Methods inherited from interface cz.o2.proxima.core.transform.DataOperatorAware
as
-
Methods inherited from interface cz.o2.proxima.core.transform.ElementWiseProxyTransform
setup, setup
-
Methods inherited from interface cz.o2.proxima.core.transform.ProxyTransform
asContextual, asElementWise
-
Methods inherited from interface cz.o2.proxima.core.transform.Transformation
asContextualTransform, asElementWiseTransform
-
-
-
-
Method Detail
-
setup
public void setup(Repository repo, java.util.Map<java.lang.String,java.lang.Object> cfg)
Description copied from interface:ElementWiseTransformationSetup this transform.- Specified by:
setupin interfaceElementWiseTransformation- Parameters:
repo- repositorycfg- configuration
-
apply
public int apply(StreamElement input, ElementWiseTransformation.Collector<StreamElement> collector)
Description copied from interface:ElementWiseTransformationApply the transformation function.- Specified by:
applyin interfaceElementWiseTransformation- Parameters:
input- the input stream element to transformcollector- collector for outputs- Returns:
- how many invocations of collector to expect before the elements should be considered processed
-
fromProxy
public java.lang.String fromProxy(java.lang.String proxy)
Description copied from interface:ElementWiseProxyTransformApply transformation to attribute name from proxy naming.- Specified by:
fromProxyin interfaceElementWiseProxyTransform- Parameters:
proxy- name of the attribute in proxy namespace- Returns:
- the raw attribute
-
toProxy
public java.lang.String toProxy(java.lang.String raw)
Description copied from interface:ElementWiseProxyTransformApply transformation to attribute name to proxy naming.- Specified by:
toProxyin interfaceElementWiseProxyTransform- Parameters:
raw- the raw attribute name- Returns:
- the proxy attribute name
-
-