Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Static Public Member Functions | List of all members
Lucene.Net.Util.ReaderUtil Class Reference

Common util methods for dealing with IndexReaders. More...

Static Public Member Functions

static void GatherSubReaders (System.Collections.Generic.IList< IndexReader > allSubReaders, IndexReader reader)
 Gathers sub-readers from reader into a List.
 
static IndexReader SubReader (int doc, IndexReader reader)
 Returns sub IndexReader that contains the given document id.
 
static IndexReader SubReader (IndexReader reader, int subIndex)
 Returns sub-reader subIndex from reader.
 
static int SubIndex (int n, int[] docStarts)
 Returns index of the searcher/reader for document n in the array used to construct this searcher/reader.
 

Detailed Description

Common util methods for dealing with IndexReaders.

Definition at line 27 of file ReaderUtil.cs.

Member Function Documentation

static void Lucene.Net.Util.ReaderUtil.GatherSubReaders ( System.Collections.Generic.IList< IndexReader allSubReaders,
IndexReader  reader 
)
static

Gathers sub-readers from reader into a List.

Parameters
allSubReaders
reader

Definition at line 32 of file ReaderUtil.cs.

static int Lucene.Net.Util.ReaderUtil.SubIndex ( int  n,
int[]  docStarts 
)
static

Returns index of the searcher/reader for document n in the array used to construct this searcher/reader.

Definition at line 94 of file ReaderUtil.cs.

static IndexReader Lucene.Net.Util.ReaderUtil.SubReader ( int  doc,
IndexReader  reader 
)
static

Returns sub IndexReader that contains the given document id.

Parameters
docid of document
readerparent reader
Returns
sub reader of parent which contains the specified doc id

Definition at line 58 of file ReaderUtil.cs.

static IndexReader Lucene.Net.Util.ReaderUtil.SubReader ( IndexReader  reader,
int  subIndex 
)
static

Returns sub-reader subIndex from reader.

Parameters
readerparent reader
subIndexindex of desired sub reader
Returns
the subreader at subINdex

Definition at line 82 of file ReaderUtil.cs.


The documentation for this class was generated from the following file: