Package ca.uqac.lif.cep.tuples
Class TransposePair
- java.lang.Object
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable
,ca.uqac.lif.azrael.Readable
,ca.uqac.lif.cep.Duplicable
,ca.uqac.lif.cep.functions.DuplicableFunction
public class TransposePair extends ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Tuple>
Creates two Applies a triple substitution to a singleton tuple. Given a tuple {(foo,bar)} two new names baz and biz, the transformation will produce the tuple {(baz=foo,biz=bar)}.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_columnHeader
The key associated to the tuple's headerprotected java.lang.String
m_columnValue
The key associated to the tuple's value
-
Constructor Summary
Constructors Constructor Description TransposePair(java.lang.String column_header, java.lang.String column_value)
Creates a new instance of the tuple transposition function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransposePair
duplicate(boolean with_state)
Tuple
getValue(Tuple x)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Constructor Detail
-
TransposePair
public TransposePair(java.lang.String column_header, java.lang.String column_value)
Creates a new instance of the tuple transposition function.- Parameters:
column_header
- The key associated to the tuple's headercolumn_value
- The key associated to the tuple's value
-
-
Method Detail
-
duplicate
public TransposePair duplicate(boolean with_state)
-
-