Skip to content

Commit 9c18ddd

Browse files
Scalar arrays: support collecting integer and floating point arrays #176
1 parent 8bd4a79 commit 9c18ddd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

objectbox-java/src/main/java/io/objectbox/Cursor.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ protected static native long collect004000(long cursor, long keyIfComplete, int
105105
int idLong3, long valueLong3, int idLong4, long valueLong4
106106
);
107107

108+
// STRING ARRAYS
108109
protected static native long collectStringArray(long cursor, long keyIfComplete, int flags,
109110
int idStringArray, @Nullable String[] stringArray
110111
);
@@ -113,6 +114,26 @@ protected static native long collectStringList(long cursor, long keyIfComplete,
113114
int idStringList, @Nullable List<String> stringList
114115
);
115116

117+
// INTEGER ARRAYS
118+
protected static native long collectShortArray(long cursor, long keyIfComplete, int flags,
119+
int propertyId, @Nullable short[] value);
120+
121+
protected static native long collectCharArray(long cursor, long keyIfComplete, int flags,
122+
int propertyId, @Nullable char[] value);
123+
124+
protected static native long collectIntArray(long cursor, long keyIfComplete, int flags,
125+
int propertyId, @Nullable int[] value);
126+
127+
protected static native long collectLongArray(long cursor, long keyIfComplete, int flags,
128+
int propertyId, @Nullable long[] value);
129+
130+
// FLOATING POINT ARRAYS
131+
protected static native long collectFloatArray(long cursor, long keyIfComplete, int flags,
132+
int propertyId, @Nullable float[] value);
133+
134+
protected static native long collectDoubleArray(long cursor, long keyIfComplete, int flags,
135+
int propertyId, @Nullable double[] value);
136+
116137
native int nativePropertyId(long cursor, String propertyValue);
117138

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

0 commit comments

Comments
 (0)