public class Checkpoint extends RocksObject
nativeHandle_owningHandle_| Modifier and Type | Method and Description |
|---|---|
static Checkpoint |
create(RocksDB db)
Creates a Checkpoint object to be used for creating open-able
snapshots.
|
void |
createCheckpoint(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 files
|
protected void |
disposeInternal(long handle) |
ExportImportFilesMetaData |
exportColumnFamily(ColumnFamilyHandle columnFamilyHandle,
java.lang.String exportPath) |
disposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic static Checkpoint create(RocksDB db)
public void createCheckpoint(java.lang.String checkpointPath)
throws RocksDBException
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 files
checkpointPath - path to the folder where the snapshot is going
to be stored.RocksDBException - thrown if an error occurs within the native
part of the library.public ExportImportFilesMetaData exportColumnFamily(ColumnFamilyHandle columnFamilyHandle, java.lang.String exportPath) throws RocksDBException
RocksDBExceptionprotected final void disposeInternal(long handle)
disposeInternal in class RocksObject