public static class ValuesDatabase.ValuesMetadataAccessor extends Object implements MetadataAccessor
ValuesDataSource
.Constructor and Description |
---|
ValuesMetadataAccessor() |
Modifier and Type | Method and Description |
---|---|
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.
|
public List<String> listNamespaces() throws UnsupportedOperationException
MetadataAccessor
listNamespaces
in interface MetadataAccessor
UnsupportedOperationException
- Thrown, if the external system does not support
namespace.public List<String> listSchemas(@Nullable String namespace) throws UnsupportedOperationException
MetadataAccessor
listSchemas
in interface MetadataAccessor
namespace
- The namespace to list schemas from. If null, list schemas from all
namespaces.UnsupportedOperationException
- Thrown, if the external system does not support schema.public List<TableId> listTables(@Nullable String namespace, @Nullable String schemaName)
MetadataAccessor
listTables
in interface MetadataAccessor
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.TableId
s.public Schema getTableSchema(TableId tableId)
MetadataAccessor
Schema
of the given table.getTableSchema
in interface MetadataAccessor
tableId
- The TableId
of the given table.Schema
of the table.Copyright © 2024 The Apache Software Foundation. All rights reserved.