public static TpchGenerator singleGenerator(GenerationDefinition.TpchTable table, double scale, BufferAllocator allocator, String... includedColumns) {
GenerationDefinition def = new GenerationDefinition(scale, Long.MAX_VALUE);
switch(table){
case CUSTOMER:
return new CustomerGenerator(allocator, def, 1, includedColumns);
case REGION:
return new RegionGenerator(allocator, def, includedColumns);
case NATION:
return new NationGenerator(allocator, def, includedColumns);
default:
throw new UnsupportedOperationException();
}
}
}