Class DocMaker
  
  
  
  
    Inheritance
    System.Object
    DocMaker
      
   
  
    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()
    
   
  
  Assembly: Lucene.Net.Benchmark.dll
  Syntax
  
    public class DocMaker : IDisposable
   
  
  
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DocMaker()
  
  
  Declaration
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  BODY_FIELD
  
  
  Declaration
  
    public static readonly string BODY_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  BYTES_FIELD
  
  
  Declaration
  
    public static readonly string BYTES_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DATE_FIELD
  
  
  Declaration
  
    public static readonly string DATE_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DATE_MSEC_FIELD
  
  
  Declaration
  
    public static readonly string DATE_MSEC_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  ID_FIELD
  
  
  Declaration
  
    public static readonly string ID_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_bodyValType
  
  
  Declaration
  
    protected FieldType m_bodyValType
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_config
  
  
  Declaration
  
    protected Config m_config
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_indexProperties
  
  
  Declaration
  
    protected bool m_indexProperties
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_reuseFields
  
  
  Declaration
  
    protected bool m_reuseFields
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_source
  
  
  Declaration
  
    protected ContentSource m_source
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_valType
  
  
  Declaration
  
    protected FieldType m_valType
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  NAME_FIELD
  
  
  Declaration
  
    public static readonly string NAME_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  TIME_SEC_FIELD
  
  
  Declaration
  
    public static readonly string TIME_SEC_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  TITLE_FIELD
  
  
  Declaration
  
    public static readonly string TITLE_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Dispose()
  
  
  Declaration
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Dispose(Boolean)
  Closes the DocMaker. The base implementation closes the
ContentSource, and it can be overridden to do more work (but make
sure to call base.Dispose(bool)).
 
  
  Declaration
  
    protected virtual void Dispose(bool disposing)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        disposing | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetDocState()
  
  
  Declaration
  
    protected virtual DocMaker.DocState GetDocState()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeDocument()
  Creates a Document object ready for indexing. This method uses the
ContentSource to get the next document from the source, and creates
a Document object from the returned fields. If
reuseFields was set to true, it will reuse Document
and Field instances.
 
  
  Declaration
  
    public virtual Document MakeDocument()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeDocument(Int32)
  Same as MakeDocument(), only this method creates a document of the
given size input by size.
 
  
  Declaration
  
    public virtual Document MakeDocument(int size)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        size | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  Reset inputs so that the test run would behave, input wise, as if it just started.
 
  
  Declaration
  
    public virtual void ResetInputs()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SetConfig(Config, ContentSource)
  Set the configuration parameters of this doc maker.
 
  
  Declaration
  
    public virtual void SetConfig(Config config, ContentSource source)
   
  Parameters
  
  Implements
  
      System.IDisposable