Class DataIntegrityMetadata.ChecksumValidator

java.lang.Object
org.apache.cassandra.io.util.DataIntegrityMetadata.ChecksumValidator
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
DataIntegrityMetadata

public static class DataIntegrityMetadata.ChecksumValidator extends Object implements Closeable
  • Field Details

    • chunkSize

      public final int chunkSize
  • Constructor Details

  • Method Details

    • seek

      public void seek(long offset)
    • chunkStart

      public long chunkStart(long offset)
    • validate

      public void validate(byte[] bytes, int start, int end) throws IOException
      Throws:
      IOException
    • validate

      public void validate(ByteBuffer buffer) throws IOException
      validates the checksum with the bytes from the specified buffer. Upon return, the buffer's position will be updated to its limit; its limit will not have been changed.
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable