|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.join.assemble.BaseAssemblyNodeFactory
public abstract class BaseAssemblyNodeFactory
Represents the factory of a node in a tree responsible for assembling outer join query results.
The tree of factory nodes is double-linked, child nodes know each parent and parent know all child nodes.
Field Summary | |
---|---|
protected java.util.List<BaseAssemblyNodeFactory> |
childNodes
Child nodes. |
protected int |
numStreams
Number of streams in statement. |
protected BaseAssemblyNodeFactory |
parentNode
Parent node. |
protected int |
streamNum
Stream number. |
Constructor Summary | |
---|---|
protected |
BaseAssemblyNodeFactory(int streamNum,
int numStreams)
Ctor. |
Method Summary | |
---|---|
void |
addChild(BaseAssemblyNodeFactory childNode)
Add a child node. |
java.util.List<BaseAssemblyNodeFactory> |
getChildNodes()
Returns child nodes. |
static java.util.List<BaseAssemblyNodeFactory> |
getDescendentNodesBottomUp(BaseAssemblyNodeFactory 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. |
BaseAssemblyNodeFactory |
getParentNode()
|
protected int |
getStreamNum()
Returns the stream number. |
abstract BaseAssemblyNode |
makeAssemblerUnassociated()
|
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. |
void |
setParent(BaseAssemblyNodeFactory parent)
Set parent node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BaseAssemblyNodeFactory parentNode
protected final java.util.List<BaseAssemblyNodeFactory> childNodes
protected final int streamNum
protected final int numStreams
Constructor Detail |
---|
protected BaseAssemblyNodeFactory(int streamNum, int numStreams)
streamNum
- - stream number of the event stream that this node assembles results for.numStreams
- - number of streamsMethod Detail |
---|
public abstract BaseAssemblyNode makeAssemblerUnassociated()
public abstract void print(IndentWriter indentWriter)
indentWriter
- to use for outputpublic void setParent(BaseAssemblyNodeFactory parent)
public BaseAssemblyNodeFactory getParentNode()
public void addChild(BaseAssemblyNodeFactory childNode)
childNode
- to addprotected int getStreamNum()
public java.util.List<BaseAssemblyNodeFactory> getChildNodes()
public void printDescendends(IndentWriter indentWriter)
indentWriter
- to output topublic static java.util.List<BaseAssemblyNodeFactory> getDescendentNodesBottomUp(BaseAssemblyNodeFactory topNode)
topNode
- is the root node of a tree structure
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |