Class LineDocSource
A ContentSource reading one line at a time as a Document from a single file. This saves IO cost (over DirContentSource) of recursing through a directory and opening a new file for every document.
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.Benchmarks.ByTask.Feeds
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class LineDocSource : ContentSource, IDisposable
Remarks
The expected format of each line is (arguments are separated by <TAB>): title, date, body. If a line is read in a different format, a System.Exception will be thrown. In general, you should use this content source for files that were created with WriteLineDocTask.
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
Overrides
| Improve this Doc View SourceGetNextDocData(DocData)
Declaration
public override DocData GetNextDocData(DocData docData)
Parameters
| Type | Name | Description |
|---|---|---|
| DocData | docData |
Returns
| Type | Description |
|---|---|
| DocData |
Overrides
| Improve this Doc View SourceResetInputs()
Declaration
public override void ResetInputs()
Overrides
| Improve this Doc View SourceSetConfig(Config)
Declaration
public override void SetConfig(Config config)
Parameters
| Type | Name | Description |
|---|---|---|
| Config | config |
Overrides
Implements
System.IDisposable