Login  Register

Process database table (or complex data)?

Posted by bojan on Dec 09, 2015; 1:37pm
URL: https://forum.jogamp.org/Process-database-table-or-complex-data-tp4035890.html

Hi!

I am newbie to jocl. I was given a task to do some data processing on GPU, so jocl sounded like a good solution. What I need to do is to load a table from database (actually a few of them), do some processing and return a results (usually one, filtered, table).
In Java I load database table to List<List<Object>>   ("List" is one row from database, it contains different data types (numbers, dates, strings,...) ).

So my question if how to pass these input data to jocl script? Currently I didn't find a way to pass it as it is, so I am loading column by column, fill buffer with it and giving it to a script. It works ok for numbers, but I can do the same thing with string or dates (at least not yet). And to be honest - I don't like this approach - if I have 3 tables, each of them has 5 columns - it means 15 arguments in my script - not so nice. Any suggestion how to do this?