Package ca.uqac.lif.cep.tuples
Class JoinSet
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,java.util.Set>
-
- ca.uqac.lif.cep.tuples.JoinSet
-
- 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 JoinSet extends ca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,java.util.Set>
Merges all tuples in a set with the same value for a given attribute. This function accepts as its input a multiset of tuples, and outputs another multiset of tuples.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_joinAttribute
The attribute over which to perform the join
-
Constructor Summary
Constructors Constructor Description JoinSet(java.lang.String join_attribute)
Creates a new join set function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinSet
duplicate(boolean with_state)
java.util.Set<?>
getValue(java.util.Set x)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Method Detail
-
getValue
public java.util.Set<?> getValue(java.util.Set x)
- Specified by:
getValue
in classca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,java.util.Set>
-
duplicate
public JoinSet duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Overrides:
duplicate
in classca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,java.util.Set>
-
-