public static class CompressionMetadata.Writer
extends java.io.RandomAccessFile
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
long |
chunkOffsetBy(int chunkIndex)
Get a chunk offset by it's index.
|
void |
close() |
void |
finalizeHeader(long dataLength,
int chunks) |
static CompressionMetadata.Writer |
open(java.lang.String path) |
void |
resetAndTruncate(int chunkIndex)
Reset the writer so that the next chunk offset written will be the
one of
chunkIndex. |
void |
writeHeader(CompressionParameters parameters) |
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, writeUTFpublic static CompressionMetadata.Writer open(java.lang.String path)
public void writeHeader(CompressionParameters parameters)
public void finalizeHeader(long dataLength,
int chunks)
public long chunkOffsetBy(int chunkIndex)
chunkIndex - Index of the chunk.public void resetAndTruncate(int chunkIndex)
chunkIndex.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.RandomAccessFilejava.io.IOExceptionpublic void abort()
Copyright © 2015 The Apache Software Foundation