Package org.apache.cassandra.hints
Class CompressedHintsWriter
- java.lang.Object
-
- org.apache.cassandra.hints.CompressedHintsWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CompressedHintsWriter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CompressedHintsWriter(File directory, org.apache.cassandra.hints.HintsDescriptor descriptor, File file, java.nio.channels.FileChannel channel, int fd, java.util.zip.CRC32 globalCRC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
fsync()
protected void
writeBuffer(java.nio.ByteBuffer bb)
Writes byte buffer into the file channel.
-
-
-
Method Detail
-
writeBuffer
protected void writeBuffer(java.nio.ByteBuffer bb) throws java.io.IOException
Writes byte buffer into the file channel. Buffer should be flipped before calling this- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
fsync
public void fsync()
-
-