Interface DiscoveryResult
- All Known Implementing Classes:
DiscoveryResultImpl
public interface DiscoveryResult
The result of an Iceberg table
discovery.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeploy the discovered table as a DeephavenSchema, embedding the endpoint directly into the schema.default voidDeploy the discovered table as a DeephavenSchema, referencing the endpoint byname.@NotNull DiscoveryConfigGet theDiscoveryConfigused for the discovery.Get theDataInstructionsProviderLoaderfor use with Iceberg locations.@NotNull IcebergTableAdapterGet the discoveredIcebergTableAdapter.@NotNull StringGet the namespace of the table.@NotNull IcebergReadInstructionsGet the completedIcebergReadInstructionsthat can be used to fetch DeephavenTables.org.apache.iceberg.catalog.TableIdentifierGet theTableIdentifierused to discover the table.@NotNull StringGet the name of the table.
-
Method Details
-
getConfig
Get theDiscoveryConfigused 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 completedIcebergReadInstructionsthat can be used to fetch DeephavenTables.- Returns:
- the
IcebergReadInstructions
-
getDataInstructionsProvider
DataInstructionsProviderLoader getDataInstructionsProvider()Get theDataInstructionsProviderLoaderfor use with Iceberg locations.- Returns:
- the
DataInstructionsProviderLoader
-
getTableIdentifier
org.apache.iceberg.catalog.TableIdentifier getTableIdentifier()Get theTableIdentifierused to discover the table.- Returns:
- the
TableIdentifier
-
deployWithEndpointReference
Deploy the discovered table as a DeephavenSchema, referencing the endpoint byname. This will fail if theendpointwas 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.
-