Package io.objectbox

Class KeyValueCursor

java.lang.Object
io.objectbox.KeyValueCursor
All Implemented Interfaces:
Closeable, AutoCloseable

@NotThreadSafe public class KeyValueCursor extends Object implements Closeable
  • Field Details

    • PUT_FLAG_FIRST

      private static final int PUT_FLAG_FIRST
      See Also:
    • PUT_FLAG_COMPLETE

      private static final int PUT_FLAG_COMPLETE
      See Also:
    • PUT_FLAG_INSERT_NEW

      private static final int PUT_FLAG_INSERT_NEW
      See Also:
    • cursor

      private final long cursor
  • Constructor Details

    • KeyValueCursor

      public KeyValueCursor(long cursor)
  • Method Details

    • nativePutLongKey

      static void nativePutLongKey(long cursor, long key, byte[] value)
    • nativeDestroy

      static void nativeDestroy(long cursor)
    • nativeGetLongKey

      static byte[] nativeGetLongKey(long cursor, long key)
    • nativeGetNext

      static byte[] nativeGetNext(long cursor)
    • nativeGetFirst

      static byte[] nativeGetFirst(long cursor)
    • nativeGetLast

      static byte[] nativeGetLast(long cursor)
    • nativeGetPrev

      static byte[] nativeGetPrev(long cursor)
    • nativeGetCurrent

      static byte[] nativeGetCurrent(long cursor)
    • nativeGetEqualOrGreater

      static byte[] nativeGetEqualOrGreater(long cursor, long key)
    • nativeRemoveAt

      static boolean nativeRemoveAt(long cursor, long key)
    • nativeSeek

      static boolean nativeSeek(long cursor, long key)
    • nativeGetKey

      static long nativeGetKey(long cursor)
    • nativeGetKey

      static void nativeGetKey(long cursor, long key)
    • put

      public void put(long key, byte[] data)
    • get

      public byte[] get(long key)
    • getNext

      public byte[] getNext()
    • getFirst

      public byte[] getFirst()
    • getLast

      public byte[] getLast()
    • getPrev

      public byte[] getPrev()
    • getEqualOrGreater

      public byte[] getEqualOrGreater(long key)
    • getCurrent

      public byte[] getCurrent()
    • getKey

      public long getKey()
    • seek

      public boolean seek(long key)
    • removeAt

      public boolean removeAt(long key)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable