Class Node
java.lang.Object
com.espertech.esper.common.internal.epl.join.rep.Node
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the results of the lookup.Returns the parent node, or null if this is a root node.Returns lookup event.int
Returns the stream number of the stream that supplied the event results.void
Store lookup results.void
Sets the parent node.void
setParentEvent
(EventBean parentEvent) Set the parent lookup (from stream) event whose results (to stream) are stored.
-
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
Returns the parent node, or null if this is a root node.- Returns:
- parent node or null for root node
-
setParent
Sets the parent node.- Parameters:
parent
- to set
-
getParentEvent
Returns lookup event.- Returns:
- parent node's event that was used to lookup
-
setParentEvent
Set the parent lookup (from stream) event whose results (to stream) are stored.- Parameters:
parentEvent
- is the lookup event
-
getEvents
Returns the results of the lookup.- Returns:
- set of events
-
setEvents
Store lookup results.- Parameters:
events
- is a set of events
-