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[] |
getParents(int n,
int[] docNumbers)
Returns the document number of the parent of n or an empty
array if n does not have a parent (n is the
root node). |
getParents
int[] getParents(int n,
int[] docNumbers)
throws IOException
- Returns the document number of the parent of
n
or an empty
array if n
does not have a parent (n
is the
root node).
- Parameters:
n
- the document number.docNumbers
- an array for reuse. An implementation should use the
passed array as a container for the return value,
unless the length of the returned array is different
from docNumbers
. In which case an
implementation will create a new array with an
appropriate size.
- Returns:
- the document number of
n
's parent.
- Throws:
IOException
- if an error occurs while reading from the
index.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.