Skip to main content
Version: Java (Groovy)

Input Table

Input Tables are in-memory Deephaven tables that allow users to manually edit the data in cells. They come in two flavors:

Syntax

Append-Only

AppendOnlyArrayBackedInputTable.make(definition)
AppendOnlyArrayBackedInputTable.make(definition, enumValues)
AppendOnlyArrayBackedInputTable.make(initialTable)
AppendOnlyArrayBackedInputTable.make(initialTable, enumValues)

Keyed

KeyedArrayBackedInputTable.make(definition)
KeyedArrayBackedInputTable.make(definition, enumValues)
KeyedArrayBackedInputTable.make(initialTable)
KeyedArrayBackedInputTable.make(initialTable, enumValues)

Parameters

ParameterTypeDescription
definitionTableDefinition

The definition of the new table.

enumValuesMap<String, Object[]>

A map of column names to enum values.

initialTableTable

The initial Table to copy into the append-only or keyed Input Table.

Returns

An append-only or keyed Input Table.

Examples

In this example, we will create an append-only input table from a source table.

import io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedInputTable

source = newTable(
doubleCol("Doubles", 3.1, 5.45, -1.0),
stringCol("Strings", "Creating", "New", "Tables")
)

result = AppendOnlyArrayBackedInputTable.make(source)

In this example, we will create a keyed input table from a source table.

import io.deephaven.engine.table.impl.util.KeyedArrayBackedInputTable

source = newTable(
doubleCol("Doubles", 3.1, 5.45, -1.0),
stringCol("Strings", "Creating", "New", "Tables")
)

result = KeyedArrayBackedInputTable.make(source, "Strings")

Add data to the table

To manually add data to an input table, simply click on the cell in which you wish to enter data. Type the value into the cell, hit enter, and it will appear.

img

info

Added rows are not final until you hit the Commit button.