Show / Hide Table of Contents

    Class ChecksumIndexInput

    Extension of IndexInput, computing checksum as it goes. Callers can retrieve the checksum via Checksum.

    Inheritance
    System.Object
    DataInput
    IndexInput
    ChecksumIndexInput
    BufferedChecksumIndexInput
    Implements
    IDisposable
    Inherited Members
    IndexInput.Dispose()
    IndexInput.Dispose(Boolean)
    IndexInput.GetFilePointer()
    IndexInput.Length
    IndexInput.ToString()
    IndexInput.Clone()
    DataInput.ReadByte()
    DataInput.ReadBytes(Byte[], Int32, Int32)
    DataInput.ReadBytes(Byte[], Int32, Int32, Boolean)
    DataInput.ReadInt16()
    DataInput.ReadInt32()
    DataInput.ReadVInt32()
    DataInput.ReadInt64()
    DataInput.ReadVInt64()
    DataInput.ReadString()
    DataInput.ReadStringStringMap()
    DataInput.ReadStringSet()
    DataInput.SkipBytes(Int64)
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class ChecksumIndexInput : IndexInput, IDisposable

    Constructors

    | Improve this Doc View Source

    ChecksumIndexInput(String)

    resourceDescription should be a non-null, opaque string describing this resource; it's returned from .

    Declaration
    protected ChecksumIndexInput(string resourceDescription)
    Parameters
    Type Name Description
    System.String resourceDescription

    Properties

    | Improve this Doc View Source

    Checksum

    Returns the current checksum value

    Declaration
    public abstract long Checksum { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    Seek(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
    IndexInput.Seek(Int64)

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)