Interface DiscoveryResult
- All Known Implementing Classes:
DiscoveryResultImpl
public interface DiscoveryResult
The result of an Iceberg table
discovery
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Deploy the discovered table as a DeephavenSchema
, embedding the endpoint directly into the schema.default void
Deploy the discovered table as a DeephavenSchema
, referencing the endpoint byname
.@NotNull DiscoveryConfig
Get theDiscoveryConfig
used for the discovery.Get theDataInstructionsProviderLoader
for use with Iceberg locations.@NotNull IcebergTableAdapter
Get the discoveredIcebergTableAdapter
.@NotNull String
Get the namespace of the table.@NotNull IcebergReadInstructions
Get the completedIcebergReadInstructions
that can be used to fetch DeephavenTable
s.org.apache.iceberg.catalog.TableIdentifier
Get theTableIdentifier
used to discover the table.@NotNull String
Get the name of the table.
-
Method Details
-
getConfig
Get theDiscoveryConfig
used for the discovery.- Returns:
- the configuration.
-
getNamespace
Get the namespace of the table. IfDiscoveryConfig.namespace()
was not provided, then it is derived from the Iceberg Table Identifier- Returns:
- the namespace of the table.
-
getTableName
Get the name of the table. IfDiscoveryConfig.tableName()
was not provided, then it is derived from the Iceberg Table Identifier.- Returns:
- the table name.
-
getIcebergTableAdapter
Get the discoveredIcebergTableAdapter
.- Returns:
- the Iceberg
IcebergTableAdapter
-
getReadInstructions
Get the completedIcebergReadInstructions
that can be used to fetch DeephavenTable
s.- Returns:
- the
IcebergReadInstructions
-
getDataInstructionsProvider
DataInstructionsProviderLoader getDataInstructionsProvider()Get theDataInstructionsProviderLoader
for use with Iceberg locations.- Returns:
- the
DataInstructionsProviderLoader
-
getTableIdentifier
org.apache.iceberg.catalog.TableIdentifier getTableIdentifier()Get theTableIdentifier
used to discover the table.- Returns:
- the
TableIdentifier
-
deployWithEndpointReference
Deploy the discovered table as a DeephavenSchema
, referencing the endpoint byname
. This will fail if theendpoint
was not created with aIcebergEndpoint.Named
.- Throws:
IOException
- if the endpoint could not be desrialized
-
deployWithEmbeddedEndpoint
Deploy the discovered table as a DeephavenSchema
, embedding the endpoint directly into the schema.- Throws:
IOException
- if the endpoint could not be serialized.
-