Class ContentSource
Represents content from a specified source, such as TREC, Reuters etc. A ContentSource is responsible for creating DocData objects for its documents to be consumed by DocMaker. It also keeps track of various statistics, such as how many documents were generated, size in bytes etc.
For supported configuration parameters see ContentItemsSource.Inheritance
ContentSource
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
Assembly: Lucene.Net.Benchmark.dll
Syntax
public abstract class ContentSource : ContentItemsSource, IDisposable
Methods
GetNextDocData(DocData)
Returns the next DocData from the content source. Implementations must account for multi-threading, as multiple threads can call this method simultaneously.
Declaration
public abstract DocData GetNextDocData(DocData docData)
Parameters
Type | Name | Description |
---|---|---|
DocData | docData |
Returns
Type | Description |
---|---|
DocData |