2018.4.24
for (Row currentRow : currentTable) {
if (currentRow.getEntries().get(attrIndex).compareTo(new Entry(whereAttrValue)) == 0) {
ArrayList<String> tmpRow = new ArrayList<>();
StringBuilder partRow = new StringBuilder();
for (int i = 0; i < attrIndices.size() - 1; i++) {
int index = attrIndices.get(i);
partRow.append(currentRow.getEntries().get(index).toString()).append(", ");
}
partRow.append(currentRow.getEntries().get(attrIndices.size() - 1).toString());
tmpRow.add(partRow.toString());
resp.rowList.add(tmpRow);
}