Package org.apache.cassandra.hints
Class CompressedHintsWriter
java.lang.Object
org.apache.cassandra.hints.CompressedHintsWriter
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompressedHintsWriter(File directory, org.apache.cassandra.hints.HintsDescriptor descriptor, File file, FileChannel channel, int fd, CRC32 globalCRC) -
Method Summary
-
Field Details
-
channel
-
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
Writes byte buffer into the file channel. Buffer should be flipped before calling this- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
fsync
public void fsync()
-