LoadTableOptions
The LoadTableOptions
class specifies options for loading Iceberg tables into Deephaven.
Constructors
The LoadTableOptions
class is constructed via its builder:
import io.deephaven.iceberg.util.*
options = LoadTableOptions.builder()
.id(id)
.nameMapping(nameMapping)
.resolver(resolver)
.build()
Parameters
id
: A string ororg.apache.iceberg.catalog.TableIdentifier
that identifies the Iceberg table to load.nameMapping
: ANameMappingProvider
ororg.apache.iceberg.mapping.NameMapping
that provides a mapping of Iceberg column names to Deephaven column names.resolver
: AResolverProvider
that specifies how to resolve schema and partitioning information when loading the table.
Methods
id
: Return the table identifier.nameMapping
: Return the name mapping provider. Set toNameMappingProvider.fromTable
by default.resolver
: Return the resolver provider.
Examples
The following example constructs a LoadTableOptions
instance with a specific table identifier and default name mapping and resolver:
import io.deephaven.iceberg.util.*
options = LoadTableOptions.builder()
.id("my_table")
.build()