org.apache.jackrabbit.core.query.lucene
Interface HierarchyResolver
- All Known Implementing Classes:
- CachingMultiIndexReader, JackrabbitIndexReader, SearchIndex.CombinedIndexReader
public interface HierarchyResolver
HierarchyResolver extends an IndexReader
with the ability to resolve a JCR hierarchy.
|
Method Summary |
int |
getParent(int n)
Returns the document number of the parent of n or
-1 if n does not have a parent (n
is the root node). |
getParent
int getParent(int n)
throws java.io.IOException
- Returns the document number of the parent of
n or
-1 if n does not have a parent (n
is the root node).
- Parameters:
n - the document number.
- Returns:
- the document number of
n's parent.
- Throws:
java.io.IOException - if an error occurs while reading from the index.
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.