| Package | Description |
|---|---|
| org.rocksdb | |
| org.rocksdb.util |
| 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 |
|---|
SstFileWriter(EnvOptions envOptions,
Options options,
AbstractComparator comparator)
Deprecated.
Use
SstFileWriter.SstFileWriter(EnvOptions, Options).
Passing an explicit comparator is deprecated in lieu of passing the
comparator as part of options. Use the other constructor instead. |
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 © 2021. All rights reserved.