Class LineFileDocs
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class LineFileDocs : IDisposable
Constructors
LineFileDocs(Random)
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Declaration
public LineFileDocs(Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random |
LineFileDocs(Random, bool)
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Declaration
public LineFileDocs(Random random, bool useDocValues)
Parameters
Type | Name | Description |
---|---|---|
Random | random | |
bool | useDocValues |
LineFileDocs(Random, string, bool)
If forever is true, we rewind the file at EOF (repeat the docs over and over)
Declaration
public LineFileDocs(Random random, string path, bool useDocValues)
Parameters
Type | Name | Description |
---|---|---|
Random | random | |
string | path | |
bool | useDocValues |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
NextDoc()
Note: Document instance is re-used per-thread
Declaration
public virtual Document NextDoc()
Returns
Type | Description |
---|---|
Document |
Reset(Random)
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Declaration
public virtual void Reset(Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random |