BuildCatalogOptions
The BuildCatalogOptions
class specifies options to use when constructing an IcebergCatalogAdapter
.
Constructors
The BuildCatalogOptions
class is constructed via its builder:
import io.deephaven.iceberg.util.*
options = BuildCatalogOptions.builder()
.enablePropertyInjection(boolean enable)
.name(String name)
.putAllHadoopConfig(Map<String, ? extends String> entries)
.putAllProperties(Map<String, ? extends String> entries)
.putHadoopConfig(String key, String value)
.putProperties(String key, String value)
.build()
Parameters
When building an instance of BuildCatalogOptions
, the following parameters can be specified:
enablePropertyInjection
: A boolean flag to enable or disable property injection.name
: The name of the catalog adapter.entries
: A map of entries to add to the Hadoop configuration or catalog properties.key
: A key corresponding to a particular Hadoop configuration or catalog property.value
: A value corresponding to a particular Hadoop configuration or catalog property.
Methods
enablePropertyInjection
: Enable property injection for a catalog.hadoopConfig
: List the Hadoop configuration properties.name
: Return the name of the catalog.properties
: List the user-defined catalog properties.
Examples
The following example constructs a BuildCatalogOptions
via its builder:
import io.deephaven.iceberg.util.BuildCatalogOptions
options = BuildCatalogOptions.builder()
.enablePropertyInjection(true)
.name("myCatalog")
.putProperties("type", "rest")
.putProperties("uri", "http://rest:8181")
.build()