Class ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes. Callers can retrieve the checksum via Checksum.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public abstract class ChecksumIndexInput : IndexInput, IDisposable
Constructors
| Improve this Doc View SourceChecksumIndexInput(String)
resourceDescription
should be a non-null, opaque string
describing this resource; it's returned from
System.Object.ToString().
Declaration
protected ChecksumIndexInput(string resourceDescription)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceDescription |
Properties
| Improve this Doc View SourceChecksum
Returns the current checksum value
Declaration
public abstract long Checksum { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceSeek(Int64)
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 |
---|---|---|
System.Int64 | pos |
Overrides
Implements
System.IDisposable