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.Stringm_columnHeaderThe key associated to the tuple's headerprotected java.lang.Stringm_columnValueThe 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 TransposePairduplicate(boolean with_state)TuplegetValue(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)
-
-