public class IngestExternalFileOptions extends RocksObject
RocksDB.ingestExternalFile(ColumnFamilyHandle, List, IngestExternalFileOptions)
nativeHandle_
Constructor and Description |
---|
IngestExternalFileOptions() |
IngestExternalFileOptions(boolean moveFiles,
boolean snapshotConsistency,
boolean allowGlobalSeqNo,
boolean allowBlockingFlush) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowBlockingFlush()
If set to false and the file key range overlaps with the memtable key range
(memtable flush required), IngestExternalFile will fail.
|
boolean |
allowGlobalSeqNo()
If set to false,
RocksDB.ingestExternalFile(ColumnFamilyHandle, List, IngestExternalFileOptions)
will fail if the file key range overlaps with existing keys or tombstones in the DB. |
protected void |
disposeInternal(long handle) |
boolean |
moveFiles()
Can be set to true to move the files instead of copying them.
|
void |
setAllowBlockingFlush(boolean allowBlockingFlush)
If set to false and the file key range overlaps with the memtable key range
(memtable flush required), IngestExternalFile will fail.
|
void |
setAllowGlobalSeqNo(boolean allowGlobalSeqNo)
If set to false,
RocksDB.ingestExternalFile(ColumnFamilyHandle, List, IngestExternalFileOptions)
will fail if the file key range overlaps with existing keys or tombstones in the DB. |
void |
setMoveFiles(boolean moveFiles)
Can be set to true to move the files instead of copying them.
|
void |
setSnapshotConsistency(boolean snapshotConsistency)
If set to false, an ingested file keys could appear in existing snapshots
that where created before the file was ingested.
|
boolean |
snapshotConsistency()
If set to false, an ingested file keys could appear in existing snapshots
that where created before the file was ingested.
|
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public IngestExternalFileOptions()
public IngestExternalFileOptions(boolean moveFiles, boolean snapshotConsistency, boolean allowGlobalSeqNo, boolean allowBlockingFlush)
moveFiles
- setMoveFiles(boolean)
snapshotConsistency
- setSnapshotConsistency(boolean)
allowGlobalSeqNo
- setAllowGlobalSeqNo(boolean)
allowBlockingFlush
- setAllowBlockingFlush(boolean)
public boolean moveFiles()
public void setMoveFiles(boolean moveFiles)
moveFiles
- true if files should be moved instead of copiedpublic boolean snapshotConsistency()
public void setSnapshotConsistency(boolean snapshotConsistency)
snapshotConsistency
- true if snapshot consistency is requiredpublic boolean allowGlobalSeqNo()
RocksDB.ingestExternalFile(ColumnFamilyHandle, List, IngestExternalFileOptions)
will fail if the file key range overlaps with existing keys or tombstones in the DB.public void setAllowGlobalSeqNo(boolean allowGlobalSeqNo)
RocksDB.ingestExternalFile(ColumnFamilyHandle, List, IngestExternalFileOptions)
will fail if the file key range overlaps with existing keys or tombstones in the DB.allowGlobalSeqNo
- true if global seq numbers are requiredpublic boolean allowBlockingFlush()
public void setAllowBlockingFlush(boolean allowBlockingFlush)
allowBlockingFlush
- true if blocking flushes are allowedprotected final void disposeInternal(long handle)
disposeInternal
in class RocksObject