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 int
apply(StreamElement input, ElementWiseTransformation.Collector<StreamElement> collector)
Apply the transformation function.java.lang.String
fromProxy(java.lang.String proxy)
Apply transformation to attribute name from proxy naming.void
setup(Repository repo, java.util.Map<java.lang.String,java.lang.Object> cfg)
Setup this transform.java.lang.String
toProxy(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:ElementWiseTransformation
Setup this transform.- Specified by:
setup
in interfaceElementWiseTransformation
- Parameters:
repo
- repositorycfg
- configuration
-
apply
public int apply(StreamElement input, ElementWiseTransformation.Collector<StreamElement> collector)
Description copied from interface:ElementWiseTransformation
Apply the transformation function.- Specified by:
apply
in 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:ElementWiseProxyTransform
Apply transformation to attribute name from proxy naming.- Specified by:
fromProxy
in 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:ElementWiseProxyTransform
Apply transformation to attribute name to proxy naming.- Specified by:
toProxy
in interfaceElementWiseProxyTransform
- Parameters:
raw
- the raw attribute name- Returns:
- the proxy attribute name
-
-