newTable
The newTable method creates an in-memory table from a list of columns. Each column must have an equal number of elements.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| columnHolders | ColumnHolder... | A list of columnHolders from which to create the new table. Columns are created using the following methods: |
| names | String... | A list of column names. |
| size | long | The number of rows to allocate. |
| columns | Map | A Map of column names and ColumnSources. |
| definition | TableDefinition | The TableDefinition (column names and properties) to use for the new table. |
Returns
An in-memory table.
Examples
The following example creates a table with one column of three integer values.
The following example creates a table with a double and a string column.