com.espertech.esper.epl.join.rep
Class Node

java.lang.Object
  extended by com.espertech.esper.epl.join.rep.Node

public class Node
extends java.lang.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 Summary
Node(int stream)
          Ctor.
 
Method Summary
 java.util.Set<EventBean> getEvents()
          Returns the results of the lookup.
 Node getParent()
          Returns the parent node, or null if this is a root node.
 EventBean getParentEvent()
          Returns lookup event.
 int getStream()
          Returns the stream number of the stream that supplied the event results.
 void setEvents(java.util.Set<EventBean> events)
          Store lookup results.
 void setParent(Node parent)
          Sets the parent node.
 void setParentEvent(EventBean parentEvent)
          Set the parent lookup (from stream) event whose results (to stream) are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(int stream)
Ctor.

Parameters:
stream - this node stores results for
Method Detail

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 java.util.Set<EventBean> getEvents()
Returns the results of the lookup.

Returns:
set of events

setEvents

public void setEvents(java.util.Set<EventBean> events)
Store lookup results.

Parameters:
events - is a set of events

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com