Skip to main content
Version: Java (Groovy)

emptyTable

The emptyTable method creates an empty in-memory table with a specified number of rows.

Syntax

emptyTable(size)

Parameters

ParameterTypeDescription
sizelong

The number of empty rows allocated.

Returns

An empty in-memory table.

Example

The following example creates an empty in-memory table with five rows.

result = emptyTable(5)

The following example creates an empty in-memory table with five rows and then updates it to contain data.

result = emptyTable(5).update("X = 5")