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<LeafReaderContext> |
leaves()
Returns the context's leaves if this context is a top-level context.
|
CompositeReader |
reader()
Returns the
IndexReader , this context represents. |
id
public List<LeafReaderContext> leaves() throws UnsupportedOperationException
IndexReaderContext
LeafReaderContext
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 IndexReaderContext
UnsupportedOperationException
- if this is not a top-level context.IndexReaderContext.children()
public List<IndexReaderContext> children()
IndexReaderContext
null
.children
in class IndexReaderContext
public CompositeReader reader()
IndexReaderContext
IndexReader
, this context represents.reader
in class IndexReaderContext
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.