Class DiscoveryResultImpl
java.lang.Object
io.deephaven.enterprise.iceberg.discovery.DiscoveryResultImpl
- All Implemented Interfaces:
DiscoveryResult
The implementation of a
DiscoveryResult
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryResultImpl
(@NotNull DiscoveryConfig config, @NotNull IcebergTableAdapter tableAdapter, @NotNull IcebergReadInstructions readInstructions, @NotNull String namespace, @NotNull String tableName, DataInstructionsProviderLoader dataInstructionsProvider, org.apache.iceberg.catalog.TableIdentifier tableId) Create aDiscoveryResultImpl
-
Method Summary
Modifier and TypeMethodDescription@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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.enterprise.iceberg.discovery.DiscoveryResult
deployWithEmbeddedEndpoint, deployWithEndpointReference
-
Constructor Details
-
DiscoveryResultImpl
public DiscoveryResultImpl(@NotNull @NotNull DiscoveryConfig config, @NotNull @NotNull IcebergTableAdapter tableAdapter, @NotNull @NotNull IcebergReadInstructions readInstructions, @NotNull @NotNull String namespace, @NotNull @NotNull String tableName, DataInstructionsProviderLoader dataInstructionsProvider, org.apache.iceberg.catalog.TableIdentifier tableId) Create aDiscoveryResultImpl
- Parameters:
config
- the confignamespace
- the resolved namespacetableName
- the resolved table namedataInstructionsProvider
-
-
-
Method Details
-
getConfig
Description copied from interface:DiscoveryResult
Get theDiscoveryConfig
used for the discovery.- Specified by:
getConfig
in interfaceDiscoveryResult
- Returns:
- the configuration.
-
getNamespace
Description copied from interface:DiscoveryResult
Get the namespace of the table. IfDiscoveryConfig.namespace()
was not provided, then it is derived from the Iceberg Table Identifier- Specified by:
getNamespace
in interfaceDiscoveryResult
- Returns:
- the namespace of the table.
-
getTableName
Description copied from interface:DiscoveryResult
Get the name of the table. IfDiscoveryConfig.tableName()
was not provided, then it is derived from the Iceberg Table Identifier.- Specified by:
getTableName
in interfaceDiscoveryResult
- Returns:
- the table name.
-
getIcebergTableAdapter
Description copied from interface:DiscoveryResult
Get the discoveredIcebergTableAdapter
.- Specified by:
getIcebergTableAdapter
in interfaceDiscoveryResult
- Returns:
- the Iceberg
IcebergTableAdapter
-
getReadInstructions
Description copied from interface:DiscoveryResult
Get the completedIcebergReadInstructions
that can be used to fetch DeephavenTable
s.- Specified by:
getReadInstructions
in interfaceDiscoveryResult
- Returns:
- the
IcebergReadInstructions
-
getDataInstructionsProvider
Description copied from interface:DiscoveryResult
Get theDataInstructionsProviderLoader
for use with Iceberg locations.- Specified by:
getDataInstructionsProvider
in interfaceDiscoveryResult
- Returns:
- the
DataInstructionsProviderLoader
-
getTableIdentifier
public org.apache.iceberg.catalog.TableIdentifier getTableIdentifier()Description copied from interface:DiscoveryResult
Get theTableIdentifier
used to discover the table.- Specified by:
getTableIdentifier
in interfaceDiscoveryResult
- Returns:
- the
TableIdentifier
-