public final class CompositeReaderContext extends IndexReaderContext
IndexReaderContext for CompositeReader instance.docBaseInParent, isTopLevel, ordInParent, parent| Modifier and Type | Method and Description |
|---|---|
List<IndexReaderContext> |
children()
Returns the context's children iff this context is a composite context
otherwise
null. |
List<AtomicReaderContext> |
leaves()
Returns the context's leaves if this context is a top-level context.
|
CompositeReader |
reader()
Returns the
IndexReader, this context represents. |
public List<AtomicReaderContext> leaves() throws UnsupportedOperationException
IndexReaderContextAtomicReaderContext this
returns itself as the only leaf.
Note: this is convenience method since leaves can always be obtained by
walking the context tree using IndexReaderContext.children().
leaves in class IndexReaderContextUnsupportedOperationException - if this is not a top-level context.IndexReaderContext.children()public List<IndexReaderContext> children()
IndexReaderContextnull.children in class IndexReaderContextpublic CompositeReader reader()
IndexReaderContextIndexReader, this context represents.reader in class IndexReaderContextCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.