Package org.rocksdb
Interface TraceWriter
-
- All Known Implementing Classes:
AbstractTraceWriter
public interface TraceWriterTraceWriter allows exporting RocksDB traces to any system, one operation at a time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseWriter()Close the writer.longgetFileSize()Get the size of the file that this writer is writing to.voidwrite(Slice data)Write the data.
-
-
-
Method Detail
-
write
void write(Slice data) throws RocksDBException
Write the data.- Parameters:
data- the data- Throws:
RocksDBException- if an error occurs whilst writing.
-
closeWriter
void closeWriter() throws RocksDBExceptionClose 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
-
-