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
|
SequentialWriter.BufferedFileWriterMarkbuffer, bufferOffset, current, isDirty, out, stream, syncNeeded, validBufferBytes| Constructor and Description |
|---|
CompressedSequentialWriter(java.io.File file,
java.lang.String indexFilePath,
boolean skipIOCache,
CompressionParameters parameters,
SSTableMetadata.Collector sstableMetadataCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
close() |
void |
flush()
If buffer is dirty, flush it's contents to the operating system.
|
protected void |
flushData()
Override this method instead of overriding flush()
|
long |
getOnDiskFilePointer()
Return the current file pointer of the underlying on-disk file.
|
FileMark |
mark() |
static SequentialWriter |
open(java.lang.String dataFilePath,
java.lang.String indexFilePath,
boolean skipIOCache,
CompressionParameters parameters,
SSTableMetadata.Collector sstableMetadataCollector) |
void |
resetAndTruncate(FileMark mark) |
void |
sync()
Synchronize file contents with disk.
|
flushInternal, getFilePointer, getPath, length, open, open, open, reBuffer, resetBuffer, setDataIntegrityWriter, syncDataOnlyInternal, syncInternal, truncate, write, write, writepublic CompressedSequentialWriter(java.io.File file,
java.lang.String indexFilePath,
boolean skipIOCache,
CompressionParameters parameters,
SSTableMetadata.Collector sstableMetadataCollector)
public static SequentialWriter open(java.lang.String dataFilePath, java.lang.String indexFilePath, boolean skipIOCache, CompressionParameters parameters, SSTableMetadata.Collector sstableMetadataCollector)
public long getOnDiskFilePointer()
SequentialWritergetOnDiskFilePointer in class SequentialWriterpublic void sync()
SequentialWritersync in class SequentialWriterpublic void flush()
SequentialWriterflush in interface java.io.Flushableflush in class SequentialWriterprotected void flushData()
SequentialWriterflushData in class SequentialWriterpublic FileMark mark()
mark in class SequentialWriterpublic void resetAndTruncate(FileMark mark)
resetAndTruncate in class SequentialWriterpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SequentialWriterpublic void abort()
abort in class SequentialWriterCopyright © 2015 The Apache Software Foundation