IcebergTableWriter

The IcebergTableWriter class is responsible for writing Deephaven tables to Iceberg tables. Each instance is associated with a single IcebergTableAdapter and is used to write multiple Deephaven tables to a single Iceberg table.

Constructors

The IcebergTableWriter class is constructed with the IcebergTableAdapter.tableWriter method:

Parameters

When constructing an IcebergTableWriter, the IcebergWriteInstructions class specifies instructions to use when writing to the Iceberg table.

Methods

  • append: Append the Deephaven table(s) to the Iceberg table using the specified write instructions.
  • writeDataFiles: Write data from the Deephaven table(s) to an Iceberg table without creating a new snapshot.

Examples

The following example creates an IcebergTableWriter from an IcebergTableAdapter and appends two tables with identical definitions to an Iceberg table. It uses the Docker deployment defined in the Deephaven and Iceberg guide.