Class LineFileDocs
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task
Inheritance
System.Object
    LineFileDocs
  Implements
System.IDisposable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Util
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class LineFileDocs : IDisposable
  Constructors
| Improve this Doc View SourceLineFileDocs(Random)
Declaration
public LineFileDocs(Random random)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Random | random | 
LineFileDocs(Random, Boolean)
Declaration
public LineFileDocs(Random random, bool useDocValues)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Random | random | |
| System.Boolean | useDocValues | 
LineFileDocs(Random, String, Boolean)
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 | 
|---|---|---|
| System.Random | random | |
| System.String | path | |
| System.Boolean | useDocValues | 
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
  Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | 
NextDoc()
Note: Document instance is re-used per-thread
Declaration
public virtual Document NextDoc()
  Returns
| Type | Description | 
|---|---|
| Document | 
Reset(Random)
Declaration
public virtual void Reset(Random random)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Random | random | 
Implements
      System.IDisposable