Fork me on GitHub
  • API

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

    Methods

    IsSimpleFSIndexInput(IndexInput)

    Returns true if the instance of the provided input stream is actually an Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.

    Declaration
    public static bool IsSimpleFSIndexInput(IndexInput @is)
    Parameters
    Type Name Description
    IndexInput is
    Returns
    Type Description
    bool

    IsSimpleFSIndexInputClone(IndexInput)

    Returns true if the provided input stream is an Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput 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
    bool

    IsSimpleFSIndexInputOpen(IndexInput)

    Given an instance of Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput, 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 Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput 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
    bool
    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.