public final class IntComparator extends AbstractComparator
nativeHandle_owningHandle_| Constructor and Description |
|---|
IntComparator(ComparatorOptions copt) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ByteBuffer a,
ByteBuffer b)
Three-way key comparison.
|
String |
name()
The name of the comparator.
|
findShortestSeparator, findShortSuccessor, initializeNative, usingDirectBuffersdisposeInternalclose, disOwnNativeHandle, isOwningHandlepublic IntComparator(ComparatorOptions copt)
public String name()
AbstractComparatorname in class AbstractComparatorpublic int compare(ByteBuffer a, ByteBuffer b)
AbstractComparatorByteBuffers passed in, though
it would be unconventional to modify the "limit" or any of the
underlying bytes. As a callback, RocksJava will ensure that a
is a different instance from b.compare in class AbstractComparatora - buffer containing the first key in its "remaining" elementsb - buffer containing the second key in its "remaining" elementsCopyright © 2022. All rights reserved.