Class FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.
Subclasses should implement DoWrapDirectoryReader(DirectoryReader) to return an instance of the subclass.
If the subclass wants to wrap the DirectoryReader's subreaders, it should also implement a FilterDirectoryReader.SubReaderWrapper subclass, and pass an instance to its base constructor.
Inheritance
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class FilterDirectoryReader : DirectoryReader, IIdentifiableSurrogate
Constructors
Name | Description |
---|---|
FilterDirectoryReader(DirectoryReader) | Create a new FilterDirectoryReader that filters a passed in DirectoryReader. |
FilterDirectoryReader(DirectoryReader, FilterDirectoryReader.SubReaderWrapper) | Create a new FilterDirectoryReader that filters a passed in DirectoryReader, using the supplied FilterDirectoryReader.SubReaderWrapper to wrap its subreader. |
Fields
Name | Description |
---|---|
m_input | The filtered DirectoryReader |
Properties
Name | Description |
---|---|
IndexCommit | |
Version |
Methods
Name | Description |
---|---|
DoClose() | |
DoOpenIfChanged() | |
DoOpenIfChanged(IndexCommit) | |
DoOpenIfChanged(IndexWriter, Boolean) | |
DoWrapDirectoryReader(DirectoryReader) | Called by the DoOpenIfChanged() methods to return a new wrapped DirectoryReader. Implementations should just return an instance of themselves, wrapping the passed in DirectoryReader. |
IsCurrent() |