while (result.next()) {
calculator = new Calculator(result.currentRow());
for (int i = 0; i < columnCount; i++) {
Expression expr = expressions.get(i);
index = calculator.getIndex();
expr.calculate(calculator);
if (calculator.getIndex() == index) {
calculator.addResultValue(calculator.getValue(index));
calculator.addIndex();
}
}