public abstract class NativeComparator extends NativeObject
Provides a java interface to the C++ leveldb::Comparator class.
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeComparator.ComparatorJNI |
| Modifier and Type | Field and Description |
|---|---|
static NativeComparator |
BYTEWISE_COMPARATOR |
private long |
globalRef |
private NativeBuffer |
name_buffer |
self| Constructor and Description |
|---|
NativeComparator() |
NativeComparator(long ptr) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
compare(byte[] key1,
byte[] key2) |
private int |
compare(long ptr1,
long ptr2) |
void |
delete() |
abstract java.lang.String |
name() |
assertAllocated, isAllocated, pointerprivate NativeBuffer name_buffer
private long globalRef
public static final NativeComparator BYTEWISE_COMPARATOR