Package io.objectbox.internal
Class DebugCursor
java.lang.Object
io.objectbox.internal.DebugCursor
- All Implemented Interfaces:
Closeable,AutoCloseable
Not intended for normal use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DebugCursorcreate(Transaction tx) protected voidfinalize()Explicitly callclose()instead to avoid expensive finalization.byte[]get(byte[] key) (package private) static longnativeCreate(long txHandle) (package private) static voidnativeDestroy(long handle) (package private) static byte[]nativeGet(long handle, byte[] key) (package private) static byte[]nativeSeekOrNext(long handle, byte[] key) byte[]seekOrNext(byte[] key)
-
Field Details
-
tx
-
handle
private final long handle -
closed
private boolean closed
-
-
Constructor Details
-
DebugCursor
-
-
Method Details
-
nativeCreate
static long nativeCreate(long txHandle) -
nativeDestroy
static void nativeDestroy(long handle) -
nativeGet
static byte[] nativeGet(long handle, byte[] key) -
nativeSeekOrNext
static byte[] nativeSeekOrNext(long handle, byte[] key) -
create
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
finalize
Explicitly callclose()instead to avoid expensive finalization. -
get
public byte[] get(byte[] key) -
seekOrNext
public byte[] seekOrNext(byte[] key)
-