org.apache.jackrabbit.core.query.lucene
Interface HierarchyResolver
- All Known Implementing Classes:
- CachingMultiReader, 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
public int getParent(int n)
throws 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:
IOException
- if an error occurs while reading from the index.
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.