Skip to content

Commit 6cec06c

Browse files
committed
Enhance CursorIterator JavaDocs when using integer keys (#105)
1 parent b3bb266 commit 6cec06c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/lmdbjava/CursorIterator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
* <p>
4040
* An instance will create and close its own cursor.
4141
*
42+
* <p>
43+
* If iterating over keys stored with {@link DbiFlags#MDB_INTEGERKEY} you must
44+
* provide a Java iterator when constructing the {@link Dbi} or this class. It
45+
* is more efficient to use an iterator only with this class, as this avoids
46+
* LMDB calling back into Java code to perform the integer key comparison.
47+
*
4248
* @param <T> buffer type
4349
*/
4450
public final class CursorIterator<T> implements

0 commit comments

Comments
 (0)