Class BufferedChecksumIndexInput
Simple implementation of ChecksumIndexInput that wraps another input and delegates calls.
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public class BufferedChecksumIndexInput : ChecksumIndexInput, IDisposable
Constructors
BufferedChecksumIndexInput(IndexInput)
Creates a new BufferedChecksumIndexInput
Declaration
public BufferedChecksumIndexInput(IndexInput main)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | main |
Properties
Checksum
Returns the current checksum value
Declaration
public override long Checksum { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Length
The number of bytes in the file.
Declaration
public override long Length { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Position
Returns the current position in this file, where the next read will occur.
This was getFilePointer() in Lucene.Declaration
public override long Position { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
See Also
Methods
Clone()
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. Warning: Lucene never closes cloned IndexInputs, it will only do this on the original one. The original instance must take care that cloned instances throw ObjectDisposedException when the original one is closed.Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object |
Overrides
Dispose(bool)
Closes the stream to further operations.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
ReadByte()
Reads and returns a single byte.
Declaration
public override byte ReadByte()
Returns
Type | Description |
---|---|
byte |
Overrides
See Also
ReadBytes(byte[], int, int)
Reads a specified number of bytes into an array at the specified offset.
Declaration
public override void ReadBytes(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
byte[] | b | the array to read bytes into |
int | offset | the offset in the array to start storing bytes |
int | len | the number of bytes to read |