Class ImportColumnFamilyOptions
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
How an imported column family's files are taken from the export directory.
Maps to rocksdb_import_column_family_options_t.
public sealed class ImportColumnFamilyOptions : RocksDbHandle, IDisposable
- Inheritance
-
ImportColumnFamilyOptions
- Implements
- Inherited Members
Constructors
ImportColumnFamilyOptions()
Creates options with RocksDb's defaults.
public ImportColumnFamilyOptions()
Properties
MoveFiles
Whether the files are moved out of the export directory rather than copied. Default is false.
public bool MoveFiles { get; set; }
Property Value
Remarks
Moving is far cheaper for a large column family, but it consumes the export: the directory can then be imported only once, and only into one database. Copy when the same export is needed more than once.
Methods
DisposeHandle()
Releases the native handle. Called during disposal.
protected override void DisposeHandle()
Remarks
Protected rather than public: it destroys the native object without marking this instance disposed or clearing the handle, so calling it from outside and then disposing normally would free the same pointer twice. It was the most Dispose-looking member on the type. Callers want Dispose().