| java.lang.Object org.apache.lucene.store._TestHelper
_TestHelper | public class _TestHelper (Code) | | This class provides access to package-level features defined in the
store package. It is used for testing only.
|
Method Summary | |
public static boolean | isFSIndexInput(IndexInput is) Returns true if the instance of the provided input stream is actually
an FSIndexInput. | public static boolean | isFSIndexInputClone(IndexInput is) Returns true if the provided input stream is an FSIndexInput and
is a clone, that is it does not own its underlying file descriptor. | public static boolean | isFSIndexInputOpen(IndexInput is) Given an instance of FSDirectory.FSIndexInput, 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
FSIndexInput that owns this descriptor is closed. |
isFSIndexInput | public static boolean isFSIndexInput(IndexInput is)(Code) | | Returns true if the instance of the provided input stream is actually
an FSIndexInput.
|
isFSIndexInputClone | public static boolean isFSIndexInputClone(IndexInput is)(Code) | | Returns true if the provided input stream is an FSIndexInput and
is a clone, that is it does not own its underlying file descriptor.
|
isFSIndexInputOpen | public static boolean isFSIndexInputOpen(IndexInput is) throws IOException(Code) | | Given an instance of FSDirectory.FSIndexInput, 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
FSIndexInput that owns this descriptor is closed. However, the
descriptor may possibly become invalid in other ways as well.
|
|
|