public class TableAppender extends Object
TableAppender tableAppender = new PartitionedTableAppender("Trades", "192.168.1.25", 8848);
List<Entity> row = new ArrayList<>();
row.add(BasicInt(1));
row.add(BasicString('A'));
tableAppender.append(row);
| Constructor and Description |
|---|
TableAppender(String tableName,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
int |
append(List<Entity> row)
Append a list of columns to the table.
|
public TableAppender(String tableName, String host, int port) throws IOException
tableName - name of the shared tablehost - hostport - portIOExceptionpublic int append(List<Entity> row) throws IOException
row - IOExceptionCopyright © 2019 DolphinDB. All rights reserved.