Skip to content

Commit 33f63c0

Browse files
authored
Merge pull request #183 from TileDB-Inc/victorgiannakouris/bytebuffer_var
NIO ByteBuffer support for variable-sized attributes
2 parents e315063 + c505dd0 commit 33f63c0

File tree

5 files changed

+333
-127
lines changed

5 files changed

+333
-127
lines changed

src/main/c/generated/tiledb_wrap.cxx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7075,6 +7075,39 @@ SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1set_1b
70757075
return jresult;
70767076
}
70777077

7078+
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) {
7079+
void* offsets = (void *)jenv->GetDirectBufferAddress(jarg4);
7080+
void* buffer = (void *)jenv->GetDirectBufferAddress(jarg6);
7081+
7082+
jint jresult = 0 ;
7083+
tiledb_ctx_t *arg1 = (tiledb_ctx_t *) 0 ;
7084+
tiledb_query_t *arg2 = (tiledb_query_t *) 0 ;
7085+
char *arg3 = (char *) 0 ;
7086+
uint64_t *arg4 = (uint64_t *) 0 ;
7087+
uint64_t *arg5 = (uint64_t *) 0 ;
7088+
void *arg6 = (void *) 0 ;
7089+
uint64_t *arg7 = (uint64_t *) 0 ;
7090+
int32_t result;
7091+
7092+
(void)jenv;
7093+
(void)jcls;
7094+
arg1 = *(tiledb_ctx_t **)&jarg1;
7095+
arg2 = *(tiledb_query_t **)&jarg2;
7096+
arg3 = 0;
7097+
if (jarg3) {
7098+
arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
7099+
if (!arg3) return 0;
7100+
}
7101+
arg4 = *(uint64_t **)&jarg4;
7102+
arg5 = *(uint64_t **)&jarg5;
7103+
arg6 = *(void **)&jarg6;
7104+
arg7 = *(uint64_t **)&jarg7;
7105+
result = (int32_t)tiledb_query_set_buffer_var(arg1,arg2,(char const *)arg3,(uint64_t *)offsets,arg5,buffer,arg7);
7106+
jresult = (jint)result;
7107+
if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
7108+
return jresult;
7109+
}
7110+
70787111

70797112
SWIGEXPORT jint JNICALL Java_io_tiledb_libtiledb_tiledbJNI_tiledb_1query_1get_1buffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jlong jarg4, jlong jarg5) {
70807113
jint jresult = 0 ;

0 commit comments

Comments
 (0)