Class SlowCompositeReaderWrapper
This class forces a composite reader (eg a
MultiReader or DirectoryReader) to emulate an
atomic reader. This requires implementing the postings
APIs on-the-fly, using the static methods in
MultiFields, MultiDocValues, by stepping through
the sub-readers to merge fields/terms, appending docs, etc.
NOTE: This class almost always results in a
performance hit. If this is important to your use case,
you'll get better performance by gathering the sub readers using
Context to get the
atomic leaves and then operate per-AtomicReader,
instead of using this class.
Inheritance
System.Object
SlowCompositeReaderWrapper
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.dll
Syntax
public sealed class SlowCompositeReaderWrapper : AtomicReader, IDisposable
Properties
|
Improve this Doc
View Source
CombinedCoreAndDeletesKey
Declaration
public override object CombinedCoreAndDeletesKey { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
CoreCacheKey
Declaration
public override object CoreCacheKey { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
FieldInfos
Declaration
public override FieldInfos FieldInfos { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Fields
Declaration
public override Fields Fields { get; }
Property Value
Overrides
|
Improve this Doc
View Source
LiveDocs
Declaration
public override IBits LiveDocs { get; }
Property Value
Overrides
|
Improve this Doc
View Source
MaxDoc
Declaration
public override int MaxDoc { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
NumDocs
Declaration
public override int NumDocs { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
Methods
|
Improve this Doc
View Source
CheckIntegrity()
Declaration
public override void CheckIntegrity()
Overrides
|
Improve this Doc
View Source
DoClose()
Declaration
protected override void DoClose()
Overrides
|
Improve this Doc
View Source
Document(Int32, StoredFieldVisitor)
Declaration
public override void Document(int docID, StoredFieldVisitor visitor)
Parameters
Overrides
|
Improve this Doc
View Source
GetBinaryDocValues(String)
Declaration
public override BinaryDocValues GetBinaryDocValues(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetDocsWithField(String)
Declaration
public override IBits GetDocsWithField(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetNormValues(String)
Declaration
public override NumericDocValues GetNormValues(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetNumericDocValues(String)
Declaration
public override NumericDocValues GetNumericDocValues(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetSortedDocValues(String)
Declaration
public override SortedDocValues GetSortedDocValues(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetSortedSetDocValues(String)
Declaration
public override SortedSetDocValues GetSortedSetDocValues(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Overrides
|
Improve this Doc
View Source
GetTermVectors(Int32)
Declaration
public override Fields GetTermVectors(int docID)
Parameters
Type |
Name |
Description |
System.Int32 |
docID |
|
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Wrap(IndexReader)
This method is sugar for getting an AtomicReader from
an IndexReader of any kind. If the reader is already atomic,
it is returned unchanged, otherwise wrapped by this class.
Declaration
public static AtomicReader Wrap(IndexReader reader)
Parameters
Returns
Implements
System.IDisposable
Extension Methods