Class ScalarIntoTuple

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<Object,TupleFixed>
ca.uqac.lif.cep.tuples.ScalarIntoTuple
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction

public class ScalarIntoTuple extends ca.uqac.lif.cep.functions.UnaryFunction<Object,TupleFixed>
Turns a scalar object into a singleton tuple.
Author:
Sylvain Hallé
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The name given to the key for the resulting tuple

    Fields inherited from class ca.uqac.lif.cep.functions.Function

    s_maxInputArity
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of the 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_keyName

      protected String m_keyName
      The name given to the key for the resulting tuple
  • Constructor Details

    • ScalarIntoTuple

      public ScalarIntoTuple(String name)
      Creates a new instance of the function
      Parameters:
      name - The name given to the key in the resulting tuple
  • Method Details

    • getValue

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

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