如何在 apache ignite 中使用胖客户端创建模式

How to create schema with thick client in apache ignite

Apache Ignite 尚不支持使用 DDL 创建模式。那么有什么方法可以在运行时创建新模式吗?我尝试在胖客户端中添加模板缓存配置,但架构配置不起作用。

CacheConfigration cfg = new CacheConfigration();
cfg.setName("MyTemplte*");
cfg.setSqlSchema("NEW_SCHEMA");
ignite.addCacheConfigration(cfg);

使用 ignite.createCache(cfg)ignite.getOrCreateCache(cfg) 创建具有指定架构的新缓存。

addCacheConfiguration 只创建模板,不创建任何模式或缓存。

有关详细信息,请参阅 https://ignite.apache.org/docs/latest/SQL/schemas