Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations
to transform or extend it.
|
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 abstract DirectoryReader |
FilterDirectoryReader.doWrapDirectoryReader(DirectoryReader in)
Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.
|
static DirectoryReader |
IndexReader.open(Directory directory)
Deprecated.
Use
open(Directory) |
static DirectoryReader |
DirectoryReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory
|
static DirectoryReader |
IndexReader.open(Directory directory,
int termInfosIndexDivisor)
Deprecated.
|
static DirectoryReader |
DirectoryReader.open(Directory directory,
int termInfosIndexDivisor)
Expert: Returns a IndexReader reading the index in the given
Directory with the given termInfosIndexDivisor.
|
static DirectoryReader |
IndexReader.open(IndexCommit commit)
Deprecated.
|
static DirectoryReader |
DirectoryReader.open(IndexCommit commit)
Expert: returns an IndexReader reading the index in the given
IndexCommit . |
static DirectoryReader |
IndexReader.open(IndexCommit commit,
int termInfosIndexDivisor)
Deprecated.
|
static DirectoryReader |
DirectoryReader.open(IndexCommit commit,
int termInfosIndexDivisor)
Expert: returns an IndexReader reading the index in the given
IndexCommit and termInfosIndexDivisor. |
static DirectoryReader |
IndexReader.open(IndexWriter writer,
boolean applyAllDeletes)
Deprecated.
|
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) |
Modifier and Type | Method and Description |
---|---|
protected void |
ReaderManager.decRef(DirectoryReader reference) |
protected abstract DirectoryReader |
FilterDirectoryReader.doWrapDirectoryReader(DirectoryReader in)
Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.
|
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) |
Constructor and Description |
---|
FilterDirectoryReader(DirectoryReader in)
Create a new FilterDirectoryReader that filters a passed in DirectoryReader.
|
FilterDirectoryReader(DirectoryReader in,
FilterDirectoryReader.SubReaderWrapper wrapper)
Create a new FilterDirectoryReader that filters a passed in DirectoryReader,
using the supplied SubReaderWrapper to wrap its subreader.
|
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.