public MergedData createMergedData() { long time = System.currentTimeMillis(); parseData(); System.out.println("Daten parsen: " + (System.currentTimeMillis() - time) + " ms"); time = System.currentTimeMillis(); processData(); System.out.println("Daten aggregieren: " + (System.currentTimeMillis() - time) + " ms"); time = System.currentTimeMillis(); DataMerger dataMerger = new DataMerger(); AccountDataAndLabels income = new AccountDataAndLabels(parsedIncome, incomeParser.getLabels()); AccountDataAndLabels spendings = new AccountDataAndLabels(parsedSpendings, spendingsParser.getLabels()); MergedData mergedData = dataMerger.mergeData(parsedPopulation, parsedArea, income, spendings); System.out.println("Daten verarbeiten: " + (System.currentTimeMillis() - time) + " ms"); return mergedData; }
private void parseData() { parsedPopulation = populationParser.parse(); parsedArea = areaSizeParser.parse(); parsedIncome = incomeParser.parse(); parsedSpendings = spendingsParser.parse(); }