Package org.rocksdb
Interface TraceWriter
- All Known Implementing Classes:
AbstractTraceWriter
public interface TraceWriter
TraceWriter allows exporting RocksDB traces to any system,
one operation at a time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClose the writer.longGet the size of the file that this writer is writing to.voidWrite the data.
-
Method Details
-
write
Write the data.- Parameters:
data- the data- Throws:
RocksDBException- if an error occurs whilst writing.
-
closeWriter
Close the writer.- Throws:
RocksDBException- if an error occurs whilst closing the writer.
-
getFileSize
long getFileSize()Get the size of the file that this writer is writing to.- Returns:
- the file size
-