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 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DiscoveryResultGet theDiscoveryConfigused for the discovery.- Specified by:
getConfigin interfaceDiscoveryResult- Returns:
- the configuration.
-
getNamespace
Description copied from interface:DiscoveryResultGet the namespace of the table. IfDiscoveryConfig.namespace()was not provided, then it is derived from the Iceberg Table Identifier- Specified by:
getNamespacein interfaceDiscoveryResult- Returns:
- the namespace of the table.
-
getTableName
Description copied from interface:DiscoveryResultGet the name of the table. IfDiscoveryConfig.tableName()was not provided, then it is derived from the Iceberg Table Identifier.- Specified by:
getTableNamein interfaceDiscoveryResult- Returns:
- the table name.
-
getIcebergTableAdapter
Description copied from interface:DiscoveryResultGet the discoveredIcebergTableAdapter.- Specified by:
getIcebergTableAdapterin interfaceDiscoveryResult- Returns:
- the Iceberg
IcebergTableAdapter
-
getReadInstructions
Description copied from interface:DiscoveryResultGet the completedIcebergReadInstructionsthat can be used to fetch DeephavenTables.- Specified by:
getReadInstructionsin interfaceDiscoveryResult- Returns:
- the
IcebergReadInstructions
-
getDataInstructionsProvider
Description copied from interface:DiscoveryResultGet theDataInstructionsProviderLoaderfor use with Iceberg locations.- Specified by:
getDataInstructionsProviderin interfaceDiscoveryResult- Returns:
- the
DataInstructionsProviderLoader
-
getTableIdentifier
public org.apache.iceberg.catalog.TableIdentifier getTableIdentifier()Description copied from interface:DiscoveryResultGet theTableIdentifierused to discover the table.- Specified by:
getTableIdentifierin interfaceDiscoveryResult- Returns:
- the
TableIdentifier
-