Class TransposePair

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Tuple>
ca.uqac.lif.cep.tuples.TransposePair
All Implemented Interfaces:
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 String
    The key associated to the tuple's header
    protected String
    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(String column_header, String column_value)
    Creates a new instance of the tuple transposition function.
  • Method Summary

    Modifier and Type
    Method
    Description
    duplicate(boolean with_state)
     
     

    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, printState, readState

    Methods inherited from class java.lang.Object

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

    • m_columnHeader

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

      protected String m_columnValue
      The key associated to the tuple's value
  • Constructor Details

    • TransposePair

      public TransposePair(String column_header, 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 Details

    • 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>