![]() |
Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Base implementation class for buffered IndexInput. More...
Inherits Lucene.Net.Store.IndexInput, and ICloneable.
Inherited by Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.
Public Member Functions | |
override byte | ReadByte () |
Reads and returns a single byte. | |
virtual void | SetBufferSize (int newSize) |
Change the buffer size used by this IndexInput | |
override void | ReadBytes (byte[] b, int offset, int len) |
Reads a specified number of bytes into an array at the specified offset. | |
override 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. | |
abstract void | ReadInternal (byte[] b, int offset, int length) |
Expert: implements buffer refill. Reads bytes from the current position in the input. | |
override void | Seek (long pos) |
Sets current position in this file, where the next read will occur. | |
abstract void | SeekInternal (long pos) |
Expert: implements seek. Sets current position in this file, where the next ReadInternal(byte[],int,int) will occur. | |
override System.Object | Clone () |
Returns a clone of this stream. | |
![]() | |
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. | |
abstract long | Length () |
The number of bytes in the file. | |
virtual System.Collections.Generic.IDictionary < string, string > | ReadStringStringMap () |
Public Attributes | |
const int | BUFFER_SIZE = 1024 |
Default buffer size | |
Protected Member Functions | |
BufferedIndexInput () | |
BufferedIndexInput (int bufferSize) | |
Inits BufferedIndexInput with a specific bufferSize | |
![]() | |
abstract void | Dispose (bool disposing) |
Properties | |
virtual int | BufferSize [get] |
override long | FilePointer [get] |
![]() | |
abstract long | FilePointer [get] |
Returns the current position in this file, where the next read will occur. | |
Base implementation class for buffered IndexInput.
Definition at line 24 of file BufferedIndexInput.cs.
|
protected |
Definition at line 45 of file BufferedIndexInput.cs.
|
protected |
Inits BufferedIndexInput with a specific bufferSize
Definition at line 50 of file BufferedIndexInput.cs.
|
virtual |
Returns a clone of this stream.
Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
Reimplemented from Lucene.Net.Store.IndexInput.
Definition at line 229 of file BufferedIndexInput.cs.
|
virtual |
Reads and returns a single byte.
Implements Lucene.Net.Store.IndexInput.
Definition at line 38 of file BufferedIndexInput.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 104 of file BufferedIndexInput.cs.
|
virtual |
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.
b | the array to read bytes into |
offset | the offset in the array to start storing bytes |
len | the number of bytes to read |
useBuffer | set to false if the caller will handle buffering. |
Reimplemented from Lucene.Net.Store.IndexInput.
Definition at line 109 of file BufferedIndexInput.cs.
|
pure virtual |
Expert: implements buffer refill. Reads bytes from the current position in the input.
b | the array to read bytes into |
offset | the offset in the array to start storing bytes |
length | the number of bytes to read |
|
virtual |
Sets current position in this file, where the next read will occur.
Implements Lucene.Net.Store.IndexInput.
Definition at line 208 of file BufferedIndexInput.cs.
|
pure virtual |
Expert: implements seek. Sets current position in this file, where the next ReadInternal(byte[],int,int) will occur.
|
virtual |
Change the buffer size used by this IndexInput
Definition at line 57 of file BufferedIndexInput.cs.
const int Lucene.Net.Store.BufferedIndexInput.BUFFER_SIZE = 1024 |
Default buffer size
Definition at line 28 of file BufferedIndexInput.cs.
|
get |
Definition at line 94 of file BufferedIndexInput.cs.
|
get |
Definition at line 204 of file BufferedIndexInput.cs.