public class CompressedHintsWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.nio.channels.FileChannel |
channel |
protected java.util.zip.CRC32 |
globalCRC |
Constructor and Description |
---|
CompressedHintsWriter(java.io.File directory,
org.apache.cassandra.hints.HintsDescriptor descriptor,
java.io.File file,
java.nio.channels.FileChannel channel,
int fd,
java.util.zip.CRC32 globalCRC) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
fsync() |
protected void |
writeBuffer(java.nio.ByteBuffer bb)
Writes byte buffer into the file channel.
|
protected final java.nio.channels.FileChannel channel
protected final java.util.zip.CRC32 globalCRC
public CompressedHintsWriter(java.io.File directory, org.apache.cassandra.hints.HintsDescriptor descriptor, java.io.File file, java.nio.channels.FileChannel channel, int fd, java.util.zip.CRC32 globalCRC)
protected void writeBuffer(java.nio.ByteBuffer bb) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
public void fsync()
Copyright © 2016 The Apache Software Foundation