@PublicEvolving public interface MetadataAccessor
MetadataAccessor is used by DataSource to access the metadata from external
systems.| 限定符和类型 | 方法和说明 |
|---|---|
Schema |
getTableSchema(TableId tableId)
Get the
Schema of the given table. |
List<String> |
listNamespaces()
List all namespaces from external systems.
|
List<String> |
listSchemas(String namespace)
List all schemas from external systems.
|
List<TableId> |
listTables(String namespace,
String schemaName)
List tables by namespace and schema from external systems.
|
List<String> listNamespaces()
UnsupportedOperationException - Thrown, if the external system does not support
namespace.List<String> listSchemas(@Nullable String namespace)
namespace - The namespace to list schemas from. If null, list schemas from all
namespaces.UnsupportedOperationException - Thrown, if the external system does not support schema.List<TableId> listTables(@Nullable String namespace, @Nullable String schemaName)
namespace - The namespace to list tables from. If null, list tables from all namespaces.schemaName - The schema to list tables from. If null, list tables from all schemas.TableIds.Copyright © 2025 The Apache Software Foundation. All rights reserved.