Question 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}

iris.set(value,"^testglobal");

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

Product version: IRIS 2021.2

Comments

Dmitry Maslennikov · Dec 24, 2021

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

0
Dan Pasco · Dec 24, 2021

Use the IRISList class:

        IRIS iris = IRIS.createIRIS(connection);

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

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

0