Class TestHelper
This class provides access to namespace-level features defined in the
Store namespace. It is used for testing only.
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class TestHelper
Methods
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
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
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