Package org.apache.lucene.index
Class AtomicReaderContext
- java.lang.Object
 - 
- org.apache.lucene.index.IndexReaderContext
 - 
- org.apache.lucene.index.AtomicReaderContext
 
 
 
- 
public final class AtomicReaderContext extends IndexReaderContext
IndexReaderContextforAtomicReaderinstances. 
- 
- 
Field Summary
Fields Modifier and Type Field Description intdocBaseThe readers absolute doc baseintordThe readers ord in the top-level's leaves array- 
Fields inherited from class org.apache.lucene.index.IndexReaderContext
docBaseInParent, isTopLevel, ordInParent, parent 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IndexReaderContext>children()Returns the context's children iff this context is a composite context otherwisenull.java.util.List<AtomicReaderContext>leaves()Returns the context's leaves if this context is a top-level context.AtomicReaderreader()Returns theIndexReader, this context represents. 
 - 
 
- 
- 
Method Detail
- 
leaves
public java.util.List<AtomicReaderContext> leaves()
Description copied from class:IndexReaderContextReturns the context's leaves if this context is a top-level context. For convenience, if this is anAtomicReaderContextthis 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().- Specified by:
 leavesin classIndexReaderContext- See Also:
 IndexReaderContext.children()
 
- 
children
public java.util.List<IndexReaderContext> children()
Description copied from class:IndexReaderContextReturns the context's children iff this context is a composite context otherwisenull.- Specified by:
 childrenin classIndexReaderContext
 
- 
reader
public AtomicReader reader()
Description copied from class:IndexReaderContextReturns theIndexReader, this context represents.- Specified by:
 readerin classIndexReaderContext
 
 - 
 
 -