C# Class Lucene.Net.Codecs.BlockTerms.BlockTermsReader

Handles a terms dict, but decouples all details of doc/freqs/positions reading to an instance of {@link PostingsReaderBase}. This class is reusable for codecs that use a different format for docs/freqs/positions (though codecs are also free to make their own terms dict impl). This class also interacts with an instance of {@link TermsIndexReaderBase}, to abstract away the specific implementation of the terms dict index. @lucene.experimental
Inheritance: Lucene.Net.Codecs.FieldsProducer
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
BlockTermsReader ( TermsIndexReaderBase indexReader, Lucene.Net.Store.Directory dir, FieldInfos fieldInfos, SegmentInfo info, Lucene.Net.Codecs.PostingsReaderBase postingsReader, IOContext context, String segmentSuffix ) : System
CheckIntegrity ( ) : void
Dispose ( ) : void
GetEnumerator ( ) : IEnumerator
RamBytesUsed ( ) : long
Terms ( String field ) : Terms

Private Methods

Method Description
ReadHeader ( DataInput input ) : int
SeekDir ( IndexInput input, long dirOffset ) : void

Method Details

BlockTermsReader() public method

public BlockTermsReader ( TermsIndexReaderBase indexReader, Lucene.Net.Store.Directory dir, FieldInfos fieldInfos, SegmentInfo info, Lucene.Net.Codecs.PostingsReaderBase postingsReader, IOContext context, String segmentSuffix ) : System
indexReader TermsIndexReaderBase
dir Lucene.Net.Store.Directory
fieldInfos FieldInfos
info SegmentInfo
postingsReader Lucene.Net.Codecs.PostingsReaderBase
context Lucene.Net.Store.IOContext
segmentSuffix String
return System

CheckIntegrity() public method

public CheckIntegrity ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

RamBytesUsed() public method

public RamBytesUsed ( ) : long
return long

Terms() public method

public Terms ( String field ) : Terms
field String
return Terms