| Package | Description |
|---|---|
| org.rocksdb |
The RocksDB Java driver
|
| Modifier and Type | Method and Description |
|---|---|
ColumnFamilyHandle |
RocksDB.createColumnFamily(ColumnFamilyDescriptor columnFamilyDescriptor)
Creates a new column family with the name columnFamilyName and
allocates a ColumnFamilyHandle within an internal structure.
|
ColumnFamilyHandle |
TtlDB.createColumnFamilyWithTtl(ColumnFamilyDescriptor columnFamilyDescriptor,
int ttl)
Creates a new ttl based column family with a name defined
in given ColumnFamilyDescriptor and allocates a
ColumnFamilyHandle within an internal structure.
|
ColumnFamilyHandle |
RocksDB.getDefaultColumnFamily()
Gets the handle for the default column family
|
| Modifier and Type | Method and Description |
|---|---|
List<ColumnFamilyHandle> |
RocksDB.createColumnFamilies(ColumnFamilyOptions columnFamilyOptions,
List<byte[]> columnFamilyNames)
Bulk create column families with the same column family options.
|
List<ColumnFamilyHandle> |
RocksDB.createColumnFamilies(List<ColumnFamilyDescriptor> columnFamilyDescriptors)
Bulk create column families with the same column family options.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
RocksDB.compactFiles(CompactionOptions compactionOptions,
ColumnFamilyHandle columnFamilyHandle,
List<String> inputFileNames,
int outputLevel,
int outputPathId,
CompactionJobInfo compactionJobInfo)
Takes a list of files specified by file names and
compacts them to the specified level.
|
void |
RocksDB.compactRange(ColumnFamilyHandle columnFamilyHandle)
Range compaction of column family.
|
void |
RocksDB.compactRange(ColumnFamilyHandle columnFamilyHandle,
byte[] begin,
byte[] end)
Range compaction of column family.
|
void |
RocksDB.compactRange(ColumnFamilyHandle columnFamilyHandle,
byte[] begin,
byte[] end,
CompactRangeOptions compactRangeOptions)
Range compaction of column family.
|
void |
AbstractWriteBatch.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key) |
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Delete the database entry (if any) for "key".
|
void |
Transaction.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Similar to
Transaction.delete(ColumnFamilyHandle, byte[], boolean)
but with assumeTracked = false. |
void |
WriteBatchInterface.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
If column family contains a mapping for "key", erase it.
|
void |
Transaction.delete(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts)
Similar to
Transaction.delete(ColumnFamilyHandle, byte[][], boolean)
but with assumeTracked = false. |
void |
Transaction.delete(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts,
boolean assumeTracked)
Similar to
Transaction.delete(ColumnFamilyHandle, byte[]) but allows
you to specify the key in several parts that will be
concatenated together. |
void |
Transaction.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
boolean assumeTracked)
Similar to
RocksDB.delete(ColumnFamilyHandle, byte[]), but
will also perform conflict checking on the keys be written. |
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len)
Delete the database entry (if any) for "key".
|
void |
AbstractWriteBatch.delete(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key) |
void |
WriteBatchInterface.delete(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key)
If column family contains a mapping for "key", erase it.
|
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key,
int offset,
int len)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
ByteBuffer key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.deleteFilesInRanges(ColumnFamilyHandle columnFamily,
List<byte[]> ranges,
boolean includeEnd)
Delete files in multiple ranges at once.
|
void |
AbstractWriteBatch.deleteRange(ColumnFamilyHandle columnFamilyHandle,
byte[] beginKey,
byte[] endKey) |
void |
RocksDB.deleteRange(ColumnFamilyHandle columnFamilyHandle,
byte[] beginKey,
byte[] endKey)
Removes the database entries in the range ["beginKey", "endKey"), i.e.,
including "beginKey" and excluding "endKey". a non-OK status on error.
|
void |
WriteBatchInterface.deleteRange(ColumnFamilyHandle columnFamilyHandle,
byte[] beginKey,
byte[] endKey)
Removes the database entries in the range ["beginKey", "endKey"), i.e.,
including "beginKey" and excluding "endKey". a non-OK status on error.
|
void |
RocksDB.deleteRange(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] beginKey,
byte[] endKey)
Removes the database entries in the range ["beginKey", "endKey"), i.e.,
including "beginKey" and excluding "endKey". a non-OK status on error.
|
void |
Transaction.deleteUntracked(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Similar to
RocksDB.delete(ColumnFamilyHandle, byte[]),
but operates on the transactions write batch. |
void |
Transaction.deleteUntracked(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts)
Similar to
Transaction.deleteUntracked(ColumnFamilyHandle, byte[]) but allows
you to specify the key in several parts that will be
concatenated together. |
void |
RocksDB.destroyColumnFamilyHandle(ColumnFamilyHandle columnFamilyHandle)
Deletes native column family handle of given
ColumnFamilyHandle Java object
and removes reference from RocksDB.ownedColumnFamilyHandles. |
void |
RocksDB.dropColumnFamily(ColumnFamilyHandle columnFamilyHandle)
Drops the column family specified by
columnFamilyHandle. |
void |
RocksDB.flush(FlushOptions flushOptions,
ColumnFamilyHandle columnFamilyHandle)
Flush all memory table data.
|
byte[] |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
The simplified version of get which returns a new byte array storing
the value associated with the specified input key if any.
|
int |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Get the value associated with the specified key within column family.
|
byte[] |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len)
The simplified version of get which returns a new byte array storing
the value associated with the specified input key if any.
|
int |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Get the value associated with the specified key within column family.
|
byte[] |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions opt,
byte[] key)
The simplified version of get which returns a new byte array storing
the value associated with the specified input key if any.
|
byte[] |
Transaction.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions,
byte[] key)
This function is similar to
RocksDB.get(ColumnFamilyHandle, ReadOptions, byte[]) except it will
also read pending changes in this transaction. |
int |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions opt,
byte[] key,
byte[] value)
Get the value associated with the specified key within column family.
|
byte[] |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions opt,
byte[] key,
int offset,
int len)
The simplified version of get which returns a new byte array storing
the value associated with the specified input key if any.
|
int |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions opt,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Get the value associated with the specified key within column family.
|
int |
RocksDB.get(ColumnFamilyHandle columnFamilyHandle,
ReadOptions opt,
ByteBuffer key,
ByteBuffer value)
Get the value associated with the specified key within column family.
|
RocksDB.CountAndSize |
RocksDB.getApproximateMemTableStats(ColumnFamilyHandle columnFamilyHandle,
Range range)
This method is similar to
RocksDB.getApproximateSizes(ColumnFamilyHandle, List, SizeApproximationFlag...),
except that it returns approximate number of records and size in memtables. |
long[] |
RocksDB.getApproximateSizes(ColumnFamilyHandle columnFamilyHandle,
List<Range> ranges,
SizeApproximationFlag... sizeApproximationFlags)
Get the approximate file system space used by keys in each range.
|
ColumnFamilyMetaData |
RocksDB.getColumnFamilyMetaData(ColumnFamilyHandle columnFamilyHandle)
Obtains the meta data of the specified column family of the DB.
|
byte[] |
Transaction.getForUpdate(ReadOptions readOptions,
ColumnFamilyHandle columnFamilyHandle,
byte[] key,
boolean exclusive)
Same as
Transaction.getForUpdate(ReadOptions, ColumnFamilyHandle, byte[], boolean, boolean)
with doValidate=true. |
byte[] |
Transaction.getForUpdate(ReadOptions readOptions,
ColumnFamilyHandle columnFamilyHandle,
byte[] key,
boolean exclusive,
boolean doValidate)
Read this key and ensure that this transaction will only
be able to be committed if this key is not written outside this
transaction after it has first been read (or after the snapshot if a
snapshot is set in this transaction).
|
byte[] |
WriteBatchWithIndex.getFromBatch(ColumnFamilyHandle columnFamilyHandle,
DBOptions options,
byte[] key)
Similar to
RocksDB.get(ColumnFamilyHandle, byte[]) but will only
read the key from this batch. |
byte[] |
WriteBatchWithIndex.getFromBatchAndDB(RocksDB db,
ColumnFamilyHandle columnFamilyHandle,
ReadOptions options,
byte[] key)
Similar to
RocksDB.get(ColumnFamilyHandle, byte[]) but will also
read writes from this batch. |
RocksIterator |
Transaction.getIterator(ReadOptions readOptions,
ColumnFamilyHandle columnFamilyHandle)
Returns an iterator that will iterate on all keys in the column family
specified by
columnFamilyHandle including both keys in the DB
and uncommitted keys in this transaction. |
long |
RocksDB.getLongProperty(ColumnFamilyHandle columnFamilyHandle,
String property)
Similar to GetProperty(), but only works for a subset of properties
whose return value is a numerical value.
|
Map<String,String> |
RocksDB.getMapProperty(ColumnFamilyHandle columnFamilyHandle,
String property)
Gets a property map.
|
MutableColumnFamilyOptions.MutableColumnFamilyOptionsBuilder |
RocksDB.getOptions(ColumnFamilyHandle columnFamilyHandle)
Get the options for the column family handle
|
Map<String,TableProperties> |
RocksDB.getPropertiesOfAllTables(ColumnFamilyHandle columnFamilyHandle)
Get the properties of all tables.
|
Map<String,TableProperties> |
RocksDB.getPropertiesOfTablesInRange(ColumnFamilyHandle columnFamilyHandle,
List<Range> ranges)
Get the properties of tables in range.
|
String |
RocksDB.getProperty(ColumnFamilyHandle columnFamilyHandle,
String property)
DB implements can export properties about their state
via this method on a per column family level.
|
void |
RocksDB.ingestExternalFile(ColumnFamilyHandle columnFamilyHandle,
List<String> filePathList,
IngestExternalFileOptions ingestExternalFileOptions)
ingestExternalFile will load a list of external SST files (1) into the DB
We will try to find the lowest possible level that the file can fit in, and
ingest the file into this level (2).
|
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
Holder<byte[]> valueHolder)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len,
Holder<byte[]> valueHolder)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
KeyMayExist |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key,
ByteBuffer value)
If the key definitely does not exist in the database, then this method
returns
KeyMayExist.KeyMayExistEnum.kNotExist,
otherwise if it can with best effort retreive the value, it returns KeyMayExist.KeyMayExistEnum.kExistsWithValue otherwise it returns KeyMayExist.KeyMayExistEnum.kExistsWithoutValue. |
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions,
byte[] key,
Holder<byte[]> valueHolder)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions,
byte[] key,
int offset,
int len,
Holder<byte[]> valueHolder)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
boolean |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions,
ByteBuffer key)
If the key definitely does not exist in the database, then this method
returns false, otherwise it returns true if the key might exist.
|
KeyMayExist |
RocksDB.keyMayExist(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions,
ByteBuffer key,
ByteBuffer value)
If the key definitely does not exist in the database, then this method
returns
KeyMayExist.KeyMayExistEnum.kNotExist,
otherwise if it can with best effort retreive the value, it returns KeyMayExist.KeyMayExistEnum.kExistsWithValue otherwise it returns KeyMayExist.KeyMayExistEnum.kExistsWithoutValue. |
int |
RocksDB.level0StopWriteTrigger(ColumnFamilyHandle columnFamilyHandle)
Number of files in level-0 that would stop writes.
|
int |
RocksDB.maxMemCompactionLevel(ColumnFamilyHandle columnFamilyHandle)
Maximum level to which a new compacted memtable is pushed if it
does not create overlap.
|
void |
AbstractWriteBatch.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value) |
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Add merge operand for key/value pair in a ColumnFamily.
|
void |
Transaction.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Similar to
Transaction.merge(ColumnFamilyHandle, byte[], byte[], boolean)
but with assumeTracked = false. |
void |
WriteBatchInterface.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Merge "value" with the existing value of "key" in given column family.
|
void |
Transaction.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value,
boolean assumeTracked)
Similar to
RocksDB.merge(ColumnFamilyHandle, byte[], byte[]), but
will also perform conflict checking on the keys be written. |
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Add merge operand for key/value pair in a ColumnFamily.
|
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
byte[] value)
Add merge operand for key/value pair.
|
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Add merge operand for key/value pair.
|
void |
Transaction.mergeUntracked(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Similar to
RocksDB.merge(ColumnFamilyHandle, byte[], byte[]),
but operates on the transactions write batch. |
RocksIterator |
RocksDB.newIterator(ColumnFamilyHandle columnFamilyHandle)
Return a heap-allocated iterator over the contents of a
ColumnFamily.
|
WBWIRocksIterator |
WriteBatchWithIndex.newIterator(ColumnFamilyHandle columnFamilyHandle)
Create an iterator of a column family.
|
RocksIterator |
RocksDB.newIterator(ColumnFamilyHandle columnFamilyHandle,
ReadOptions readOptions)
Return a heap-allocated iterator over the contents of a
ColumnFamily.
|
RocksIterator |
WriteBatchWithIndex.newIteratorWithBase(ColumnFamilyHandle columnFamilyHandle,
RocksIterator baseIterator)
Provides Read-Your-Own-Writes like functionality by
creating a new Iterator that will use
WBWIRocksIterator
as a delta and baseIterator as a base
Updating write batch with the current key of the iterator is not safe. |
RocksIterator |
WriteBatchWithIndex.newIteratorWithBase(ColumnFamilyHandle columnFamilyHandle,
RocksIterator baseIterator,
ReadOptions readOptions)
Provides Read-Your-Own-Writes like functionality by
creating a new Iterator that will use
WBWIRocksIterator
as a delta and baseIterator as a base
Updating write batch with the current key of the iterator is not safe. |
int |
RocksDB.numberLevels(ColumnFamilyHandle columnFamilyHandle)
Number of levels used for a column family in this DB.
|
void |
AbstractEventListener.onColumnFamilyHandleDeletionStarted(ColumnFamilyHandle columnFamilyHandle) |
void |
EventListener.onColumnFamilyHandleDeletionStarted(ColumnFamilyHandle columnFamilyHandle)
A callback function for RocksDB which will be called before
a column family handle is deleted.
|
void |
RocksDB.promoteL0(ColumnFamilyHandle columnFamilyHandle,
int targetLevel)
Promote L0.
|
void |
Transaction.put(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts,
byte[][] valueParts)
Similar to
Transaction.put(ColumnFamilyHandle, byte[][], byte[][], boolean)
but with with assumeTracked = false. |
void |
Transaction.put(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts,
byte[][] valueParts,
boolean assumeTracked)
Similar to
Transaction.put(ColumnFamilyHandle, byte[], byte[]) but allows
you to specify the key and value in several parts that will be
concatenated together. |
void |
AbstractWriteBatch.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value) |
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Set the database entry for "key" to "value" in the specified
column family.
|
void |
Transaction.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Similar to
Transaction.put(ColumnFamilyHandle, byte[], byte[], boolean)
but with assumeTracked = false. |
void |
WriteBatchInterface.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Store the mapping "key->value" within given column
family.
|
void |
Transaction.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value,
boolean assumeTracked)
Similar to
RocksDB.put(ColumnFamilyHandle, byte[], byte[]), but
will also perform conflict checking on the keys be written. |
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Set the database entry for "key" to "value" in the specified
column family.
|
void |
AbstractWriteBatch.put(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key,
ByteBuffer value) |
void |
WriteBatchInterface.put(ColumnFamilyHandle columnFamilyHandle,
ByteBuffer key,
ByteBuffer value)
Store the mapping "key->value" within given column
family.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
byte[] value)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
ByteBuffer key,
ByteBuffer value)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
Transaction.putUntracked(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts,
byte[][] valueParts)
Similar to
Transaction.putUntracked(ColumnFamilyHandle, byte[], byte[]) but
allows you to specify the key and value in several parts that will be
concatenated together. |
void |
Transaction.putUntracked(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
byte[] value)
Similar to
RocksDB.put(ColumnFamilyHandle, byte[], byte[]),
but operates on the transactions write batch. |
void |
RocksDB.setOptions(ColumnFamilyHandle columnFamilyHandle,
MutableColumnFamilyOptions mutableColumnFamilyOptions)
Change the options for the column family handle.
|
void |
AbstractWriteBatch.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[] key) |
void |
RocksDB.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Remove the database entry for
key. |
void |
Transaction.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Similar to
Transaction.singleDelete(ColumnFamilyHandle, byte[], boolean)
but with assumeTracked = false. |
void |
WriteBatchInterface.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
Remove the database entry for
key. |
void |
Transaction.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts)
Similar to
Transaction.singleDelete(ColumnFamilyHandle, byte[][], boolean)
but with assumeTracked = false. |
void |
Transaction.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[][] keyParts,
boolean assumeTracked)
Similar to
Transaction.singleDelete(ColumnFamilyHandle, byte[]) but allows
you to specify the key in several parts that will be
concatenated together. |
void |
Transaction.singleDelete(ColumnFamilyHandle columnFamilyHandle,
byte[] key,
boolean assumeTracked)
Similar to
RocksDB.singleDelete(ColumnFamilyHandle, byte[]), but
will also perform conflict checking on the keys be written. |
void |
RocksDB.singleDelete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key)
Remove the database entry for
key. |
Range |
RocksDB.suggestCompactRange(ColumnFamilyHandle columnFamilyHandle)
Suggest the range to compact.
|
void |
Transaction.undoGetForUpdate(ColumnFamilyHandle columnFamilyHandle,
byte[] key)
If this key was previously fetched in this transaction using
Transaction.getForUpdate(ReadOptions, ColumnFamilyHandle, byte[], boolean)/
Transaction.multiGetForUpdate(ReadOptions, List, byte[][]), calling
Transaction.undoGetForUpdate(ColumnFamilyHandle, byte[]) will tell
the transaction that it no longer needs to do any conflict checking
for this key. |
| Modifier and Type | Method and Description |
|---|---|
void |
RocksDB.dropColumnFamilies(List<ColumnFamilyHandle> columnFamilies) |
void |
RocksDB.enableAutoCompaction(List<ColumnFamilyHandle> columnFamilyHandles)
Enable automatic compactions for the given column
families if they were previously disabled.
|
void |
RocksDB.flush(FlushOptions flushOptions,
List<ColumnFamilyHandle> columnFamilyHandles)
Flushes multiple column families.
|
byte[][] |
Transaction.multiGet(ReadOptions readOptions,
List<ColumnFamilyHandle> columnFamilyHandles,
byte[][] keys)
Deprecated.
|
List<byte[]> |
RocksDB.multiGetAsList(List<ColumnFamilyHandle> columnFamilyHandleList,
List<byte[]> keys)
Returns a list of values for the given list of keys.
|
List<byte[]> |
RocksDB.multiGetAsList(ReadOptions opt,
List<ColumnFamilyHandle> columnFamilyHandleList,
List<byte[]> keys)
Returns a list of values for the given list of keys.
|
List<byte[]> |
Transaction.multiGetAsList(ReadOptions readOptions,
List<ColumnFamilyHandle> columnFamilyHandles,
List<byte[]> keys)
This function is similar to
RocksDB.multiGetAsList(ReadOptions, List, List) except it will
also read pending changes in this transaction. |
List<ByteBufferGetStatus> |
RocksDB.multiGetByteBuffers(List<ColumnFamilyHandle> columnFamilyHandleList,
List<ByteBuffer> keys,
List<ByteBuffer> values)
Fetches a list of values for the given list of keys.
|
List<ByteBufferGetStatus> |
RocksDB.multiGetByteBuffers(ReadOptions readOptions,
List<ColumnFamilyHandle> columnFamilyHandleList,
List<ByteBuffer> keys,
List<ByteBuffer> values)
Fetches a list of values for the given list of keys.
|
byte[][] |
Transaction.multiGetForUpdate(ReadOptions readOptions,
List<ColumnFamilyHandle> columnFamilyHandles,
byte[][] keys)
Deprecated.
|
List<byte[]> |
Transaction.multiGetForUpdateAsList(ReadOptions readOptions,
List<ColumnFamilyHandle> columnFamilyHandles,
List<byte[]> keys)
A multi-key version of
Transaction.getForUpdate(ReadOptions, ColumnFamilyHandle, byte[], boolean). |
List<RocksIterator> |
RocksDB.newIterators(List<ColumnFamilyHandle> columnFamilyHandleList)
Returns iterators from a consistent database state across multiple
column families.
|
List<RocksIterator> |
RocksDB.newIterators(List<ColumnFamilyHandle> columnFamilyHandleList,
ReadOptions readOptions)
Returns iterators from a consistent database state across multiple
column families.
|
static OptimisticTransactionDB |
OptimisticTransactionDB.open(DBOptions dbOptions,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
Open an OptimisticTransactionDB similar to
RocksDB.open(DBOptions, String, List, List). |
static RocksDB |
RocksDB.open(DBOptions options,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
The factory constructor of RocksDB that opens a RocksDB instance given
the path to the database using the specified options and db path and a list
of column family names.
|
static TtlDB |
TtlDB.open(DBOptions options,
String db_path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles,
List<Integer> ttlValues,
boolean readOnly)
Opens a TtlDB.
|
static TransactionDB |
TransactionDB.open(DBOptions dbOptions,
TransactionDBOptions transactionDbOptions,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
Open a TransactionDB, similar to
RocksDB.open(DBOptions, String, List, List). |
static RocksDB |
RocksDB.open(String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
The factory constructor of RocksDB that opens a RocksDB instance given
the path to the database using the specified options and db path and a list
of column family names.
|
static RocksDB |
RocksDB.openAsSecondary(DBOptions options,
String path,
String secondaryPath,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
Open DB as secondary instance with column families.
|
static RocksDB |
RocksDB.openReadOnly(DBOptions options,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
The factory constructor of RocksDB that opens a RocksDB instance in
Read-Only mode given the path to the database using the specified
options and db path.
|
static RocksDB |
RocksDB.openReadOnly(DBOptions options,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles,
boolean errorIfWalFileExists)
The factory constructor of RocksDB that opens a RocksDB instance in
Read-Only mode given the path to the database using the specified
options and db path.
|
static RocksDB |
RocksDB.openReadOnly(String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
The factory constructor of RocksDB that opens a RocksDB instance in
Read-Only mode given the path to the database using the default
options.
|
Copyright © 2022. All rights reserved.