Aleksandar Kovacevic · Dec 24, 2021

How do you create $listbuild using java native api?

Is there a way to make listbuild from java?

Something like:

IRIS iris = IRIS.createIRIS(conn);

byte[] value={1,2,3,4}


but this creates set ^testglobal = $c(1,2,3,4).


Product version: IRIS 2021.2
0 138
Discussion (3)1
Log in or sign up to continue

Internally it should support listbuilds, but not sure if it exposes this ability to public

Use the IRISList class:

        IRIS iris = IRIS.createIRIS(connection);

        IRISList list = new IRISList();
        list.add("this is a string");
        iris.set(list, "test",1);

USER>zw ^test
^test(1)=$lb("this is a string",100)