Class VerifyingIndexOutput

java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.opensearch.common.lucene.store.FilterIndexOutput
org.opensearch.index.store.VerifyingIndexOutput
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
Store.LuceneVerifyingIndexOutput

public abstract class VerifyingIndexOutput extends FilterIndexOutput
abstract class for verifying what was written. subclasses override FilterIndexOutput.writeByte(byte) and FilterIndexOutput.writeBytes(byte[], int, int)
Opensearch.internal:
  • Field Summary

    Fields inherited from class org.opensearch.common.lucene.store.FilterIndexOutput

    out
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Verifies the checksum and compares the written length with the expected file length.

    Methods inherited from class org.opensearch.common.lucene.store.FilterIndexOutput

    close, getChecksum, getFilePointer, writeByte, writeBytes

    Methods inherited from class org.apache.lucene.store.IndexOutput

    alignFilePointer, alignOffset, getName, toString

    Methods inherited from class org.apache.lucene.store.DataOutput

    copyBytes, writeBytes, writeGroupVInts, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • verify

      public abstract void verify() throws IOException
      Verifies the checksum and compares the written length with the expected file length. This method should be called after all data has been written to this output.
      Throws:
      IOException