Class CompressedHintsWriter

java.lang.Object
org.apache.cassandra.hints.CompressedHintsWriter
All Implemented Interfaces:
AutoCloseable

public class CompressedHintsWriter extends Object
  • Field Details

    • channel

      protected final FileChannel channel
    • globalCRC

      protected final CRC32 globalCRC
  • Constructor Details

    • CompressedHintsWriter

      public CompressedHintsWriter(File directory, org.apache.cassandra.hints.HintsDescriptor descriptor, File file, FileChannel channel, int fd, CRC32 globalCRC)
  • Method Details

    • writeBuffer

      protected void writeBuffer(ByteBuffer bb) throws IOException
      Writes byte buffer into the file channel. Buffer should be flipped before calling this
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • fsync

      public void fsync()