| Package | Description |
|---|---|
| org.rocksdb |
The RocksDB Java driver
|
| org.rocksdb.util |
RocksDB Java driver utilities
|
| Modifier and Type | Class and Description |
|---|---|
class |
NativeComparatorWrapper
A simple abstraction to allow a Java class to wrap a custom comparator
implemented in C++.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnFamilyOptions |
ColumnFamilyOptions.setComparator(AbstractComparator comparator) |
T |
ColumnFamilyOptionsInterface.setComparator(AbstractComparator comparator)
Use the specified comparator for key ordering.
|
OptimisticTransactionOptions |
OptimisticTransactionOptions.setComparator(AbstractComparator comparator)
Should be set if the DB has a non-default comparator.
|
Options |
Options.setComparator(AbstractComparator comparator) |
| Constructor and Description |
|---|
WriteBatchWithIndex(AbstractComparator fallbackIndexComparator,
int reservedBytes,
boolean overwriteKey)
Creates a WriteBatchWithIndex
|
| Modifier and Type | Class and Description |
|---|---|
class |
BytewiseComparator
This is a Java Native implementation of the C++
equivalent BytewiseComparatorImpl using
Slice
The performance of Comparators implemented in Java is always
less than their C++ counterparts due to the bridging overhead,
as such you likely don't want to use this apart from benchmarking
and you most likely instead wanted
BuiltinComparator.BYTEWISE_COMPARATOR |
class |
IntComparator
This is a Java implementation of a Comparator for Java int
keys.
|
class |
ReverseBytewiseComparator
This is a Java Native implementation of the C++
equivalent ReverseBytewiseComparatorImpl using
Slice
The performance of Comparators implemented in Java is always
less than their C++ counterparts due to the bridging overhead,
as such you likely don't want to use this apart from benchmarking
and you most likely instead wanted
BuiltinComparator.REVERSE_BYTEWISE_COMPARATOR |
Copyright © 2022. All rights reserved.