C# Class Lucene.Net.Codecs.Lucene3x.TermInfosReaderIndex

Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Méthode Description
CompareTo ( Term term, int termIndex ) : int

The compares the given term against the term in the index specified by the term index. ie It returns negative N when term is less than index term;

GetTerm ( int termIndex ) : Term

Gets the term at the given position. For testing.

Length ( ) : int

Returns the number of terms.

SeekEnum ( Lucene.Net.Codecs.Lucene3x.SegmentTermEnum enumerator, int indexOffset ) : void
TermInfosReaderIndex ( Lucene.Net.Codecs.Lucene3x.SegmentTermEnum indexEnum, int indexDivisor, long tiiFileLength, int totalIndexInterval ) : System

Loads the segment information at segment load time.

Private Methods

Méthode Description
CompareField ( Term term, int termIndex, Lucene.Net.Util.PagedBytes.PagedBytesDataInput input ) : int

Compares the fields before checking the text of the terms.

CompareTo ( Term term, int termIndex, Lucene.Net.Util.PagedBytes.PagedBytesDataInput input, BytesRef reuse ) : int

Compare the fields of the terms first, and if not equals return from compare. If equal compare terms.

EstimatePageBits ( long estSize ) : int
GetIndexOffset ( Term term ) : int

Binary search for the given term.

RamBytesUsed ( ) : long

Method Details

CompareTo() public méthode

The compares the given term against the term in the index specified by the term index. ie It returns negative N when term is less than index term;
If there is a low-level I/O error.
public CompareTo ( Term term, int termIndex ) : int
term Term /// the given term.
termIndex int /// the index of the of term to compare.
Résultat int

GetTerm() public méthode

Gets the term at the given position. For testing.
If there is a low-level I/O error.
public GetTerm ( int termIndex ) : Term
termIndex int /// the position to read the term from the index.
Résultat Term

Length() public méthode

Returns the number of terms.
public Length ( ) : int
Résultat int

SeekEnum() public méthode

public SeekEnum ( Lucene.Net.Codecs.Lucene3x.SegmentTermEnum enumerator, int indexOffset ) : void
enumerator Lucene.Net.Codecs.Lucene3x.SegmentTermEnum
indexOffset int
Résultat void

TermInfosReaderIndex() public méthode

Loads the segment information at segment load time.
public TermInfosReaderIndex ( Lucene.Net.Codecs.Lucene3x.SegmentTermEnum indexEnum, int indexDivisor, long tiiFileLength, int totalIndexInterval ) : System
indexEnum Lucene.Net.Codecs.Lucene3x.SegmentTermEnum /// the term enum.
indexDivisor int /// the index divisor.
tiiFileLength long /// the size of the tii file, used to approximate the size of the /// buffer.
totalIndexInterval int /// the total index interval.
Résultat System