Class BaseCompositeReader<R>
Base class for implementing CompositeReaders based on an array of sub-readers. The implementing class has to add code for correctly refcounting and closing the sub-readers.
User code will most likely use MultiReader to build a composite reader on a set of sub-readers (like several DirectoryReaders).
For efficiency, in this API documents are often referred to via document numbers, non-negative integers which each name a unique document in the index. These document numbers are ephemeral -- they may change as documents are added to and deleted from an index. Clients should thus not rely on a given document having the same number between sessions.
NOTE: IndexReader instances are completely thread safe, meaning multiple threads can call any of its methods, concurrently. If your application requires external synchronization, you should not synchronize on the IndexReader instance; use your own (non-Lucene) objects instead.
@lucene.internal
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class BaseCompositeReader<R> : CompositeReader, IIdentifiableSurrogate where R : IndexReader
Type Parameters
Name | Description |
---|---|
R |
Constructors
Name | Description |
---|---|
BaseCompositeReader(R[]) | |
BaseCompositeReader(String, IRPCTransport, Type) | Constructs a BaseCompositeReader<R> on the given |
Properties
Name | Description |
---|---|
MaxDoc | |
NumDocs |
Methods
Name | Description |
---|---|
DocFreq(Term) | |
Document(Int64, StoredFieldVisitor) | |
GetDocCount(String) | |
GetSequentialSubReaders() | |
GetSumDocFreq(String) | |
GetSumTotalTermFreq(String) | |
GetTermVectors(Int64) | |
ReaderBase(Int32) | Helper method for subclasses to get the docBase of the given sub-reader index. |
ReaderIndex(Int32) | Helper method for subclasses to get the corresponding reader for a doc ID |
TotalTermFreq(Term) |