Package ca.uqac.lif.cep.tuples
Class ScalarIntoTuple
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
- ca.uqac.lif.cep.tuples.ScalarIntoTuple
-
- 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 ScalarIntoTuple extends ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
Turns a scalar object into a singleton tuple.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_keyName
The name given to the key for the resulting tuple
-
Constructor Summary
Constructors Constructor Description ScalarIntoTuple(java.lang.String name)
Creates a new instance of the function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarIntoTuple
duplicate(boolean with_state)
TupleFixed
getValue(java.lang.Object x)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Method Detail
-
getValue
public TupleFixed getValue(java.lang.Object x)
- Specified by:
getValue
in classca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
duplicate
public ScalarIntoTuple duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Overrides:
duplicate
in classca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
-