for (int i = 0; i < names.size(); i++) {
String name = names.get(i);
Type type = types.get(i);
switch (type) {
case BOOLEAN:
list.add(new Column(name, "boolean"));
break;
case FIXED_INT_64:
list.add(new Column(name, "bigint"));
break;
case DOUBLE:
list.add(new Column(name, "double"));
break;
case VARIABLE_BINARY:
list.add(new Column(name, "varchar"));
break;
default:
throw new IllegalArgumentException("unhandled type: " + type);
}
}