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
    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
    Random random
    | Improve this Doc View Source

    LineFileDocs(Random, Boolean)

    Declaration
    public LineFileDocs(Random random, bool useDocValues)
    Parameters
    Type Name Description
    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
    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
    Document
    | Improve this Doc View Source

    Reset(Random)

    Declaration
    public virtual void Reset(Random random)
    Parameters
    Type Name Description
    Random random
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)