return factory.setPattern(conf[3]).setPartition(conf[4]).createRouter();
} else if (HEX_HASH.equalsIgnoreCase(conf[0])) {
RouterFactory factory = new RouterFactory(HEX_HASH) {
@Override
public Router onCreateRouter(String column, String pattern, int partitions) {
return new HexHashRouter(column, pattern, partitions);
}
};
return factory.setColumn(conf[2]).setPattern(conf[3]).setPartition(conf[4]).createRouter();
} else if (XM_HASH.equalsIgnoreCase(conf[0])) {
RouterFactory factory = new RouterFactory(XM_HASH) {