Class FilterDirectoryReader
A Filter
Subclasses should implement Do
If the subclass wants to wrap the Directory
Inheritance
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class FilterDirectoryReader : DirectoryReader
Constructors
| Improve this Doc View SourceFilterDirectoryReader(DirectoryReader)
Create a new Filter
Declaration
public FilterDirectoryReader(DirectoryReader input)
Parameters
Type | Name | Description |
---|---|---|
Directory |
input | the Directory |
FilterDirectoryReader(DirectoryReader, FilterDirectoryReader.SubReaderWrapper)
Create a new Filter
Declaration
public FilterDirectoryReader(DirectoryReader input, FilterDirectoryReader.SubReaderWrapper wrapper)
Parameters
Type | Name | Description |
---|---|---|
Directory |
input | the Directory |
Filter |
wrapper | the Filter |
Fields
| Improve this Doc View Sourcem_input
The filtered Directory
Declaration
protected readonly DirectoryReader m_input
Field Value
Type | Description |
---|---|
Directory |
Properties
| Improve this Doc View SourceIndexCommit
Declaration
public override IndexCommit IndexCommit { get; }
Property Value
Type | Description |
---|---|
Index |
Overrides
| Improve this Doc View SourceVersion
Declaration
public override long Version { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Methods
| Improve this Doc View SourceDoClose()
Declaration
protected override void DoClose()
Overrides
| Improve this Doc View SourceDoOpenIfChanged()
Declaration
protected override sealed DirectoryReader DoOpenIfChanged()
Returns
Type | Description |
---|---|
Directory |
Overrides
| Improve this Doc View SourceDoOpenIfChanged(IndexCommit)
Declaration
protected override sealed DirectoryReader DoOpenIfChanged(IndexCommit commit)
Parameters
Type | Name | Description |
---|---|---|
Index |
commit |
Returns
Type | Description |
---|---|
Directory |
Overrides
| Improve this Doc View SourceDoOpenIfChanged(IndexWriter, Boolean)
Declaration
protected override sealed DirectoryReader DoOpenIfChanged(IndexWriter writer, bool applyAllDeletes)
Parameters
Type | Name | Description |
---|---|---|
Index |
writer | |
System. |
applyAllDeletes |
Returns
Type | Description |
---|---|
Directory |
Overrides
| Improve this Doc View SourceDoWrapDirectoryReader(DirectoryReader)
Called by the Do
Implementations should just return an instance of themselves, wrapping the
passed in Directory
Declaration
protected abstract DirectoryReader DoWrapDirectoryReader(DirectoryReader input)
Parameters
Type | Name | Description |
---|---|---|
Directory |
input | the Directory |
Returns
Type | Description |
---|---|
Directory |
the wrapped Directory |
IsCurrent()
Declaration
public override bool IsCurrent()
Returns
Type | Description |
---|---|
System. |