Class JdbcMetadataCatalog

java.lang.Object
org.apache.ignite.client.handler.requests.jdbc.JdbcMetadataCatalog

public class JdbcMetadataCatalog extends Object
Facade over IgniteTables to get information about database entities in terms of JDBC.
  • Constructor Details

    • JdbcMetadataCatalog

      public JdbcMetadataCatalog(org.apache.ignite.internal.hlc.ClockService clockService, org.apache.ignite.internal.schema.SchemaSyncService schemaSyncService, org.apache.ignite.internal.catalog.CatalogService catalogService)
      Initializes info.
      Parameters:
      clockService - Clock service.
      schemaSyncService - Used to wait for schemas' completeness.
      catalogService - Used to get table descriptions.
  • Method Details

    • getPrimaryKeys

      public CompletableFuture<Collection<org.apache.ignite.internal.jdbc.proto.event.JdbcPrimaryKeyMeta>> getPrimaryKeys(String schemaNamePtrn, String tblNamePtrn)
      See DatabaseMetaData.getPrimaryKeys(String, String, String) for details.

      Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.

      Parameters:
      schemaNamePtrn - Sql pattern for schema name.
      tblNamePtrn - Sql pattern for table name.
      Returns:
      Future of the collection of primary keys information for tables that matches specified schema and table name patterns.
    • getTablesMeta

      public CompletableFuture<List<org.apache.ignite.internal.jdbc.proto.event.JdbcTableMeta>> getTablesMeta(String schemaNamePtrn, String tblNamePtrn, @Nullable @Nullable String[] tblTypes)
      See DatabaseMetaData.getTables(String, String, String, String[]) for details.

      Ignite has only one possible value for CATALOG_NAME and has only one table type so these parameters are handled on the client (driver) side.

      Result is ordered by (schema name, table name).

      Parameters:
      schemaNamePtrn - Sql pattern for schema name.
      tblNamePtrn - Sql pattern for table name.
      tblTypes - Requested table types.
      Returns:
      Future of the list of metadatas of tables that matches.
    • getColumnsMeta

      public CompletableFuture<Collection<org.apache.ignite.internal.jdbc.proto.event.JdbcColumnMeta>> getColumnsMeta(String schemaNamePtrn, String tblNamePtrn, String colNamePtrn)
      See DatabaseMetaData.getColumns(String, String, String, String) for details.

      Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.

      Parameters:
      schemaNamePtrn - Schema name java regex pattern.
      tblNamePtrn - Table name java regex pattern.
      colNamePtrn - Column name java regex pattern.
      Returns:
      Future of the list of metadatas about columns that match specified schema/tablename/columnname criterias.
    • getSchemasMeta

      public CompletableFuture<Collection<String>> getSchemasMeta(String schemaNamePtrn)
      See DatabaseMetaData.getSchemas(String, String) for details.

      Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.

      Parameters:
      schemaNamePtrn - Sql pattern for schema name filter.
      Returns:
      Future of the schema names that matches provided pattern.