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
System.Object
    
    ContentSource
      
      
      
      
      
      
      
  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 abstract class ContentSource : ContentItemsSource, IDisposable
  Methods
| Improve this Doc View SourceGetNextDocData(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 | 
Implements
      System.IDisposable