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
    object
    LineFileDocs
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class LineFileDocs : IDisposable

    Constructors

    LineFileDocs(Random)

    Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

    Declaration
    public LineFileDocs(Random random)
    Parameters
    Type Name Description
    Random random

    LineFileDocs(Random, bool)

    Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

    Declaration
    public LineFileDocs(Random random, bool useDocValues)
    Parameters
    Type Name Description
    Random random
    bool useDocValues

    LineFileDocs(Random, string, bool)

    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
    string path
    bool useDocValues

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Dispose(bool)

    Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    NextDoc()

    Note: Document instance is re-used per-thread

    Declaration
    public virtual Document NextDoc()
    Returns
    Type Description
    Document

    Reset(Random)

    Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

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

    Implements

    IDisposable
    Back to top Copyright © 2024 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.