| 20 | static String condition = "_Lmax" + Lmax; //same_num or same_type |
| 21 | |
| 22 | public static int write_Lmax(BufferedWriter buffWriter, int num, int L_max, int counter) throws IOException { |
| 23 | for (int i = 0; i < num; i++) { |
| 24 | String csv = table_name + "_id_" + counter; |
| 25 | for (int j = 0; j < key_colnum; j++) { |
| 26 | csv += "," + table_name +"_keyword_0_" + j; |
| 27 | } |
| 28 | |
| 29 | for (int j = 0; j < join_column; j++) { |
| 30 | int mod = counter / L_max; |
| 31 | csv += "," + "join_0_" + mod + "_" + j; |
| 32 | } |
| 33 | counter++; |
| 34 | buffWriter.write(csv); |
| 35 | buffWriter.newLine(); |
| 36 | buffWriter.flush(); |
| 37 | } |
| 38 | return counter; |
| 39 | } |
| 40 | |
| 41 | public static void main(String[] args) { |
| 42 | BufferedWriter buffWriter = null; |