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
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
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