Package io.deephaven.iceberg.util
Class TableWriterOptions
java.lang.Object
io.deephaven.iceberg.util.TableWriterOptions
- Direct Known Subclasses:
TableParquetWriterOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe data instructions to use for writing the Iceberg data files (might be S3Instructions or other cloud provider-specific instructions).A one-to-onemap
from Iceberg field IDs from theschemaProvider()
to Deephaven column names from thetableDefinition()
.Used to extract aSchema
from a table.Specifies theSortOrder
to use for sorting new data when writing to an Iceberg table with this writer.abstract TableDefinition
TheTableDefinition
to use when writing Iceberg data files, instead of the one implied by the table being written itself.
-
Constructor Details
-
TableWriterOptions
public TableWriterOptions()
-
-
Method Details
-
tableDefinition
TheTableDefinition
to use when writing Iceberg data files, instead of the one implied by the table being written itself. This definition can be used to skip some columns or add additional columns withnull
values. -
dataInstructions
The data instructions to use for writing the Iceberg data files (might be S3Instructions or other cloud provider-specific instructions). If not provided, data instructions will be derived from the properties of the catalog. -
schemaProvider
Used to extract aSchema
from a table. That schema will be used in conjunction with thefieldIdToColumnName()
to map Deephaven columns fromtableDefinition()
to Iceberg columns. IffieldIdToColumnName()
is not provided, the mapping is done by column name.Defaults to
SchemaProvider.fromCurrent()
. -
fieldIdToColumnName
A one-to-onemap
from Iceberg field IDs from theschemaProvider()
to Deephaven column names from thetableDefinition()
. -
sortOrderProvider
Specifies theSortOrder
to use for sorting new data when writing to an Iceberg table with this writer. The sort order is determined at the time the writer is created and does not change if the table's sort order changes later.Defaults to
SortOrderProvider.useTableDefault()
.
-