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 Type
    Method
    Description
    void
    Close the writer.
    long
    Get the size of the file that this writer is writing to.
    void
    write(Slice data)
    Write the data.
  • Method Details

    • 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 RocksDBException
      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