|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.search.basic.QueryTree
Represents the scopes for all stores, that are within the scope of one query.
Nested Class Summary | |
(package private) class |
QueryTree.TokenizedScope
Helper class to handle the scopes |
Constructor Summary | |
(package private) |
QueryTree(java.util.Enumeration stores,
Scope scope,
Scope[] excluded)
Constructs a query tree |
Method Summary | |
boolean |
hasChildren(Scope scopeToBeChecked)
Checks, if the indicated scope has children within this QueryTree. |
java.util.Iterator |
iterator()
Retrieves an iterator of all scopes in this Tree |
int |
relativeDepth(Scope scope)
calculates the depth of scope within this QueryTree (relative to the topLevel of tree) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
QueryTree(java.util.Enumeration stores, Scope scope, Scope[] excluded) throws InvalidScopeException
stores
- all stores, that are within this namespacescope
- the scope of this queryexcluded
- a list of scopes, that shall be excluded from searchMethod Detail |
public boolean hasChildren(Scope scopeToBeChecked)
scopeToBeChecked
- the Scope to be checked
public int relativeDepth(Scope scope)
scope
- a Scope
public java.util.Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |