Package io.objectbox

Class KeyValueCursor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    @NotThreadSafe
    public class KeyValueCursor
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • KeyValueCursor

        public KeyValueCursor​(long cursor)
    • Method Detail

      • 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 java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable