Details
Description
IgniteCatalog API allows creating tables using a strongly-typed object model (generates and executes SQL for you from a TableDefinition).
However, there is no way to get the TableDefinition for an existing table. Use cases:
- Inspect table information in a strongly-typed way (as opposed to executing an Ignite-specific SQL query and extracting the data from a ResultSet)
- Get the definition of an existing table and create another one with similar settings (using TableDefinition.toBuilder)
Same applies to ZoneDefinition.
Extend IgniteCatalog interface with the following methods:
CompletableFuture<TableDefinition> tableDefinitionAsync(String name); TableDefinition tableDefinition(String name); CompletableFuture<ZoneDefinition> zoneDefinitionAsync(String name); ZoneDefinition zoneDefinition(String name);
Attachments
Issue Links
- links to