public abstract class BaseAssemblyNode extends java.lang.Object implements ResultAssembler
The tree is double-linked, child nodes know each parent and parent know all child nodes.
Each specific subclass of this abstract assembly node is dedicated to assembling results for a certain event stream.
Modifier and Type | Method and Description |
---|---|
void |
addChild(BaseAssemblyNode childNode)
Add a child node.
|
static java.util.List<BaseAssemblyNode> |
getDescendentNodesBottomUp(BaseAssemblyNode topNode)
Returns all descendent nodes to the top node in a list in which the utmost descendants are
listed first and the top node itself is listed last.
|
abstract void |
init(java.util.List<Node>[] result)
Provides results to assembly nodes for initialization.
|
abstract void |
print(IndentWriter indentWriter)
Output this node using writer, not outputting child nodes.
|
void |
printDescendends(IndentWriter indentWriter)
Output this node and all descendent nodes using writer, outputting child nodes.
|
abstract void |
process(java.util.List<Node>[] result,
java.util.Collection<EventBean[]> resultFinalRows,
EventBean resultRootEvent)
Process results.
|
void |
setParentAssembler(ResultAssembler resultAssembler)
Set parent node.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
result
public abstract void init(java.util.List<Node>[] result)
result
- is a list of result nodes per streampublic abstract void process(java.util.List<Node>[] result, java.util.Collection<EventBean[]> resultFinalRows, EventBean resultRootEvent)
result
- is a list of result nodes per streamresultFinalRows
- resultRootEvent
- public abstract void print(IndentWriter indentWriter)
indentWriter
- to use for outputpublic void setParentAssembler(ResultAssembler resultAssembler)
resultAssembler
- is the parent nodepublic void addChild(BaseAssemblyNode childNode)
childNode
- to addpublic void printDescendends(IndentWriter indentWriter)
indentWriter
- to output topublic static java.util.List<BaseAssemblyNode> getDescendentNodesBottomUp(BaseAssemblyNode topNode)
topNode
- is the root node of a tree structure