Package org.rocksdb
Class Checkpoint
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Checkpoint extends RocksObject
Provides Checkpoint functionality. Checkpoints provide persistent snapshots of RocksDB databases.
-
-
Field Summary
-
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_
-
Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Checkpointcreate(RocksDB db)Creates a Checkpoint object to be used for creating open-able snapshots.voidcreateCheckpoint(java.lang.String checkpointPath)Builds an open-able snapshot of RocksDB on the same disk, which accepts an output directory on the same disk, and under the directory (1) hard-linked SST files pointing to existing live SST files (2) a copied manifest files and other filesprotected voiddisposeInternal(long handle)-
Methods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandle
-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
Method Detail
-
create
public static Checkpoint create(RocksDB db)
Creates a Checkpoint object to be used for creating open-able snapshots.
-
createCheckpoint
public void createCheckpoint(java.lang.String checkpointPath) throws RocksDBExceptionBuilds an open-able snapshot of RocksDB on the same disk, which accepts an output directory on the same disk, and under the directory (1) hard-linked SST files pointing to existing live SST files (2) a copied manifest files and other files
- Parameters:
checkpointPath- path to the folder where the snapshot is going to be stored.- Throws:
RocksDBException- thrown if an error occurs within the native part of the library.
-
disposeInternal
protected final void disposeInternal(long handle)
- Specified by:
disposeInternalin classRocksObject
-
-