Class AssertingAtomicReader
A Lucene.Net.Index.FilterAtomicReader that can be used to apply
additional checks for tests.
Inheritance
IndexReader
AtomicReader
FilterAtomicReader
AssertingAtomicReader
Inherited Members
FilterAtomicReader.Unwrap(AtomicReader)
FilterAtomicReader.m_input
FilterAtomicReader.FieldInfos
FilterAtomicReader.NumDocs
FilterAtomicReader.MaxDoc
FilterAtomicReader.DoClose()
FilterAtomicReader.ToString()
FilterAtomicReader.CheckIntegrity()
AtomicReader.Context
AtomicReader.AtomicContext
AtomicReader.DocFreq(Term)
AtomicReader.TotalTermFreq(Term)
AtomicReader.GetTermDocsEnum(Term)
AtomicReader.GetTermPositionsEnum(Term)
IndexReader.AddReaderDisposedListener(IReaderDisposedListener)
IndexReader.RemoveReaderDisposedListener(IReaderDisposedListener)
IndexReader.RegisterParentReader(IndexReader)
IndexReader.RefCount
IndexReader.IncRef()
IndexReader.TryIncRef()
IndexReader.DecRef()
IndexReader.EnsureOpen()
IndexReader.GetHashCode()
IndexReader.Open(Directory)
IndexReader.Open(IndexCommit)
IndexReader.NumDeletedDocs
IndexReader.HasDeletions
IndexReader.Dispose()
IndexReader.Leaves
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertingAtomicReader : FilterAtomicReader, IDisposable
Constructors
AssertingAtomicReader(AtomicReader)
A Lucene.Net.Index.FilterAtomicReader that can be used to apply
additional checks for tests.
Declaration
public AssertingAtomicReader(AtomicReader @in)
Parameters
Type |
Name |
Description |
AtomicReader |
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
Overrides
Lucene.Net.Index.IndexReader.CombinedCoreAndDeletesKey
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
Overrides
Lucene.Net.Index.IndexReader.CoreCacheKey
Fields
Returns Lucene.Net.Index.Fields for this reader.
this property may return null
if the reader has no
postings.
Declaration
public override Fields Fields { get; }
Property Value
Overrides
Lucene.Net.Index.FilterAtomicReader.Fields
LiveDocs
Returns the Lucene.Net.Util.IBits representing live (not
deleted) docs. A set bit indicates the doc ID has not
been deleted. If this method returns null
it means
there are no deleted documents (all documents are
live).
The returned instance has been safely published for
use by multiple threads without additional
synchronization.
Declaration
public override IBits LiveDocs { get; }
Property Value
Overrides
Lucene.Net.Index.FilterAtomicReader.LiveDocs
Methods
GetBinaryDocValues(string)
Returns Lucene.Net.Index.BinaryDocValues for this field, or
null
if no Lucene.Net.Index.BinaryDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override BinaryDocValues GetBinaryDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
BinaryDocValues |
|
Overrides
GetDocsWithField(string)
Returns a Lucene.Net.Util.IBits at the size of reader.MaxDoc
,
with turned on bits for each docid that does have a value for this field,
or null
if no Lucene.Net.Index.DocValues were indexed for this field. The
returned instance should only be used by a single thread.
Declaration
public override IBits GetDocsWithField(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Overrides
GetNormValues(string)
Returns Lucene.Net.Index.NumericDocValues representing norms
for this field, or null
if no Lucene.Net.Index.NumericDocValues
were indexed. The returned instance should only be
used by a single thread.
Declaration
public override NumericDocValues GetNormValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
NumericDocValues |
|
Overrides
GetNumericDocValues(string)
Returns Lucene.Net.Index.NumericDocValues for this field, or
null if no Lucene.Net.Index.NumericDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override NumericDocValues GetNumericDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
NumericDocValues |
|
Overrides
GetSortedDocValues(string)
Returns Lucene.Net.Index.SortedDocValues for this field, or
null
if no Lucene.Net.Index.SortedDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override SortedDocValues GetSortedDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
SortedDocValues |
|
Overrides
GetSortedSetDocValues(string)
Returns Lucene.Net.Index.SortedSetDocValues for this field, or
null
if no Lucene.Net.Index.SortedSetDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override SortedSetDocValues GetSortedSetDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
SortedSetDocValues |
|
Overrides
GetTermVectors(int)
Retrieve term vectors for this document, or null
if
term vectors were not indexed. The returned Lucene.Net.Index.Fields
instance acts like a single-document inverted index
(the docID will be 0).
Declaration
public override Fields GetTermVectors(int docID)
Parameters
Type |
Name |
Description |
int |
docID |
|
Returns
Overrides
Implements