此内容没有您所选择的语言版本。
3.3.4. Register Groupers
After creation, each grouper must be registered to be used.
Declaratively Register a Grouper
Use the following code to register a grouping using XML:
Programmatically Register a Grouper
Use the following code to register a grouper programmatically:
Configuration c = new ConfigurationBuilder().clustering().hash().groups().addGrouper(new KXGrouper()).enabled().build();
Configuration c = new ConfigurationBuilder().clustering().hash().groups().addGrouper(new KXGrouper()).enabled().build();