@@ -1132,6 +1132,148 @@ extern "C" {
11321132 return jresult;
11331133 }
11341134
1135+ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1subarray_1nio (JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg3) {
1136+ void * buffer = (void *)jenv->GetDirectBufferAddress (jarg3);
1137+
1138+ jint jresult = 0 ;
1139+ tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
1140+ tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
1141+ void *arg3 = (void *) 0 ;
1142+ int32_t result;
1143+
1144+ (void )jenv;
1145+ (void )jcls;
1146+ arg1 = *(tiledb_ctx_t **)&jarg1;
1147+ arg2 = *(tiledb_query_t **)&jarg2;
1148+ arg3 = *(void **)&jarg3;
1149+ result = (int32_t )tiledb_query_set_subarray (arg1,arg2,buffer);
1150+ jresult = (jint)result;
1151+ return jresult;
1152+ }
1153+
1154+ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1buffer_1nio (JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jobject jarg4, jlong jarg5) {
1155+ void * buffer = (void *)jenv->GetDirectBufferAddress (jarg4);
1156+
1157+ jint jresult = 0 ;
1158+ tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
1159+ tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
1160+ char *arg3 = (char *) 0 ;
1161+ void *arg4 = (void *) 0 ;
1162+ uint64_t *arg5 = (uint64_t *) 0 ;
1163+ int32_t result;
1164+
1165+ (void )jenv;
1166+ (void )jcls;
1167+ arg1 = *(tiledb_ctx_t **)&jarg1;
1168+ arg2 = *(tiledb_query_t **)&jarg2;
1169+ arg3 = 0 ;
1170+ if (jarg3) {
1171+ arg3 = (char *)jenv->GetStringUTFChars (jarg3, 0 );
1172+ if (!arg3) return 0 ;
1173+ }
1174+ arg4 = *(void **)&jarg4;
1175+ arg5 = *(uint64_t **)&jarg5;
1176+ result = (int32_t )tiledb_query_set_buffer (arg1,arg2,(char const *)arg3, buffer,arg5);
1177+ jresult = (jint)result;
1178+ if (arg3) jenv->ReleaseStringUTFChars (jarg3, (const char *)arg3);
1179+ return jresult;
1180+ }
1181+
1182+ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1buffer_1var_1nio (JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jobject jarg4, jlong jarg5, jobject jarg6, jlong jarg7) {
1183+ void * offsets = (void *)jenv->GetDirectBufferAddress (jarg4);
1184+ void * buffer = (void *)jenv->GetDirectBufferAddress (jarg6);
1185+
1186+ jint jresult = 0 ;
1187+ tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
1188+ tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
1189+ char *arg3 = (char *) 0 ;
1190+ uint64_t *arg4 = (uint64_t *) 0 ;
1191+ uint64_t *arg5 = (uint64_t *) 0 ;
1192+ void *arg6 = (void *) 0 ;
1193+ uint64_t *arg7 = (uint64_t *) 0 ;
1194+ int32_t result;
1195+
1196+ (void )jenv;
1197+ (void )jcls;
1198+ arg1 = *(tiledb_ctx_t **)&jarg1;
1199+ arg2 = *(tiledb_query_t **)&jarg2;
1200+ arg3 = 0 ;
1201+ if (jarg3) {
1202+ arg3 = (char *)jenv->GetStringUTFChars (jarg3, 0 );
1203+ if (!arg3) return 0 ;
1204+ }
1205+ arg4 = *(uint64_t **)&jarg4;
1206+ arg5 = *(uint64_t **)&jarg5;
1207+ arg6 = *(void **)&jarg6;
1208+ arg7 = *(uint64_t **)&jarg7;
1209+ result = (int32_t )tiledb_query_set_buffer_var (arg1,arg2,(char const *)arg3,(uint64_t *)offsets,arg5,buffer,arg7);
1210+ jresult = (jint)result;
1211+ if (arg3) jenv->ReleaseStringUTFChars (jarg3, (const char *)arg3);
1212+ return jresult;
1213+ }
1214+
1215+ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1buffer_1nullable_1nio (JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jobject jarg4, jlong jarg5, jobject jarg6, jlong jarg7) {
1216+ jint jresult = 0 ;
1217+ tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
1218+ tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
1219+ char *arg3 = (char *) 0 ;
1220+ void *arg4 = (void *) 0 ;
1221+ uint64_t *arg5 = (uint64_t *) 0 ;
1222+ uint8_t *arg6 = (uint8_t *) 0 ;
1223+ uint64_t *arg7 = (uint64_t *) 0 ;
1224+ int32_t result;
1225+
1226+ (void )jenv;
1227+ (void )jcls;
1228+ arg1 = *(tiledb_ctx_t **)&jarg1;
1229+ arg2 = *(tiledb_query_t **)&jarg2;
1230+ arg3 = 0 ;
1231+ if (jarg3) {
1232+ arg3 = (char *)jenv->GetStringUTFChars (jarg3, 0 );
1233+ if (!arg3) return 0 ;
1234+ }
1235+ arg4 = *(void **)&jarg4;
1236+ arg5 = *(uint64_t **)&jarg5;
1237+ arg6 = *(uint8_t **)&jarg6;
1238+ arg7 = *(uint64_t **)&jarg7;
1239+ result = (int32_t )tiledb_query_set_buffer_nullable (arg1,arg2,(char const *)arg3,(void *)jenv->GetDirectBufferAddress (jarg4),arg5,(uint8_t *)jenv->GetDirectBufferAddress (jarg6),arg7);
1240+ jresult = (jint)result;
1241+ if (arg3) jenv->ReleaseStringUTFChars (jarg3, (const char *)arg3);
1242+ return jresult;
1243+ }
1244+
1245+ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1buffer_1var_1nullable_1nio (JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jobject jarg4, jlong jarg5, jobject jarg6, jlong jarg7, jobject jarg8, jlong jarg9) {
1246+ uint64_t * offsets = (uint64_t *)jenv->GetDirectBufferAddress (jarg4);
1247+ void * values = (void *)jenv->GetDirectBufferAddress (jarg6);
1248+ uint8_t * validity_bytemap = (uint8_t *)jenv->GetDirectBufferAddress (jarg8);
1249+
1250+ jint jresult = 0 ;
1251+ tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
1252+ tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
1253+ char *arg3 = (char *) 0 ;
1254+ uint64_t *arg5 = (uint64_t *) 0 ;
1255+ uint64_t *arg7 = (uint64_t *) 0 ;
1256+ uint64_t *arg9 = (uint64_t *) 0 ;
1257+ int32_t result;
1258+
1259+ (void )jenv;
1260+ (void )jcls;
1261+ arg1 = *(tiledb_ctx_t **)&jarg1;
1262+ arg2 = *(tiledb_query_t **)&jarg2;
1263+ arg3 = 0 ;
1264+ if (jarg3) {
1265+ arg3 = (char *)jenv->GetStringUTFChars (jarg3, 0 );
1266+ if (!arg3) return 0 ;
1267+ }
1268+ arg5 = *(uint64_t **)&jarg5;
1269+ arg7 = *(uint64_t **)&jarg7;
1270+ arg9 = *(uint64_t **)&jarg9;
1271+ result = (int32_t )tiledb_query_set_buffer_var_nullable (arg1,arg2,(char const *)arg3, offsets, arg5, values, arg7, validity_bytemap, arg9);
1272+ jresult = (jint)result;
1273+ if (arg3) jenv->ReleaseStringUTFChars (jarg3, (const char *)arg3);
1274+ return jresult;
1275+ }
1276+
11351277
11361278#ifdef __cplusplus
11371279}
0 commit comments