Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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 Source

    LineFileDocs(Random)

    Declaration
    public LineFileDocs(Random random)
    Parameters
    Type Name Description
    System.Random random
    | Improve this Doc View Source

    LineFileDocs(Random, Boolean)

    Declaration
    public LineFileDocs(Random random, bool useDocValues)
    Parameters
    Type Name Description
    System.Random random
    System.Boolean useDocValues
    | Improve this Doc View Source

    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 Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    NextDoc()

    Note: Document instance is re-used per-thread

    Declaration
    public virtual Document NextDoc()
    Returns
    Type Description
    Lucene.Net.Documents.Document
    | Improve this Doc View Source

    Reset(Random)

    Declaration
    public virtual void Reset(Random random)
    Parameters
    Type Name Description
    System.Random random

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.