Class LeafAssemblyNode
java.lang.Object
com.espertech.esper.common.internal.epl.join.assemble.BaseAssemblyNode
com.espertech.esper.common.internal.epl.join.assemble.LeafAssemblyNode
- All Implemented Interfaces:
ResultAssembler
Assembly node for an event stream that is a leaf with a no child nodes below it.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.join.assemble.BaseAssemblyNode
childNodes, numStreams, parentNode, streamNum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Provides results to assembly nodes for initialization.void
print
(IndentWriter indentWriter) Output this node using writer, not outputting child nodes.void
Process results.void
result
(EventBean[] row, int streamNum, EventBean myEvent, Node myNode, Collection<EventBean[]> resultFinalRows, EventBean resultRootEvent) Publish a result row.Methods inherited from class com.espertech.esper.common.internal.epl.join.assemble.BaseAssemblyNode
addChild, getChildNodes, getStreamNum, getSubstreams, setParentAssembler
-
Constructor Details
-
LeafAssemblyNode
public LeafAssemblyNode(int streamNum, int numStreams) Ctor.- Parameters:
streamNum
- - is the stream numbernumStreams
- - is the number of streams
-
-
Method Details
-
init
Description copied from class:BaseAssemblyNode
Provides results to assembly nodes for initialization.- Specified by:
init
in classBaseAssemblyNode
- Parameters:
result
- is a list of result nodes per stream
-
process
public void process(List<Node>[] result, Collection<EventBean[]> resultFinalRows, EventBean resultRootEvent) Description copied from class:BaseAssemblyNode
Process results.- Specified by:
process
in classBaseAssemblyNode
- Parameters:
result
- is a list of result nodes per streamresultFinalRows
- final row collectionresultRootEvent
- root event
-
result
public void result(EventBean[] row, int streamNum, EventBean myEvent, Node myNode, Collection<EventBean[]> resultFinalRows, EventBean resultRootEvent) Description copied from interface:ResultAssembler
Publish a result row.- Parameters:
row
- is the result to publishstreamNum
- is the originitor that publishes the rowmyEvent
- is optional and is the event that led to the row resultmyNode
- is optional and is the result node of the event that led to the row resultresultFinalRows
- is the final result rowsresultRootEvent
- root event
-
print
Description copied from class:BaseAssemblyNode
Output this node using writer, not outputting child nodes.- Specified by:
print
in classBaseAssemblyNode
- Parameters:
indentWriter
- to use for output
-