Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
A memory-resident IndexInput implementation. More...
Inherits Lucene.Net.Store.IndexInput.
Public Member Functions | |
RAMInputStream (RAMFile f) | |
override long | Length () |
The number of bytes in the file. | |
override byte | ReadByte () |
Reads and returns a single byte. | |
override void | ReadBytes (byte[] b, int offset, int len) |
Reads a specified number of bytes into an array at the specified offset. | |
override void | Seek (long pos) |
Sets current position in this file, where the next read will occur. | |
Public Member Functions inherited from Lucene.Net.Store.IndexInput | |
virtual void | ReadBytes (byte[] b, int offset, int len, bool useBuffer) |
Reads a specified number of bytes into an array at the specified offset with control over whether the read should be buffered (callers who have their own buffer should pass in "false" for useBuffer). Currently only BufferedIndexInput respects this parameter. | |
virtual int | ReadInt () |
Reads four bytes and returns an int. | |
virtual int | 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. | |
virtual long | ReadLong () |
Reads eight bytes and returns a long. | |
virtual long | 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. | |
virtual void | 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. | |
virtual System.String | ReadString () |
Reads a string. | |
virtual void | ReadChars (char[] buffer, int start, int length) |
Reads Lucene's old "modified UTF-8" encoded characters into an array. | |
virtual void | SkipChars (int length) |
Expert | |
void | Close () |
void | Dispose () |
Closes the stream to futher operations. | |
virtual System.Object | Clone () |
Returns a clone of this stream. | |
virtual System.Collections.Generic.IDictionary < string, string > | ReadStringStringMap () |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Properties | |
override long | FilePointer [get] |
Properties inherited from Lucene.Net.Store.IndexInput | |
abstract long | FilePointer [get] |
Returns the current position in this file, where the next read will occur. | |
A memory-resident IndexInput implementation.
Definition at line 26 of file RAMInputStream.cs.
Lucene.Net.Store.RAMInputStream.RAMInputStream | ( | RAMFile | f | ) |
Definition at line 40 of file RAMInputStream.cs.
|
protectedvirtual |
Implements Lucene.Net.Store.IndexInput.
Definition at line 55 of file RAMInputStream.cs.
|
virtual |
The number of bytes in the file.
Implements Lucene.Net.Store.IndexInput.
Definition at line 60 of file RAMInputStream.cs.
|
virtual |
Reads and returns a single byte.
Implements Lucene.Net.Store.IndexInput.
Definition at line 65 of file RAMInputStream.cs.
|
virtual |
Reads a specified number of bytes into an array at the specified offset.
b | the array to read bytes into |
offset | the offset in the array to start storing bytes |
len | the number of bytes to read |
Implements Lucene.Net.Store.IndexInput.
Definition at line 75 of file RAMInputStream.cs.
|
virtual |
Sets current position in this file, where the next read will occur.
Implements Lucene.Net.Store.IndexInput.
Definition at line 123 of file RAMInputStream.cs.
|
get |
Definition at line 119 of file RAMInputStream.cs.