Package | Description |
---|---|
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks
|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy index implementation using on top of a Directory.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
DirectoryReader |
PerfRunData.getIndexReader() |
Modifier and Type | Method and Description |
---|---|
void |
PerfRunData.setIndexReader(DirectoryReader indexReader)
Set the index reader.
|
Modifier and Type | Method and Description |
---|---|
protected DirectoryReader |
DirectoryTaxonomyReader.openIndexReader(Directory directory)
Open the
DirectoryReader from this Directory . |
protected DirectoryReader |
DirectoryTaxonomyReader.openIndexReader(IndexWriter writer)
Open the
DirectoryReader from this IndexWriter . |
Modifier and Type | Class and Description |
---|---|
class |
AssertingDirectoryReader
A
DirectoryReader that wraps all its subreaders with
AssertingLeafReader |
class |
ExitableDirectoryReader
The
ExitableDirectoryReader wraps a real index DirectoryReader and
allows for a QueryTimeout implementation object to be checked periodically
to see if the thread should exit or not. |
class |
FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations
to transform or extend it.
|
class |
MismatchedDirectoryReader
A
DirectoryReader that wraps all its subreaders with
MismatchedLeafReader |
Modifier and Type | Field and Description |
---|---|
protected DirectoryReader |
FilterDirectoryReader.in
The filtered DirectoryReader
|
Modifier and Type | Method and Description |
---|---|
protected DirectoryReader |
FilterDirectoryReader.doOpenIfChanged() |
protected abstract DirectoryReader |
DirectoryReader.doOpenIfChanged()
Implement this method to support
openIfChanged(DirectoryReader) . |
protected DirectoryReader |
FilterDirectoryReader.doOpenIfChanged(IndexCommit commit) |
protected abstract DirectoryReader |
DirectoryReader.doOpenIfChanged(IndexCommit commit)
Implement this method to support
openIfChanged(DirectoryReader,IndexCommit) . |
protected DirectoryReader |
FilterDirectoryReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes) |
protected abstract DirectoryReader |
DirectoryReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes)
Implement this method to support
openIfChanged(DirectoryReader,IndexWriter,boolean) . |
protected DirectoryReader |
MismatchedDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
protected DirectoryReader |
AssertingDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
protected abstract DirectoryReader |
FilterDirectoryReader.doWrapDirectoryReader(DirectoryReader in)
Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.
|
protected DirectoryReader |
ExitableDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
DirectoryReader |
FilterDirectoryReader.getDelegate()
Returns the wrapped
DirectoryReader . |
DirectoryReader |
RandomIndexWriter.getReader() |
DirectoryReader |
RandomIndexWriter.getReader(boolean applyDeletions) |
static DirectoryReader |
DirectoryReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory
|
static DirectoryReader |
DirectoryReader.open(IndexCommit commit)
Expert: returns an IndexReader reading the index in the given
IndexCommit . |
static DirectoryReader |
DirectoryReader.open(IndexWriter writer,
boolean applyAllDeletes)
Open a near real time IndexReader from the
IndexWriter . |
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader)
If the index has changed since the provided reader was
opened, open and return a new reader; else, return
null.
|
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader,
IndexCommit commit)
If the IndexCommit differs from what the
provided reader is searching, open and return a new
reader; else, return null.
|
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader,
IndexWriter writer,
boolean applyAllDeletes)
Expert: If there changes (committed or not) in the
IndexWriter versus what the provided reader is
searching, then open and return a new
IndexReader searching both committed and uncommitted
changes from the writer; else, return null (though, the
current implementation never returns null). |
protected DirectoryReader |
ReaderManager.refreshIfNeeded(DirectoryReader referenceToRefresh) |
static DirectoryReader |
FilterDirectoryReader.unwrap(DirectoryReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterDirectoryReader . |
static DirectoryReader |
ExitableDirectoryReader.wrap(DirectoryReader in,
QueryTimeout queryTimeout)
Wraps a provided DirectoryReader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ReaderManager.decRef(DirectoryReader reference) |
protected DirectoryReader |
MismatchedDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
protected DirectoryReader |
AssertingDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
protected abstract DirectoryReader |
FilterDirectoryReader.doWrapDirectoryReader(DirectoryReader in)
Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.
|
protected DirectoryReader |
ExitableDirectoryReader.doWrapDirectoryReader(DirectoryReader in) |
protected int |
ReaderManager.getRefCount(DirectoryReader reference) |
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader)
If the index has changed since the provided reader was
opened, open and return a new reader; else, return
null.
|
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader,
IndexCommit commit)
If the IndexCommit differs from what the
provided reader is searching, open and return a new
reader; else, return null.
|
static DirectoryReader |
DirectoryReader.openIfChanged(DirectoryReader oldReader,
IndexWriter writer,
boolean applyAllDeletes)
Expert: If there changes (committed or not) in the
IndexWriter versus what the provided reader is
searching, then open and return a new
IndexReader searching both committed and uncommitted
changes from the writer; else, return null (though, the
current implementation never returns null). |
protected DirectoryReader |
ReaderManager.refreshIfNeeded(DirectoryReader referenceToRefresh) |
protected boolean |
ReaderManager.tryIncRef(DirectoryReader reference) |
static DirectoryReader |
FilterDirectoryReader.unwrap(DirectoryReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterDirectoryReader . |
static DirectoryReader |
ExitableDirectoryReader.wrap(DirectoryReader in,
QueryTimeout queryTimeout)
Wraps a provided DirectoryReader.
|
Constructor and Description |
---|
AssertingDirectoryReader(DirectoryReader in) |
ExitableDirectoryReader(DirectoryReader in,
QueryTimeout queryTimeout)
Constructor
|
FilterDirectoryReader(DirectoryReader in,
FilterDirectoryReader.SubReaderWrapper wrapper)
Create a new FilterDirectoryReader that filters a passed in DirectoryReader,
using the supplied SubReaderWrapper to wrap its subreader.
|
MismatchedDirectoryReader(DirectoryReader in,
Random random) |
ReaderManager(DirectoryReader reader)
Creates and returns a new ReaderManager from the given
already-opened
DirectoryReader , stealing
the incoming reference. |
Constructor and Description |
---|
SearcherManager(DirectoryReader reader,
SearcherFactory searcherFactory)
Creates and returns a new SearcherManager from an existing
DirectoryReader . |
Modifier and Type | Method and Description |
---|---|
static DirectoryReader |
UninvertingReader.wrap(DirectoryReader in,
Map<String,UninvertingReader.Type> mapping)
Wraps a provided DirectoryReader.
|
Modifier and Type | Method and Description |
---|---|
static DirectoryReader |
UninvertingReader.wrap(DirectoryReader in,
Map<String,UninvertingReader.Type> mapping)
Wraps a provided DirectoryReader.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.addIndexesSlowly(IndexWriter writer,
DirectoryReader... readers) |
static SegmentReader |
LuceneTestCase.getOnlySegmentReader(DirectoryReader reader)
Some tests expect the directory to contain a single segment, and want to
do tests on that segment's reader.
|
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.