public class CompressedSequentialWriter extends SequentialWriter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CompressedSequentialWriter.CompressedFileWriterMark
Class to hold a mark to the position of the file
|
protected class |
CompressedSequentialWriter.TransactionalProxy |
SequentialWriter.BufferedFileWriterMarkTransactional.AbstractTransactionalbufferOffset, descriptor, fchannel, lastFlushOffset, runPostFlushbuffer, strictFlushingchannel| Constructor and Description |
|---|
CompressedSequentialWriter(java.io.File file,
java.lang.String offsetsPath,
CompressionParams parameters,
MetadataCollector sstableMetadataCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
protected void |
flushData()
Override this method instead of overriding flush()
|
long |
getOnDiskFilePointer()
Returns the current file pointer of the underlying on-disk file.
|
DataPosition |
mark() |
CompressionMetadata |
open(long overrideLength) |
void |
resetAndTruncate(DataPosition mark)
Drops all buffered data that's past the limits of our new file mark + buffer capacity, or syncs and truncates
the underlying file to the marked position
|
protected SequentialWriter.TransactionalProxy |
txnProxy() |
abort, close, commit, current, doFlush, finish, finishOnClose, getLastFlushOffset, getPath, hasPosition, isOpen, length, open, open, open, position, prepareToCommit, resetBuffer, setDescriptor, setPostFlushListener, sync, syncDataOnlyInternal, syncInternal, truncateapplyToChannel, order, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUnsignedVInt, writeUTF, writeVIntnewDefaultChannel, retrieveTemporaryBufferpublic CompressedSequentialWriter(java.io.File file,
java.lang.String offsetsPath,
CompressionParams parameters,
MetadataCollector sstableMetadataCollector)
public long getOnDiskFilePointer()
SequentialWritergetOnDiskFilePointer in class SequentialWriterpublic void flush()
flush in interface java.io.Flushableflush in class BufferedDataOutputStreamPlusprotected void flushData()
SequentialWriterflushData in class SequentialWriterpublic CompressionMetadata open(long overrideLength)
public DataPosition mark()
mark in class SequentialWriterpublic void resetAndTruncate(DataPosition mark)
SequentialWriterresetAndTruncate in class SequentialWriterprotected SequentialWriter.TransactionalProxy txnProxy()
txnProxy in class SequentialWriterCopyright © 2016 The Apache Software Foundation