Example #1
0
 def join(self, join_streamlet, window_config, join_function):
   """Return a new Streamlet by joining join_streamlet with this streamlet
   """
   from heronpy.streamlet.impl.joinbolt import JoinStreamlet, JoinBolt
   join_streamlet_result = JoinStreamlet(JoinBolt.INNER, window_config,
                                         join_function, self, join_streamlet)
   self._add_child(join_streamlet_result)
   join_streamlet._add_child(join_streamlet_result)
   return join_streamlet_result
Example #2
0
 def outer_left_join(self, join_streamlet, window_config, join_function):
   """Return a new Streamlet by left join_streamlet with this streamlet
   """
   from heronpy.streamlet.impl.joinbolt import JoinStreamlet, JoinBolt
   join_streamlet_result = JoinStreamlet(JoinBolt.OUTER_LEFT, window_config,
                                         join_function, self, join_streamlet)
   self._add_child(join_streamlet_result)
   join_streamlet._add_child(join_streamlet_result)
   return join_streamlet_result
Example #3
0
 def outer_right_join(self, join_streamlet, window_config, join_function):
     """Return a new Streamlet by outer right join_streamlet with this streamlet
 """
     # pylint: disable=import-outside-toplevel
     from heronpy.streamlet.impl.joinbolt import JoinStreamlet, JoinBolt
     join_streamlet_result = JoinStreamlet(JoinBolt.OUTER_RIGHT,
                                           window_config, join_function,
                                           self, join_streamlet)
     self._add_child(join_streamlet_result)
     join_streamlet._add_child(join_streamlet_result)
     return join_streamlet_result