|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.RandomAccessFile
org.apache.cassandra.io.compress.CompressionMetadata.Writer
public static class CompressionMetadata.Writer
| Constructor Summary | |
|---|---|
CompressionMetadata.Writer(java.lang.String path)
|
|
| Method Summary | |
|---|---|
long |
chunkOffsetBy(int chunkIndex)
Get a chunk offset by it's index. |
void |
finalizeHeader(long dataLength,
int chunks)
|
void |
resetAndTruncate(int chunkIndex)
Reset the writer so that the next chunk offset written will be the one of chunkIndex. |
void |
writeHeader(CompressionParameters parameters)
|
| Methods inherited from class java.io.RandomAccessFile |
|---|
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompressionMetadata.Writer(java.lang.String path)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void writeHeader(CompressionParameters parameters)
throws java.io.IOException
java.io.IOException
public void finalizeHeader(long dataLength,
int chunks)
throws java.io.IOException
java.io.IOException
public long chunkOffsetBy(int chunkIndex)
throws java.io.IOException
chunkIndex - Index of the chunk.
java.io.IOException - any I/O error.
public void resetAndTruncate(int chunkIndex)
throws java.io.IOException
chunkIndex.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||