Interface HierarchyResolver
-
- All Known Implementing Classes:
CachingMultiIndexReader,JackrabbitIndexReader,SearchIndex.CombinedIndexReader
public interface HierarchyResolverHierarchyResolverextends anIndexReaderwith the ability to resolve a JCR hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int[]getParents(int n, int[] docNumbers)Returns the document number of the parent ofnor an empty array ifndoes not have a parent (nis the root node).
-
-
-
Method Detail
-
getParents
int[] getParents(int n, int[] docNumbers) throws IOExceptionReturns the document number of the parent ofnor an empty array ifndoes not have a parent (nis 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 fromdocNumbers. 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.
-
-