Fork me on GitHub
  • API

    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
    System.IDisposable
    Inherited Members
    IndexInput.Dispose()
    IndexInput.Dispose(Boolean)
    IndexInput.Position
    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)
    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 Source

    ChecksumIndexInput(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 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

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.