Class 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
      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • 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
      • Methods inherited from class ca.uqac.lif.cep.functions.Function

        duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, print, printState, read, readState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_joinAttribute

        protected java.lang.String m_joinAttribute
        The attribute over which to perform the join
    • Constructor Detail

      • JoinSet

        public JoinSet​(java.lang.String join_attribute)
        Creates a new join set function
        Parameters:
        join_attribute - The attribute over which to perform the join. All tuples in the input set with the same value for that attribute will be merged into a single tuple.
    • Method Detail

      • getValue

        public java.util.Set<?> getValue​(java.util.Set x)
        Specified by:
        getValue in class ca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,​java.util.Set>
      • duplicate

        public JoinSet duplicate​(boolean with_state)
        Specified by:
        duplicate in interface ca.uqac.lif.cep.Duplicable
        Overrides:
        duplicate in class ca.uqac.lif.cep.functions.UnaryFunction<java.util.Set,​java.util.Set>