Package ca.uqac.lif.cep.tuples
Class AttributeExpression
java.lang.Object
ca.uqac.lif.cep.tuples.AttributeExpression
Association between an expression to compute a value from an
AttributeGroup and an attribute name. A
SELECT
processor is made of one or more such expressions; each is
responsible for computing the value of one of the attributes of
the output tuple, expressed in terms of elements of an input
AttributeGroup. In terms of SQL, this corresponds to
the "exp AS somename" construct following the
SELECT keyword.- Author:
- Sylvain Hallé
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ca.uqac.lif.cep.functions.FunctionThe expression to compute the output valueprotected StringThe attribute name to be given to this value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAttributeExpression(ca.uqac.lif.cep.functions.Function expression, String name) Creates a new attribute expression -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuild(ArrayDeque<Object> stack) getName()Gets the attribute name given to that expressiongetValue(AttributeGroup group) Gets the value associated to the attribute nametoString()
-
Field Details
-
m_expression
protected ca.uqac.lif.cep.functions.Function m_expressionThe expression to compute the output value -
m_targetName
The attribute name to be given to this value
-
-
Constructor Details
-
AttributeExpression
protected AttributeExpression() -
AttributeExpression
Creates a new attribute expression- Parameters:
expression- The expression to compute the output valuename- The attribute name to be given to this value
-
-
Method Details