Interface MetadataAccessor

    • 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.
      • getTableSchema

        Schema getTableSchema​(TableId tableId)
        Get the Schema of the given table.
        Parameters:
        tableId - The TableId of the given table.
        Returns:
        The Schema of the table.