Class TransposePair

  • 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 header
      protected java.lang.String m_columnValue
      The key associated to the tuple's value
      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • 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
      • Methods inherited from class ca.uqac.lif.cep.functions.Function

        duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, print, printState, read, readState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_columnHeader

        protected java.lang.String m_columnHeader
        The key associated to the tuple's header
      • m_columnValue

        protected java.lang.String m_columnValue
        The key associated to the tuple's value
    • 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 header
        column_value - The key associated to the tuple's value
    • Method Detail

      • getValue

        public Tuple getValue​(Tuple x)
        Specified by:
        getValue in class ca.uqac.lif.cep.functions.UnaryFunction<Tuple,​Tuple>
      • duplicate

        public TransposePair duplicate​(boolean with_state)
        Specified by:
        duplicate in interface ca.uqac.lif.cep.Duplicable
        Overrides:
        duplicate in class ca.uqac.lif.cep.functions.UnaryFunction<Tuple,​Tuple>