Class ByteBufferIndexInput
Base IndexInput implementation that uses an array
of s to represent a file.
Because Java's uses an to address the
values, it's necessary to access a file greater
in size using multiple byte buffers.
For efficiency, this class requires that the buffers
are a power-of-two (chunkSizePower
).
Inheritance
System.Object
ByteBufferIndexInput
Assembly: Lucene.Net.dll
public abstract class ByteBufferIndexInput : IndexInput, IDisposable
Properties
|
Improve this Doc
View Source
Declaration
public override sealed long Length { get; }
Property Value
Type |
Description |
System.Int64 |
|
Overrides
Methods
|
Improve this Doc
View Source
Declaration
public override sealed object Clone()
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
Called when the contents of a buffer will be no longer needed.
Declaration
protected abstract void FreeBuffer(ByteBuffer b)
Parameters
Type |
Name |
Description |
ByteBuffer |
b |
|
|
Improve this Doc
View Source
Declaration
public override sealed long GetFilePointer()
Returns
Type |
Description |
System.Int64 |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override sealed byte ReadByte()
Returns
Type |
Description |
System.Byte |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override sealed void ReadBytes(byte[] b, int offset, int len)
Parameters
Type |
Name |
Description |
System.Byte[] |
b |
|
System.Int32 |
offset |
|
System.Int32 |
len |
|
Overrides
|
Improve this Doc
View Source
NOTE: this was readShort() in Lucene
Declaration
public override sealed short ReadInt16()
Returns
Type |
Description |
System.Int16 |
|
Overrides
|
Improve this Doc
View Source
NOTE: this was readInt() in Lucene
Declaration
public override sealed int ReadInt32()
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
NOTE: this was readLong() in Lucene
Declaration
public override sealed long ReadInt64()
Returns
Type |
Description |
System.Int64 |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override sealed void Seek(long pos)
Parameters
Type |
Name |
Description |
System.Int64 |
pos |
|
Overrides
|
Improve this Doc
View Source
Creates a slice of this index input, with the given description, offset, and length. The slice is seeked to the beginning.
Declaration
public ByteBufferIndexInput Slice(string sliceDescription, long offset, long length)
Parameters
Type |
Name |
Description |
System.String |
sliceDescription |
|
System.Int64 |
offset |
|
System.Int64 |
length |
|
Returns
|
Improve this Doc
View Source
Declaration
public override sealed string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements
IDisposable