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