'get number of written rows after tableInsert via DolphinDB Java API

I used the method but it failed to print the number of written rows.

Entity entity = conn.run("tableInsert(...)")
System.out.println(entity.rows())


Solution 1:[1]

When using DolphinDB Java API, the entity returned by tableInsert is of BasicInt type. Print entity and you can get the number of written rows.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shena