C# Class Lucene.Net.Util.LineFileDocs

Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Inheritance: IDisposable
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
LineFileDocs ( Random random ) : Lucene.Net.Documents
LineFileDocs ( Random random, bool useDocValues ) : Lucene.Net.Documents
LineFileDocs ( Random random, string path, bool useDocValues ) : Lucene.Net.Documents

If forever is true, we rewind the file at EOF (repeat the docs over and over)

NextDoc ( ) : Document

Note: Document instance is re-used per-thread

Reset ( Random random ) : void

Private Methods

Méthode Description
Open ( Random random ) : void
RandomSeekPos ( Random random, long size ) : long

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

LineFileDocs() public méthode

public LineFileDocs ( Random random ) : Lucene.Net.Documents
random System.Random
Résultat Lucene.Net.Documents

LineFileDocs() public méthode

public LineFileDocs ( Random random, bool useDocValues ) : Lucene.Net.Documents
random System.Random
useDocValues bool
Résultat Lucene.Net.Documents

LineFileDocs() public méthode

If forever is true, we rewind the file at EOF (repeat the docs over and over)
public LineFileDocs ( Random random, string path, bool useDocValues ) : Lucene.Net.Documents
random System.Random
path string
useDocValues bool
Résultat Lucene.Net.Documents

NextDoc() public méthode

Note: Document instance is re-used per-thread
public NextDoc ( ) : Document
Résultat Document

Reset() public méthode

public Reset ( Random random ) : void
random System.Random
Résultat void