|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.IndexTreeBuilder
public final class IndexTreeBuilder
Builder manipulates a tree structure consisting of FilterHandleSetNode
and FilterParamIndexBase
instances.
Filters can be added to a top node (an instance of FilterHandleSetNode) via the add method. This method returns
an instance of IndexTreePath
which represents the tree path (list of indizes) that the filter callback was
added to. To remove filters the same IndexTreePath instance must be passed in.
The implementation is designed to be multithread-safe in conjunction with the node classes manipulated by this class.
Constructor Summary | |
---|---|
IndexTreeBuilder()
Constructor. |
Method Summary | |
---|---|
IndexTreePath |
add(FilterValueSet filterValueSet,
FilterHandle filterCallback,
FilterHandleSetNode topNode)
Add a filter callback according to the filter specification to the top node returning information to be used to remove the filter callback. |
protected static SortedSet<FilterValueSetParam> |
copySortParameters(List<FilterValueSetParam> parameters)
Copy the parameter list - this also sorts the parameter list. |
void |
remove(FilterHandle filterCallback,
IndexTreePath treePathInfo,
FilterHandleSetNode topNode)
Remove an filterCallback from the given top node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexTreeBuilder()
Method Detail |
---|
public final IndexTreePath add(FilterValueSet filterValueSet, FilterHandle filterCallback, FilterHandleSetNode topNode)
filterValueSet
- is the filter definitionfilterCallback
- is the callback to be addedtopNode
- node to be added to any subnode beneath it
public final void remove(FilterHandle filterCallback, IndexTreePath treePathInfo, FilterHandleSetNode topNode)
filterCallback
- filter callback to be removedtreePathInfo
- encapsulates information need to allow for safe removal of the filterCallbacktopNode
- The top tree node beneath which the filterCallback was addedprotected static SortedSet<FilterValueSetParam> copySortParameters(List<FilterValueSetParam> parameters)
parameters
- is a list of filter parameters
|
© 2007 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 |