C# Class Lucene.Net.Codecs.SimpleText.SimpleTextStoredFieldsReader

reads plaintext stored fields

FOR RECREATIONAL USE ONLY @lucene.experimental

Inheritance: StoredFieldsReader
Show file Open project: paulirwin/lucene.net

Public Methods

Method Description
CheckIntegrity ( ) : void
Clone ( ) : object
RamBytesUsed ( ) : long
SimpleTextStoredFieldsReader ( Store.Directory directory, Index.SegmentInfo si, Index.FieldInfos fn, Store.IOContext context ) : System
VisitDocument ( int n, Index.StoredFieldVisitor visitor ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EqualsAt ( Util.BytesRef a, Util.BytesRef b, int bOffset ) : bool
ParseIntAt ( int offset ) : int
ReadField ( Util.BytesRef type, Index.FieldInfo fieldInfo, Index.StoredFieldVisitor visitor ) : void
ReadIndex ( int size ) : void we don't actually write a .fdx-like index, instead we read the stored fields file in entirety up-front and save the offsets so we can seek to the documents later.
ReadLine ( ) : void
SimpleTextStoredFieldsReader ( long offsets, Store.IndexInput input, Index.FieldInfos fieldInfos ) : System Used by clone

Method Details

CheckIntegrity() public method

public CheckIntegrity ( ) : void
return void

Clone() public method

public Clone ( ) : object
return object

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

RamBytesUsed() public method

public RamBytesUsed ( ) : long
return long

SimpleTextStoredFieldsReader() public method

public SimpleTextStoredFieldsReader ( Store.Directory directory, Index.SegmentInfo si, Index.FieldInfos fn, Store.IOContext context ) : System
directory Store.Directory
si Index.SegmentInfo
fn Index.FieldInfos
context Store.IOContext
return System

VisitDocument() public method

public VisitDocument ( int n, Index.StoredFieldVisitor visitor ) : void
n int
visitor Index.StoredFieldVisitor
return void