java.lang.Object
com.espertech.esper.common.internal.epl.join.rep.Node

public class Node extends Object
Node is the structure to hold results of event lookups in joined streams. A node holds a set of event which are the result of a lookup in a stream's table. A Node can be linked to its parent node and the event within the parent node, which was the event that was used to perform a lookup.
  • Constructor Details

    • Node

      public Node(int stream)
      Ctor.
      Parameters:
      stream - this node stores results for
  • Method Details

    • getStream

      public int getStream()
      Returns the stream number of the stream that supplied the event results.
      Returns:
      stream number for results
    • getParent

      public Node getParent()
      Returns the parent node, or null if this is a root node.
      Returns:
      parent node or null for root node
    • setParent

      public void setParent(Node parent)
      Sets the parent node.
      Parameters:
      parent - to set
    • getParentEvent

      public EventBean getParentEvent()
      Returns lookup event.
      Returns:
      parent node's event that was used to lookup
    • setParentEvent

      public void setParentEvent(EventBean parentEvent)
      Set the parent lookup (from stream) event whose results (to stream) are stored.
      Parameters:
      parentEvent - is the lookup event
    • getEvents

      public Set<EventBean> getEvents()
      Returns the results of the lookup.
      Returns:
      set of events
    • setEvents

      public void setEvents(Set<EventBean> events)
      Store lookup results.
      Parameters:
      events - is a set of events