Class ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes. Callers can retrieve the checksum via Checksum.
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public abstract class ChecksumIndexInput : IndexInput, IDisposable
Constructors
ChecksumIndexInput(string)
resourceDescription should be a non-null, opaque string
describing this resource; it's returned from
ToString().
Declaration
protected ChecksumIndexInput(string resourceDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resourceDescription |
Properties
Checksum
Returns the current checksum value
Declaration
public abstract long Checksum { get; }
Property Value
| Type | Description |
|---|---|
| long |
Methods
Seek(long)
Sets current position in this file, where the next read will occur.
ChecksumIndexInput can only seek forward and seeks are expensive since they imply to read bytes in-between the current position and the target position in order to update the checksum.Declaration
public override void Seek(long pos)
Parameters
| Type | Name | Description |
|---|---|---|
| long | pos |