DynamicTableWriter

DynamicTableWriter creates a TableWriter for writing data to a real-time, in-memory table.

Syntax

Parameters

ParameterTypeDescription
columnNamesString[]

Column names.

columnTypesClass[]

Column data types.

headerTableHeader

The names and types of the columns in the output table (and our input).

constantValuesMap<String, Object>

A Map of columns with constant values.

definitionTableDefinition

The table definition to create the Dynamic Table Writer for.

Returns

A TableWriter.

Methods

DynamicTableWriter supports the following methods:

Examples

In this example, DynamicTableWriter is used to create a table with two columns:

  • The first contains the row number.
  • The second contains a string.

The above result table

The example above writes data to result from the main thread. As a result, the Deephaven web interface will not display the result table until the script finishes execution.

The example below uses a dedicated thread to write data to the table. The Deephaven web interface immediately updates to display all result table changes.