Package ca.uqac.lif.cep.tuples
Class Select.SelectFunction
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,java.lang.Object>
-
- ca.uqac.lif.cep.tuples.Select.SelectFunction
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable
,ca.uqac.lif.azrael.Readable
,ca.uqac.lif.cep.Duplicable
,ca.uqac.lif.cep.functions.DuplicableFunction
- Enclosing class:
- Select
public static class Select.SelectFunction extends ca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,java.lang.Object>
The internal function performing the actual work for theFrom
processor.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeExpression[]
m_expressions
The expressions used to build the output tuple
-
Constructor Summary
Constructors Constructor Description SelectFunction(AttributeExpression... expressions)
Creates a new instance of theSELECT
functionSelectFunction(java.util.Collection<AttributeExpression> expressions)
Creates a new instance of theSELECT
function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getOutputTypeFor(int index)
java.lang.Object
getValue(AttributeGroup group)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
duplicate, evaluate, getInputArity, getInputTypesFor, getOutputArity, reset
-
-
-
-
Field Detail
-
m_expressions
protected AttributeExpression[] m_expressions
The expressions used to build the output tuple
-
-
Constructor Detail
-
SelectFunction
public SelectFunction(AttributeExpression... expressions)
Creates a new instance of theSELECT
function- Parameters:
expressions
- The definition of each attribute of the output tuples to create
-
SelectFunction
public SelectFunction(java.util.Collection<AttributeExpression> expressions)
Creates a new instance of theSELECT
function- Parameters:
expressions
- The definition of each attribute of the output tuples to create
-
-
Method Detail
-
getValue
public java.lang.Object getValue(AttributeGroup group)
- Specified by:
getValue
in classca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,java.lang.Object>
-
getOutputTypeFor
public java.lang.Class<?> getOutputTypeFor(int index)
- Overrides:
getOutputTypeFor
in classca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,java.lang.Object>
-
-