Class AssertingDirectoryReader
A Lucene.Net.Index.DirectoryReader that wraps all its subreaders with AssertingAtomicReader
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertingDirectoryReader : FilterDirectoryReader, IDisposable
  Constructors
AssertingDirectoryReader(DirectoryReader)
A Lucene.Net.Index.DirectoryReader that wraps all its subreaders with AssertingAtomicReader
Declaration
public AssertingDirectoryReader(DirectoryReader @in)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DirectoryReader | in | 
Properties
CombinedCoreAndDeletesKey
Expert: Returns a key for this Lucene.Net.Index.IndexReader that also includes deletions, so Lucene.Net.Search.IFieldCache/Lucene.Net.Search.CachingWrapperFilter can find it again. This key must not have Equals()/GetHashCode() methods, so "equals" means "identical".
Declaration
public override object CombinedCoreAndDeletesKey { get; }
  Property Value
| Type | Description | 
|---|---|
| object | 
Overrides
CoreCacheKey
Expert: Returns a key for this Lucene.Net.Index.IndexReader, so Lucene.Net.Search.FieldCache/Lucene.Net.Search.CachingWrapperFilter can find it again. This key must not have Equals()/GetHashCode() methods, so "equals" means "identical".
Declaration
public override object CoreCacheKey { get; }
  Property Value
| Type | Description | 
|---|---|
| object | 
Overrides
Methods
DoWrapDirectoryReader(DirectoryReader)
Called by the Lucene.Net.Index.FilterDirectoryReader.DoOpenIfChanged() methods to return a new wrapped Lucene.Net.Index.DirectoryReader.
Implementations should just return an instance of themselves, wrapping the passed in Lucene.Net.Index.DirectoryReader.Declaration
protected override DirectoryReader DoWrapDirectoryReader(DirectoryReader @in)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DirectoryReader | in | 
Returns
| Type | Description | 
|---|---|
| DirectoryReader | the wrapped Lucene.Net.Index.DirectoryReader  |