Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.payloads |
Experimental classes for interacting with payloads
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeReaderContext
IndexReaderContext for CompositeReader instance. |
class |
LeafReaderContext
IndexReaderContext for LeafReader instances. |
Modifier and Type | Field and Description |
---|---|
private java.util.List<IndexReaderContext> |
CompositeReaderContext.children |
Modifier and Type | Method and Description |
---|---|
private IndexReaderContext |
CompositeReaderContext.Builder.build(CompositeReaderContext parent,
IndexReader reader,
int ord,
int docBase) |
abstract IndexReaderContext |
IndexReader.getContext()
Expert: Returns the root
IndexReaderContext for this
IndexReader 's sub-reader tree. |
static IndexReaderContext |
ReaderUtil.getTopLevelContext(IndexReaderContext context)
Walks up the reader tree and return the given context's top level reader
context, or in other words the reader tree's root context.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<IndexReaderContext> |
IndexReaderContext.children()
Returns the context's children iff this context is a composite context
otherwise
null . |
java.util.List<IndexReaderContext> |
CompositeReaderContext.children() |
java.util.List<IndexReaderContext> |
LeafReaderContext.children() |
Modifier and Type | Method and Description |
---|---|
static TermStates |
TermStates.build(IndexReaderContext context,
Term term,
boolean needsStats)
|
static IndexReaderContext |
ReaderUtil.getTopLevelContext(IndexReaderContext context)
Walks up the reader tree and return the given context's top level reader
context, or in other words the reader tree's root context.
|
boolean |
TermStates.wasBuiltFor(IndexReaderContext context)
Expert: Return whether this
TermStates was built for the given
IndexReaderContext . |
Constructor and Description |
---|
TermStates(IndexReaderContext context)
Creates an empty
TermStates from a IndexReaderContext |
TermStates(IndexReaderContext context,
TermState state,
int ord,
int docFreq,
long totalTermFreq)
|
TermStates(Term term,
IndexReaderContext context) |
Constructor and Description |
---|
CompositeReaderContext(CompositeReaderContext parent,
CompositeReader reader,
int ordInParent,
int docbaseInParent,
java.util.List<IndexReaderContext> children)
Creates a
CompositeReaderContext for intermediate readers that aren't
not top-level readers in the current context |
CompositeReaderContext(CompositeReaderContext parent,
CompositeReader reader,
int ordInParent,
int docbaseInParent,
java.util.List<IndexReaderContext> children,
java.util.List<LeafReaderContext> leaves) |
CompositeReaderContext(CompositeReader reader,
java.util.List<IndexReaderContext> children,
java.util.List<LeafReaderContext> leaves)
Creates a
CompositeReaderContext for top-level readers with parent set to null |
Modifier and Type | Field and Description |
---|---|
private IndexReaderContext |
PayloadSpanUtil.context |
Constructor and Description |
---|
PayloadSpanUtil(IndexReaderContext context) |
Modifier and Type | Field and Description |
---|---|
protected IndexReaderContext |
IndexSearcher.readerContext |
protected IndexReaderContext |
TermCollectingRewrite.TermCollector.topReaderContext |
Modifier and Type | Method and Description |
---|---|
IndexReaderContext |
IndexSearcher.getTopReaderContext()
Returns this searchers the top-level
IndexReaderContext . |
Modifier and Type | Method and Description |
---|---|
private static TermStates |
BlendedTermQuery.adjustFrequencies(IndexReaderContext readerContext,
TermStates ctx,
int artificialDf,
long artificialTtf) |
void |
TermCollectingRewrite.TermCollector.setReaderContext(IndexReaderContext topReaderContext,
LeafReaderContext readerContext) |
Constructor and Description |
---|
IndexSearcher(IndexReaderContext context)
Creates a searcher searching the provided top-level
IndexReaderContext . |
IndexSearcher(IndexReaderContext context,
java.util.concurrent.ExecutorService executor)
Creates a searcher searching the provided top-level
IndexReaderContext . |