public final class LeafReaderContext extends IndexReaderContext
IndexReaderContext for LeafReader instances.| Modifier and Type | Field and Description |
|---|---|
int |
docBase
The reader's absolute doc base
|
int |
ord
The reader's ord in the top-level's leaves array
|
docBaseInParent, isTopLevel, ordInParent, parent| Modifier and Type | Method and Description |
|---|---|
java.util.List<IndexReaderContext> |
children()
Returns the context's children iff this context is a composite context
otherwise
null. |
java.util.List<LeafReaderContext> |
leaves()
Returns the context's leaves if this context is a top-level context.
|
LeafReader |
reader()
Returns the
IndexReader, this context represents. |
java.lang.String |
toString() |
idpublic final int ord
public final int docBase
public java.util.List<LeafReaderContext> leaves()
IndexReaderContextLeafReaderContext 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 IndexReaderContextIndexReaderContext.children()public java.util.List<IndexReaderContext> children()
IndexReaderContextnull.children in class IndexReaderContextpublic LeafReader reader()
IndexReaderContextIndexReader, this context represents.reader in class IndexReaderContextpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.