]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/TraceWriter.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
9 * TraceWriter allows exporting RocksDB traces to any system,
10 * one operation at a time.
12 public interface TraceWriter
{
17 * @param data the data
19 * @throws RocksDBException if an error occurs whilst writing.
21 void write(final Slice data
) throws RocksDBException
;
26 * @throws RocksDBException if an error occurs whilst closing the writer.
28 void closeWriter() throws RocksDBException
;
31 * Get the size of the file that this writer is writing to.
33 * @return the file size