Package io.objectbox.internal
Class DebugCursor
- java.lang.Object
-
- io.objectbox.internal.DebugCursor
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
@Beta public class DebugCursor extends java.lang.Object implements java.io.Closeable
Not intended for normal use.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanclosedprivate longhandleprivate Transactiontx
-
Constructor Summary
Constructors Constructor Description DebugCursor(Transaction tx, long handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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 Detail
-
tx
private final Transaction tx
-
handle
private final long handle
-
closed
private boolean closed
-
-
Constructor Detail
-
DebugCursor
public DebugCursor(Transaction tx, long handle)
-
-
Method Detail
-
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
public static DebugCursor create(Transaction tx)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
finalize
protected void finalize() throws java.lang.ThrowableExplicitly callclose()instead to avoid expensive finalization.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
get
public byte[] get(byte[] key)
-
seekOrNext
public byte[] seekOrNext(byte[] key)
-
-