Interface MetadataAccessor
-
- All Known Implementing Classes:
FlussMetadataAccessor,MySqlMetadataAccessor,OracleMetadataAccessor,PostgresMetadataAccessor,SqlServerMetadataAccessor,ValuesDatabase.ValuesMetadataAccessor
@PublicEvolving public interface MetadataAccessor
MetadataAccessoris used byDataSourceto access the metadata from external systems.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchemagetTableSchema(TableId tableId)Get theSchemaof 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.
-
-
-
Method Detail
-
listNamespaces
List<String> listNamespaces()
List all namespaces from external systems.- Returns:
- The list of namespaces
- Throws:
UnsupportedOperationException- Thrown, if the external system does not support namespace.
-
listSchemas
List<String> listSchemas(@Nullable String namespace)
List all schemas from external systems.- Parameters:
namespace- The namespace to list schemas from. If null, list schemas from all namespaces.- Returns:
- The list of schemas
- Throws:
UnsupportedOperationException- Thrown, if the external system does not support schema.
-
listTables
List<TableId> listTables(@Nullable String namespace, @Nullable String schemaName)
List tables by namespace and schema from external systems.- Parameters:
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.- Returns:
- The list of
TableIds.
-
-