C# Класс 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
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Open ( Random random ) : void
RandomSeekPos ( Random random, long size ) : long

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

LineFileDocs() публичный Метод

public LineFileDocs ( Random random ) : Lucene.Net.Documents
random System.Random
Результат Lucene.Net.Documents

LineFileDocs() публичный Метод

public LineFileDocs ( Random random, bool useDocValues ) : Lucene.Net.Documents
random System.Random
useDocValues bool
Результат Lucene.Net.Documents

LineFileDocs() публичный Метод

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
Результат Lucene.Net.Documents

NextDoc() публичный Метод

Note: Document instance is re-used per-thread
public NextDoc ( ) : Document
Результат Document

Reset() публичный Метод

public Reset ( Random random ) : void
random System.Random
Результат void