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
Name | Description | |
---|---|---|
SimpleFSDirectory..::..SimpleFSIndexInput(FileInfo) | Obsolete. Initializes a new instance of the SimpleFSDirectory..::..SimpleFSIndexInput class | |
SimpleFSDirectory..::..SimpleFSIndexInput(FileInfo, Int32) | Obsolete. Initializes a new instance of the SimpleFSDirectory..::..SimpleFSIndexInput class | |
SimpleFSDirectory..::..SimpleFSIndexInput(FileInfo, Int32, Int32) | Initializes a new instance of the SimpleFSDirectory..::..SimpleFSIndexInput class |
Methods
Name | Description | |
---|---|---|
Clone | (Overrides BufferedIndexInput..::..Clone()()()().) | |
Close | (Overrides IndexInput..::..Close()()()().) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetBufferSize | (Inherited from BufferedIndexInput.) | |
GetFilePointer | (Inherited from BufferedIndexInput.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsFDValid | Method used for testing. Returns true if the underlying
file descriptor is valid.
| |
Length | (Overrides IndexInput..::..Length()()()().) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewBuffer | (Inherited from BufferedIndexInput.) | |
ReadByte | (Inherited from BufferedIndexInput.) | |
ReadBytes(array<Byte>[]()[][], Int32, Int32) | (Inherited from BufferedIndexInput.) | |
ReadBytes(array<Byte>[]()[][], Int32, Int32, Boolean) | (Inherited from BufferedIndexInput.) | |
ReadChars | Obsolete. Reads Lucene's old "modified UTF-8" encoded
characters into an array.
(Inherited from IndexInput.) | |
ReadInt | Reads four bytes and returns an int. (Inherited from IndexInput.) | |
ReadInternal | IndexInput methods (Overrides BufferedIndexInput..::..ReadInternal(array<Byte>[]()[][], Int32, Int32).) | |
ReadLong | Reads eight bytes and returns a long. (Inherited from IndexInput.) | |
ReadString | Reads a string. (Inherited from IndexInput.) | |
ReadStringStringMap | (Inherited from IndexInput.) | |
ReadVInt | 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.) | |
ReadVLong | 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.) | |
Seek | (Inherited from BufferedIndexInput.) | |
SeekInternal | (Overrides BufferedIndexInput..::..SeekInternal(Int64).) | |
SetBufferSize | Change the buffer size used by this IndexInput (Inherited from BufferedIndexInput.) | |
SetModifiedUTF8StringsMode | 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.) | |
SkipChars | 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.) | |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
buffer | (Inherited from BufferedIndexInput.) | |
chunkSize | ||
file |
Properties
Name | Description | |
---|---|---|
isClone_ForNUnit |