Show / Hide Table of Contents

    Class TestHelper

    This class provides access to namespace-level features defined in the Store namespace. It is used for testing only.

    Inheritance
    System.Object
    TestHelper
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class TestHelper : object

    Methods

    | Improve this Doc View Source

    IsSimpleFSIndexInput(IndexInput)

    Returns true if the instance of the provided input stream is actually an .

    Declaration
    public static bool IsSimpleFSIndexInput(IndexInput is)
    Parameters
    Type Name Description
    IndexInput is
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsSimpleFSIndexInputClone(IndexInput)

    Returns true if the provided input stream is an and is a clone, that is it does not own its underlying file descriptor.

    Declaration
    public static bool IsSimpleFSIndexInputClone(IndexInput is)
    Parameters
    Type Name Description
    IndexInput is
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsSimpleFSIndexInputOpen(IndexInput)

    Given an instance of , this method returns true if the underlying file descriptor is valid, and false otherwise. this can be used to determine if the OS file has been closed. The descriptor becomes invalid when the non-clone instance of the that owns this descriptor is disposed. However, the descriptor may possibly become invalid in other ways as well.

    Declaration
    public static bool IsSimpleFSIndexInputOpen(IndexInput is)
    Parameters
    Type Name Description
    IndexInput is
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)