Skip to content

Commit

Permalink
Scalar arrays: support collecting integer and floating point arrays #176
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed May 8, 2023
1 parent 8bd4a79 commit 9c18ddd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions objectbox-java/src/main/java/io/objectbox/Cursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ protected static native long collect004000(long cursor, long keyIfComplete, int
int idLong3, long valueLong3, int idLong4, long valueLong4
);

// STRING ARRAYS
protected static native long collectStringArray(long cursor, long keyIfComplete, int flags,
int idStringArray, @Nullable String[] stringArray
);
Expand All @@ -113,6 +114,26 @@ protected static native long collectStringList(long cursor, long keyIfComplete,
int idStringList, @Nullable List<String> stringList
);

// INTEGER ARRAYS
protected static native long collectShortArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable short[] value);

protected static native long collectCharArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable char[] value);

protected static native long collectIntArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable int[] value);

protected static native long collectLongArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable long[] value);

// FLOATING POINT ARRAYS
protected static native long collectFloatArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable float[] value);

protected static native long collectDoubleArray(long cursor, long keyIfComplete, int flags,
int propertyId, @Nullable double[] value);

native int nativePropertyId(long cursor, String propertyValue);

native List<T> nativeGetBacklinkEntities(long cursor, int entityId, int propertyId, long key);
Expand Down

0 comments on commit 9c18ddd

Please sign in to comment.