public static class CompressionMetadata.Writer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
addOffset(long offset) |
long |
chunkOffsetBy(int chunkIndex)
Get a chunk offset by it's index.
|
void |
close(long dataLength,
int chunks) |
static CompressionMetadata.Writer |
open(CompressionParameters parameters,
java.lang.String path) |
CompressionMetadata |
open(long dataLength,
long compressedLength,
org.apache.cassandra.io.compress.CompressionMetadata.Writer.OpenType type) |
void |
resetAndTruncate(int chunkIndex)
Reset the writer so that the next chunk offset written will be the
one of
chunkIndex . |
public static CompressionMetadata.Writer open(CompressionParameters parameters, java.lang.String path)
public void addOffset(long offset)
public CompressionMetadata open(long dataLength, long compressedLength, org.apache.cassandra.io.compress.CompressionMetadata.Writer.OpenType type)
public long chunkOffsetBy(int chunkIndex)
chunkIndex
- Index of the chunk.public void resetAndTruncate(int chunkIndex)
chunkIndex
.public void close(long dataLength, int chunks) throws java.io.IOException
java.io.IOException
public void abort()
Copyright © 2016 The Apache Software Foundation