A straightforward implementation of {@link FSDirectory} using java.io.RandomAccessFile. However, this class has poor concurrent performance (multiple threads will bottleneck) as it synchronizes when multiple threads read from the same file. It's usually better to use {@link NIOFSDirectory} or {@link MMapDirectory} instead.

The SimpleFSDirectory..::..SimpleFSIndexInput type exposes the following members.

Constructors

Methods

  NameDescription
Public methodClone (Overrides BufferedIndexInput..::..Clone()()()().)
Public methodClose (Overrides IndexInput..::..Close()()()().)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBufferSize (Inherited from BufferedIndexInput.)
Public methodGetFilePointer (Inherited from BufferedIndexInput.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsFDValid
Method used for testing. Returns true if the underlying file descriptor is valid.
Public methodLength (Overrides IndexInput..::..Length()()()().)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNewBuffer (Inherited from BufferedIndexInput.)
Public methodReadByte (Inherited from BufferedIndexInput.)
Public methodReadBytes(array<Byte>[]()[][], Int32, Int32) (Inherited from BufferedIndexInput.)
Public methodReadBytes(array<Byte>[]()[][], Int32, Int32, Boolean) (Inherited from BufferedIndexInput.)
Public methodReadChars Obsolete.
Reads Lucene's old "modified UTF-8" encoded characters into an array.
(Inherited from IndexInput.)
Public methodReadInt
Reads four bytes and returns an int.
(Inherited from IndexInput.)
Public methodReadInternal
IndexInput methods
(Overrides BufferedIndexInput..::..ReadInternal(array<Byte>[]()[][], Int32, Int32).)
Public methodReadLong
Reads eight bytes and returns a long.
(Inherited from IndexInput.)
Public methodReadString
Reads a string.
(Inherited from IndexInput.)
Public methodReadStringStringMap (Inherited from IndexInput.)
Public methodReadVInt
Reads an int stored in variable-length format. Reads between one and five bytes. Smaller values take fewer bytes. Negative numbers are not supported.
(Inherited from IndexInput.)
Public methodReadVLong
Reads a long stored in variable-length format. Reads between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
(Inherited from IndexInput.)
Public methodSeek (Inherited from BufferedIndexInput.)
Public methodSeekInternal (Overrides BufferedIndexInput..::..SeekInternal(Int64).)
Public methodSetBufferSize
Change the buffer size used by this IndexInput
(Inherited from BufferedIndexInput.)
Public methodSetModifiedUTF8StringsMode
Call this if readString should read characters stored in the old modified UTF8 format (length in java chars and java's modified UTF8 encoding). This is used for indices written pre-2.4 See LUCENE-510 for details.
(Inherited from IndexInput.)
Public methodSkipChars Obsolete.
Expert Similar to {@link #ReadChars(char[], int, int)} but does not do any conversion operations on the bytes it is reading in. It still has to invoke {@link #ReadByte()} just as {@link #ReadChars(char[], int, int)} does, but it does not need a buffer to store anything and it does not have to do any of the bitwise operations, since we don't actually care what is in the byte except to determine how many more bytes to read
(Inherited from IndexInput.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fieldbuffer (Inherited from BufferedIndexInput.)
Protected fieldchunkSize
Protected fieldfile

Properties

  NameDescription
Public propertyisClone_ForNUnit

See Also